Repository: InterstellarNetwork/Interstellar
Branch: main
Commit: 7a686ce96d3d
Files: 65
Total size: 1.8 MB
Directory structure:
gitextract_cbt85_f1/
├── .github/
│ ├── FUNDING.yml
│ ├── ISSUE_TEMPLATE/
│ │ ├── bug-report.md
│ │ ├── feature-request.md
│ │ └── game-request.md
│ ├── dependabot.yml
│ └── workflows/
│ └── ads.yml
├── .gitignore
├── .vscode/
│ ├── extensions.json
│ └── settings.json
├── CONTRIBUTING.md
├── Dockerfile
├── Failed.html
├── LICENSE
├── Masqr.js
├── README.md
├── SECURITY.md
├── app.json
├── biome.json
├── config.js
├── index.js
├── package.json
├── render.yaml
├── static/
│ ├── 404.html
│ ├── ads.txt
│ ├── apps.html
│ ├── assets/
│ │ ├── css/
│ │ │ ├── container.css
│ │ │ ├── error.css
│ │ │ ├── global.css
│ │ │ ├── h.css
│ │ │ ├── nav.css
│ │ │ ├── settings.css
│ │ │ ├── t.css
│ │ │ └── themes/
│ │ │ ├── catppuccin/
│ │ │ │ ├── frappe.css
│ │ │ │ ├── latte.css
│ │ │ │ ├── macchiato.css
│ │ │ │ └── mocha.css
│ │ │ ├── colors/
│ │ │ │ ├── inverted.css
│ │ │ │ └── sky.css
│ │ │ └── template.css
│ │ ├── history/
│ │ │ ├── client.js
│ │ │ ├── config.js
│ │ │ ├── handler.js
│ │ │ ├── html.js
│ │ │ └── worker.js
│ │ ├── js/
│ │ │ ├── c1.js
│ │ │ ├── h1.js
│ │ │ ├── index-3.js
│ │ │ ├── m1.js
│ │ │ ├── s1.js
│ │ │ └── t3.js
│ │ ├── json/
│ │ │ ├── a.json
│ │ │ ├── a.min.json
│ │ │ ├── g.json
│ │ │ └── g.min.json
│ │ └── mathematics/
│ │ ├── bundle.js
│ │ ├── config.js
│ │ ├── handler.js
│ │ └── sw.js
│ ├── games.html
│ ├── index.html
│ ├── robots.txt
│ ├── settings.html
│ ├── sw.js
│ └── tabs.html
└── vercel.json
================================================
FILE CONTENTS
================================================
================================================
FILE: .github/FUNDING.yml
================================================
# These are supported funding model platforms
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: useinterstellar
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: https://cash.app/$akabubbo
================================================
FILE: .github/ISSUE_TEMPLATE/bug-report.md
================================================
---
name: Bug Report
about: Create a report to help us improve
title: "[Bug] "
labels: Bug Report
assignees: xbubbo
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Device Information (please complete the following information):**
- Device: [Ex. Chromebook, iPad, etc.]
- OS [Ex. ChromeOS, Windows, iOS]
- Browser [Ex. Chrome, Safari]
**Additional context**
Add any other context about the problem here.
> [!IMPORTANT]
> Do not post your personal information here this includes but is not limited to email addresses, names, and age.
================================================
FILE: .github/ISSUE_TEMPLATE/feature-request.md
================================================
---
name: Feature Request
about: Suggest an idea for this project
title: "[Feature]"
labels: Feature Request
assignees: xbubbo
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
================================================
FILE: .github/ISSUE_TEMPLATE/game-request.md
================================================
---
name: Game Request
about: Suggest a game you would like to be added to the site.
title: "[Game]"
labels: Game Request
assignees: xbubbo
---
**What is the name of the game?**
Provide the name of the game.
**What is the link to the game?**
Include the direct link to the game, ensuring it is a specific URL (Ex. crazygames.com/Game, coolmathgames.com/Game). Please refrain from providing Google Search links to prevent post closure.
**What is the category of the game? [Optional]**
Specify the category of the game, such as Multiplayer, Emulator, FPS, Sports, or any relevant classification. This information is optional but can help us accurately add categories to filter the game.
================================================
FILE: .github/dependabot.yml
================================================
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
================================================
FILE: .github/workflows/ads.yml
================================================
name: Remove Ads
on:
push:
branches:
- main
jobs:
update-ad-free:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set git identity
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Setup Ad-Free branch
run: |
git fetch origin main
if git ls-remote --heads origin Ad-Free; then
git checkout Ad-Free
git merge origin/main --no-edit
else
git checkout -b Ad-Free origin/main
fi
- name: Remove ad script block from m1.js
run: |
sed -i '/const blockedHostnames/,/^\s*}\s*$/d' static/assets/js/m1.js
- name: Commit changes
run: |
if git diff --quiet; then
echo "No changes detected"
else
git add static/assets/js/m1.js
git commit -m "Remove ad injection block from m1.js"
fi
- name: Push changes
run: git push origin Ad-Free --force
================================================
FILE: .gitignore
================================================
node_modules
.idea
.DS_Store
.hintrc
.gitpod.yml
.env
================================================
FILE: .vscode/extensions.json
================================================
{
"recommendations": ["dbaeumer.vscode-eslint", "biomejs.biome"]
}
================================================
FILE: .vscode/settings.json
================================================
{
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 0,
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.defaultFormatter": "biomejs.biome",
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/env": true,
"**/venv": true,
"**/.github": true,
"**/.vscode": true,
"Failed.html": true
},
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/**": true,
"**/env/**": true,
"**/venv/**": true,
"env-*": true,
"Failed.html": true,
"static/assets/js/fa.js": true
},
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
}
}
================================================
FILE: CONTRIBUTING.md
================================================
# Contributing Guidelines
Thank you for your interest in contributing to this repository! To ensure a smooth collaboration, please review the following guidelines:
## Pull Request Process
1. **Compatibility:**
- Ensure your changes work seamlessly on both mobile and desktop platforms.
2. **Version Bumping:**
- Update the version in relevant files (e.g., `index.js?v=number`) to the next consecutive number when modifying any files.
3. **Code Formatting:**
- Before finalizing changes, run the following command in the terminal for consistent code formatting:
```bash
npm run format
```
4. **Minifying JSON**
- Before finalizing your changes visit https://codebeautify.org/jsonminifier and compress your json and put it in the `.min.json` file. (Ex. If you are editing `a.json` you would put the minified code in `a.min.json`
5. **Test Your Changes:**
- Conduct thorough testing to ensure modifications don't introduce issues or break existing functionalities.
6. **Descriptive Pull Requests:**
- Provide clear, concise descriptions for your pull requests. Include details on the problem addressed and how your changes resolve it.
7. **Responsive Design:**
- Confirm that changes adhere to responsive design principles, ensuring a seamless user experience across various devices.
8. **Collaboration:**
- Be open to feedback and responsive to comments during the review process.
We appreciate your efforts in contributing to this project!
================================================
FILE: Dockerfile
================================================
FROM node:bookworm-slim
ENV NODE_ENV=production
WORKDIR /app
COPY ["package.json", "./"]
RUN npm install
COPY . .
CMD [ "node", "index.js" ]
================================================
FILE: Failed.html
================================================
Welcome to nginx!
Welcome to nginx!
If you see this page, the nginx web server is successfully installed and working. Further
configuration is required.
For online documentation and support please refer to
nginx.org .
Commercial support is available at
nginx.com .
Thank you for using nginx.
================================================
FILE: LICENSE
================================================
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.
A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate. Many developers of free software are heartened and
encouraged by the resulting cooperation. However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.
The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community. It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.
An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals. This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU Affero General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Remote Network Interaction; Use with the GNU General Public License.
Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software. This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU Affero General Public License from time to time. Such new versions
will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
Also add information on how to contact you by electronic and paper mail.
If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code. There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
.
================================================
FILE: Masqr.js
================================================
import fs from "node:fs"
import path from "node:path"
import fetch from "node-fetch"
const LICENSE_SERVER_URL = "https://masqr.gointerstellar.app/validate?license="
const Fail = fs.readFileSync("Failed.html", "utf8")
export function setupMasqr(app) {
app.use(async (req, res, next) => {
if (req.url.includes("/ca/")) {
next()
return
}
const authheader = req.headers.authorization
if (req.cookies["authcheck"]) {
next()
return
}
if (req.cookies["refreshcheck"] !== "true") {
res.cookie("refreshcheck", "true", { maxAge: 10000 })
MasqFail(req, res)
return
}
if (!authheader) {
res.setHeader("WWW-Authenticate", "Basic")
res.status(401)
MasqFail(req, res)
return
}
const auth = Buffer.from(authheader.split(" ")[1], "base64").toString().split(":")
const pass = auth[1]
try {
const licenseCheckResponse = await fetch(
LICENSE_SERVER_URL + pass + "&host=" + req.headers.host
)
const licenseCheck = (await licenseCheckResponse.json())["status"]
console.log(
LICENSE_SERVER_URL + pass + "&host=" + req.headers.host + " returned " + licenseCheck
)
if (licenseCheck === "License valid") {
res.cookie("authcheck", "true", {
expires: new Date(Date.now() + 365 * 24 * 60 * 60 * 1000),
})
res.send("")
return
}
MasqFail(req, res)
} catch (error) {
console.error(error)
MasqFail(req, res)
}
})
}
async function MasqFail(req, res) {
if (!req.headers.host) {
return
}
const unsafeSuffix = req.headers.host + ".html"
const safeSuffix = path.normalize(unsafeSuffix).replace(/^(\.\.(\/|\\|$))+/, "")
const safeJoin = path.join(process.cwd() + "/Masqrd", safeSuffix)
try {
await fs.promises.access(safeJoin)
const FailLocal = await fs.promises.readFile(safeJoin, "utf8")
res.setHeader("Content-Type", "text/html")
res.send(FailLocal)
} catch (e) {
res.setHeader("Content-Type", "text/html")
res.send(Fail)
}
}
================================================
FILE: README.md
================================================
Serving over 15 million users since 2022.
Interstellar is a web proxy with a Clean and Sleek UI and easy to use menus. Our goal is to provide the best user experience to everyone.

> [!IMPORTANT]
> If you fork this project, consider giving it a star in the original repository!
**Join Our [Discord Community](https://discord.gg/interstellar) for support, more links, and an active community!**
## Features
- About:Blank Cloaking
- Tab Cloaking
- Wide collection of apps & games
- Clean, Easy to use UI
- Inspect Element
- Various Themes
- Password Protection (Optional)
- Built-in Tab System
- Now.gg Support
- Fast Speeds
- Geforce NOW Support
## Deployment
> [!IMPORTANT]
> You **cannot** deploy to static web hosts, including Netlify, Cloudflare Pages, and GitHub Pages.
### Password Protection
1. Go to the `config.js` file and set `challenge` to **true**. Then, set the environment variable as follows:
2. For PNPM: Run either `config=true pnpm start` or `$env:config=true; pnpm start`, depending on your server.
3. For Bun: Run either `config=true bun start` or `$env:config=true; bun start` if you prefer Bun.
4. For NPM: Run either `config=true npm start` or `$env:config=true; npm start` if you prefer NPM.
### Server Deployment
You must run these commands on your server:
```bash
git clone https://github.com/UseInterstellar/Interstellar
cd Interstellar
```
#### Ad-Free Deployment
```bash
git clone --branch Ad-Free https://github.com/UseInterstellar/Interstellar
cd Interstellar
```
Next depending on your package manager, run one of the following commands:
#### Bun
If you are using Bun, run the following commands:
```bash
bun i
bun start
```
#### pnpm
If you are using pnpm, run the following commands:
```bash
pnpm i
pnpm start
```
#### npm
If you are using npm, run the following commands:
```bash
npm i
npm run start
```
### Updating
```bash
cd Interstellar
git pull --force --allow-unrelated-histories # This may overwrite your local changes
```
### Deployment Alternatives
For more deployment options, join our [Discord Server](https://discord.gg/interstellar) for various ways to deploy Interstellar.
This includes methods of deploying to Render/OnRender.
#### What happened to Replit Deployment?
As of January 1st, 2024, Replit is [no longer free](https://blog.replit.com/hosting-changes). Try GitHub Codespaces instead.
### GitHub Codespaces
> [!NOTE]
> If you're setting the port below 1023, then you must run `sudo PORT=1023`
1. Create a GitHub account if you haven't already.
2. Click "Code" (green button) and then "Create Codespace on main."
3. In the terminal at the bottom, paste `pnpm i && pnpm start`.
4. Respond to the application popup by clicking "Make public."
> [!IMPORTANT]
> Make sure you click the "Make public." button, or the proxy won't function properly.
> If you get a Range Error, go back and make sure you clicked Make public!
5. Access the deployed website from the ports tab.
6. For subsequent uses in the same codespace, just run `pnpm start`
### Solution for if there is no popup.
1. Run `pnpm i`, and before `pnpm start`, prepend `PORT=8080`, replacing 8080 with another port. For example, `PORT=6969 pnpm start`.
2. If this does not work then you can prepend `$env:PORT=8080;`, replacing 8080 with another port. For example, `$env:PORT=6969; pnpm start`
3. Go to the ports tab, Click Forward A Port, And type the port number.
4. Right-click Visibility and set Port Visibility to Public.
> [!NOTE]
> We are committed to making Interstellar easy and personalized however, as of now we need your support in making it ad-free. Consider keeping ads so Interstellar can run freely or contribute by being a supporter.
## Report Issues
If you encounter problems, open an issue on GitHub, and we'll address it promptly.
> [!TIP]
> If you're having trouble, don't hesitate to reach out to us on [Discord](https://discord.gg/interstellar) for personalized support.
# Credits
A huge thanks goes out to all of the people who have contributed to Interstellar.
[](https://github.com/UseInterstellar/Interstellar/graphs/contributors)
================================================
FILE: SECURITY.md
================================================
# Security Policy
## Supported Versions
Only current versions of the site are being updated, if you are using an older version of the site, consider upgrading to the latest version.
| Version | Supported |
| ------- | --------- |
| V5.2.x | ✔️ |
| V5.1.x | :x: |
| V5.0.x | :x: |
| V4.x.x | :x: |
| < V4.0 | :x: |
## Reporting a Vulnerability
You can privately report a vulnerability [here](https://github.com/InterstellarNetwork/Interstellar/security/advisories/new).
Alternatively, you can join our [Discord server](https://discord.gg/Interstellar), and open a ticket and let us know what the vulnerability is.
### Upgrading to the Latest Version
If you are using an older version of the site, we strongly recommend upgrading to the latest version to ensure that you benefit from the latest security updates and enhancements. Only the current versions of the site receive regular updates and support.
### How to Update
If you have a fork of the repository:
Then [sync your fork](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork).
If you have interstellar installed locally:
Run `git pull`, and `npm i`.
By keeping your site up to date, you not only enjoy the latest features but also enhance the security of your experience.
If you encounter any challenges while updating, feel free to reach out to our [support team](https://discord.gg/interstellar) for assistance.
Thank you for prioritizing the security and performance of your experience with our site.
================================================
FILE: app.json
================================================
{
"name": "edu",
"description": "?",
"repository": "https://github.com/interstellarnetwork/interstellar",
"logo": "https://avatars.githubusercontent.com/u/103917385",
"keywords": ["school", "math"],
"image": "heroku/nodejs"
}
================================================
FILE: biome.json
================================================
{
"$schema": "https://biomejs.dev/schemas/2.2.2/schema.json",
"files": {
"includes": ["**", "!**/static/assets/history", "!**/static/assets/mathematics", "!**/static/assets/json/**/*.min.json", "!**/Masqr.js", "!**/node_modules", "!**/package-lock.json", "!**/package.json", "!**/*.md", "!**/bun.lockb", "!**/Failed.html"]
},
"assist": { "actions": { "source": { "organizeImports": "on" } } },
"linter": {
"enabled": true,
"rules": {
"recommended": true
},
"includes": ["**", "!**/pnpm-lock.yaml", "!**/dist/**", "!**/node_modules/**", "!**/assets/bundled/**", "!**/*.min.json", "!**/.astro/**"]
},
"formatter": {
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 320,
"attributePosition": "auto",
"includes": ["**", "!**/pnpm-lock.yaml", "!**/dist/**", "!**/node_modules/**", "!**/assets/bundled/**", "!**/*.min.json", "!**/.astro/**"]
},
"javascript": {
"formatter": {
"enabled": true,
"arrowParentheses": "asNeeded",
"bracketSameLine": true,
"bracketSpacing": true
}
},
"css": {
"formatter": {
"enabled": true,
"indentWidth": 3
},
"linter": {
"enabled": true
}
}
}
================================================
FILE: config.js
================================================
const config = {
challenge: false, // Set to true if you want to enable password protection.
users: {
// You can add multiple users by doing username: 'password'.
interstellar: "password",
},
};
export default config;
================================================
FILE: index.js
================================================
import fs from "node:fs";
import http from "node:http";
import path from "node:path";
import { createBareServer } from "@nebula-services/bare-server-node";
import chalk from "chalk";
import cookieParser from "cookie-parser";
import cors from "cors";
import express from "express";
import basicAuth from "express-basic-auth";
import mime from "mime";
import fetch from "node-fetch";
// import { setupMasqr } from "./Masqr.js";
import config from "./config.js";
console.log(chalk.yellow("🚀 Starting server..."));
const __dirname = process.cwd();
const server = http.createServer();
const app = express();
const bareServer = createBareServer("/ca/");
const PORT = process.env.PORT || 8080;
const cache = new Map();
const CACHE_TTL = 30 * 24 * 60 * 60 * 1000; // Cache for 30 Days
if (config.challenge !== false) {
console.log(chalk.green("🔒 Password protection is enabled! Listing logins below"));
// biome-ignore lint: idk
Object.entries(config.users).forEach(([username, password]) => {
console.log(chalk.blue(`Username: ${username}, Password: ${password}`));
});
app.use(basicAuth({ users: config.users, challenge: true }));
}
app.get("/e/*", async (req, res, next) => {
try {
if (cache.has(req.path)) {
const { data, contentType, timestamp } = cache.get(req.path);
if (Date.now() - timestamp > CACHE_TTL) {
cache.delete(req.path);
} else {
res.writeHead(200, { "Content-Type": contentType });
return res.end(data);
}
}
const baseUrls = {
"/e/1/": "https://raw.githubusercontent.com/qrs/x/fixy/",
"/e/2/": "https://raw.githubusercontent.com/3v1/V5-Assets/main/",
"/e/3/": "https://raw.githubusercontent.com/3v1/V5-Retro/master/",
};
let reqTarget;
for (const [prefix, baseUrl] of Object.entries(baseUrls)) {
if (req.path.startsWith(prefix)) {
reqTarget = baseUrl + req.path.slice(prefix.length);
break;
}
}
if (!reqTarget) {
return next();
}
const asset = await fetch(reqTarget);
if (!asset.ok) {
return next();
}
const data = Buffer.from(await asset.arrayBuffer());
const ext = path.extname(reqTarget);
const no = [".unityweb"];
const contentType = no.includes(ext) ? "application/octet-stream" : mime.getType(ext);
cache.set(req.path, { data, contentType, timestamp: Date.now() });
res.writeHead(200, { "Content-Type": contentType });
res.end(data);
} catch (error) {
console.error("Error fetching asset:", error);
res.setHeader("Content-Type", "text/html");
res.status(500).send("Error fetching the asset");
}
});
app.use(cookieParser());
app.use(express.json());
app.use(express.urlencoded({ extended: true }));
/* if (process.env.MASQR === "true") {
console.log(chalk.green("Masqr is enabled"));
setupMasqr(app);
} */
app.use(express.static(path.join(__dirname, "static")));
app.use("/ca", cors({ origin: true }));
const routes = [
{ path: "/b", file: "apps.html" },
{ path: "/a", file: "games.html" },
{ path: "/play.html", file: "games.html" },
{ path: "/c", file: "settings.html" },
{ path: "/d", file: "tabs.html" },
{ path: "/", file: "index.html" },
];
// biome-ignore lint: idk
routes.forEach(route => {
app.get(route.path, (_req, res) => {
res.sendFile(path.join(__dirname, "static", route.file));
});
});
app.use((req, res, next) => {
res.status(404).sendFile(path.join(__dirname, "static", "404.html"));
});
app.use((err, req, res, next) => {
console.error(err.stack);
res.status(500).sendFile(path.join(__dirname, "static", "404.html"));
});
server.on("request", (req, res) => {
if (bareServer.shouldRoute(req)) {
bareServer.routeRequest(req, res);
} else {
app(req, res);
}
});
server.on("upgrade", (req, socket, head) => {
if (bareServer.shouldRoute(req)) {
bareServer.routeUpgrade(req, socket, head);
} else {
socket.end();
}
});
server.on("listening", () => {
console.log(chalk.green(`🌍 Server is running on http://localhost:${PORT}`));
});
server.listen({ port: PORT });
================================================
FILE: package.json
================================================
{
"name": "interstellar",
"version": "5.2.5",
"type": "module",
"engines": {
"npm": ">=7.0.0",
"node": ">=16.0.0"
},
"scripts": {
"start": "node index.js",
"format": "pnpm biome format --write .",
"precommit": "pnpm run format && pnpm biome check --write .",
"lint": "biome lint --write ."
},
"author": "InterstellarNetwork",
"license": "GPL-3.0-or-later",
"dependencies": {
"@nebula-services/bare-server-node": "^2.0.4",
"chalk": "^5.4.1",
"cookie-parser": "^1.4.7",
"cors": "^2.8.5",
"dotenv": "^17.2.0",
"express": "^4.21.2",
"express-basic-auth": "^1.2.1",
"mime": "^4.1.0",
"node-fetch": "^3.3.2"
},
"devDependencies": {
"@biomejs/biome": "2.2.2"
},
"packageManager": "pnpm@9.10.0"
}
================================================
FILE: render.yaml
================================================
services:
- type: web
name: edu
env: docker
plan: free
================================================
FILE: static/404.html
================================================
Home
404
Page not found.
Keep getting this error? Report it down below.
Go Back Home
Join our Discord (Direct)
Join our Discord (Proxied)
================================================
FILE: static/ads.txt
================================================
google.com, pub-6840529569014734, DIRECT, f08c47fec0942fa0
================================================
FILE: static/apps.html
================================================
Home
All
Android Emulator
Social
Stream
Message
TV & Movies
Game Sites
Cloud Gaming
Tools
AI
Emulator
Mail
================================================
FILE: static/assets/css/container.css
================================================
.column {
width: 145px;
transition: all 0.2s ease;
cursor: pointer;
background: var(--background-column);
border-radius: 5px;
padding-left: 10px;
padding-right: 10px;
padding-top: 5px;
margin: 0;
}
.column img {
position: absolute;
width: 145px;
height: 145px;
transition: all 0.2s ease;
border-radius: 10px;
}
.column p {
width: 145px;
height: 19px;
font-style: normal;
font-weight: 800;
font-size: 18px;
line-height: 19px;
text-align: center;
color: var(--text-primary);
text-shadow: 0px 0px 30px rgba(0, 0, 0, 0.5);
padding-top: 136px;
padding-bottom: 12px;
}
.column:hover {
transform: scale(1.2);
}
.column:hover .label {
transform: translateX(-50%) scale(1.3);
}
.apps {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 2.3em;
flex-direction: row;
margin-top: 30px;
}
.pinned {
margin-top: 20px;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 2.3em;
}
input {
padding: 20px;
width: 550px;
border-radius: 5px;
background: var(--background-column);
text-align: center;
font-size: 20px;
border: none;
outline: none;
color: var(--text-primary);
transition: 0.4s;
}
select {
padding: 20px;
border-radius: 5px;
background: var(--background-column);
color: var(--text-primary);
font-size: 20px;
border: 0px;
outline: none;
cursor: pointer;
}
.input-c {
position: relative;
margin-top: 150px;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.5em;
}
================================================
FILE: static/assets/css/error.css
================================================
.error {
color: var(--text-primary);
font-family: "Inter", sans-serif;
font-weight: 900;
top: 15%;
text-align: center;
}
.error h1 {
font-size: 10vw;
margin: 0 auto -2vw auto;
background: linear-gradient(150deg, #746eff 0%, #ff00bb 51%, #746eff 100%);
-webkit-background-clip: text;
-moz-background-clip: text;
background-clip: text;
color: transparent;
}
.error h3 {
font-size: 4vw;
margin-bottom: auto;
margin-top: auto;
font-weight: 600;
}
.error p {
font-size: 2vw;
margin-top: 0.5%;
margin-bottom: 1%;
font-weight: 900;
color: var(--text-dark);
}
.error button {
padding: 15px;
border-radius: 5px;
background: var(--background-buttons);
color: inherit;
font-size: 24px;
border: 2px solid var(--background-buttons);
outline: none;
margin-bottom: 10px;
cursor: pointer;
}
.error .one:hover {
color: #ef6e78;
border: 2px solid #ef6e78;
background: transparent;
}
.error .two:hover {
color: #ef996e;
border: 2px solid #ef996e;
background: transparent;
}
.error .three:hover {
color: #ef6ee4;
border: 2px solid #ef6ee4;
background: transparent;
}
@media (max-width: 768px) {
.error h1 {
font-size: 12vw;
}
.error h3 {
font-size: 5vw;
}
.error p {
font-size: 3vw;
margin-top: 5px;
margin-bottom: 5px;
}
.error button {
font-size: 16px;
}
}
================================================
FILE: static/assets/css/global.css
================================================
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
:root {
/* Background Variables */
--background-image: url("/./assets/media/background/full-main.png"); /* Background Image */
--backdrop-filter: blur(10px) brightness(80%); /* Nav Backdrop filter */
--background-nav: rgba(255, 255, 255, 0.02); /* Nav Background */
--background-color: #222; /* Main Background Color */
--background-input: #4545459e; /* Input Field Background Color */
--background-column: #353535; /* Background for Apps Container */
--background-settings: #2a2a2a; /* Settings Card Background */
--background-buttons: #333; /* Button Background Color */
--tab-active-background: #444; /* Accent Color for Tabs */
--tab-inactive-background: ; /* Background Color for Tabs Not In Use */
--slider-active-background: #4caf50; /* Active Slider Background Color */
--slider-inactive-background: #ccc; /* Slider Background Color */
--nav-image: url("/./assets/media/favicon/main.png"); /* Nav Logo */
/* Text Variables */
--text-primary: #fff; /* Primary Text Color */
--text-dark: #555; /* Dark Text Color for Error Page, Scrollbar, and Particles */
--text-placeholder: #aaa; /* Placeholder Text Color */
/* Other Variables */
--save-button: #4caf50; /* Save Button, Typically Green */
--reset-button: #f44336; /* Reset Button, Typically Red */
--import-button: #009688; /* Import Button, Typically Teal */
--export-button: #ea76cb; /* Export Button, Typically Pink */
}
::-webkit-scrollbar {
width: 6px;
background-color: var(--background-color);
}
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
border-radius: 10px;
background-color: var(--background-color);
}
::-webkit-scrollbar-thumb {
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
background-color: var(--text-primary);
}
::-webkit-scrollbar-thumb:hover {
background-color: var(--text-dark);
}
body {
font-family: "Inter", sans-serif;
text-decoration: none;
background: var(--background-image);
height: 100%;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
background-attachment: fixed;
}
::placeholder {
color: var(--text-placeholder);
opacity: 1;
}
.main {
letter-spacing: 0px;
font-family: "Inter", sans-serif;
width: 99%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
top: 0%;
position: absolute;
z-index: 99;
}
================================================
FILE: static/assets/css/h.css
================================================
.center {
display: flex;
justify-content: center;
align-items: center;
}
.title {
font-size: 10vh;
color: var(--text-primary);
font-family: "Inter", sans-serif;
text-align: center;
text-transform: uppercase;
border-radius: 0px 0px 5px 5px;
margin-top: 30vh;
margin-bottom: 5vh;
transition: 0.35s ease;
text-shadow: 2px 4px 6px rgb(0, 0, 0, 0.2);
}
.title:hover {
transform: translateY(-5%) scale(1.03);
font-weight: 800;
}
@media (orientation: portrait) {
.title {
position: relative;
top: -10vw;
font-size: 10vw;
color: var(--text-primary);
font-family: "Inter", sans-serif;
text-align: center;
text-transform: uppercase;
border-radius: 0px 0px 5px 5px;
}
}
.search-container {
display: flex;
width: 100%;
text-align: center;
justify-content: center;
align-items: center;
}
.truncate {
width: 50vw;
height: 5vh;
font-family: "Poppins", sans-serif;
font-size: 16px;
box-shadow: 0 0 15px 2px rgba(0, 0, 0, 0.2);
background: var(--background-input);
-webkit-backdrop-filter: var(--backdrop-filter);
backdrop-filter: var(--backdrop-filter);
}
input {
padding: 20px;
width: 550px;
border-radius: 5px;
background: var(--background-column);
text-align: center;
font-size: 24px;
border: none;
outline: none;
color: var(--text-primary);
transition: 0.4s;
}
#particles-js {
position: absolute;
width: 100%;
height: 100%;
top: 0vw;
background-color: var(--bg-c);
background-repeat: no-repeat;
background-size: cover;
background-position: 50% 50%;
overflow: hidden;
}
.particles-js-canvas-el {
z-index: 0;
top: 0;
left: 0;
position: absolute;
width: 100%;
height: 100%;
pointer-events: none;
}
#splash {
color: var(--text-dark);
margin-bottom: 1em;
margin-top: -2em;
padding: 0;
font-family: "Poppins", sans-serif;
}
================================================
FILE: static/assets/css/nav.css
================================================
.material-symbols-outlined {
font-variation-settings:
"FILL" 0,
"wght" 400,
"GRAD" 0,
"opsz" 48;
}
.f-nav #icon-container {
display: flex;
align-items: center;
}
img {
width: 100%;
height: 100%;
padding-top: 5px;
}
.f-nav-container {
min-width: 5vw;
min-height: 10vh;
display: inline;
}
.f-nav {
top: 0;
letter-spacing: 2px;
font-size: 22px;
left: 0;
right: 0;
min-height: 10vh;
padding: 0 25px;
box-sizing: border-box;
background-color: var(--background-nav);
box-shadow: 0 0 15px 2px rgba(0, 0, 0, 0.5);
-webkit-backdrop-filter: var(--backdrop-filter);
backdrop-filter: var(--backdrop-filter);
transition: 0.35s ease;
border-radius: 15px;
width: fill;
margin: 15px;
z-index: 100;
position: fixed;
}
.f-nav .icon:hover {
transform: translateY(-15%) scale(1.03);
font-weight: 800;
}
.f-nav .icon {
position: absolute;
float: left;
text-transform: uppercase;
font-size: 30px;
font-family: "Inter", sans-serif;
cursor: pointer;
color: var(--text-primary);
font-weight: 600;
margin-left: 5px;
font-style: normal;
text-decoration: none;
transition: all 0.2s ease;
height: 5vh;
top: 18%;
}
.f-nav-right {
position: absolute;
top: 50%;
transform: translateY(-50%);
text-transform: uppercase;
font-size: 18px;
color: var(--text-primary);
font-weight: 600;
right: 2%;
}
.f-nav-right .navbar-link {
margin-left: 10px;
text-transform: uppercase;
cursor: pointer;
color: var(--text-primary);
font-weight: 800;
right: 2%;
font-family: "Inter", sans-serif;
font-style: normal;
text-decoration: none;
transition: all 0.2s ease;
transform: translateX(0%);
}
@media (orientation: portrait) {
.f-nav-right .navbar-link {
margin-left: 10px;
text-transform: uppercase;
font-size: 2.5vw;
cursor: pointer;
color: var(--text-primary);
font-weight: 800;
right: 2%;
font-family: "Inter", sans-serif;
font-style: normal;
text-decoration: none;
transition: all 0.2s ease;
transform: translateX(0%);
}
.f-nav-right .navbar-link:hover {
text-transform: uppercase;
cursor: pointer;
font-weight: 800;
font-family: "Inter", sans-serif;
font-style: normal;
font-size: 3vw;
transform: translateX(-20%);
}
}
.f-nav-right .navbar-link:hover {
text-transform: uppercase;
cursor: pointer;
font-weight: 800;
font-family: "Inter", sans-serif;
font-style: normal;
font-size: 3vh;
transform: translateX(-20%);
}
.navbar-icon {
margin-right: 5px;
transition: all 0.2s ease;
}
.navbar-link {
margin-right: 5px;
}
.navbar-link:hover > .settings-icon {
animation: spin 0.5s;
animation-timing-function: cubic-bezier(0, 1.04, 0.91, 0.99);
}
@media (max-width: 768px) {
.f-nav-right .navbar-link an {
display: none;
}
.f-nav-right .fa-solid {
display: inline;
}
.f-nav-right .navbar-link {
font-size: 4.5vw;
}
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@media (orientation: portrait) {
img {
height: 40px;
}
}
================================================
FILE: static/assets/css/settings.css
================================================
body {
background-color: var(--background-image);
font-family: "Inter", sans-serif;
color: var(--text-primary);
margin: 0;
padding: 0;
letter-spacing: 0px;
overflow-x: hidden;
}
.settings-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
padding: 20% 20px 20px 20px;
}
.settings-title {
display: block;
font-size: 70px;
margin-block-start: 0.67em;
margin-block-end: 0.67em;
margin-inline-start: 0px;
margin-inline-end: 0px;
font-weight: bold;
}
.settings-card {
background-color: var(--background-settings);
border-radius: 10px;
padding: 20px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
width: 400px;
transition: all 0.3s ease;
}
.settings-card:hover {
transform: translatey(-5px);
box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}
.settings-card h3 {
margin-top: 0;
color: var(--text-primary);
}
.settings-card p {
color: var(--text-placeholder);
}
a {
color: var(--text-primary);
}
.switch {
position: relative;
display: inline-block;
width: 60px;
height: 34px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider-round {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: var(--slider-inactive-background);
transition: 0.4s;
border-radius: 34px;
}
.slider-round:before {
position: absolute;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
background-color: var(--text-primary);
transition: 0.4s;
border-radius: 50%;
}
input:checked + .slider-round {
background-color: var(--slider-active-background);
}
input:checked + .slider-round:before {
transform: translateX(26px);
}
input {
padding: 15px;
border-radius: 10px;
background: var(--background-input);
text-align: center;
font-size: 20px;
border: none;
outline: none;
color: var(--text-primary);
}
.key-form {
padding: 15px;
width: 92.5%;
border-radius: 10px;
background: var(--background-buttons);
text-align: center;
font-size: 20px;
border: none;
outline: none;
color: var(--text-primary);
margin-top: 10px;
}
.key-button {
cursor: pointer;
border: 2px;
font-size: 20px;
transition: 0.2s;
margin-top: 10px;
background-color: var(--background-buttons);
border-radius: 10px;
color: var(--text-primary);
height: 50px;
width: 50%;
padding: 10px;
text-align: center;
}
button {
cursor: pointer;
border: 2px;
transition: 0.2s;
margin-top: 10px;
background-color: var(--background-buttons);
border-radius: 10px;
color: var(--text-primary);
height: 50px;
width: 35%;
padding: 10px;
text-align: center;
}
select {
padding: 15px;
width: 100%;
border-radius: 10px;
background: var(--background-buttons);
color: var(--text-primary);
font-size: 20px;
border: 0px;
outline: none;
}
#buttonLayer {
width: 400px;
display: flex;
justify-content: center;
gap: 10px;
}
#buttonLayer > .key-button {
flex-grow: 1;
padding: 10px;
box-sizing: border-box;
}
@media screen and (max-width: 768px) {
.settings-container {
padding: 25% 20px 20px 20px;
}
.settings-card {
width: 100%;
max-width: 400px;
}
.settings-title {
font-size: 40px;
}
input,
.key-form {
width: 90%;
}
button,
.key-button {
width: 100%;
max-width: 200px;
}
}
@media screen and (max-width: 500px) {
.settings-container {
padding-top: 35%;
}
}
@media screen and (min-width: 1000px) {
.settings-container {
padding-top: 10%;
}
}
#last-updated {
margin-top: -3%;
}
#ab-settings {
display: flex;
align-items: center;
gap: 5vw;
}
#ab-settings-container {
margin-top: 13px;
margin-left: 20px;
}
#warning {
color: red;
}
================================================
FILE: static/assets/css/t.css
================================================
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
body {
font-family: "Inter", sans-serif;
text-decoration: none;
margin: 0;
overflow-x: hidden;
overflow-y: hidden;
background: var(--background-color);
color: var(--text-primary);
}
.nav {
padding: 1rem;
transition: transform 0.5s ease;
border-radius: 0 10px 10px 0;
transform: translateX(0);
width: 100vw;
height: 0.5vw;
display: flex;
align-items: center;
}
.close-tab {
border: none;
background: none;
font-size: 12px;
color: var(--text-primary);
cursor: pointer;
transition: color 0.3s ease;
width: 20px;
}
.close-tab:hover {
color: var(--text-primary);
}
.nav-bar {
left: 0;
right: 0;
height: 2.5em;
padding: 0 25px;
background: var(--background-color);
box-sizing: border-box;
transition: 0.35s ease;
z-index: 100;
width: 100vw;
position: fixed;
}
.nav-button {
border-radius: 10px;
color: var(--text-primary);
background: none;
height: 3em;
border: none;
right: 10px;
top: auto;
box-sizing: border-box;
margin-right: 10px;
transition: 0.2s ease;
margin-top: 0 auto;
margin-bottom: 0 auto;
}
.nav-button:hover {
transform: scale(1.3);
cursor: pointer;
}
.nav-btn-left {
float: left;
}
.nav-btn-right {
float: right;
}
.nav-container {
min-width: 5vw;
min-height: 10vh;
display: inline;
}
.nav-left {
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 1%;
width: 80%;
}
.nav-right {
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 1%;
width: 20%;
}
.nav-right .nav-btn:hover {
text-transform: uppercase;
cursor: pointer;
font-weight: 800;
font-family: "Inter", sans-serif;
font-style: normal;
font-size: 3vw;
transform: translateX(-20%);
}
.nav-right .nav-btn:hover {
text-transform: uppercase;
cursor: pointer;
font-weight: 800;
font-family: "Inter", sans-serif;
font-style: normal;
font-size: 3vh;
transform: translateX(-20%);
}
.fullscreen .nav-bar {
display: none;
}
.fullscreen #ifra {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.bar {
background: none;
border: none;
color: var(--text-primary);
width: 60vw;
height: 30px;
border-radius: 5px;
margin: 0 auto;
transition: 0.3s;
}
.bar:focus {
background: var(--background-input);
box-shadow: none;
outline: none;
color: var(--text-primary);
transition: 0.3s;
}
.navpost {
padding: none;
float: right;
margin-top: 0em;
color: var(--text-primary);
border-radius: 5px;
}
.overlay {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: none;
}
h1 {
text-align: center;
color: var(--text-primary);
font-size: 50px;
white-space: nowrap;
}
p {
text-align: center;
color: var(--text-primary);
font-size: 25px;
}
.frame-container iframe {
display: none;
}
.frame-container iframe.active {
display: block;
}
#add-tab {
padding: 0.5rem;
cursor: pointer;
background-color: var(--background-settings);
color: var(--text-primary);
border: none;
border-radius: 5px;
margin-right: 0.5rem;
transition: background-color 0.3s ease;
}
#add-tab:hover {
background-color: var(--tab-active-background);
}
ul {
list-style-type: none;
padding: 0;
display: flex;
}
li {
padding: 0.4rem;
background-color: var(--background-settings);
margin-right: 0.5rem;
cursor: pointer;
border-radius: 5px;
transition: background-color 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
}
li.active {
background-color: var(--tab-active-background);
}
li:hover {
background-color: var(--tab-active-background);
}
iframe {
position: absolute;
width: 100%;
height: 90%;
border: none;
left: 0;
top: 10%;
}
================================================
FILE: static/assets/css/themes/catppuccin/frappe.css
================================================
@import url("https://unpkg.com/@catppuccin/palette/css/catppuccin.css");
:root {
--background-image: var(--ctp-frappe-base) /*base*/;
--background: #1e1e2e;
--background-input: var(--ctp-frappe-mantle) /*mantle*/;
--background-dark: #11111b /*crust*/;
--background-settings: var(--ctp-frappe-surface0) /*surface0*/;
--background-settings-buttons: var(--ctp-frappe-surface1) /*surface1*/;
--input: var(--ctp-frappe-surface0) /*surface0*/;
--background-column: var(--ctp-frappe-crust) /*crust*/;
--text-primary: var(--ctp-frappe-text) /*text*/;
--text-secondary: var(--ctp-frappe-subtext1) /*subtext1*/;
--text-placeholder: var(--ctp-frappe-subtext0) /*subtext0*/;
--background-color: var(--ctp-frappe-base) /* base */;
--tab-active-background: var(--ctp-frappe-mantle) /* mantle */;
}
input,
select,
.column,
.key-form,
button,
.key-button,
.searchbar {
background-color: var(--ctp-frappe-surface0) /*surface0*/;
color: var(--ctp-frappe-subtext1) /*subtext1*/;
}
.settings-card {
background-color: var(--ctp-frappe-mantle) /*mantle*/;
}
input:checked + .slider-round {
background-color: #000;
}
.f-nav-right .navbar-link {
color: var(--ctp-frappe-mauve) /*mauve*/;
}
.f-nav-right:hover .navbar-link:hover {
color: var(--ctp-frappe-blue) /*blue*/;
}
================================================
FILE: static/assets/css/themes/catppuccin/latte.css
================================================
@import url("https://unpkg.com/@catppuccin/palette/css/catppuccin.css");
:root {
--background-image: var(--ctp-latte-base) /*base*/;
--background: #1e1e2e;
--background-input: var(--ctp-latte-mantle) /*mantle*/;
--background-dark: #11111b /*crust*/;
--background-settings: var(--ctp-latte-surface0) /*surface0*/;
--background-settings-buttons: var(--ctp-latte-surface1) /*surface1*/;
--input: var(--ctp-latte-surface0) /*surface0*/;
--background-column: var(--ctp-latte-crust) /*crust*/;
--text-primary: var(--ctp-latte-text) /*text*/;
--text-secondary: var(--ctp-latte-subtext1) /*subtext1*/;
--text-placeholder: var(--ctp-latte-subtext0) /*subtext0*/;
--background-color: var(--ctp-latte-base) /* base */;
--tab-active-background: var(--ctp-latte-mantle) /* mantle */;
}
input,
select,
.column,
.key-form,
button,
.key-button,
.searchbar {
background-color: var(--ctp-latte-surface0) /*surface0*/;
color: var(--ctp-latte-subtext1) /*subtext1*/;
}
.settings-card {
background-color: var(--ctp-latte-mantle) /*mantle*/;
}
input:checked + .slider-round {
background-color: #000;
}
.f-nav-right .navbar-link {
color: var(--ctp-latte-mauve) /*mauve*/;
}
.f-nav-right:hover .navbar-link:hover {
color: var(--ctp-latte-blue) /*blue*/;
}
================================================
FILE: static/assets/css/themes/catppuccin/macchiato.css
================================================
@import url("https://unpkg.com/@catppuccin/palette/css/catppuccin.css");
:root {
--background-image: var(--ctp-macchiato-base) /*base*/;
--background: #1e1e2e;
--background-input: var(--ctp-macchiato-mantle) /*mantle*/;
--background-dark: #11111b /*crust*/;
--background-settings: var(--ctp-macchiato-surface0) /*surface0*/;
--background-settings-buttons: var(--ctp-macchiato-surface1) /*surface1*/;
--input: var(--ctp-macchiato-surface0) /*surface0*/;
--background-column: var(--ctp-macchiato-crust) /*crust*/;
--text-primary: var(--ctp-macchiato-text) /*text*/;
--text-secondary: var(--ctp-macchiato-subtext1) /*subtext1*/;
--text-placeholder: var(--ctp-macchiato-subtext0) /*subtext0*/;
--background-color: var(--ctp-macchiato-base) /* base */;
--tab-active-background: var(--ctp-macchiato-mantle) /* mantle */;
}
input,
select,
.column,
.key-form,
button,
.key-button,
.searchbar {
background-color: var(--ctp-macchiato-surface0) /*surface0*/;
color: var(--ctp-macchiato-subtext1) /*subtext1*/;
}
.settings-card {
background-color: var(--ctp-macchiato-mantle) /*mantle*/;
}
input:checked + .slider-round {
background-color: #000;
}
.f-nav-right .navbar-link {
color: var(--ctp-macchiato-mauve) /*mauve*/;
}
.f-nav-right:hover .navbar-link:hover {
color: var(--ctp-macchiato-blue) /*blue*/;
}
================================================
FILE: static/assets/css/themes/catppuccin/mocha.css
================================================
@import url("https://unpkg.com/@catppuccin/palette/css/catppuccin.css");
:root {
--background-image: var(--ctp-mocha-base) /*base*/;
--background: #1e1e2e;
--background-input: var(--ctp-mocha-mantle) /*mantle*/;
--background-dark: #11111b /*crust*/;
--background-settings: var(--ctp-mocha-surface0) /*surface0*/;
--background-settings-buttons: var(--ctp-mocha-surface1) /*surface1*/;
--input: var(--ctp-mocha-surface0) /*surface0*/;
--background-column: var(--ctp-mocha-crust) /*crust*/;
--text-primary: var(--ctp-mocha-text) /*text*/;
--text-secondary: var(--ctp-mocha-subtext1) /*subtext1*/;
--text-placeholder: var(--ctp-mocha-subtext0) /*subtext0*/;
--background-color: var(--ctp-mocha-base) /* base */;
--tab-active-background: var(--ctp-mocha-mantle) /* mantle */;
}
input,
select,
.column,
.key-form,
button,
.key-button,
.searchbar {
background-color: var(--ctp-mocha-surface0) /*surface0*/;
color: var(--ctp-mocha-subtext1) /*subtext1*/;
}
.settings-card {
background-color: var(--ctp-mocha-mantle) /*mantle*/;
}
input:checked + .slider-round {
background-color: #000;
}
.f-nav-right .navbar-link {
color: var(--ctp-mocha-mauve) /*mauve*/;
}
.f-nav-right:hover .navbar-link:hover {
color: var(--ctp-mocha-blue) /*blue*/;
}
================================================
FILE: static/assets/css/themes/colors/inverted.css
================================================
:root {
/* Background Variables */
--background-image: url("/./assets/media/background/full-inverted.png"); /* Background Image */
--backdrop-filter: blur(10px) brightness(80%); /* Nav Backdrop filter */
--background-nav: rgba(0, 0, 0, 0.02); /* Nav Background */
--background-color: #ddd; /* Main Background Color */
--background-input: #cccccc; /* Input Field Background Color */
--background-column: #cacaca; /* Background for Apps Container */
--background-settings: #d5d5d5; /* Settings Card Background */
--background-buttons: #ccc; /* Button Background Color */
--tab-active-background: #bbb; /* Accent Color for Tabs */
--slider-active-background: #b3b0af; /* Active Slider Background Color */
--slider-inactive-background: #333; /* Slider Background Color */
--nav-image: url("/./assets/media/favicon/main-inverted.png"); /* Nav Logo */
/* Text Variables */
--text-primary: #000; /* Primary Text Color */
--text-dark: #aaa; /* Dark Text Color for Error Page, Scrollbar, and Particles */
--text-placeholder: #555; /* Placeholder Text Color */
/* Other Variables */
--tab-hover: #bbb; /* Tab Color on Hover */
}
================================================
FILE: static/assets/css/themes/colors/sky.css
================================================
:root {
/* Background Variables */
--background-image: url("/./assets/media/background/full-main.png"); /* Background Image */
--backdrop-filter: blur(10px) brightness(80%); /* Nav Backdrop filter */
--background-nav: #173055; /* Nav Background */
--background-color: #173055; /* Main Background Color */
--background-input: #4a6fa5; /* Input Field Background Color */
--background-column: #173055; /* Background for Apps Container */
--background-settings: #173055; /* Settings Card Background */
--background-buttons: #3665ac; /* Button Background Color */
--tab-active-background: #204a88; /* Accent Color for Tabs */
--slider-active-background: #204a88; /* Active Slider Background Color */
--slider-inactive-background: #204a88; /* Slider Background Color */
--nav-image: url("/./assets/media/favicon/main.png"); /* Nav Logo */
/* Text Variables */
--text-primary: #ffffff; /* Primary Text Color */
--text-dark: #1b50cc; /* Dark Text Color for Error Page, Scrollbar, and Particles */
--text-placeholder: #00d9ff; /* Placeholder Text Color */
/* Other Variables */
--tab-hover: #a05959; /* Tab Color on Hover */
}
================================================
FILE: static/assets/css/themes/template.css
================================================
:root {
/* Background Variables */
--background-color: #ddd; /* Main Background Color */
--background-input: #cccccc; /* Input Field Background Color */
--background-column: #cacaca; /* Background for Apps Container */
--background-settings: #d5d5d5; /* Settings Card Background */
--background-buttons: #ccc; /* Button Background Color */
--tab-active-background: #bbb; /* Accent Color for Tabs */
--tab-inactive-background: ; /* Background Color for Tabs Not In Use */
--slider-active-background: #b3b0af; /* Active Slider Background Color */
--slider-inactive-background: #333; /* Slider Background Color */
--nav-image: url("/./assets/media/favicon/main-inverted.png"); /* Nav Logo */
--save-button: #a6d189; /* Save Button, Normally Green */
/* Text Variables */
--text-primary: #000; /* Primary Text Color */
--text-dark: #aaa; /* Dark Text Color for Error Page, Scrollbar, and Particles */
--text-placeholder: #555; /* Placeholder Text Color */
/* Other Variables */
}
================================================
FILE: static/assets/history/client.js
================================================
(()=>{var aa=Object.create,Xe=Object.defineProperty,sa=Object.getOwnPropertyDescriptor,oa=Object.getOwnPropertyNames,ca=Object.getPrototypeOf,ua=Object.prototype.hasOwnProperty,la=(e,t,i)=>t in e?Xe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Tt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),dr=(e,t)=>{for(var i in t)Xe(e,i,{get:t[i],enumerable:!0})},ha=(e,t,i,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of oa(t))ua.call(e,n)||n===i||Xe(e,n,{get:()=>t[n],enumerable:!(r=sa(t,n))||r.enumerable});return e},Qe=(e,t,i)=>(i=null!=e?aa(ca(e)):{},ha(!t&&e&&e.__esModule?i:Xe(i,"default",{value:e,enumerable:!0}),e)),q=(e,t,i)=>(la(e,"symbol"!=typeof t?t+"":t,i),i),Nt=Tt((e,t)=>{function i(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var i,r="",n=0,s=-1,a=0,o=0;o<=e.length;++o){if(o2){var c=r.lastIndexOf("/");if(c!==r.length-1){-1===c?(r="",n=0):n=(r=r.slice(0,c)).length-1-r.lastIndexOf("/"),s=o,a=0;continue}}else if(2===r.length||1===r.length){r="",n=0,s=o,a=0;continue}}t&&(r.length>0?r+="/..":r="..",n=2)}else r.length>0?r+="/"+e.slice(s+1,o):r=e.slice(s+1,o),n=o-s-1}s=o,a=0}else 46===i&&-1!==a?++a:a=-1}return r}function n(e,t){var i=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return i?i===t.root?i+r:i+e+r:r}var s={resolve(){for(var e,t,n="",s=!1,a=arguments.length-1;a>=-1&&!s;a--)a>=0?e=arguments[a]:(void 0===t&&(t=process.cwd()),e=t),i(e),0!==e.length&&(n=e+"/"+n,s=47===e.charCodeAt(0));return n=r(n,!s),s?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize(e){if(i(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=r(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:e=>(i(e),e.length>0&&47===e.charCodeAt(0)),join(){if(0===arguments.length)return".";for(var e,t=0;t0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":s.normalize(e)},relative(e,t){if(i(e),i(t),e===t||(e=s.resolve(e))===(t=s.resolve(t)))return"";for(var r=1;rl){if(47===t.charCodeAt(o+p))return t.slice(o+p+1);if(0===p)return t.slice(o+p)}else a>l&&(47===e.charCodeAt(r+p)?h=p:0===p&&(h=0));break}var d=e.charCodeAt(r+p);if(d!==t.charCodeAt(o+p))break;47===d&&(h=p)}var m="";for(p=r+h+1;p<=n;++p)(p===n||47===e.charCodeAt(p))&&(0===m.length?m+="..":m+="/..");return m.length>0?m+t.slice(o+h):(o+=h,47===t.charCodeAt(o)&&++o,t.slice(o))},_makeLong:e=>e,dirname(e){if(i(e),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,s=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!s){n=a;break}}else s=!1;return -1===n?r?"/":".":r&&1===n?"//":e.slice(0,n)},basename(e,t){if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');i(e);var r,n=0,s=-1,a=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var o=t.length-1,c=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(47===u){if(!a){n=r+1;break}}else -1===c&&(a=!1,c=r+1),o>=0&&(u===t.charCodeAt(o)?-1==--o&&(s=r):(o=-1,s=c))}return n===s?s=c:-1===s&&(s=e.length),e.slice(n,s)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){n=r+1;break}}else -1===s&&(a=!1,s=r+1);return -1===s?"":e.slice(n,s)},extname(e){i(e);for(var t=-1,r=0,n=-1,s=!0,a=0,o=e.length-1;o>=0;--o){var c=e.charCodeAt(o);if(47===c){if(!s){r=o+1;break}continue}-1===n&&(s=!1,n=o+1),46===c?-1===t?t=o:1!==a&&(a=1):-1!==t&&(a=-1)}return -1===t||-1===n||0===a||1===a&&t===n-1&&t===r+1?"":e.slice(t,n)},format(e){if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return n("/",e)},parse(e){i(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var r,n=e.charCodeAt(0),s=47===n;s?(t.root="/",r=1):r=0;for(var a=-1,o=0,c=-1,u=!0,l=e.length-1,h=0;l>=r;--l){if(47===(n=e.charCodeAt(l))){if(!u){o=l+1;break}continue}-1===c&&(u=!1,c=l+1),46===n?-1===a?a=l:1!==h&&(h=1):-1!==a&&(h=-1)}return -1===a||-1===c||0===h||1===h&&a===c-1&&a===o+1?-1!==c&&(0===o&&s?t.base=t.name=e.slice(1,c):t.base=t.name=e.slice(o,c)):(0===o&&s?(t.name=e.slice(1,a),t.base=e.slice(1,c)):(t.name=e.slice(o,a),t.base=e.slice(o,c)),t.ext=e.slice(a,c)),o>0?t.dir=e.slice(0,o-1):s&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};s.posix=s,t.exports=s}),vn=Tt(e=>{e.parse=r,e.serialize=n;var t=Object.prototype.toString,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function r(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var i={},r=(t||{}).decode||s,n=0;n{var i={decodeValues:!0,map:!1,silent:!1};function r(e){return"string"==typeof e&&!!e.trim()}function n(e,t){var n=e.split(";").filter(r),a=s(n.shift()),o=a.name,c=a.value;t=t?Object.assign({},i,t):i;try{c=t.decodeValues?decodeURIComponent(c):c}catch(u){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+c+"'. Set options.decodeValues to false to disable this feature.",u)}var l={name:o,value:c};return n.forEach(e=>{var t=e.split("="),i=t.shift().trimLeft().toLowerCase(),r=t.join("=");"expires"===i?l.expires=new Date(r):"max-age"===i?l.maxAge=Number.parseInt(r,10):"secure"===i?l.secure=!0:"httponly"===i?l.httpOnly=!0:"samesite"===i?l.sameSite=r:l[i]=r}),l}function s(e){var t="",i="",r=e.split("=");return r.length>1?(t=r.shift(),i=r.join("=")):i=e,{name:t,value:i}}function a(e,t){if(t=t?Object.assign({},i,t):i,!e)return t.map?{}:[];if(e.headers){if("function"==typeof e.headers.getSetCookie)e=e.headers.getSetCookie();else if(e.headers["set-cookie"])e=e.headers["set-cookie"];else{var s=e.headers[Object.keys(e.headers).find(e=>"set-cookie"===e.toLowerCase())];s||!e.headers.cookie||t.silent||console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),e=s}}return(Array.isArray(e)||(e=[e]),(t=t?Object.assign({},i,t):i).map)?e.filter(r).reduce((e,i)=>{var r=n(i,t);return e[r.name]=r,e},{}):e.filter(r).map(e=>n(e,t))}function o(e){if(Array.isArray(e))return e;if("string"!=typeof e)return[];var t,i,r,n,s,a=[],o=0;function c(){for(;o=e.length)&&a.push(e.substring(t,e.length))}return a}t.exports=a,t.exports.parse=a,t.exports.parseString=n,t.exports.splitCookiesString=o}),xr=Qe(Nt()),Ye={"application/ecmascript":{source:"apache",compressible:!0,extensions:["ecma"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/http":{source:"iana"},"application/javascript":{source:"apache",charset:"UTF-8",compressible:!0,extensions:["js"]},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/mp4":{source:"iana",extensions:["mp4","mpg4","mp4s","m4p"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/sql":{source:"iana",extensions:["sql"]},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-gzip":{source:"apache"},"application/x-javascript":{compressible:!0},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/red":{source:"iana"},"audio/rtx":{source:"iana"},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/webp":{source:"iana",extensions:["webp"]},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/ecmascript":{source:"apache"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"text/markdown":{source:"iana",compressible:!0,extensions:["md","markdown"]}},_r=/^\s*([^;\s]*)(?:;|\s|$)/,fa=/^text\//i,U={};function gr(e){if(!e||"string"!=typeof e)return!1;var t=_r.exec(e),i=t&&Ye[t[1].toLowerCase()];return i&&i.charset?i.charset:!(!t||!fa.test(t[1]))&&"UTF-8"}function da(e){if(!e||"string"!=typeof e)return!1;var t=-1===e.indexOf("/")?U.lookup(e):e;if(!t)return!1;if(-1===t.indexOf("charset")){var i=U.charset(t);i&&(t+="; charset="+i.toLowerCase())}return t}function ma(e){if(!e||"string"!=typeof e)return!1;var t=_r.exec(e),i=t&&U.extensions[t[1].toLowerCase()];return!(!i||!i.length)&&i[0]}function ya(e){if(!e||"string"!=typeof e)return!1;var t=(0,xr.extname)("x."+e).toLowerCase().substr(1);return t&&U.types[t]||!1}function ga(e,t){var i=["nginx","apache",void 0,"iana"];Object.keys(Ye).forEach(r=>{var n=Ye[r],s=n.extensions;if(s&&s.length){e[r]=s;for(var a=0;au||c===u&&"application/"===t[o].substr(0,12)))continue}t[o]=r}}})}U.charset=gr,U.charsets={lookup:gr},U.contentType=da,U.extension=ma,U.extensions=Object.create(null),U.lookup=ya,U.types=Object.create(null),ga(U.extensions,U.types);var br=U,Us=Qe(Nt(),1),Je={};dr(Je,{deleteDB:()=>Ca,openDB:()=>Bt,unwrap:()=>Le,wrap:()=>G});var wr,vr,xa=(e,t)=>t.some(t=>e instanceof t);function _a(){return wr||(wr=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function ba(){return vr||(vr=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey,])}var Sr=new WeakMap,Dt=new WeakMap,Er=new WeakMap,Mt=new WeakMap,Vt=new WeakMap;function wa(e){let t=new Promise((t,i)=>{let r=()=>{e.removeEventListener("success",n),e.removeEventListener("error",s)},n=()=>{t(G(e.result)),r()},s=()=>{i(e.error),r()};e.addEventListener("success",n),e.addEventListener("error",s)});return t.then(t=>{t instanceof IDBCursor&&Sr.set(t,e)}).catch(()=>{}),Vt.set(t,e),t}function va(e){if(Dt.has(e))return;let t=new Promise((t,i)=>{let r=()=>{e.removeEventListener("complete",n),e.removeEventListener("error",s),e.removeEventListener("abort",s)},n=()=>{t(),r()},s=()=>{i(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",n),e.addEventListener("error",s),e.addEventListener("abort",s)});Dt.set(e,t)}var Ot={get(e,t,i){if(e instanceof IDBTransaction){if("done"===t)return Dt.get(e);if("objectStoreNames"===t)return e.objectStoreNames||Er.get(e);if("store"===t)return i.objectStoreNames[1]?void 0:i.objectStore(i.objectStoreNames[0])}return G(e[t])},set:(e,t,i)=>(e[t]=i,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function Cr(e){Ot=e(Ot)}function Sa(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?ba().includes(e)?function(...t){return e.apply(Le(this),t),G(Sr.get(this))}:function(...t){return G(e.apply(Le(this),t))}:function(t,...i){let r=e.call(Le(this),t,...i);return Er.set(r,t.sort?t.sort():[t]),G(r)}}function Ea(e){return"function"==typeof e?Sa(e):(e instanceof IDBTransaction&&va(e),xa(e,_a())?new Proxy(e,Ot):e)}function G(e){if(e instanceof IDBRequest)return wa(e);if(Mt.has(e))return Mt.get(e);let t=Ea(e);return t!==e&&(Mt.set(e,t),Vt.set(t,e)),t}var Le=e=>Vt.get(e);function Bt(e,t,{blocked:i,upgrade:r,blocking:n,terminated:s}={}){let a=indexedDB.open(e,t),o=G(a);return r&&a.addEventListener("upgradeneeded",e=>{r(G(a.result),e.oldVersion,e.newVersion,G(a.transaction),e)}),i&&a.addEventListener("blocked",e=>i(e.oldVersion,e.newVersion,e)),o.then(e=>{s&&e.addEventListener("close",()=>s()),n&&e.addEventListener("versionchange",e=>n(e.oldVersion,e.newVersion,e))}).catch(()=>{}),o}function Ca(e,{blocked:t}={}){let i=indexedDB.deleteDatabase(e);return t&&i.addEventListener("blocked",e=>t(e.oldVersion,e)),G(i).then(()=>{})}var ka=["get","getKey","getAll","getAllKeys","count"],Aa=["put","add","delete","clear"],Ft=new Map;function kr(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(Ft.get(t))return Ft.get(t);let i=t.replace(/FromIndex$/,""),r=t!==i,n=Aa.includes(i);if(!(i in(r?IDBIndex:IDBObjectStore).prototype)||!(n||ka.includes(i)))return;let s=async function(e,...t){let s=this.transaction(e,n?"readwrite":"readonly"),a=s.store;return r&&(a=a.index(t.shift())),(await Promise.all([a[i](...t),n&&s.done]))[0]};return Ft.set(t,s),s}Cr(e=>({...e,get:(t,i,r)=>kr(t,i)||e.get(t,i,r),has:(t,i)=>!!kr(t,i)||e.has(t,i)}));var La=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239,],Ir=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191,],Pa="\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",Tr="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",$t={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},jt="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",Ra={5:jt,"5module":jt+" export import",6:jt+" const class extends export import super"},Ia=/^in(stanceof)?$/,Ta=RegExp("["+Tr+"]"),Na=RegExp("["+Tr+Pa+"]");function Ht(e,t){for(var i=65536,r=0;re);r+=2)if((i+=t[r+1])>=e)return!0;return!1}function ce(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&Ta.test(String.fromCharCode(e)):!1!==t&&Ht(e,Ir)))}function be(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&Na.test(String.fromCharCode(e)):!1!==t&&(Ht(e,Ir)||Ht(e,La)))))}var L=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function z(e,t){return new L(e,{beforeExpr:!0,binop:t})}var K={beforeExpr:!0},H={startsExpr:!0},Gt={};function k(e,t){return void 0===t&&(t={}),t.keyword=e,Gt[e]=new L(e,t)}var u={num:new L("num",H),regexp:new L("regexp",H),string:new L("string",H),name:new L("name",H),privateId:new L("privateId",H),eof:new L("eof"),bracketL:new L("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new L("]"),braceL:new L("{",{beforeExpr:!0,startsExpr:!0}),braceR:new L("}"),parenL:new L("(",{beforeExpr:!0,startsExpr:!0}),parenR:new L(")"),comma:new L(",",K),semi:new L(";",K),colon:new L(":",K),dot:new L("."),question:new L("?",K),questionDot:new L("?."),arrow:new L("=>",K),template:new L("template"),invalidTemplate:new L("invalidTemplate"),ellipsis:new L("...",K),backQuote:new L("`",H),dollarBraceL:new L("${",{beforeExpr:!0,startsExpr:!0}),eq:new L("=",{beforeExpr:!0,isAssign:!0}),assign:new L("_=",{beforeExpr:!0,isAssign:!0}),incDec:new L("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new L("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:z("||",1),logicalAND:z("&&",2),bitwiseOR:z("|",3),bitwiseXOR:z("^",4),bitwiseAND:z("&",5),equality:z("==/!=/===/!==",6),relational:z(">/<=/>=",7),bitShift:z("<>>/>>>",8),plusMin:new L("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:z("%",10),star:z("*",10),slash:z("/",10),starstar:new L("**",{beforeExpr:!0}),coalesce:z("??",1),_break:k("break"),_case:k("case",K),_catch:k("catch"),_continue:k("continue"),_debugger:k("debugger"),_default:k("default",K),_do:k("do",{isLoop:!0,beforeExpr:!0}),_else:k("else",K),_finally:k("finally"),_for:k("for",{isLoop:!0}),_function:k("function",H),_if:k("if"),_return:k("return",K),_switch:k("switch"),_throw:k("throw",K),_try:k("try"),_var:k("var"),_const:k("const"),_while:k("while",{isLoop:!0}),_with:k("with"),_new:k("new",{beforeExpr:!0,startsExpr:!0}),_this:k("this",H),_super:k("super",H),_class:k("class",H),_extends:k("extends",K),_export:k("export"),_import:k("import",H),_null:k("null",H),_true:k("true",H),_false:k("false",H),_in:k("in",{beforeExpr:!0,binop:7}),_instanceof:k("instanceof",{beforeExpr:!0,binop:7}),_typeof:k("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:k("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:k("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Y=/\r\n?|\n|\u2028|\u2029/,Ma=RegExp(Y.source,"g");function we(e){return 10===e||13===e||8232===e||8233===e}function Nr(e,t,i){void 0===i&&(i=e.length);for(var r=t;rDa.call(e,t)),Ar=Array.isArray||(e=>"[object Array]"===Oa.call(e));function pe(e){return RegExp("^(?:"+e.replace(/ /g,"|")+")$")}function fe(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,(1023&e)+56320)}var Va=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Re=function(e,t){this.line=e,this.column=t};Re.prototype.offset=function(e){return new Re(this.line,this.column+e)};var rt=function(e,t,i){this.start=t,this.end=i,null!==e.sourceFile&&(this.source=e.sourceFile)};function Or(e,t){for(var i=1,r=0;;){var n=Nr(e,r,t);if(n<0)return new Re(i,t-r);++i,r=n}}var Wt={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Lr=!1;function Fa(e){var t={};for(var i in Wt)t[i]=e&&Te(e,i)?e[i]:Wt[i];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!Lr&&"object"==typeof console&&console.warn&&(Lr=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),e&&null!=e.allowHashBang||(t.allowHashBang=t.ecmaVersion>=14),Ar(t.onToken)){var r=t.onToken;t.onToken=e=>r.push(e)}return Ar(t.onComment)&&(t.onComment=Ba(t,t.onComment)),t}function Ba(e,t){return function(i,r,n,s,a,o){var c={type:i?"Block":"Line",value:r,start:n,end:s};e.locations&&(c.loc=new rt(this,a,o)),e.ranges&&(c.range=[n,s]),t.push(c)}}var Ie=1,ve=2,zt=4,Vr=8,Fr=16,Br=32,Kt=64,$r=128,Ne=256,Xt=Ie|ve|Ne;function Qt(e,t){return ve|(e?zt:0)|(t?Vr:0)}var et=0,Yt=1,le=2,jr=3,Ur=4,Hr=5,T=function(e,t,i){this.options=e=Fa(e),this.sourceFile=e.sourceFile,this.keywords=pe(Ra[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var r="";!0!==e.allowReserved&&(r=$t[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(r+=" await")),this.reservedWords=pe(r);var n=(r?r+" ":"")+$t.strict;this.reservedWordsStrict=pe(n),this.reservedWordsStrictBind=pe(n+" "+$t.strictBind),this.input=String(t),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf(`
`,i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Y).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=u.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(Ie),this.regexpState=null,this.privateNameStack=[]},ie={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};T.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},ie.inFunction.get=function(){return(this.currentVarScope().flags&ve)>0},ie.inGenerator.get=function(){return(this.currentVarScope().flags&Vr)>0&&!this.currentVarScope().inClassFieldInit},ie.inAsync.get=function(){return(this.currentVarScope().flags&zt)>0&&!this.currentVarScope().inClassFieldInit},ie.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&Ne)return!1;if(t.flags&ve)return(t.flags&zt)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},ie.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&Kt)>0||i||this.options.allowSuperOutsideMethod},ie.allowDirectSuper.get=function(){return(this.currentThisScope().flags&$r)>0},ie.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},ie.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&(ve|Ne))>0||i},ie.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Ne)>0},T.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var i=this,r=0;r=,?^&]/.test(n)||"!"===n&&"="===this.input.charAt(r+1))}e+=t[0].length,X.lastIndex=e,e+=X.exec(this.input)[0].length,";"===this.input[e]&&e++}},$.eat=function(e){return this.type===e&&(this.next(),!0)},$.isContextual=function(e){return this.type===u.name&&this.value===e&&!this.containsEsc},$.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},$.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},$.canInsertSemicolon=function(){return this.type===u.eof||this.type===u.braceR||Y.test(this.input.slice(this.lastTokEnd,this.start))},$.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},$.semicolon=function(){this.eat(u.semi)||this.insertSemicolon()||this.unexpected()},$.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},$.expect=function(e){this.eat(e)||this.unexpected()},$.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var nt=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};$.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var i=t?e.parenthesizedAssign:e.parenthesizedBind;i>-1&&this.raiseRecoverable(i,t?"Assigning to rvalue":"Parenthesized pattern")}},$.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,r=e.doubleProto;if(!t)return i>=0||r>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},$.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&r<56320)return!0;if(ce(r,!0)){for(var n=i+1;be(r=this.input.charCodeAt(n),!0);)++n;if(92===r||r>55295&&r<56320)return!0;var s=this.input.slice(i,n);if(!Ia.test(s))return!0}return!1},w.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;X.lastIndex=this.pos;var e,t=X.exec(this.input),i=this.pos+t[0].length;return!Y.test(this.input.slice(this.pos,i))&&"function"===this.input.slice(i,i+8)&&(i+8===this.input.length||!(be(e=this.input.charCodeAt(i+8))||e>55295&&e<56320))},w.parseStatement=function(e,t,i){var r,n=this.type,s=this.startNode();switch(this.isLet(e)&&(n=u._var,r="let"),n){case u._break:case u._continue:return this.parseBreakContinueStatement(s,n.keyword);case u._debugger:return this.parseDebuggerStatement(s);case u._do:return this.parseDoStatement(s);case u._for:return this.parseForStatement(s);case u._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case u._class:return e&&this.unexpected(),this.parseClass(s,!0);case u._if:return this.parseIfStatement(s);case u._return:return this.parseReturnStatement(s);case u._switch:return this.parseSwitchStatement(s);case u._throw:return this.parseThrowStatement(s);case u._try:return this.parseTryStatement(s);case u._const:case u._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(s,r);case u._while:return this.parseWhileStatement(s);case u._with:return this.parseWithStatement(s);case u.braceL:return this.parseBlock(!0,s);case u.semi:return this.parseEmptyStatement(s);case u._export:case u._import:if(this.options.ecmaVersion>10&&n===u._import){X.lastIndex=this.pos;var a=X.exec(this.input),o=this.pos+a[0].length,c=this.input.charCodeAt(o);if(40===c||46===c)return this.parseExpressionStatement(s,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),n===u._import?this.parseImport(s):this.parseExport(s,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var l=this.value,h=this.parseExpression();return n===u.name&&"Identifier"===h.type&&this.eat(u.colon)?this.parseLabeledStatement(s,l,h,e):this.parseExpressionStatement(s,h)}},w.parseBreakContinueStatement=function(e,t){var i="break"===t;this.next(),this.eat(u.semi)||this.insertSemicolon()?e.label=null:this.type!==u.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r=6?this.eat(u.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},w.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Jt),this.enterScope(0),this.expect(u.parenL),this.type===u.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===u._var||this.type===u._const||i){var r=this.startNode(),n=i?"let":this.value;return this.next(),this.parseVar(r,!0,n),this.finishNode(r,"VariableDeclaration"),(this.type===u._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===r.declarations.length?(this.options.ecmaVersion>=9&&(this.type===u._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var s=this.isContextual("let"),a=!1,o=new nt,c=this.parseExpression(!(t>-1)||"await",o);return this.type===u._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===u._in?t>-1&&this.unexpected(t):e.await=t>-1),s&&a&&this.raise(c.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(c,!1,o),this.checkLValPattern(c),this.parseForIn(e,c)):(this.checkExpressionErrors(o,!0),t>-1&&this.unexpected(t),this.parseFor(e,c))},w.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,Pe|(i?0:qt),!1,t)},w.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(u._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},w.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(u.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},w.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(u.braceL),this.labels.push(ja),this.enterScope(0);for(var t,i=!1;this.type!==u.braceR;)if(this.type===u._case||this.type===u._default){var r=this.type===u._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,t.test=null),this.expect(u.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},w.parseThrowStatement=function(e){return this.next(),Y.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Ua=[];w.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?Br:0),this.checkLValPattern(e,t?Ur:le),this.expect(u.parenR),e},w.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===u._catch){var t=this.startNode();this.next(),this.eat(u.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(u._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},w.parseVarStatement=function(e,t,i){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")},w.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Jt),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},w.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},w.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},w.parseLabeledStatement=function(e,t,i,r){for(var n=0,s=this.labels;n=0;o--){var c=this.labels[o];if(c.statementStart===e.start)c.statementStart=this.start,c.kind=a;else break}return this.labels.push({name:t,kind:a,statementStart:this.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")},w.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},w.parseBlock=function(e,t,i){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(u.braceL),e&&this.enterScope(0);this.type!==u.braceR;){var r=this.parseStatement(null);t.body.push(r)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},w.parseFor=function(e,t){return e.init=t,this.expect(u.semi),e.test=this.type===u.semi?null:this.parseExpression(),this.expect(u.semi),e.update=this.type===u.parenR?null:this.parseExpression(),this.expect(u.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},w.parseForIn=function(e,t){var i=this.type===u._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!i||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(u.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")},w.parseVar=function(e,t,i,r){for(e.declarations=[],e.kind=i;;){var n=this.startNode();if(this.parseVarId(n,i),this.eat(u.eq)?n.init=this.parseMaybeAssign(t):r||"const"!==i||this.type===u._in||this.options.ecmaVersion>=6&&this.isContextual("of")?r||"Identifier"===n.id.type||t&&(this.type===u._in||this.isContextual("of"))?n.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(u.comma))break}return e},w.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?Yt:le,!1)};var Pe=1,qt=2,Wr=4;function Ha(e,t){var i=t.key.name,r=e[i],n="true";return"MethodDefinition"===t.type&&("get"===t.kind||"set"===t.kind)&&(n=(t.static?"s":"i")+t.kind),"iget"===r&&"iset"===n||"iset"===r&&"iget"===n||"sget"===r&&"sset"===n||"sset"===r&&"sget"===n?(e[i]="true",!1):!!r||(e[i]=n,!1)}function tt(e,t){var i=e.computed,r=e.key;return!i&&("Identifier"===r.type&&r.name===t||"Literal"===r.type&&r.value===t)}w.parseFunction=function(e,t,i,r,n){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===u.star&&t&qt&&this.unexpected(),e.generator=this.eat(u.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&Pe&&(e.id=t&Wr&&this.type!==u.name?null:this.parseIdent(),e.id&&!(t&qt)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Yt:le:jr));var s=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Qt(e.async,e.generator)),t&Pe||(e.id=this.type===u.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,n),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&Pe?"FunctionDeclaration":"FunctionExpression")},w.parseFunctionParams=function(e){this.expect(u.parenL),e.params=this.parseBindingList(u.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},w.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),n=this.startNode(),s=!1;for(n.body=[],this.expect(u.braceL);this.type!==u.braceR;){var a=this.parseClassElement(null!==e.superClass);a&&(n.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(s&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),s=!0):a.key&&"PrivateIdentifier"===a.key.type&&Ha(r,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=i,this.next(),e.body=this.finishNode(n,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},w.parseClassElement=function(e){if(this.eat(u.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),r="",n=!1,s=!1,a="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(u.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===u.star?o=!0:r="static"}if(i.static=o,!r&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===u.star)&&!this.canInsertSemicolon()?s=!0:r="async"),!r&&(t>=9||!s)&&this.eat(u.star)&&(n=!0),!r&&!s&&!n){var c=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=c:r=c)}if(r?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=r,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===u.parenL||"method"!==a||n||s){var l=!i.static&&tt(i,"constructor");l&&"method"!==a&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=l?"constructor":a,this.parseClassMethod(i,n,s,l&&e)}else this.parseClassField(i);return i},w.isClassElementNameStart=function(){return this.type===u.name||this.type===u.privateId||this.type===u.num||this.type===u.string||this.type===u.bracketL||this.type.keyword},w.parseClassElementName=function(e){this.type===u.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},w.parseClassMethod=function(e,t,i,r){var n=e.key;"constructor"===e.kind?(t&&this.raise(n.start,"Constructor can't be a generator"),i&&this.raise(n.start,"Constructor can't be an async method")):e.static&&tt(e,"prototype")&&this.raise(n.start,"Classes may not have a static property named prototype");var s=e.value=this.parseMethod(t,i,r);return"get"===e.kind&&0!==s.params.length&&this.raiseRecoverable(s.start,"getter should have no params"),"set"===e.kind&&1!==s.params.length&&this.raiseRecoverable(s.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===s.params[0].type&&this.raiseRecoverable(s.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},w.parseClassField=function(e){if(tt(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&tt(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(u.eq)){var t=this.currentThisScope(),i=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=i}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},w.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Ne|Kt);this.type!==u.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},w.parseClassId=function(e,t){this.type===u.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,le,!1)):(!0===t&&this.unexpected(),e.id=null)},w.parseClassSuper=function(e){e.superClass=this.eat(u._extends)?this.parseExprSubscripts(null,!1):null},w.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},w.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,i=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,n=0===r?null:this.privateNameStack[r-1],s=0;s=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==u.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},w.parseExport=function(e,t){if(this.next(),this.eat(u.star))return this.parseExportAllDeclaration(e,t);if(this.eat(u._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==u.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var i=0,r=e.specifiers;i=13&&this.type===u.string){var e=this.parseLiteral(this.value);return Va.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},w.adaptDirectivePrologue=function(e){for(var t=0;t=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var J=T.prototype;J.toAssignable=function(e,t,i){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var r=0,n=e.properties;r=6)switch(this.type){case u.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(u.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case u.braceL:return this.parseObj(!0)}return this.parseIdent()},J.parseBindingList=function(e,t,i,r){for(var n=[],s=!0;!this.eat(e);)if(s?s=!1:this.expect(u.comma),t&&this.type===u.comma)n.push(null);else{if(i&&this.afterTrailingComma(e))break;if(this.type===u.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),n.push(a),this.type===u.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}n.push(this.parseAssignableListItem(r))}return n},J.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},J.parseBindingListItem=e=>e,J.parseMaybeDefault=function(e,t,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(u.eq))return i;var r=this.startNodeAt(e,t);return r.left=i,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},J.checkLValSimple=function(e,t,i){void 0===t&&(t=et);var r=t!==et;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(t===le&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),i&&(Te(i,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),i[e.name]=!0),t!==Hr&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,i);default:this.raise(e.start,(r?"Binding":"Assigning to")+" rvalue")}},J.checkLValPattern=function(e,t,i){switch(void 0===t&&(t=et),e.type){case"ObjectPattern":for(var r=0,n=e.properties;re.tryReadTemplateToken()),f_stat:new Z("function",!1),f_expr:new Z("function",!0),f_expr_gen:new Z("function",!0,!1,null,!0),f_gen:new Z("function",!1,!1,null,!0)},Se=T.prototype;Se.initialContext=()=>[R.b_stat],Se.curContext=function(){return this.context[this.context.length-1]},Se.braceIsBlock=function(e){var t=this.curContext();return t===R.f_expr||t===R.f_stat||(e===u.colon&&(t===R.b_stat||t===R.b_expr)?!t.isExpr:e===u._return||e===u.name&&this.exprAllowed?Y.test(this.input.slice(this.lastTokEnd,this.start)):e===u._else||e===u.semi||e===u.eof||e===u.parenR||e===u.arrow||(e===u.braceL?t===R.b_stat:e!==u._var&&e!==u._const&&e!==u.name&&!this.exprAllowed))},Se.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},Se.updateContext=function(e){var t,i=this.type;i.keyword&&e===u.dot?this.exprAllowed=!1:(t=i.updateContext)?t.call(this,e):this.exprAllowed=i.beforeExpr},Se.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},u.parenR.updateContext=u.braceR.updateContext=function(){if(1===this.context.length){this.exprAllowed=!0;return}var e=this.context.pop();e===R.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},u.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?R.b_stat:R.b_expr),this.exprAllowed=!0},u.dollarBraceL.updateContext=function(){this.context.push(R.b_tmpl),this.exprAllowed=!0},u.parenL.updateContext=function(e){var t=e===u._if||e===u._for||e===u._with||e===u._while;this.context.push(t?R.p_stat:R.p_expr),this.exprAllowed=!0},u.incDec.updateContext=()=>{},u._function.updateContext=u._class.updateContext=function(e){!e.beforeExpr||e===u._else||e===u.semi&&this.curContext()!==R.p_stat||e===u._return&&Y.test(this.input.slice(this.lastTokEnd,this.start))||(e===u.colon||e===u.braceL)&&this.curContext()===R.b_stat?this.context.push(R.f_stat):this.context.push(R.f_expr),this.exprAllowed=!1},u.backQuote.updateContext=function(){this.curContext()===R.q_tmpl?this.context.pop():this.context.push(R.q_tmpl),this.exprAllowed=!1},u.star.updateContext=function(e){if(e===u._function){var t=this.context.length-1;this.context[t]===R.f_expr?this.context[t]=R.f_expr_gen:this.context[t]=R.f_gen}this.exprAllowed=!0},u.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==u.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var v=T.prototype;function qr(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&qr(e.expression)}v.checkPropClash=function(e,t,i){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type)&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r,n,s=e.key;switch(s.type){case"Identifier":n=s.name;break;case"Literal":n=String(s.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6){"__proto__"===n&&"init"===a&&(t.proto&&(i?i.doubleProto<0&&(i.doubleProto=s.start):this.raiseRecoverable(s.start,"Redefinition of __proto__ property")),t.proto=!0);return}var o=t[n="$"+n];o?(r="init"===a?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(s.start,"Redefinition of property"):o=t[n]={init:!1,get:!1,set:!1},o[a]=!0}},v.parseExpression=function(e,t){var i=this.start,r=this.startLoc,n=this.parseMaybeAssign(e,t);if(this.type===u.comma){var s=this.startNodeAt(i,r);for(s.expressions=[n];this.eat(u.comma);)s.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(s,"SequenceExpression")}return n},v.parseMaybeAssign=function(e,t,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,n=-1,s=-1,a=-1;t?(n=t.parenthesizedAssign,s=t.trailingComma,a=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new nt,r=!0);var o=this.start,c=this.startLoc;(this.type===u.parenL||this.type===u.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var l=this.parseMaybeConditional(e,t);if(i&&(l=i.call(this,l,o,c)),this.type.isAssign){var h=this.startNodeAt(o,c);return h.operator=this.value,this.type===u.eq&&(l=this.toAssignable(l,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===u.eq?this.checkLValPattern(l):this.checkLValSimple(l),h.left=l,this.next(),h.right=this.parseMaybeAssign(e),a>-1&&(t.doubleProto=a),this.finishNode(h,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),n>-1&&(t.parenthesizedAssign=n),s>-1&&(t.trailingComma=s),l},v.parseMaybeConditional=function(e,t){var i=this.start,r=this.startLoc,n=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return n;if(this.eat(u.question)){var s=this.startNodeAt(i,r);return s.test=n,s.consequent=this.parseMaybeAssign(),this.expect(u.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return n},v.parseExprOps=function(e,t){var i=this.start,r=this.startLoc,n=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||n.start===i&&"ArrowFunctionExpression"===n.type?n:this.parseExprOp(n,i,r,-1,e)},v.parseExprOp=function(e,t,i,r,n){var s=this.type.binop;if(null!=s&&(!n||this.type!==u._in)&&s>r){var a=this.type===u.logicalOR||this.type===u.logicalAND,o=this.type===u.coalesce;o&&(s=u.logicalAND.binop);var c=this.value;this.next();var l=this.start,h=this.startLoc,p=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,n),l,h,s,n),d=this.buildBinary(t,i,e,p,c,a||o);return(a&&this.type===u.coalesce||o&&(this.type===u.logicalOR||this.type===u.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(d,t,i,r,n)}return e},v.buildBinary=function(e,t,i,r,n,s){"PrivateIdentifier"===r.type&&this.raise(r.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(e,t);return a.left=i,a.operator=n,a.right=r,this.finishNode(a,s?"LogicalExpression":"BinaryExpression")},v.parseMaybeUnary=function(e,t,i,r){var n,s=this.start,a=this.startLoc;if(this.isContextual("await")&&this.canAwait)n=this.parseAwait(r),t=!0;else if(this.type.prefix){var o=this.startNode(),c=this.type===u.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,c,r),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&"Identifier"===o.argument.type?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&qr(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):t=!0,n=this.finishNode(o,c?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==u.privateId){if(n=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return n;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(s,a);l.operator=this.value,l.prefix=!1,l.argument=n,this.checkLValSimple(n),this.next(),n=this.finishNode(l,"UpdateExpression")}}else(r||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),n=this.parsePrivateIdent(),this.type!==u._in&&this.unexpected();return!i&&this.eat(u.starstar)?t?void this.unexpected(this.lastTokStart):this.buildBinary(s,a,n,this.parseMaybeUnary(null,!1,!1,r),"**",!1):n},v.parseExprSubscripts=function(e,t){var i=this.start,r=this.startLoc,n=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===n.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return n;var s=this.parseSubscripts(n,i,r,!1,t);return e&&"MemberExpression"===s.type&&(e.parenthesizedAssign>=s.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=s.start&&(e.parenthesizedBind=-1),e.trailingComma>=s.start&&(e.trailingComma=-1)),s},v.parseSubscripts=function(e,t,i,r,n){for(var s=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,a=!1;;){var o=this.parseSubscript(e,t,i,r,s,a,n);if(o.optional&&(a=!0),o===e||"ArrowFunctionExpression"===o.type){if(a){var c=this.startNodeAt(t,i);c.expression=o,o=this.finishNode(c,"ChainExpression")}return o}e=o}},v.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(u.arrow)},v.parseSubscriptAsyncArrow=function(e,t,i,r){return this.parseArrowExpression(this.startNodeAt(e,t),i,!0,r)},v.parseSubscript=function(e,t,i,r,n,s,a){var o=this.options.ecmaVersion>=11,c=o&&this.eat(u.questionDot);r&&c&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(u.bracketL);if(l||c&&this.type!==u.parenL&&this.type!==u.backQuote||this.eat(u.dot)){var h=this.startNodeAt(t,i);h.object=e,l?(h.property=this.parseExpression(),this.expect(u.bracketR)):this.type===u.privateId&&"Super"!==e.type?h.property=this.parsePrivateIdent():h.property=this.parseIdent("never"!==this.options.allowReserved),h.computed=!!l,o&&(h.optional=c),e=this.finishNode(h,"MemberExpression")}else if(!r&&this.eat(u.parenL)){var p=new nt,d=this.yieldPos,m=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var $=this.parseExprList(u.parenR,this.options.ecmaVersion>=8,!1,p);if(n&&!c&&this.shouldParseAsyncArrow())return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=d,this.awaitPos=m,this.awaitIdentPos=f,this.parseSubscriptAsyncArrow(t,i,$,a);this.checkExpressionErrors(p,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=m||this.awaitPos,this.awaitIdentPos=f||this.awaitIdentPos;var y=this.startNodeAt(t,i);y.callee=e,y.arguments=$,o&&(y.optional=c),e=this.finishNode(y,"CallExpression")}else if(this.type===u.backQuote){(c||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var _=this.startNodeAt(t,i);_.tag=e,_.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(_,"TaggedTemplateExpression")}return e},v.parseExprAtom=function(e,t,i){this.type===u.slash&&this.readRegexp();var r,n=this.potentialArrowAt===this.start;switch(this.type){case u._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type!==u.parenL||this.allowDirectSuper||this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==u.dot&&this.type!==u.bracketL&&this.type!==u.parenL&&this.unexpected(),this.finishNode(r,"Super");case u._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case u.name:var s=this.start,a=this.startLoc,o=this.containsEsc,c=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&"async"===c.name&&!this.canInsertSemicolon()&&this.eat(u._function))return this.overrideContext(R.f_expr),this.parseFunction(this.startNodeAt(s,a),0,!1,!0,t);if(n&&!this.canInsertSemicolon()){if(this.eat(u.arrow))return this.parseArrowExpression(this.startNodeAt(s,a),[c],!1,t);if(this.options.ecmaVersion>=8&&"async"===c.name&&this.type===u.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return c=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(u.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,a),[c],!0,t)}return c;case u.regexp:var l=this.value;return(r=this.parseLiteral(l.value)).regex={pattern:l.pattern,flags:l.flags},r;case u.num:case u.string:return this.parseLiteral(this.value);case u._null:case u._true:case u._false:return(r=this.startNode()).value=this.type===u._null?null:this.type===u._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case u.parenL:var h=this.start,p=this.parseParenAndDistinguishExpression(n,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(p)&&(e.parenthesizedAssign=h),e.parenthesizedBind<0&&(e.parenthesizedBind=h)),p;case u.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(u.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case u.braceL:return this.overrideContext(R.b_expr),this.parseObj(!1,e);case u._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case u._class:return this.parseClass(this.startNode(),!1);case u._new:return this.parseNew();case u.backQuote:return this.parseTemplate();case u._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}},v.parseExprAtomDefault=function(){this.unexpected()},v.parseExprImport=function(e){var t=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var i=this.parseIdent(!0);return this.type!==u.parenL||e?this.type===u.dot?(t.meta=i,this.parseImportMeta(t)):void this.unexpected():this.parseDynamicImport(t)},v.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(u.parenR)){var t=this.start;this.eat(u.comma)&&this.eat(u.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},v.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},v.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},v.parseParenExpression=function(){this.expect(u.parenL);var e=this.parseExpression();return this.expect(u.parenR),e},v.shouldParseArrow=function(e){return!this.canInsertSemicolon()},v.parseParenAndDistinguishExpression=function(e,t){var i,r=this.start,n=this.startLoc,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,c=this.startLoc,l=[],h=!0,p=!1,d=new nt,m=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==u.parenR;)if(h?h=!1:this.expect(u.comma),s&&this.afterTrailingComma(u.parenR,!0)){p=!0;break}else if(this.type===u.ellipsis){a=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===u.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else l.push(this.parseMaybeAssign(!1,d,this.parseParenItem));var $=this.lastTokEnd,y=this.lastTokEndLoc;if(this.expect(u.parenR),e&&this.shouldParseArrow(l)&&this.eat(u.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=m,this.awaitPos=f,this.parseParenArrowList(r,n,l,t);(!l.length||p)&&this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(d,!0),this.yieldPos=m||this.yieldPos,this.awaitPos=f||this.awaitPos,l.length>1?((i=this.startNodeAt(o,c)).expressions=l,this.finishNodeAt(i,"SequenceExpression",$,y)):i=l[0]}else i=this.parseParenExpression();if(!this.options.preserveParens)return i;var _=this.startNodeAt(r,n);return _.expression=i,this.finishNode(_,"ParenthesizedExpression")},v.parseParenItem=e=>e,v.parseParenArrowList=function(e,t,i,r){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,r)};var Wa=[];v.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(u.dot)){e.meta=t;var i=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var r=this.start,n=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,n,!0,!1),this.eat(u.parenL)?e.arguments=this.parseExprList(u.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Wa,this.finishNode(e,"NewExpression")},v.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===u.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value,cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
`),cooked:this.value},this.next(),i.tail=this.type===u.backQuote,this.finishNode(i,"TemplateElement")},v.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(i.quasis=[r];!r.tail;)this.type===u.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(u.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(u.braceR),i.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")},v.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===u.name||this.type===u.num||this.type===u.string||this.type===u.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===u.star)&&!Y.test(this.input.slice(this.lastTokEnd,this.start))},v.parseObj=function(e,t){var i=this.startNode(),r=!0,n={};for(i.properties=[],this.next();!this.eat(u.braceR);){if(r)r=!1;else if(this.expect(u.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(u.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,n,t),i.properties.push(s)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")},v.parseProperty=function(e,t){var i,r,n,s,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(u.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===u.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,t),this.type===u.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||t)&&(n=this.start,s=this.startLoc),e||(i=this.eat(u.star)));var o=this.containsEsc;return this.parsePropertyName(a),!e&&!o&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(a)?(r=!0,i=this.options.ecmaVersion>=9&&this.eat(u.star),this.parsePropertyName(a)):r=!1,this.parsePropertyValue(a,e,i,r,n,s,t,o),this.finishNode(a,"Property")},v.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t="get"===e.kind?0:1;if(e.value.params.length!==t){var i=e.value.start;"get"===e.kind?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},v.parsePropertyValue=function(e,t,i,r,n,s,a,o){(i||r)&&this.type===u.colon&&this.unexpected(),this.eat(u.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init"):this.options.ecmaVersion>=6&&this.type===u.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(i,r)):t||o||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===u.comma||this.type===u.braceR||this.type===u.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((i||r)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=n),e.kind="init",t?e.value=this.parseMaybeDefault(n,s,this.copyNode(e.key)):this.type===u.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(n,s,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected():((i||r)&&this.unexpected(),this.parseGetterSetter(e))},v.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(u.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(u.bracketR),e.key;e.computed=!1}return e.key=this.type===u.num||this.type===u.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},v.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},v.parseMethod=function(e,t,i){var r=this.startNode(),n=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Qt(t,r.generator)|Kt|(i?$r:0)),this.expect(u.parenL),r.params=this.parseBindingList(u.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=n,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(r,"FunctionExpression")},v.parseArrowExpression=function(e,t,i,r){var n=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(Qt(i,!1)|Fr),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=n,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")},v.parseFunctionBody=function(e,t,i,r){var n=t&&this.type!==u.braceL,s=this.strict,a=!1;if(n)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!s||o)&&(a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var c=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!s&&!a&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Hr),e.body=this.parseBlock(!1,void 0,a&&!s),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},v.isSimpleParamList=e=>{for(var t,i=0,r=e;i-1||n.functions.indexOf(e)>-1||n.var.indexOf(e)>-1,n.lexical.push(e),this.inModule&&n.flags&Ie&&delete this.undefinedExports[e]}else if(t===Ur)this.currentScope().lexical.push(e);else if(t===jr){var s=this.currentScope();r=this.treatFunctionsAsVar?s.lexical.indexOf(e)>-1:s.lexical.indexOf(e)>-1||s.var.indexOf(e)>-1,s.functions.push(e)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(e)>-1&&!(o.flags&Br&&o.lexical[0]===e)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(e)>-1){r=!0;break}if(o.var.push(e),this.inModule&&o.flags&Ie&&delete this.undefinedExports[e],o.flags&Xt)break}r&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")},de.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},de.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},de.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Xt)return t}},de.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Xt&&!(t.flags&Fr))return t}};var at=function(e,t,i){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new rt(e,i)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},Me=T.prototype;function Gr(e,t,i,r){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=i),e}Me.startNode=function(){return new at(this,this.start,this.startLoc)},Me.startNodeAt=function(e,t){return new at(this,e,t)},Me.finishNode=function(e,t){return Gr.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},Me.finishNodeAt=function(e,t,i,r){return Gr.call(this,e,t,i,r)},Me.copyNode=function(e){var t=new at(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var Ka,zr="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Kr=zr+" Extended_Pictographic",Xr=Kr,Qr=Xr+" EBase EComp EMod EPres ExtPict",Yr=Qr,Ga=Yr,za={9:zr,10:Kr,11:Xr,12:Qr,13:Yr,14:Ga},Xa={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},Pr="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Jr="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Zr=Jr+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",en=Zr+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",tn=en+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",rn=tn+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Qa=rn+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",Ya={9:Jr,10:Zr,11:en,12:tn,13:rn,14:Qa},nn={};function Ja(e){var t=nn[e]={binary:pe(za[e]+" "+Pr),binaryOfStrings:pe(Xa[e]),nonBinary:{General_Category:pe(Pr),Script:pe(Ya[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(Ze=0,Ut=[9,10,11,12,13,14];Ze=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=nn[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function an(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function Za(e){return ce(e,!0)||36===e||95===e}function es(e){return be(e,!0)||36===e||95===e||8204===e||8205===e}function sn(e){return e>=65&&e<=90||e>=97&&e<=122}function ts(e){return e>=0&&e<=1114111}re.prototype.reset=function(e,t,i){var r=-1!==i.indexOf("v"),n=-1!==i.indexOf("u");this.start=0|e,this.source=t+"",this.flags=i,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=n&&this.parser.options.ecmaVersion>=9)},re.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},re.prototype.at=function(e,t){void 0===t&&(t=!1);var i=this.source,r=i.length;if(e>=r)return -1;var n=i.charCodeAt(e);if(!(t||this.switchU)||n<=55295||n>=57344||e+1>=r)return n;var s=i.charCodeAt(e+1);return s>=56320&&s<=57343?(n<<10)+s-56613888:n},re.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var i=this.source,r=i.length;if(e>=r)return r;var n,s=i.charCodeAt(e);return!(t||this.switchU)||s<=55295||s>=57344||e+1>=r||(n=i.charCodeAt(e+1))<56320||n>57343?e+1:e+2},re.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},re.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},re.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},re.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},re.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var i=this.pos,r=0,n=e;r-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===a&&(r=!0),"v"===a&&(n=!0)}this.options.ecmaVersion>=15&&r&&n&&this.raise(e.start,"Invalid regular expression flag")},b.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},b.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,i=e.backReferenceNames;t=9&&(i=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!i,!0}return e.pos=t,!1},b.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},b.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},b.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var r=0,n=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue),e.eat(125)))return -1!==n&&n=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},b.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},b.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},b.regexp_eatSyntaxCharacter=e=>{var t=e.current();return!!an(t)&&(e.lastIntValue=t,e.advance(),!0)},b.regexp_eatPatternCharacters=e=>{for(var t=e.pos,i=0;-1!==(i=e.current())&&!an(i);)e.advance();return e.pos!==t},b.regexp_eatExtendedPatternCharacter=e=>{var t=e.current();return -1!==t&&36!==t&&(!(t>=40)||!(t<=43))&&46!==t&&63!==t&&91!==t&&94!==t&&124!==t&&(e.advance(),!0)},b.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}},b.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},b.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=fe(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=fe(e.lastIntValue);return!0}return!1},b.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,r=e.current(i);return e.advance(i),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(r=e.lastIntValue),Za(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},b.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,r=e.current(i);return e.advance(i),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(r=e.lastIntValue),es(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},b.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},b.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var i=e.lastIntValue;if(e.switchU)return i>e.maxBackReference&&(e.maxBackReference=i),!0;if(i<=e.numCapturingParens)return!0;e.pos=t}return!1},b.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},b.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},b.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},b.regexp_eatZero=e=>!(48!==e.current()||st(e.lookahead()))&&(e.lastIntValue=0,e.advance(),!0),b.regexp_eatControlEscape=e=>{var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},b.regexp_eatControlLetter=e=>{var t=e.current();return!!sn(t)&&(e.lastIntValue=t%32,e.advance(),!0)},b.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var i=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var n=e.lastIntValue;if(r&&n>=55296&&n<=56319){var s=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=(n-55296)*1024+(a-56320)+65536,!0}e.pos=s,e.lastIntValue=n}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&ts(e.lastIntValue))return!0;r&&e.raise("Invalid unicode escape"),e.pos=i}return!1},b.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return 99!==t&&(!e.switchN||107!==t)&&(e.lastIntValue=t,e.advance(),!0)},b.regexp_eatDecimalEscape=e=>{e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var on=0,ue=1,Q=2;function is(e){return 100===e||68===e||115===e||83===e||119===e||87===e}function cn(e){return sn(e)||95===e}function rs(e){return cn(e)||st(e)}function ns(e){return 33===e||e>=35&&e<=38||e>=42&&e<=44||46===e||e>=58&&e<=64||94===e||96===e||126===e}function as(e){return 40===e||41===e||45===e||47===e||e>=91&&e<=93||e>=123&&e<=125}function ss(e){return 33===e||35===e||37===e||38===e||44===e||45===e||e>=58&&e<=62||64===e||96===e||126===e}function st(e){return e>=48&&e<=57}function un(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function ln(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}function hn(e){return e>=48&&e<=55}b.regexp_eatCharacterClassEscape=function(e){var t,i=e.current();if(is(i))return e.lastIntValue=-1,e.advance(),ue;var r=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((r=80===i)||112===i)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(t=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return r&&t===Q&&e.raise("Invalid property name"),t;e.raise("Invalid property name")}return on},b.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var i=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,r),ue}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,n)}return on},b.regexp_validateUnicodePropertyNameAndValue=(e,t,i)=>{Te(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")},b.regexp_validateUnicodePropertyNameOrValue=(e,t)=>e.unicodeProperties.binary.test(t)?ue:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?Q:void e.raise("Invalid property name"),b.regexp_eatUnicodePropertyName=e=>{var t=0;for(e.lastStringValue="";cn(t=e.current());)e.lastStringValue+=fe(t),e.advance();return""!==e.lastStringValue},b.regexp_eatUnicodePropertyValue=e=>{var t=0;for(e.lastStringValue="";rs(t=e.current());)e.lastStringValue+=fe(t),e.advance();return""!==e.lastStringValue},b.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},b.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),i=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&i===Q&&e.raise("Negated character class may contain strings"),!0}return!1},b.regexp_classContents=function(e){return 93===e.current()?ue:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),ue)},b.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var i=e.lastIntValue;e.switchU&&(-1===t||-1===i)&&e.raise("Invalid character class"),-1!==t&&-1!==i&&t>i&&e.raise("Range out of order in character class")}}},b.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var i=e.current();(99===i||hn(i))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},b.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},b.regexp_classSetExpression=function(e){var t,i=ue;if(!this.regexp_eatClassSetRange(e)){if(t=this.regexp_eatClassSetOperand(e)){t===Q&&(i=Q);for(var r=e.pos;e.eatChars([38,38]);){if(38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))){t!==Q&&(i=ue);continue}e.raise("Invalid character in character class")}if(r!==e.pos)return i;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(r!==e.pos)return i}else e.raise("Invalid character in character class")}for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return i;t===Q&&(i=Q)}},b.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return -1!==i&&-1!==r&&i>r&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},b.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?ue:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},b.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var i=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return i&&r===Q&&e.raise("Negated character class may contain strings"),r;e.pos=t}if(e.eat(92)){var n=this.regexp_eatCharacterClassEscape(e);if(n)return n;e.pos=t}return null},b.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var i=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return i}else e.raise("Invalid escape");e.pos=t}return null},b.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===Q&&(t=Q);return t},b.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?ue:Q},b.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return!!(this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e))||(e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1));var i=e.current();return!(i<0||i===e.lookahead()&&ns(i)||as(i))&&(e.advance(),e.lastIntValue=i,!0)},b.regexp_eatClassSetReservedPunctuator=e=>{var t=e.current();return!!ss(t)&&(e.lastIntValue=t,e.advance(),!0)},b.regexp_eatClassControlLetter=e=>{var t=e.current();return(!!st(t)||95===t)&&(e.lastIntValue=t%32,e.advance(),!0)},b.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},b.regexp_eatDecimalDigits=e=>{var t=e.pos,i=0;for(e.lastIntValue=0;st(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t},b.regexp_eatHexDigits=e=>{var t=e.pos,i=0;for(e.lastIntValue=0;un(i=e.current());)e.lastIntValue=16*e.lastIntValue+ln(i),e.advance();return e.pos!==t},b.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var i=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*i+e.lastIntValue:e.lastIntValue=8*t+i}else e.lastIntValue=t;return!0}return!1},b.regexp_eatOctalDigit=e=>{var t=e.current();return hn(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},b.regexp_eatFixedHexDigits=(e,t)=>{var i=e.pos;e.lastIntValue=0;for(var r=0;rtypeof Symbol&&(C[Symbol.iterator]=function(){return{next:()=>{var e=this.getToken();return{done:e.type===u.eof,value:e}}}}),C.nextToken=function(){var e=this.curContext();return(e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)?this.finishToken(u.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},C.readToken=function(e){return ce(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},C.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},C.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(-1===i&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var r=void 0,n=t;(r=Nr(this.input,n,this.pos))>-1;)++this.curLine,n=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())},C.skipLineComment=function(e){for(var t=this.pos,i=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos8&&e<14||e>=5760&&Mr.test(String.fromCharCode(e)))++this.pos;else break e}}},C.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=e,this.value=t,this.updateContext(i)},C.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(u.ellipsis)):(++this.pos,this.finishToken(u.dot))},C.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(u.assign,2):this.finishOp(u.slash,1)},C.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,r=42===e?u.star:u.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++i,r=u.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(u.assign,i+1):this.finishOp(r,i)},C.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e)return this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(u.assign,3):this.finishOp(124===e?u.logicalOR:u.logicalAND,2);return 61===t?this.finishOp(u.assign,2):this.finishOp(124===e?u.bitwiseOR:u.bitwiseAND,1)},C.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(u.assign,2):this.finishOp(u.bitwiseXOR,1)},C.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45===t&&!this.inModule&&62===this.input.charCodeAt(this.pos+2)&&(0===this.lastTokEnd||Y.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(u.incDec,2):61===t?this.finishOp(u.assign,2):this.finishOp(u.plusMin,1)},C.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),i=1;return t===e?(i=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+i)?this.finishOp(u.assign,i+1):this.finishOp(u.bitShift,i)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(i=2),this.finishOp(u.relational,i)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},C.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(u.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(u.arrow)):this.finishOp(61===e?u.eq:u.prefix,1)},C.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(u.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(u.assign,3):this.finishOp(u.coalesce,2)}return this.finishOp(u.question,1)},C.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,ce(t=this.fullCharCodeAtPos(),!0)||92===t))return this.finishToken(u.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+fe(t)+"'")},C.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(u.parenL);case 41:return++this.pos,this.finishToken(u.parenR);case 59:return++this.pos,this.finishToken(u.semi);case 44:return++this.pos,this.finishToken(u.comma);case 91:return++this.pos,this.finishToken(u.bracketL);case 93:return++this.pos,this.finishToken(u.bracketR);case 123:return++this.pos,this.finishToken(u.braceL);case 125:return++this.pos,this.finishToken(u.braceR);case 58:return++this.pos,this.finishToken(u.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(u.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(u.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+fe(e)+"'")},C.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)},C.readRegexp=function(){for(var e,t,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(Y.test(r)&&this.raise(i,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var n=this.input.slice(i,this.pos);++this.pos;var s=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(s);var o=this.regexpState||(this.regexpState=new re(this));o.reset(i,n,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var c=null;try{c=RegExp(n,a)}catch{}return this.finishToken(u.regexp,{pattern:n,flags:a,value:c})},C.readInt=function(e,t,i){for(var r=this.options.ecmaVersion>=12&&void 0===t,n=i&&48===this.input.charCodeAt(this.pos),s=this.pos,a=0,o=0,c=0,u=t??1/0;c=97?l-97+10:l>=65?l-65+10:l>=48&&l<=57?l-48:1/0)>=e)break;o=l,a=a*e+h}return r&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||null!=t&&this.pos-s!==t?null:a},C.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var i=this.readInt(e);return null==i&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(i=pn(this.input.slice(t,this.pos)),++this.pos):ce(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(u.num,i)},C.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var i=this.pos-t>=2&&48===this.input.charCodeAt(t);i&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&110===r){var n=pn(this.input.slice(t,this.pos));return++this.pos,ce(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(u.num,n)}i&&/[89]/.test(this.input.slice(t,this.pos))&&(i=!1),46!==r||i||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||i||((43===(r=this.input.charCodeAt(++this.pos))||45===r)&&++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),ce(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s=os(this.input.slice(t,this.pos),i);return this.finishToken(u.num,s)},C.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},C.readString=function(e){for(var t="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!1),i=this.pos):8232===r||8233===r?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(we(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(u.string,t)};var fn={};C.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===fn)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},C.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw fn;this.raise(e,t)},C.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(96===i||36===i&&123===this.input.charCodeAt(this.pos+1))return this.pos===this.start&&(this.type===u.template||this.type===u.invalidTemplate)?36===i?(this.pos+=2,this.finishToken(u.dollarBraceL)):(++this.pos,this.finishToken(u.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(u.template,e));if(92===i)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(we(i)){switch(e+=this.input.slice(t,this.pos),++this.pos,i){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+=`
`;break;default:e+=String.fromCharCode(i)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},C.readInvalidTemplateToken=function(){for(;this.pos=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],n=Number.parseInt(r,8);return n>255&&(n=Number.parseInt(r=r.slice(0,-1),8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),("0"!==r||56===t||57===t)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(n)}return we(t)?"":String.fromCharCode(t)}},C.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return null===i&&this.invalidStringToken(t,"Bad character escape sequence"),i},C.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,r=this.options.ecmaVersion>=6;this.pos>16)+(t>>16)+(i>>16)<<16|65535&i}function fs(e,t){return e<>>32-t}function ut(e,t,i,r,n,s){return ye(fs(ye(ye(t,e),ye(r,s)),n),i)}function D(e,t,i,r,n,s,a){return ut(t&i|~t&r,e,t,n,s,a)}function O(e,t,i,r,n,s,a){return ut(t&r|i&~r,e,t,n,s,a)}function V(e,t,i,r,n,s,a){return ut(t^i^r,e,t,n,s,a)}function F(e,t,i,r,n,s,a){return ut(i^(t|~r),e,t,n,s,a)}function ot(e,t){e[t>>5]|=128<>>9<<4)+14]=t;let i=1732584193,r=-271733879,n=-1732584194,s=271733878;for(let a=0;a>5]>>>r%32&255);return t}function ri(e){let t=[],i=e.length>>2;for(let r=0;r>5]|=(255&e.charCodeAt(s/8))<16&&(i=ot(i,8*e.length));for(let s=0;s<16;s+=1)r[s]=909522486^i[s],n[s]=1549556828^i[s];let a=ot(r.concat(ri(t)),512+8*t.length);return yn(ot(n.concat(a),640))}function gn(e){let t="0123456789abcdef",i="";for(let r=0;r>>4&15)+t.charAt(15&n)}return i}function ni(e){return unescape(encodeURIComponent(e))}function xn(e){return ds(ni(e))}function ys(e){return gn(xn(e))}function _n(e,t){return ms(ni(e),ni(t))}function gs(e,t){return gn(_n(e,t))}function xs(e,t,i){return t?i?_n(t,e):gs(t,e):i?xn(e):ys(e)}var ei=3072;function _s(e){let t=new Headers(e);if(e.has("x-bare-headers")){let i=e.get("x-bare-headers");if(i.length>ei){t.delete("x-bare-headers");let r=0;for(let n=0;n{s.removeEventListener("close",o),s.removeEventListener("message",c)},o=()=>{a()},c=e=>{if(a(),"string"!=typeof e.data)throw TypeError("the first websocket message was not a text frame");let t=JSON.parse(e.data);if("open"!==t.type)throw TypeError("message was not of open type");e.stopImmediatePropagation(),r({protocol:t.protocol,setCookies:t.setCookies}),n(ge.OPEN),s.dispatchEvent(new Event("open"))};return s.addEventListener("close",o),s.addEventListener("message",c),s.addEventListener("open",r=>{r.stopImmediatePropagation(),n(ge.CONNECTING),i().then(i=>ge.prototype.send.call(s,JSON.stringify({type:"connect",remote:e.toString(),protocols:t,headers:i,forwardHeaders:[]})))},{once:!0}),s}async request(e,t,i,r,n,s,a){if(r.protocol.startsWith("blob:")){let o=await ti(r),c=new mn(o.body,o);return c.rawHeaders=Object.fromEntries(o.headers),c.rawResponse=o,c}let u={};if(t instanceof Headers)for(let[l,h]of t)u[l]=h;else for(let p in t)u[p]=t[p];let d={credentials:"omit",method:e,signal:a};"only-if-cached"!==n&&(d.cache=n),void 0!==i&&(d.body=i),void 0!==s&&(d.duplex=s),d.headers=this.createBareHeaders(r,u);let m=await ti(this.http+"?cache="+xs(r.toString()),d),f=await this.readBareResponse(m),$=new mn(hs.includes(f.status)?void 0:m.body,{status:f.status,statusText:f.statusText??void 0,headers:new Headers(f.headers)});return $.rawHeaders=f.headers,$.rawResponse=m,$}async readBareResponse(e){if(!e.ok)throw new ct(e.status,await e.json());let t=bs(e.headers),i={},r=t.get("x-bare-status");null!==r&&(i.status=Number.parseInt(r));let n=t.get("x-bare-status-text");null!==n&&(i.statusText=n);let s=t.get("x-bare-headers");return null!==s&&(i.headers=JSON.parse(s)),i}createBareHeaders(e,t,i=[],r=[],n=[]){let s=new Headers;for(let a of(s.set("x-bare-url",e.toString()),s.set("x-bare-headers",JSON.stringify(t)),i))s.append("x-bare-forward-headers",a);for(let o of r)s.append("x-bare-pass-headers",o);for(let c of n)s.append("x-bare-pass-status",c.toString());return _s(s),s}},ws="!#$%&'*+-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`abcdefghijklmnopqrstuvwxyz|~";function vs(e){for(let t=0;tthis.loadManifest(e)).catch(e=>{throw delete this.working,e})),this.working):this.client}getClient(){for(let[e,t]of Ss)if(this.manifest.versions.includes(e))return new t(this.server);throw Error("Unable to find compatible client version. Starting from v2.0.0, @tomphttp/bare-client only supports Bare servers v3+. For more information, see https://github.com/tomphttp/bare-client/")}createWebSocket(e,t=[],i){if(!this.client)throw TypeError("You need to wait for the client to finish fetching the manifest before creating any WebSockets. Try caching the manifest data before making this request.");try{e=new URL(e)}catch{throw new DOMException(`Faiiled to construct 'WebSocket': The URL '${e}' is invalid.`)}if(!Cs.includes(e.protocol))throw new DOMException(`Failed to construct 'WebSocket': The URL's scheme must be either 'ws' or 'wss'. '${e.protocol}' is not allowed.`);for(let r of(Array.isArray(t)||(t=[t]),t=t.map(String)))if(!vs(r))throw new DOMException(`Failed to construct 'WebSocket': The subprotocol '${r}' is invalid.`);let n=this.client.connect(e,t,async()=>{let t="function"==typeof i.headers?await i.headers():i.headers||{},r=t instanceof Headers?Object.fromEntries(t):t;return r.Host=e.host,r.Pragma="no-cache",r["Cache-Control"]="no-cache",r.Upgrade="websocket",r.Connection="Upgrade",r},e=>{s=e.protocol,i.setCookiesCallback&&i.setCookiesCallback(e.setCookies)},e=>{a=e},i.webSocketImpl||me),s="",a=ge.CONNECTING,o=()=>{let e=Es.call(n);return e===ge.OPEN?a:e};i.readyStateHook?i.readyStateHook(n,o):Object.defineProperty(n,"readyState",{get:o,configurable:!0,enumerable:!0});let c=()=>{if(o()===ge.CONNECTING)return new DOMException("Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.")};i.sendErrorHook?i.sendErrorHook(n,c):n.send=function(...e){let t=c();if(t)throw t;ge.prototype.send.call(this,...e)},i.urlHook?i.urlHook(n,e):Object.defineProperty(n,"url",{get:()=>e.toString(),configurable:!0,enumerable:!0});let u=()=>s;return i.protocolHook?i.protocolHook(n,u):Object.defineProperty(n,"protocol",{get:u,configurable:!0,enumerable:!0}),n}async fetch(e,t){let i=ks(e)?new us(e,t):e,r=t?.headers||i.headers,n=r instanceof Headers?Object.fromEntries(r):r,s=t?.duplex,a=t?.body||i.body,o=new URL(i.url),c=await this.demand();for(let u=0;;u++){"host"in n?n.host=o.host:n.Host=o.host;let l=await c.request(i.method,n,a,o,i.cache,s,i.signal);l.finalURL=o.toString();let h=t?.redirect||i.redirect;if(!ps.includes(l.status))return l;switch(h){case"follow":{let p=l.headers.get("location");if(ls>u&&null!==p){o=new URL(p,o);continue}throw TypeError("Failed to fetch")}case"error":throw TypeError("Failed to fetch");case"manual":return l}}}};function ks(e){return"string"==typeof e||e instanceof URL}async function wn(e,t){let i=await bn(e,t);return new De(e,i)}var Hs=Qe(vn(),1),Nn=Qe(En(),1),{stringify:Os}=JSON;if(!String.prototype.repeat)throw Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");var ht={"||":2,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},ee=17,Vs={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:ee,ClassExpression:ee,FunctionExpression:ee,ObjectExpression:ee,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function Ce(e,t){let{generator:i}=e;if(e.write("("),null!=t&&t.length>0){i[t[0].type](t[0],e);let{length:r}=t;for(let n=1;n0){e.write(r);for(let a=1;a0){i.VariableDeclarator(r[0],e);for(let s=1;s0){t.write(r),n&&null!=e.comments&&j(t,e.comments,s,r);let{length:o}=a;for(let c=0;c0){for(;n0&&t.write(", ");let s=i[n],a=s.type[6];if("D"===a)t.write(s.local.name,s),n++;else if("N"===a)t.write("* as "+s.local.name,s),n++;else break}if(n0)for(let n=0;;){let s=i[n],{name:a}=s.local;if(t.write(a,s),a!==s.exported.name&&t.write(" as "+s.exported.name),++n "),"O"===e.body.type[0]?(t.write("("),this.ObjectExpression(e.body,t),t.write(")")):this[e.body.type](e.body,t)},ThisExpression(e,t){t.write("this",e)},Super(e,t){t.write("super",e)},RestElement:An=function(e,t){t.write("..."),this[e.argument.type](e.argument,t)},SpreadElement:An,YieldExpression(e,t){t.write(e.delegate?"yield*":"yield"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t))},AwaitExpression(e,t){t.write("await ",e),pt(t,e.argument,e)},TemplateLiteral(e,t){let{quasis:i,expressions:r}=e;t.write("`");let{length:n}=r;for(let s=0;s0){let{elements:i}=e,{length:r}=i;for(let n=0;;){let s=i[n];if(null!=s&&this[s.type](s,t),++n0){t.write(r),n&&null!=e.comments&&j(t,e.comments,s,r);let a=","+r,{properties:o}=e,{length:c}=o;for(let u=0;;){let l=o[u];if(n&&null!=l.comments&&j(t,l.comments,s,r),t.write(s),this[l.type](l,t),++u0){let{properties:i}=e,{length:r}=i;for(let n=0;this[i[n].type](i[n],t),++n1||"U"===n[0]&&("n"===n[1]||"p"===n[1])&&r.prefix&&r.operator[0]===i&&("+"===i||"-"===i))&&t.write(" "),s?(t.write(i.length>1?" (":"("),this[n](r,t),t.write(")")):this[n](r,t)}else this[e.argument.type](e.argument,t),t.write(e.operator)},UpdateExpression(e,t){e.prefix?(t.write(e.operator),this[e.argument.type](e.argument,t)):(this[e.argument.type](e.argument,t),t.write(e.operator))},AssignmentExpression(e,t){this[e.left.type](e.left,t),t.write(" "+e.operator+" "),this[e.right.type](e.right,t)},AssignmentPattern(e,t){this[e.left.type](e.left,t),t.write(" = "),this[e.right.type](e.right,t)},BinaryExpression:Ln=(e,t)=>{let i="in"===e.operator;i&&t.write("("),pt(t,e.left,e,!1),t.write(" "+e.operator+" "),pt(t,e.right,e,!0),i&&t.write(")")},LogicalExpression:Ln,ConditionalExpression(e,t){let{test:i}=e,r=t.expressionsPrecedence[i.type];r===ee||r<=t.expressionsPrecedence.ConditionalExpression?(t.write("("),this[i.type](i,t),t.write(")")):this[i.type](i,t),t.write(" ? "),this[e.consequent.type](e.consequent,t),t.write(" : "),this[e.alternate.type](e.alternate,t)},NewExpression(e,t){t.write("new ");let i=t.expressionsPrecedence[e.callee.type];i===ee||i0&&(this.lineEndSize>0&&(1===u.length?e[c-1]===u:e.endsWith(u))?(this.line+=this.lineEndSize,this.column=0):this.column+=c)}toString(){return this.output}};function Tn(e,t){let i=new li(t);return i.generator[e.type](e,i),i.output}var hi,Mn=class{constructor(e){this.mime=br,this.idb=Je,this.path=Us,this.acorn={parse:dn},this.bare={createBareClient:wn,BareClient:De},this.base64={encode:btoa,decode:atob},this.estree={generate:Tn},this.cookie=Hs,this.setCookieParser=Nn.parse,this.ctx=e}};function pi(e,t,i,r,n="",s=!1,a=""){if(self.__dynamic$config)var o="development"==self.__dynamic$config.mode;else var o=!1;if(s){var c=[{nodeName:"script",tagName:"script",namespaceURI:"http://www.w3.org/1999/xhtml",childNodes:[],attrs:[{name:"src",value:e+(o?"?"+Math.floor(89999*Math.random()+1e4):"")},]},{nodeName:"script",tagName:"script",namespaceURI:"http://www.w3.org/1999/xhtml",childNodes:[],attrs:[{name:"src",value:t+(o?"?"+Math.floor(89999*Math.random()+1e4):"")},]},];return this.ctx.config.assets.files.inject&&c.unshift({nodeName:"script",tagName:"script",namespaceURI:"http://www.w3.org/1999/xhtml",childNodes:[],attrs:[{name:"src",value:this.ctx.config.assets.files.inject+(o?"?"+Math.floor(89999*Math.random()+1e4):"")},]}),r&&c.unshift({nodeName:"script",tagName:"script",namespaceURI:"http://www.w3.org/1999/xhtml",childNodes:[],attrs:[{name:"src",value:"data:application/javascript;base64,"+btoa(`self.__dynamic$cookies = atob("${btoa(r)}");document.currentScript?.remove();`)},]}),n&&c.unshift({nodeName:"script",tagName:"script",namespaceURI:"http://www.w3.org/1999/xhtml",childNodes:[],attrs:[{name:"src",value:"data:application/javascript;base64,"+btoa(n+";document.currentScript?.remove();")},]}),a&&c.unshift({nodeName:"script",tagName:"script",namespaceURI:"http://www.w3.org/1999/xhtml",childNodes:[],attrs:[{name:"src",value:"data:application/javascript;base64,"+btoa(a+";document.currentScript?.remove();")},]}),c}var u=[``,``,];return this.ctx.config.assets.files.inject&&u.unshift(``),r&&u.unshift(``),n&&u.unshift(``),a&&u.unshift(``),u}var Ve=class{constructor(e){this.generateHead=pi,this.config=[{elements:"all",tags:["style"],action:"css"},{elements:["script","iframe","embed","input","track","media","source","img","a","link","area","form","object",],tags:["src","href","action","data"],action:"url"},{elements:["source","img"],tags:["srcset"],action:"srcset"},{elements:["script","link"],tags:["integrity"],action:"rewrite",new:"nointegrity"},{elements:["script","link"],tags:["nonce"],action:"rewrite",new:"nononce"},{elements:["meta"],tags:["http-equiv"],action:"http-equiv"},{elements:["iframe"],tags:["srcdoc"],action:"html"},{elements:["link"],tags:["imagesrcset"],action:"srcset"},{elements:"all",tags:["onclick"],action:"js"},],this.ctx=e.ctx}generateRedirect(e){return`
301 Moved
301 Moved
The document has moved
here .
`}iterate(e,t){!function i(r=e){for(var n=0;n]*>/gi)||(e=""+e),e.replace(/(|)/im,`$1${i.join("")}
`).replace(/<(script|link)\b[^>]*>/g,(e,t)=>e.replace(/\snonce\s*=\s*"[^"]*"/,e=>e.replace("nonce","nononce")).replace(/\sintegrity\s*=\s*"[^"]*"/,e=>e.replace("integrity","nointegrity"))))}},Fe=class{constructor(e){this.ctx=e.ctx}rewrite(e,t,i={}){return e&&e.toString().replace(/(?:@import\s?|url\(?)['"]?(.*?)['")]/gim,(...e)=>{try{return e[0].replace(e[3],this.ctx.url.encode(e[3],t))}catch{return e[0]}})}};function fi(e,t){"object"==typeof e&&t&&function e(t,i,r){if(!("object"!=typeof t||!r)){for(let n in t.parent=i,r(t,i,r),t)"parent"!==n&&(Array.isArray(t[n])?t[n].forEach(i=>{i&&e(i,t,r)}):t[n]&&e(t[n],t,r));"function"==typeof t.iterateEnd&&t.iterateEnd()}}(e,null,t)}function di(e,t={},i,r){var n=this.ctx.modules.acorn.parse(e.toString(),{sourceType:t.module?"module":"script",allowImportExportEverywhere:!0,allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,ecmaVersion:"latest",preserveParens:!1,loose:!0,allowReserved:!0});return this.iterate(n,(e,n=null)=>{this.emit(e,e.type,n,i,r,t)}),e=this.ctx.modules.estree.generate(n)}function mi(e,t={}){if("string"!=typeof e.name)return!1;if(!0!==e.__dynamic){if(!["parent","top","postMessage","opener","window","self","globalThis","parent","location",].includes(e.name))return!1;if(!("CallExpression"==t.type&&t.callee==e)&&!("MemberExpression"==t.type&&t.object!==e&&!["document","window","self","globalThis"].includes(t.object.name))&&"FunctionDeclaration"!=t.type&&"VariableDeclaration"!=t.type&&!("VariableDeclarator"==t.type&&t.id==e)&&"LabeledStatement"!=t.type&&!("Property"==t.type&&t.key==e)&&!("ArrowFunctionExpression"==t.type&&t.params.includes(e))&&!("FunctionExpression"==t.type&&t.params.includes(e))&&!("FunctionExpression"==t.type&&t.id==e)&&!("CatchClause"==t.type&&t.param==e)&&"ContinueStatement"!=t.type&&"BreakStatement"!=t.type&&!("AssignmentExpression"==t.type&&t.left==e)&&"UpdateExpression"!=t.type&&"UpdateExpression"!=t.type&&!("ForInStatement"==t.type&&t.left==e)&&!("MethodDefinition"==t.type&&t.key==e)&&!("AssignmentPattern"==t.type&&t.left==e)&&"NewExpression"!=t.type&&t?.parent?.type!="NewExpression"&&!("UnaryExpression"==t.type&&t.argument==e)&&!("Property"==t.type&&!0==t.shorthand&&t.value==e)){if("__dynamic"==e.name)return e.name="undefined";if("eval"==e.name&&t.right!==e)return e.name="__dynamic$eval";e.name=`dg$(${e.name})`}}}function ke(e,t={}){Object.entries({type:"CallExpression",callee:{type:"MemberExpression",object:{type:"Identifier",name:"self"},property:{type:"Identifier",name:"__dynamic$message"}},arguments:[e.object||e,{type:"Identifier",name:"self",__dynamic:!0},]}).forEach(([t,i])=>e[t]=i)}function yi(e,t={},i={}){if(e.object.name+="","AssignmentExpression"!==t.type&&t.left!==e){if("postMessage"==e.property.value&&"CallExpression"==t.type&&t.callee==e||"postMessage"==e.object.value&&"CallExpression"==t.type&&t.callee==e)return ke(e,t);if(("postMessage"==e.property.name||"postMessage"==e.object.name)&&"Super"!==e.object.type){var r=e.object?.name;e.type="CallExpression",e.callee={type:"Identifier",name:"__dynamic$message"},e.arguments=[{type:"Identifier",name:r},{type:"Identifier",name:"self",__dynamic:!0},],"CallExpression"==t.type&&(t.arguments=t.arguments);return}}if("eval"==e.property.name&&(e.property.name="__dynamic$eval"),"eval"==e.object.name&&(e.object.name="__dynamic$eval"),"worker"!==i.destination&&("window"==e.property.name&&"top"!=e.object.name&&("self"==e.object.name||"globalThis"==e.object.name)&&"NewExpression"!==t.type&&("CallExpression"!==t.type||"CallExpression"==t.type&&e!==t.callee)&&(e.property.name="__dynamic$window"),"top"==e.object.name&&"NewExpression"!==t.type&&("CallExpression"!==t.type||"CallExpression"==t.type&&e!==t.callee)&&(e.object.name="top.__dynamic$window"),"top"==e.property.name&&("self"==e.object.name||"globalThis"==e.object.name)&&"NewExpression"!==t.type&&("CallExpression"!==t.type||"CallExpression"==t.type&&e!==t.callee)&&(e.property.name="top.__dynamic$window"),"NewExpression"!==t.type&&("CallExpression"!==t.type||"CallExpression"==t.type&&e!==t.callee)&&("window"==e.object.name&&(e.object={type:"CallExpression",callee:{type:"Identifier",name:"dg$"},arguments:[e.object],__dynamic:!0}),"parent"==e.object.name&&(e.object={type:"CallExpression",callee:{type:"Identifier",name:"dg$"},arguments:[e.object],__dynamic:!0}),"__dynamic"==e.property.name&&(e.property.name="undefined"),"self"==e.object.name&&(e.object={type:"CallExpression",callee:{type:"Identifier",name:"dg$"},arguments:[e.object],__dynamic:!0}),"document"==e.object.name&&(e.object={type:"CallExpression",callee:{type:"Identifier",name:"dg$"},arguments:[e.object],__dynamic:!0}),"globalThis"==e.object.name&&(e.object={type:"CallExpression",callee:{type:"Identifier",name:"dg$"},arguments:[e.object],__dynamic:!0})),"location"==e.object.name&&(e.object={type:"CallExpression",callee:{type:"Identifier",name:"dg$"},arguments:[e.object],__dynamic:!0}),"location"==e.property.name&&"BinaryExpression"!==t.type&&"AssignmentExpression"!==t.type)){e.property.__dynamic=!0,e.__dynamic=!0;let n=Object.assign({},e);e.type="CallExpression",e.callee={type:"Identifier",name:"dg$",__dynamic:!0},e.arguments=[n],e.__dynamic=!0}e.computed&&"worker"!==i.destination&&(e.property={type:"CallExpression",callee:{type:"Identifier",name:"dp$"},arguments:[e.property],__dynamic:!0})}function gi(e,t={}){if(!(e.value instanceof String)||("__dynamic"==e.value&&(e.value="undefined"),!["location","parent","top","postMessage"].includes(e.value)))return!1;"postMessage"==e.value&&"AssignmentExpression"!=t.type&&t.left!=e&&ke(e,t),"location"==e.value&&(e.value="__dynamic$location"),"__dynamic"==e.value&&(e.value="undefined"),"eval"==e.value&&(e.value="__dynamic$eval")}function ft(e,t={}){e.__dynamic||e.arguments.length&&(e.arguments=[{type:"CallExpression",callee:{type:"Identifier",name:"__dynamic$wrapEval",__dynamic:!0},arguments:e.arguments,__dynamic:!0},],e.__dynamic=!0)}function xi(e,t={}){if(!("AssignmentExpression"==t.type&&t.left==e)){if("Identifier"==e.callee.type){if("postMessage"==e.callee.name){e.callee.type="CallExpression",e.callee.callee={type:"Identifier",name:"__dynamic$message"},e.callee.arguments=[{type:"Identifier",name:"undefined"},{type:"Identifier",name:"self",__dynamic:!0},];return}"eval"==e.callee.name&&ft(e)}if("MemberExpression"==e.callee.type){if("postMessage"==e.callee.property.name&&"Super"!==e.callee.object.type){let i=e.callee.object;e.callee.type="CallExpression",e.callee.callee={type:"Identifier",name:"__dynamic$message"},e.callee.arguments=[i,{type:"Identifier",name:"self",__dynamic:!0},];return}"eval"==e.callee.object.name&&ft(e)}e.arguments.length>0&&e.arguments.length}}function _i(e,t={}){if("Identifier"==e.left.type&&!0!==e.left.__dynamic&&"location"==e.left.name){var i=structuredClone(e.left),r=structuredClone(e.right);e.right.type="CallExpression",e.right.callee={type:"Identifier",name:"ds$"},e.right.arguments=[i,r]}}function bi(e,t={}){"ObjectPattern"!=e.parent.type&&e.parent?.parent?.type!="AssignmentExpression"&&(e.shorthand=!1)}function wi(e,t={},i={},r={}){if("Literal"==e.type&&("ImportDeclaration"==t.type||"ExportNamedDeclaration"==t.type||"ExportAllDeclaration"==t.type)){var n=e.value+"";e.value=i.url.encode(e.value,r.meta),e.raw=e.raw.replace(n,e.value),e.__dynamic=!0}"ImportExpression"==e.type&&(e.source={type:"CallExpression",callee:{type:"Identifier",name:"__dynamic$import"},arguments:[e.source,{type:"Literal",__dynamic:!0,value:i.meta.href},]},e.__dynamic=!0)}function vi(e,t={}){if("Identifier"!==e.id.type)return!1;!0!==e.id.__dynamic&&e.id.name}function Ws(e,t,i={},r={},n={},s={}){if(!e.__dynamic){switch(t){case"Identifier":mi(e,i);break;case"MemberExpression":yi(e,i,s);break;case"Literal":gi(e,i);break;case"CallExpression":xi(e,i);break;case"AssignmentExpression":_i(e,i);break;case"ThisExpression":case"CatchClause":break;case"Property":bi(e,i);break;case"VariableDeclarator":vi(e,i)}wi(e,i,r,n)}}var Dn,Be,$e,On,Si,Vn=class{constructor(e){this.ctx=e,this.html=new Ve(this),this.srcset={encode:(e,t)=>e&&e.toString()?e.split(", ").map(e=>e.split(" ").map((e,i)=>0==i?t.url.encode(e,t.baseURL||t.meta):e).join(" ")).join(", "):e,decode:e=>e},this.js=new class{constructor(e){this.iterate=fi,this.process=di,this.emit=Ws,this.ctx=e.ctx}rewrite(e,t={},i=!0,r={}){if(!e||e instanceof Object||(e=e.toString()).includes("/* dynamic.js */"))return e;e=`/* dynamic.js */
${e}`;try{try{e=this.process(e,t,{module:!0,...this.ctx},r)}catch{e=this.process(e,t,{module:!1,...this.ctx},r)}}catch{}return i&&(e=`
if (typeof self !== undefined && typeof self.importScripts == 'function' && typeof self.__dynamic == 'undefined') importScripts('/assets/history/config.js?v=2025-04-15', '/assets/history/handler.js?v=2025-04-15'+Math.floor(Math.random()*(99999-10000)+10000));
${e}`),e}}(this),this.css=new Fe(this),this.man=new class{constructor(e){this.config={rewrite:[["icons","urlit"],["name"," - Dynamic"],["start_url","url"],["scope","url"],["short_name"," - Dynamic"],["shortcuts","urlev"],],delete:["serviceworker"]},this.ctx=e.ctx}rewrite(e,t){let i=JSON.parse(e);for(let r in this.config)if("rewrite"==r)for(var[n,s]of this.config[r]){if("urlit"==s&&i[n]){for(var a=0;athis.ctx.modules.setCookieParser(e,{decodeValues:!1})[0]):e[r]=this.ctx.modules.setCookieParser(e[r],{decodeValues:!1}),e[r]))await i.set(t.host,this.ctx.modules.cookie.serialize(n.name,n.value,{...n,encode:e=>e}));delete e[r];continue}}return new Headers(e)}function ki(e,t,i,r){let{referrer:n}=i;if(["origin","Origin","host","Host","referer","Referer"].forEach(t=>{e[t]&&delete e[t]}),e.Origin=`${t.protocol}//${t.host}${t.port?":"+t.port:""}`,e.Host=t.host+(t.port?":"+t.port:""),e.Referer=t.href,"strict-origin-when-cross-origin"==i.referrerPolicy&&(e.Referer=`${t.protocol}//${t.host}/`),"origin"==i.referrerPolicy&&t.origin&&(n=t.origin+"/"),r){switch(i.credentials){case"omit":break;case"same-origin":i.client&&t.origin==i.client.__dynamic$location.origin&&(e.Cookie=r),i.client||(e.Cookie=r);break;case"include":e.Cookie=r}e.Cookie=r}if(n&&n!=location.origin+"/")try{e.Referer=this.ctx.url.decode(n),"strict-origin-when-cross-origin"==i.referrerPolicy&&(e.Referer=new URL(this.ctx.url.decode(n)).origin),e.Origin=new URL(this.ctx.url.decode(n)).origin}catch{}return i.client&&(e.Origin=i.client.__dynamic$location.origin,e.Referer=i.client.__dynamic$location.href,"strict-origin-when-cross-origin"==i.referrerPolicy&&(e.Referer=i.client.__dynamic$location.origin)),this.ctx.config.tab&&this.ctx.config.tab.ua&&(delete e["user-agent"],delete e["User-Agent"],e["user-agent"]=this.ctx.config.tab.ua),e["sec-fetch-dest"]=i.destination||"empty",e["sec-fetch-mode"]=i.mode||"cors",e["sec-fetch-site"]=i.client?i.client.__dynamic$location.origin==t.origin?i.client.__dynamic$location.port==t.port?"same-origin":"same-site":"cross-origin":"none","navigate"==i.mode&&(e["sec-fetch-site"]="same-origin"),e["sec-fetch-user"]="?1",new Headers(e)}function Ai(e){return Object.assign(Object.create(Object.getPrototypeOf(e)),e)}function Li(e){try{if(new new Proxy(e,{construct:()=>({})}),!Object.getOwnPropertyNames(e).includes("arguments"))throw Error("");return!0}catch{return!1}}function Pi(e){return e.url.toString().substr(location.origin.length,e.url.toString().length).startsWith(self.__dynamic$config.assets.prefix)}async function Ri(e){let t;if("development"!==self.__dynamic$config.mode){var i=await caches.open("__dynamic$files");t=i&&await i.match(e.url)||await fetch(e)}else t=await fetch(e);let r=await t.blob();return(e.url.startsWith(location.origin+"/assets/history/config.js?v=2025-04-15")||e.url.startsWith(location.origin+"/assets/history/client.js?v=2025-04-15"))&&(r=new Blob([`${await r.text()}
self.document?.currentScript?.remove();`,],{type:"application/javascript"})),new Response(r,{headers:t.headers,status:t.status,statusText:t.statusText})}async function Ii(e,t){}var je=class{constructor(e){this.rawHeaders={},this.headers=new Headers({}),this.status=200,this.statusText="OK",this.body=e}async blob(){return this.body}async text(){return await this.body.text()}};function Ti(e){var t=this.ctx.encoding;return t="object"==typeof this.ctx.config.encoding?{...t,...this.ctx.encoding}:{...this.ctx.encoding[this.ctx.config.encoding]},this.ctx.encoding={...this.ctx.encoding,...t},this.ctx.encoding}function Ni(e,t,i){if(!e.url.startsWith("http"))return e.url;let r=e.url.toString();return e.url.startsWith(location.origin)&&(r=r.substr(self.location.origin.length)),r=new URL(r,new URL(t.__dynamic$location.href)).href,this.ctx.url.encode(r,i)}var Mi,$n=class{constructor(e){this.route=Fn,this.routePath=Bn,this.path=Ei,this.resHeader=Ci,this.reqHeader=ki,this.clone=Ai,this.class=Li,this.file=Pi,this.edit=Ri,this.error=Ii,this.encode=Ti,this.rewritePath=Ni,this.about=je,this.ctx=e}};function Di(e,t){if(!e)return e;if((e=new String(e).toString()).startsWith("about:blank"))return location.origin+this.ctx.config.prefix+e;if(!e.match(this.ctx.regex.ProtocolRegex)&&e.match(/^([a-zA-Z0-9\-]+)\:\/\//g)||e.startsWith("chrome-extension://"))return e;if(e.startsWith("javascript:")&&!e.startsWith("javascript:__dynamic$eval")){let i=new URL(e);return`javascript:__dynamic$eval(${JSON.stringify(i.pathname)})`}if(e.match(this.ctx.regex.WeirdRegex)){var r=this.ctx.regex.WeirdRegex.exec(e);r&&(e=r[2])}if(e.startsWith(location.origin+this.ctx.config.prefix)||e.startsWith(this.ctx.config.prefix)||e.startsWith(location.origin+this.ctx.config.assets.prefix+"dynamic.")||e.match(this.ctx.regex.BypassRegex))return e;if(e.match(this.ctx.regex.DataRegex)){try{var r=this.ctx.regex.DataRegex.exec(e);if(r){var[n,s,a,o,c]=r;c="base64"==o?this.ctx.modules.base64.atob(decodeURIComponent(c)):decodeURIComponent(c),s&&("text/html"==s?c=this.ctx.rewrite.html.rewrite(c,t,this.ctx.rewrite.html.generateHead(location.origin+"/assets/history/client.js?v=2025-04-15",location.origin+"/assets/history/config.js?v=2025-04-15","",`window.__dynamic$url = "${t.href}"; window.__dynamic$parentURL = "${location.href}";`)):"text/css"==s?c=this.ctx.rewrite.css.rewrite(c,t):("text/javascript"==s||"application/javascript"==s)&&(c=this.ctx.rewrite.js.rewrite(c,t))),c="base64"==o?this.ctx.modules.base64.btoa(c):encodeURIComponent(c),e=a?o?`data:${s};${a};${o},${c}`:`data:${s};${a},${c}`:o?`data:${s};${o},${c}`:`data:${s},${c}`}}catch{}return e}return e=new String(e).toString(),t.href.match(this.ctx.regex.BypassRegex)&&(e=new URL(e,new URL((this.ctx.parent.__dynamic||this.ctx).meta.href)).href),e=new URL(e,t.href),(this.ctx._location?.origin||("null"==location.origin?location.ancestorOrigins[0]:location.origin))+this.ctx.config.prefix+(this.ctx.encoding.encode(e.origin+e.pathname)+e.search+e.hash)}function Oi(e){if(!e||(e=new String(e).toString()).match(this.ctx.regex.BypassRegex))return e;var t=e.indexOf(this.ctx.config.prefix);if(-1==t)return e;try{if(t=(e=new URL(e,new URL(self.location.origin)).href).indexOf(this.ctx.config.prefix),"about:blank"==e.slice(t+this.ctx.config.prefix.length).trim())return"about:blank";var i=new URL(e).search+new URL(e).hash||"",r=new URL(this.ctx.encoding.decode(e.slice(t+this.ctx.config.prefix.length).replace("https://","https:/").replace("https:/","https://").split("?")[0]))}catch{return e}return e=r.origin+r.pathname+i+(new URL(e).search?r.search.replace("?","&"):r.search)}var Vi,qs,Gs,zs,jn=class{constructor(e){this.encode=Di,this.decode=Oi,this.ctx=e}},Ue=class{constructor(e){this.BypassRegex=/^(#|about:|mailto:|blob:|javascript:)/g,this.DataRegex=/^data:([a-z\/A-Z0-9\-\+]+);?(charset\=[\-A-Za-z0-9]+)?;?(base64)?[;,]*(.*)/g,this.WeirdRegex=/^([\/A-Za-z0-9\-%]+)(http[s]?:\/\/.*)/g,this.ctx=e}};function Fi(e){for(var t in e=new URL(e.href))this.ctx.meta[t]=e[t];return!0}var Bi,He=class{constructor(){}},Un=class extends He{constructor(e){super(),this.load=Fi,this.ctx=e}},Hn={csp:["cross-origin-embedder-policy","cross-origin-opener-policy","cross-origin-resource-policy","content-security-policy","content-security-policy-report-only","expect-ct","feature-policy","origin-isolation","strict-transport-security","upgrade-insecure-requests","x-content-type-options","x-frame-options","x-permitted-cross-domain-policies","x-xss-protection",],status:{empty:[204,101,205,304]},method:{body:["GET","HEAD"]}};function $i(e,t=""){return"text/css"===(this.ctx.modules.mime.contentType(t||e.pathname)||"text/css").split(";")[0]}function ji(e,t="",i=""){let r;return t||this.ctx.modules.mime.contentType(e.pathname)!=e.pathname?"text/html"===(this.ctx.modules.mime.contentType(t||e.pathname)||"text/html").split(";")[0]||i.trim().match(/\<\!(doctype|DOCTYPE) html\>/g):i.trim().match(/<(html|script|body)[^>]*>/g)&&(r=i.trim().indexOf((i.trim().match(/<(html|script|body)[^>]*>/g)||[])[0]))>-1&&r<100}function Ui(e,t=""){if(e.pathname.endsWith(".js")&&"text/plain"==t)return!0;var i=(this.ctx.modules.mime.contentType(t||e.pathname)||"application/javascript").split(";")[0];return"text/javascript"==i||"application/javascript"==i||"application/x-javascript"==i}var Hi,Wn=class{constructor(e){this.html=ji,this.js=Ui,this.css=$i,this.ctx=e}};function dt(e,t=!0){let i=t=>{let i=e.__dynamic.util.clone(t);for(var r=0;re);[...n,e.Object].forEach(e=>{delete e.prototype.__dynamic$location});let s={get:()=>e.__dynamic.location,set(t){if(t instanceof e.Location)return e.__dynamic.location=t;e.__dynamic.location.href=t},configurable:!0};try{var a=new URL(e.__dynamic$url||e.__dynamic.url.decode(e.location.pathname+e.location.search+e.location.hash))}catch{e.__dynamic$url="about:blank";var a=new URL("about:blank")}return e.__dynamic.property=a,e.__dynamic.meta.load(a),e.__dynamic.location=e.__dynamic.util.clone(e.location),["href","host","hash","origin","hostname","port","pathname","protocol","search",].forEach(t=>{e.__dynamic.define(e.__dynamic.location,t,{get:()=>"search"==t&&e.location[t]+(e.location.search?a.search.replace("?","&"):a.search)||("hash"==t?location[t]:a[t]),set(i){"href"===t?e.location[t]=e.__dynamic.url.encode(e.__dynamic.meta.href.replace(a[t],i),a):e.location[t]=i.toString()}})}),e.__dynamic.define(e.Object.prototype,"__dynamic$location",{get(){return this===e||this===e.__dynamic$window||this===e.document||this===e.__dynamic$document?this.__dynamic?.location:this.location},set(t){return this===e||this===e.__dynamic$window||this===e.document||this===e.__dynamic$document?this.__dynamic.location.href=t:this.location=t},configurable:!0}),["assign","replace","toString","reload"].forEach(t=>{e.__dynamic.define(e.__dynamic.location,t,{get:()=>"toString"==t?()=>a.href:new e.__dynamic.Function("arg",`return window.location.${t}(arg?${"reload"!==t&&"toString"!==t?"(self.__dynamic).url.encode(arg, new URL('"+a.href+"'))":"arg"}:null)`),set:()=>null})}),r.length&&e.__dynamic.define(e.__dynamic.location,"ancestorOrigins",{get:()=>i(r),set:()=>null}),n.forEach(t=>{e.__dynamic.define(t.prototype,"__dynamic$location",s)}),e.__dynamic.hashchange||(e.__dynamic.hashchange=(e.addEventListener("hashchange",e=>{}),!0)),e.__dynamic.location}function mt(e){e.__dynamic$get=t=>{var i=e.__dynamic.fire("get",[t]);if(i)return i;try{return t==e.parent?e.parent.__dynamic$window:t==e.top?e.top.__dynamic$window:t==e.location||(e.Location||e.WorkerLocation)&&t instanceof(e.Location||e.WorkerLocation)?e.__dynamic$location:e.Document&&t instanceof e.Document?e.__dynamic$document:t==e?e.__dynamic$window:"function"==typeof t&&"__d$Send"==t.name?e.__dynamic$message(t.target,e):t}catch{return t}},e.__dynamic$property=e=>"string"!=typeof e?e:"location"==e?"__dynamic$location":"eval"==e?"__dynamic$eval":e,e.__dynamic$set=(t,i)=>t?e.__dynamic.url.encode(e.__dynamic.meta.href.replace(e.__dynamic.property.href,i),e.__dynamic.property):i,e.__dynamic$var=(e,t)=>window[t]=e,e.dg$=e.__dynamic$get,e.ds$=e.__dynamic$set,e.dp$=e.__dynamic$property,e.dv$=e.__dynamic$var,e.d$g_=e.__dynamic$get,e.d$s_=e.__dynamic$set,e.d$p_=e.__dynamic$property,e.d$v_=e.__dynamic$var}function yt(e){e.__dynamic.util.CreateDocumentProxy=t=>new Proxy(t,{get(i,r){let n=i[r];return"location"==r?t.defaultView?t.defaultView.__dynamic$location:e.__dynamic$location:"documentURI"==r&&t.defaultView||"baseURI"==r&&t.defaultView?t.defaultView.__dynamic.location.toString():n&&("function"==typeof n&&n.toString==e.Object.toString?new Proxy(n,{apply:(i,r,s)=>((t.defaultView&&s[0]==t.defaultView.__dynamic$document||s[0]==e.__dynamic$document)&&(s[0]=t),n.apply(t,s))}):n)},set(e,i,r){try{try{t.defaultView.__dynamic?t.defaultView.__dynamic.Reflect.set(e,i,r):e[i]=r}catch{}return r||e[i]||!0}catch{return r||e[i]||!0}}}),e.__dynamic.util.CreateWindowProxy=t=>new Proxy(t,{get(i,r){let n=e.__dynamic.Reflect.get(i,r);if(Object.getOwnPropertyDescriptor(i,r)){var s=Object.getOwnPropertyDescriptor(i,r);if(s?.configurable===!1&&s?.writable===!1&&s?.hasOwnProperty("enumerable"))return s?.value||s?.get?.call(i)}return"__dynamic$self"==r?t.window:"location"==r?t.__dynamic$location:"parent"==r?t.parent.__dynamic$window||t.parent:"top"==r?t.top.__dynamic?t.top.__dynamic$window:t.parent.__dynamic$window:"self"==r||"globalThis"==r?t.__dynamic$window:n&&("function"==typeof n&&n.toString==e.Object.toString?new Proxy(n,{apply:(e,i,r)=>Reflect.apply(e,t,r)}):n)},set(i,r,n){try{var s=Object.getOwnPropertyDescriptor(i,r);if(s?.writable===!1&&s?.enumerable===!1)return!1;if(r.constructor==e.Symbol)return Reflect.set(i,r,n),i[r];if(i.hasOwnProperty("undefined")&&i[r]+""==r)return i[r]||n||!0;if("location"==r)return t.__dynamic$location=n;if(i.hasOwnProperty(r)&&!i.propertyIsEnumerable(r)&&!s?.writable)return i[r];try{t.__dynamic?t.__dynamic.Reflect.set(i,r,n):i[r]=n}catch{}return i[r]||!0}catch{return i[r]||!0}}}),e.__dynamic.define(e,"__dynamic$window",{value:e.__dynamic.util.CreateWindowProxy(e),configurable:!1,enumerable:!1,writable:!1}),e.document&&e.__dynamic.define(e,"__dynamic$document",{value:e.__dynamic.util.CreateDocumentProxy(e.document),configurable:!1,enumerable:!1,writable:!1}),e.__dynamic$globalThis=e.__dynamic$window,e.__dynamic$self=e.__dynamic$window}function Wi(e){e.__dynamic.rewrite.dom=(t,i)=>{if(typeof e.DOMParser>"u"||!t)return t;var r=new e.DOMParser().parseFromString(t.toString(),"text/html").documentElement;return r.querySelectorAll("script").forEach(t=>{!t.type||t.type&&"text/javascript"!==t.type&&"application/javascript"!==t.type&&"application/x-javascript"!==t.type?t.src&&(t.src=e.__dynamic.url.encode(t.getAttribute("src"),i)):t.innerHTML&&(t.innerHTML=e.__dynamic.js.encode(t.innerHTML,{type:"script"},i,{}))}),r.querySelectorAll("link").forEach(t=>{t.href&&"stylesheet"!==t.getAttribute("rel")&&(t.href=e.__dynamic.url.encode(t.getAttribute("href"),i))}),r.querySelectorAll("img").forEach(t=>{t.src&&(t.src=e.__dynamic.url.encode(t.getAttribute("src"),i)),t.srcset&&(t.srcset=e.__dynamic.rewrite.srcset.encode(t.getAttribute("srcset"),e.__dynamic))}),r.querySelectorAll("a").forEach(t=>{t.href&&(t.href=e.__dynamic.url.encode(t.getAttribute("href"),i))}),r.querySelectorAll("style").forEach(t=>{t.innerHTML&&(t.innerHTML=e.__dynamic.rewrite.css.rewrite(t.innerHTML,i))}),r.outerHTML}}function qi(e){let t=e=>new DOMParser().parseFromString(e,"text/html").body.innerHTML;if(e.__dynamic.elements.config.forEach(t=>{t.elements.forEach(i=>{t.tags.forEach(r=>{var n=Object.getOwnPropertyDescriptor(i.prototype,r);n||(n=Object.getOwnPropertyDescriptor(HTMLElement.prototype,r)),typeof i.prototype.setAttribute.__dynamic$target>"u"&&(i.prototype.setAttribute=e.__dynamic.wrap(i.prototype.setAttribute,function(t,...i){return this instanceof HTMLLinkElement&&e.__dynamic$icon&&"href"==i[0].toLowerCase()&&("icon"==this.rel||"shortcut icon"==this.rel)?(i[1]=e.__dynamic$icon,Reflect.apply(t,this,i)):-1==e.__dynamic.elements.attributes.indexOf(i[0].toLowerCase())?Reflect.apply(t,this,i):"srcset"==i[0].toLowerCase()||"imagesrcset"==i[0].toLowerCase()?(this.dataset[`dynamic_${i[0]}`]=i[1],i[1]=e.__dynamic.rewrite.srcset.encode(i[1],e.__dynamic),Reflect.apply(t,this,i)):"integrity"==i[0].toLowerCase()||"nonce"==i[0].toLowerCase()?(this.dataset[`dynamic_${i[0]}`]=i[1],this.removeAttribute(i[0]),Reflect.apply(t,this,["nointegrity",i[1]])):(this.dataset[`dynamic_${i[0]}`]=i[1],i[1]=e.__dynamic.url.encode(i[1],e.__dynamic.baseURL||e.__dynamic.meta),Reflect.apply(t,this,i))},"setAttribute"),i.prototype.setAttributeNS=e.__dynamic.wrap(i.prototype.setAttributeNS,function(t,...i){return this instanceof HTMLLinkElement&&e.__dynamic$icon&&"href"==i[1].toLowerCase()&&("icon"==this.rel||"shortcut icon"==this.rel)?(i[2]=e.__dynamic$icon,Reflect.apply(t,this,i)):-1==e.__dynamic.elements.attributes.indexOf(i[1].toLowerCase())?Reflect.apply(t,this,i):"srcset"==i[1].toLowerCase()||"imagesrcset"==i[1].toLowerCase()?(this.dataset[`dynamic_${i[1]}`]=i[2],i[2]=e.__dynamic.rewrite.srcset.encode(i[2],e.__dynamic),Reflect.apply(t,this,i)):"integrity"==i[1].toLowerCase()||"nonce"==i[1].toLowerCase()?(this.dataset[`dynamic_${i[1]}`]=i[2],this.removeAttribute(i[1]),Reflect.apply(t,this,["nointegrity",i[2]])):(this.dataset[`dynamic_${i[1]}`]=i[2],i[2]=e.__dynamic.url.encode(i[2],e.__dynamic.baseURL||e.__dynamic.meta),Reflect.apply(t,this,i))},"setAttributeNS"),i.prototype.getAttribute=e.__dynamic.wrap(i.prototype.getAttribute,function(e,...t){return this.dataset[`dynamic_${t[0]}`]?this.dataset[`dynamic_${t[0]}`]:Reflect.apply(e,this,t)},"getAttribute"),i.prototype.getAttributeNS=e.__dynamic.wrap(i.prototype.getAttributeNS,function(e,...t){return this.dataset[`dynamic_${t[1]}`]?this.dataset[`dynamic_${t[1]}`]:Reflect.apply(e,this,t)},"getAttributeNS")),e.__dynamic.define(i.prototype,r,{get(){if("window"==t.action){let i=e.__dynamic.elements.contentWindow.get.call(this),s=!0;try{i.location.href}catch{s=!1}if(s&&(i.__dynamic||e.__dynamic.elements.client(i,e.__dynamic$config,decodeURIComponent(this.src))),"contentDocument"==r)return i.document;if("contentWindow"==r)return s&&i.__dynamic$window||i}if("css"==t.action)return n.get.call(this);try{return e.__dynamic.url.decode(n.get.call(this))}catch{}return n.get.call(this)},set(i){return i&&"string"==typeof i&&(i=i.toString()),"href"==r&&this instanceof HTMLLinkElement&&e.__dynamic$icon&&("icon"==this.rel||"shortcut icon"==this.rel)&&(this.dataset[`dynamic_${r}`]=i,i=e.__dynamic$icon),"html"==t.action?(Promise.resolve(e.__dynamic.createBlobHandler(new Blob([i],{type:"text/html"}),this,i)).then(e=>{this.setAttribute(r,e)}),i):("srcset"==t.action&&(i=e.__dynamic.rewrite.srcset.encode(i,e.__dynamic)),"rewrite"==t.action?(this.dataset[`dynamic_${r}`]=i,this.removeAttribute(r),this.setAttribute(t.new,i)):("css"==t.action&&(i=e.__dynamic.rewrite.css.rewrite(i,e.__dynamic.meta)),"url"==t.action&&(i=e.__dynamic.url.encode(i,e.__dynamic.baseURL||e.__dynamic.meta)),this.dataset[`dynamic_${r}`]=i,n.set.call(this,i)))}})})})}),["innerHTML","outerHTML"].forEach(i=>{e.__dynamic.define(e.HTMLElement.prototype,i,{get(){return(this["__"+i]||e.__dynamic.elements[i].get.call(this)).toString()},set(r){return this["__"+i]=t(r),this instanceof e.HTMLTextAreaElement?e.__dynamic.elements[i].set.call(this,r):this instanceof e.HTMLScriptElement?e.__dynamic.elements[i].set.call(this,e.__dynamic.rewrite.js.rewrite(r,{type:"script"})):this instanceof e.HTMLStyleElement?e.__dynamic.elements[i].set.call(this,e.__dynamic.rewrite.css.rewrite(r,e.__dynamic.meta)):e.__dynamic.elements[i].set.call(this,e.__dynamic.rewrite.dom(r,e.__dynamic.meta))}})}),["MutationObserver","ResizeObserver","IntersectionObserver"].forEach(t=>{e[t].prototype.observe=e.__dynamic.wrap(e[t].prototype.observe,function(t,...i){return i[0]==e.__dynamic$document&&(i[0]=e.document),Reflect.apply(t,this,i)},t+".prototype.observe")}),e.__dynamic.defines(e.HTMLAnchorElement.prototype,{pathname:e.__dynamic.elements.createGetter("pathname"),origin:e.__dynamic.elements.createGetter("origin"),host:e.__dynamic.elements.createGetter("host"),hostname:e.__dynamic.elements.createGetter("hostname"),port:e.__dynamic.elements.createGetter("port"),protocol:e.__dynamic.elements.createGetter("protocol"),search:e.__dynamic.elements.createGetter("search"),hash:e.__dynamic.elements.createGetter("hash"),toString:{get:function(){return this.__toString||(()=>this.href?new URL(this.href).toString():"")},set:function(e){this.__toString=e}}}),e.HTMLElement.prototype.insertAdjacentHTML=e.__dynamic.wrap(e.HTMLElement.prototype.insertAdjacentHTML,function(t,...i){return this instanceof e.HTMLStyleElement?Reflect.apply(t,this,[i[0],e.__dynamic.rewrite.css.rewrite(i[1],e.__dynamic.meta),]):this instanceof e.HTMLScriptElement?Reflect.apply(t,this,[i[0],e.__dynamic.rewrite.js.rewrite(i[1],{type:"script"},!1,e.__dynamic),]):this instanceof e.HTMLTextAreaElement?Reflect.apply(t,this,i):Reflect.apply(t,this,[i[0],e.__dynamic.rewrite.html.rewrite(i[1],e.__dynamic.meta),])},"insertAdjacentHTML"),[[e.Node,"textContent"],[e.HTMLElement,"innerText"],].forEach(([t,i])=>{var r=Object.getOwnPropertyDescriptor(t.prototype,i);function n(){return this["__"+i]||r?.get&&r.get.call(this)}e.__dynamic.define(e.HTMLStyleElement.prototype,i,{get:n,set(t){return this["__"+i]=t,r?.set&&r.set.call(this,e.__dynamic.rewrite.css.rewrite(t,e.__dynamic.meta))}}),e.__dynamic.define(e.HTMLScriptElement.prototype,i,{get:n,set(t){return this["__"+i]=t,null!==this.type||"application/javascript"!==this.type||"text/javascript"!==this.type||"application/x-javascript"!==this.type?r?.set&&r.set.call(this,t):r?.set&&r.set.call(this,e.__dynamic.rewrite.js.rewrite(t,{type:"script"},!1,e.__dynamic))}})}),e.Text.prototype.toString=function(){return this.textContent},e.document.createElement=e.__dynamic.wrap(e.document.createElement,function(e,...t){var i=Reflect.apply(e,this,t);return i.rewritten=!0,"iframe"==t[0].toLowerCase()&&(i.src="about:blank"),i},"createElement"),!document.querySelector('link[rel="icon"], link[rel="shortcut icon"]')){var i=document.createElement("link");i.rel="icon",i.href=(e.__dynamic$icon||"/favicon.ico")+"?dynamic",i.dataset.dynamic_hidden="true",document.head.appendChild(i)}e.__dynamic.define(e.Attr.prototype,"value",{get(){return this.__value||e.__dynamic.elements.attrValue.get.call(this)},set(t){return this.__value=t,"href"==this.name||"src"==this.name?e.__dynamic.elements.attrValue.set.call(this,e.__dynamic.url.encode(t,e.__dynamic.meta)):"style"==this.name?e.__dynamic.elements.attrValue.set.call(this,e.__dynamic.rewrite.css.rewrite(t,e.__dynamic.meta)):"onclick"==this.name?e.__dynamic.elements.attrValue.set.call(this,e.__dynamic.rewrite.js.rewrite(t,{type:"script"},!1,e.__dynamic)):e.__dynamic.elements.attrValue.set.call(this,t)}})}function Gi(e){let t=e.XMLHttpRequest;e.Worker=new Proxy(e.Worker,{construct(i,r){if(r[0]){if(r[0]=r[0].toString(),r[0].trim().startsWith(`blob:${e.location.origin}`)){let n=new t;n.open("GET",r[0],!1),n.send();let s=e.__dynamic.rewrite.js.rewrite(n.responseText,{type:"worker"},!0),a=new Blob([s],{type:"application/javascript"});r[0]=URL.createObjectURL(a)}else r[0]=e.__dynamic.url.encode(r[0],e.__dynamic.meta)}return Reflect.construct(i,r)}})}function zi(e){e.__dynamic$history=function(t,...i){i[2]&&(i[2]=e.__dynamic.url.encode(i[2],e.__dynamic.meta)),e.__dynamic.Reflect.apply(t,this,i),e.__dynamic.client.location(e,!0,!1)},e.History.prototype.pushState=e.__dynamic.wrap(e.History.prototype.pushState,e.__dynamic$history),e.History.prototype.replaceState=e.__dynamic.wrap(e.History.prototype.replaceState,e.__dynamic$history)}var Ks="!#$%&'*+-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`abcdefghijklmnopqrstuvwxyz|~",Xs="%";function qn(e){e=e.toString();let t="";for(let i=0;ie.location.protocol.replace("http","ws")+"//"+new URL(e.__dynamic$config.bare.path+"/v1/",new URL(location.origin)).href.replace(/http(s?):\/\//g,"").replace(/\/\//g,"/"),i=Object.getOwnPropertyDescriptor(e.WebSocket.prototype,"url");e.__dynamic.define(e.WebSocket.prototype,"url",{get(){let t=i.get.call(this);return e.__dynamic.url.decode(t)},set:e=>!1}),e.WebSocket=e.__dynamic.wrap(e.WebSocket,(i,...r)=>{console.log(r);let n=new URL(r[0]),s={remote:{host:n.hostname,port:n.port||("wss:"===n.protocol?"443":"80"),path:n.pathname+n.search,protocol:n.protocol},headers:{Host:n.hostname+(n.port?":"+n.port:""),Origin:e.__dynamic$location.origin,Pragma:"no-cache","Cache-Control":"no-cache",Upgrade:"websocket",Connection:"Upgrade"},forward_headers:["accept-encoding","accept-language","sec-websocket-extensions","sec-websocket-key","sec-websocket-version","sec-websocket-accept",]};return r[1]&&(s.headers["sec-websocket-protocol"]=r[1].toString()),[t(),["bare",qn(JSON.stringify(s))]]})}function Xi(e){e.Request=e.__dynamic.wrap(e.Request,(t,...i)=>{if(i[0]instanceof t){let r=Reflect.construct(t,i);return"navigate"===i[0].mode&&(r.mode="same-origin"),r}return i[0]&&(i[0]=e.__dynamic.url.encode(i[0],e.__dynamic.meta)),i}),e.__dynamic.define(e.Request.prototype,"url",{get(){return e.__dynamic.url.decode(e.__dynamic.http.RequestURL.get.call(this))},set:e=>e}),e.fetch=e.__dynamic.wrap(e.fetch,(t,...i)=>e.Request&&("Request"===i[0].constructor.name||i[0]instanceof e.Request)?(console.log(i[0]),Reflect.apply(t,e,i)):(i[0]&&e.__dynamic&&(i[0]=e.__dynamic.url.encode(i[0],e.__dynamic.meta)),Reflect.apply(t,e,i)),"fetch"),e.XMLHttpRequest.prototype.open=e.__dynamic.wrap(e.XMLHttpRequest.prototype.open,function(t,...i){return i[1]&&(i[1]=e.__dynamic.url.encode(i[1],e.__dynamic.meta)),!1===i[2]&&(i[2]=!0),Reflect.apply(t,this,i)},"XMLHttpRequest.prototype.open"),Object.defineProperty(e.XMLHttpRequest.prototype,"responseURL",{get(){return e.__dynamic.url.decode(e.__dynamic.http.XMLResponseURL.get.call(this))},set:e=>e}),Object.defineProperty(e.Response.prototype,"url",{get(){return e.__dynamic.url.decode(e.__dynamic.http.ResponseURL.get.call(this))},set:e=>e}),e.open=e.__dynamic.wrap(e.open,function(t,...i){""!=i[0]&&i[0]&&(i[0]=e.__dynamic.url.encode(i[0],e.__dynamic.meta)),""==i[0]&&(i[0]="about:blank");let r=Reflect.apply(t,this,i);r.opener=e.__dynamic$window;try{"about:"===new URL(i[0]).protocol?r.__dynamic$url="about:srcdoc":r.__dynamic$url=e.__dynamic.url.decode(i[0])}catch{r.__dynamic$url="about:srcdoc"}return e.__dynamic.elements.client(r,e.__dynamic$config,r.__dynamic$url),r.__dynamic$window},"window.open"),e.__dynamic.define(e,"__dynamic$import",{get:()=>(t,i)=>{try{return e.__dynamic.url.encode(t,new URL(i))}catch{return e.__dynamic.url.encode(t,e.__dynamic.meta)}},set(){}})}function gt(e){let t=t=>"Worker"==t.constructor.name||"MessagePort"==t.constructor.name||"DedicatedWorkerGlobalScope"==e.constructor.name,i=e=>"Window"==e.constructor.name||"global"==e.constructor.name,r=(e,t)=>Object.keys(window||{}).map(e=>Number.parseInt(e)).filter(e=>isFinite(e)).map(e=>window[e]).filter(e=>e||!1).find(i=>{try{return i.name==e&&i.location.href==t}catch{return!1}});e.__dynamic$message=(r,n=top)=>(r||(r=e),function s(){var a=arguments;return t(r)||!i(r)?r.postMessage.call(r,...a):(r.__dynamic$self&&(r=r.__dynamic$self),(r._postMessage||r.postMessage).call(r,[a[0],n.__dynamic$location.origin,n.location.href,n.name,n!==e,],"*",a[2]||[]))}),"Window"==e.constructor.name&&(e.addEventListener&&(e.addEventListener=new Proxy(e.addEventListener,{apply(t,i,n){if(i==e.__dynamic$window&&(i=e),!n[1]||!n[0]||"function"!=typeof n[1])return Reflect.apply(t,i,n);if("message"==n[0]){var s=n[1].bind({});n[1]=t=>s(function t(i){let n=e.__dynamic.util.clone(i),s;for(var a in i.source&&(s=r(i.data[3],i.data[2])||i.currentTarget),e.__dynamic.define(n,"isTrusted",{value:!0,writable:!1}),i.origin&&(Array.isArray(i.data)&&5==i.data.length?e.__dynamic.define(n,"origin",{value:i.data[1],writable:!1}):e.__dynamic.define(n,"origin",{value:i.origin,writable:!1})),i.data&&(Array.isArray(i.data)&&5==i.data.length?e.__dynamic.define(n,"data",{value:i.data[0],writable:!1}):e.__dynamic.define(n,"data",{value:i.data,writable:!1})),i.source&&(s?e.__dynamic.define(n,"source",{value:s?.__dynamic$window||s,writable:!0}):e.__dynamic.define(n,"source",{value:s||Array.isArray(i.data)&&3==i.data.length&&!0===i.data[2]?i.source:i.currentTarget,writable:!0})),i)"isTrusted"!==a&&"origin"!==a&&"data"!==a&&"source"!==a&&e.__dynamic.define(n,a,{value:i[a],writable:!1});return n}(t))}return Reflect.apply(t,i,n)}})),"Window"==e.constructor.name&&e.__dynamic.define(e,"onmessage",{get:()=>e._onmessage||null,set:t=>(e._onmessage&&e.removeEventListener("message",e._onmessage),e.addEventListener("message",t),e._onmessage=t)}))}function Qi(e){function t(t,...i){for(var r in i)i[r]=e.__dynamic.rewrite.dom(i[r],e.__dynamic.meta);return t.apply(this,i)}["write","writeln"].forEach(i=>{e.document[i]=e.__dynamic.wrap(e.document[i],t,`document.${i}`)})}function xt(e){e.importScripts=new Proxy(e.importScripts,{apply:(t,i,r)=>([...r].forEach((t,i)=>{r[i]=e.__dynamic.url.encode(t,e.__dynamic.meta)}),Reflect.apply(t,i,r))}),e.__dynamic.define(e.__dynamic,"_location",{value:e.location,writable:!0}),e.__dynamic.define(e.WorkerGlobalScope.prototype,"location",{get:()=>e.__dynamic.location,set:e=>e}),e.location=e.__dynamic.location}function _t(e){var t=e.Reflect.get.bind({}),i=e.Reflect.set.bind({});e.Reflect.set=e.__dynamic.wrap(e.Reflect.set,function(t,...r){return"Window"==r[0].constructor.name&&"location"==r[1]?(r[0].__dynamic$location=r[2],!0):"Location"==r[0].constructor.name?(e.__dynamic$location[r[1]]=r[2],!0):Reflect.apply(i,this,r)},"Reflect.set"),e.Reflect.get=e.__dynamic.wrap(e.Reflect.get,function(i,...r){if("object"==typeof r[0]){if("Window"==r[0].constructor.name){if("location"==r[1])return r[0].__dynamic?r[0].__dynamic$location:Reflect.apply(t,this,r);if(r[0][r[1]]&&"Window"==r[0][r[1]].constructor.name)return r[0][r[1]].__dynamic$window}if("Location"==r[0].constructor.name)return e.__dynamic$location[r[1]]}return Reflect.apply(t,this,r)},"Reflect.get"),e.__dynamic.Reflect={get:t,set:i,apply:e.Reflect.apply.bind({}),construct:e.Reflect.construct.bind({}),defineProperty:e.Reflect.defineProperty.bind({}),deleteProperty:e.Reflect.deleteProperty.bind({}),getOwnPropertyDescriptor:e.Reflect.getOwnPropertyDescriptor.bind({}),getPrototypeOf:e.Reflect.getPrototypeOf.bind({}),has:e.Reflect.has.bind({}),isExtensible:e.Reflect.isExtensible.bind({}),ownKeys:e.Reflect.ownKeys.bind({}),preventExtensions:e.Reflect.preventExtensions.bind({}),setPrototypeOf:e.Reflect.setPrototypeOf.bind({})}}function Yi(e){e.__dynamic.define(e.document,"origin",{value:e.__dynamic$location.origin,configurable:!1,enumerable:!1}),e.__dynamic.define(e.document,"domain",{value:e.__dynamic$location.hostname,configurable:!1,enumerable:!1}),["referrer","URL","documentURI"].forEach(t=>{e.__dynamic.define(e.document,t,{value:e.__dynamic$location.toString(),configurable:!1,enumerable:!1})}),[e.document,e.HTMLElement.prototype].forEach(t=>{e.__dynamic.define(t,"baseURI",{get:()=>(e.__dynamic.baseURL||e.__dynamic$location).href})}),["getEntries","getEntriesByName","getEntriesByType"].forEach(t=>{e.performance[t]=new Proxy(e.performance[t],{apply:(t,i,r)=>Reflect.apply(t,i,r).filter(t=>!t.name?.includes(e.location.origin+"/assets/history/dynamic.")).filter(t=>!t.name.includes(e.location.origin+e.__dynamic.config.prefix+"caches/")).map(t=>{if(t.name){var i=e.__dynamic.util.clone(t);for(var r in i.__defineGetter__("name",function(){return this._name}),i.__defineSetter__("name",function(e){this._name=e}),i.name=e.__dynamic.url.decode(t.name),e.__dynamic.define(i,"name",{get:void 0,set:void 0}),e.__dynamic.define(i,"name",{value:i._name,writable:!1}),delete i._name,t)if("name"!=r){if("function"==typeof t[r])var n=new Proxy(t[r],{apply(e,r,n){if("toJSON"==e.name){var s={};for(var a in i)s[a]=i[a];return s}return Reflect.apply(e,t,n)}});else var n=t[r];Object.defineProperty(i,r,{value:n,writable:!0})}t=i}return t})})}),e.MouseEvent&&(e.MouseEvent.prototype.initMouseEvent=e.__dynamic.wrap(e.MouseEvent.prototype.initMouseEvent,function(t,...i){return i.length&&(i=i.map(t=>t==e.__dynamic$window?e:t)),Reflect.apply(t,this,i)})),e.KeyboardEvent&&(e.KeyboardEvent.prototype.initKeyboardEvent=e.__dynamic.wrap(e.KeyboardEvent.prototype.initKeyboardEvent,function(t,...i){return i.length&&(i=i.map(t=>t==e.__dynamic$window?e:t)),Reflect.apply(t,this,i)})),e.StorageEvent&&(e.StorageEvent.prototype.initStorageEvent=e.__dynamic.wrap(e.StorageEvent.prototype.initStorageEvent,function(t,...i){return i.length&&(i=i.map(t=>t==e.localStorage?e.__dynamic.storage.localStorage:t==e.sessionStorage?e.__dynamic.storage.sessionStorage:t)),Reflect.apply(t,this,i)})),e.Object.defineProperty=e.__dynamic.wrap(e.Object.defineProperty,function(e,...t){try{return Reflect.apply(e,this,t)}catch(i){i.toString().includes("Cannot redefine property:")&&(t[0].__defined||(t[0].__defined={}),t[0].__defined[t[1]]=t[2])}}),"https://www.google.com"==e.__dynamic.meta.origin&&(e.setInterval=new Proxy(e.setInterval,{apply:(e,t,i)=>500==i[1]?null:Reflect.apply(e,t,i)}))}function Ji(e){e.Storage.prototype.setItem=e.__dynamic.wrap(e.Storage.prototype.setItem,function(t,...i){return i[0]&&(i[0]="__dynamic$"+e.__dynamic$location.host+"$"+i[0].toString()),Reflect.apply(t,this,i)},"Storage.prototype.setItem"),e.Storage.prototype.getItem=e.__dynamic.wrap(e.Storage.prototype.getItem,function(t,...i){return i[0]&&(i[0]="__dynamic$"+e.__dynamic$location.host+"$"+i[0].toString()),Reflect.apply(t,this,i)||null},"Storage.prototype.getItem"),e.Storage.prototype.removeItem=e.__dynamic.wrap(e.Storage.prototype.removeItem,function(t,...i){return i[0]&&(i[0]="__dynamic$"+e.__dynamic$location.host+"$"+i[0].toString()),Reflect.apply(t,this,i)},"Storage.prototype.removeItem"),e.Storage.prototype.clear=e.__dynamic.wrap(e.Storage.prototype.clear,function(t,...i){for(var r=[],n=0;n{e["__dynamic$"+t]=new Proxy(e[t],{get(i,r){if("length"==r){for(var n=[],s=0;s(e.__dynamic.storage[t].setItem("__dynamic$"+e.__dynamic$location.host+"$"+r.toString(),n),n||!0),deleteProperty:(i,r)=>e.__dynamic.storage[t].removeItem("__dynamic$"+e.__dynamic$location.host+"$"+r.toString())}),delete e[t],e[t]=e["__dynamic$"+t]})}function Zi(e){"serviceWorker"in e.navigator&&(e.__dynamic.sw=e.navigator.serviceWorker,delete e.navigator.serviceWorker,delete e.Navigator.prototype.serviceWorker),e.navigator.sendBeacon=e.__dynamic.wrap(e.navigator.sendBeacon,function(t,...i){return i[0]&&(i[0]=e.__dynamic.url.encode(i[0],e.__dynamic.meta)),Reflect.apply(t,this,i)},"navigator.sendBeacon")}var er=e=>e?e.split(";").map(e=>e.split("=")).reduce((e,t)=>(e[t[0].trim()]=t[1].trim(),e),{}):{},We=(e=[])=>e.map(e=>`${e.name}=${e.value}`).join("; ");function tr(e){if(delete e.Document.prototype.cookie,e.__dynamic.define(e.document,"cookie",{get(){return e.__dynamic.fire("getCookies",[e.__dynamic.location.host,e.__dynamic.cookie.str||"",])||(e.__dynamic.cookies.update(e.__dynamic.location.host),e.__dynamic.cookie.str||e.__dynamic.cookie.desc.get.call(this)||"")},set(t){var i=e.__dynamic.modules.setCookieParser.parse(t,{decodeValues:!1})[0],r=e.__dynamic.fire("setCookie",[e.__dynamic.location.host,t,i,]);if(r)return r;i.name=i.name.replace(/^\./g,""),Promise.resolve(e.__dynamic.cookies.set(e.__dynamic.location.host,e.__dynamic.modules.cookie.serialize(i.name,i.value,{...i,encode:e=>e}))).then(async t=>{await e.__dynamic.cookies.update(e.__dynamic.location.host),e.__dynamic.cookie.str=await e.__dynamic.cookies.get(e.__dynamic.location.host)});var n=er(e.__dynamic.cookie.str||"");n[i.name]=i.value,e.__dynamic.cookie.str=We(Object.entries(n).map(e=>({name:e[0],value:e[1]})))}}),e.navigator.serviceWorker)try{e.navigator.serviceWorker.onmessage=({data:t})=>{if(t.host==e.__dynamic.location.host&&"set-cookie"==t.type){var i=e.__dynamic.modules.cookie.parse(t.val),r=er(e.__dynamic.cookie.str||"");r[Object.entries(i)[0][0]]=Object.entries(i)[0][1],e.__dynamic.cookie.str=We(Object.entries(r).map(e=>({name:e[0],value:e[1]})))}t.host==e.__dynamic.location.host&&"cookies"==t.type&&(e.__dynamic.cookie.str=t.cookies)}}catch{}}function ir(e){e.CSSStyleDeclaration.prototype._setProperty=e.CSSStyleDeclaration.prototype.setProperty,e.CSSStyleDeclaration.prototype.setProperty=e.__dynamic.wrap(e.CSSStyleDeclaration.prototype.setProperty,function(t,...i){return("background-image"==i[0]||"background"==i[0]||"backgroundImage"==i[0])&&(i[1]=e.__dynamic.rewrite.css.rewrite(i[1],e.__dynamic.meta)),t.apply(this,i)},"CSSStyleDeclaration.prototype.setProperty"),e.__dynamic.define(e.CSSStyleDeclaration.prototype,"background",{get(){return this._background?this._background:this.getPropertyValue("background")},set(t){return this._background=t,this._setProperty("background",e.__dynamic.rewrite.css.rewrite(t,e.__dynamic.meta))}}),e.__dynamic.define(e.CSSStyleDeclaration.prototype,"backgroundImage",{get(){return this._backgroundImage?this._backgroundImage:this.getPropertyValue("background-image")},set(t){return this._backgroundImage=t,this._setProperty("background-image",e.__dynamic.rewrite.css.rewrite(t,e.__dynamic.meta))}}),e.__dynamic.define(e.CSSStyleDeclaration.prototype,"background-image",{get(){return this._backgroundImage?this._backgroundImage:this.getPropertyValue("background-image")},set(t){return this._backgroundImage=t,this._setProperty("background-image",e.__dynamic.rewrite.css.rewrite(t,e.__dynamic.meta))}})}function bt(e){e.__dynamic.createBlobHandler=async(t,i,r)=>{let n=(await e.__dynamic.sw.ready).active;e.__dynamic.sw.addEventListener("message",({data:{url:t}})=>{t&&e.__dynamic.elements.iframeSrc.set.call(i,t)},{once:!0}),n.postMessage({type:"createBlobHandler",blob:t,url:e.__dynamic.modules.base64.encode(r.toString().split("").slice(0,10)),location:e.__dynamic.location.href})}}var Gn=(e,t,i)=>((i=new MutationObserver(t=>{for(var i of t)e[i.type](i),document.dispatchEvent(new CustomEvent({attributes:"attrChanged",characterData:"characterData",childList:"nodeChanged"}[i.type],{detail:i}))})).observe(t,{subtree:!0,attributes:!0,childList:!0}),i);function wt(e,t){function i(e){if(!e.rewritten&&!(1!==e.nodeType&&3!==e.nodeType)){if((e=new Proxy(e,{get:(e,i)=>"src"==i||"href"==i||"srcset"==i||"imageSrcset"==i||"data"==i||"action"==i?t.elements.getAttribute.call(e,i.toLowerCase()):"setAttribute"==i||"getAttribute"==i||"removeAttribute"==i||"hasAttribute"==i||"cloneNode"==i||"addEventListener"==i?(...r)=>t.elements[i].call(e,...r):"node"==i?e:e[i],set:(e,i,r)=>("src"==i||"href"==i||"srcset"==i||"imageSrcset"==i||"data"==i||"action"==i?t.elements.setAttribute.call(e,i.toLowerCase(),r):e[i]=r,!0)}))instanceof HTMLScriptElement&&(e.src&&(e.dataset.dynamic_src=e.src,e.src=t.url.encode(e.src,t.meta)),e.type&&e.textContent?.length?("application/javascript"==e.type||"text/javascript"==e.type||"application/x-javascript"==e.type&&e.textContent?.length)&&(e.textContent=t.rewrite.js.rewrite(e.textContent,{type:"script"},!1,t)):!e.type&&e.textContent?.length&&(e.textContent=t.rewrite.js.rewrite(e.textContent,{type:"script"},!1,t))),e instanceof HTMLStyleElement&&e.textContent?.length&&(e.textContent=t.rewrite.css.rewrite(e.textContent,t.meta)),e instanceof HTMLIFrameElement&&(e.src&&(e.dataset.dynamic_src=e.src,e.src=t.url.encode(e.src,t.meta)),e.srcdoc)){e.dataset.dynamic_srcdoc=e.srcdoc;let i=new Blob([t.rewrite.html.rewrite(e.srcdoc,t.meta)],{type:"text/html"});e.src=URL.createObjectURL(i)}if(e instanceof HTMLLinkElement&&("stylesheet"!==e.getAttribute("rel")&&"prefetch"!==e.getAttribute("rel")&&"dns-prefetch"!==e.getAttribute("rel")?(e.href&&(e.dataset.dynamic_href=e.href,e.href=t.url.encode(e.href,t.meta)),e.imageSrcset&&(e.dataset.dynamic_imagesrcset=e.imageSrcset,e.imageSrcset=t.rewrite.srcset.encode(e.imageSrcset,t))):e.addEventListener("error",i=>{if(e instanceof HTMLLinkElement)return e.href&&(e.dataset.dynamic_href=e.href,e.href=t.url.encode(e.href,t.meta)),e.imageSrcset&&(e.dataset.dynamic_imagesrcset=e.imageSrcset,e.imageSrcset=t.rewrite.srcset.encode(e.imageSrcset,t)),i.preventDefault(),!1},{once:!0})),e instanceof HTMLAnchorElement&&e.href&&(e.dataset.dynamic_href=e.href,e.href=t.url.encode(e.href,t.meta)),e instanceof HTMLFormElement&&e.action&&(e.dataset.dynamic_action=e.action,e.action=t.url.encode(e.action,t.meta)),e instanceof HTMLObjectElement&&e.data&&(e.dataset.dynamic_data=e.data,e.data=t.url.encode(e.data,t.meta)),e instanceof HTMLSourceElement&&(e.src&&(e.dataset.dynamic_src=e.src,e.src=t.url.encode(e.src,t.meta)),e.srcset&&(e.dataset.dynamic_srcset=e.srcset,e.srcset=t.rewrite.srcset.encode(e.srcset,t))),e instanceof HTMLImageElement&&(e.src&&(e.dataset.dynamic_src=e.src,e.src=t.url.encode(e.src,t.meta)),e.srcset&&(e.dataset.dynamic_srcset=e.srcset,e.srcset=t.rewrite.srcset.encode(e.srcset,t))),e instanceof HTMLAreaElement&&e.href&&(e.dataset.dynamic_href=e.href,e.href=t.url.encode(e.href,t.meta)),e instanceof HTMLBaseElement&&e.href&&(e.dataset.dynamic_href=e.href,e.href=t.url.encode(e.href,t.meta)),e instanceof HTMLInputElement&&e.src&&(e.dataset.dynamic_src=e.src,e.src=t.url.encode(e.src,t.meta)),e instanceof HTMLAudioElement&&e.src&&(e.dataset.dynamic_src=e.src,e.src=t.url.encode(e.src,t.meta)),e instanceof HTMLVideoElement&&e.src&&(e.dataset.dynamic_src=e.src,e.src=t.url.encode(e.src,t.meta)),e instanceof HTMLTrackElement&&e.src&&(e.dataset.dynamic_src=e.src,e.src=t.url.encode(e.src,t.meta)),e instanceof HTMLMediaElement&&e.src&&(e.dataset.dynamic_src=e.src,e.src=t.url.encode(e.src,t.meta)),e instanceof HTMLMetaElement&&e.httpEquiv){if("refresh"==e.httpEquiv.toLowerCase()){var r=e.content.split(";url=")[0],n=e.content.split(";url=")[1];e.content=`${r};url=${t.url.encode(n,t.meta)}`}"content-security-policy"==e.httpEquiv.toLowerCase()&&e.remove()}return e instanceof HTMLElement&&(e.getAttribute("style")&&e.setAttribute("style",t.rewrite.css.rewrite(e.getAttribute("style"),t.meta)),e.integrity&&(e.setAttribute("nointegrity",e.integrity),e.removeAttribute("integrity")),e.nonce&&(e.setAttribute("nononce",e.nonce),e.removeAttribute("nonce"))),e.rewritten=!0}}t||(t=e.__dynamic);let r=Gn({childList(e){for(let t of(i(e.target),e.addedNodes))if(t.childNodes)for(let r of t.childNodes)i(r);if(e.target.childNodes)for(var n of e.target.childNodes)i(n)},attributes(e){},characterData(e){}},e.document);e.document.addEventListener("DOMContentLoaded",()=>{r.disconnect()},{once:!0})}function rr(e){e.__dynamic.eval=e.__dynamic.wrap(eval,function(t,...i){if(i.length){var r=i[0].toString();return r=e.__dynamic.rewrite.js.rewrite(r,{type:"script"},!1,e.__dynamic),t.apply(this,[r])}},"eval"),e.__dynamic.define(e.Object.prototype,"__dynamic$eval",{get(){return this===window?e.__dynamic.eval:this.eval},set:e=>e}),e.__dynamic$wrapEval=t=>arguments.length?e.__dynamic.fire("eval",[e,t])||(t=e.__dynamic.rewrite.js.rewrite(t,{type:"script"},!1,e.__dynamic)):arguments[0]}function nr(e){var t=e.Function.prototype.toString;e.__dynamic.Function=e.Function.bind({}),e.__dynamic.define(e.Function.prototype,"_toString",{get:()=>t,set(){}});var i=function(){try{var e=Reflect.apply(t,this,[])}catch{return`function ${this.name}() { [native code] }`}return e.includes("[native code]")?`function ${this.name}() { [native code] }`:e};e.__dynamic.define(e.Function.prototype,"toString",{get(){return this.__toString||i},set(e){this.__toString=e}}),e.Function=new Proxy(e.Function,{apply(t,i,r){var n=[...r],s=n.pop();return s=`(function anonymous(${n.toString()}) {${s}})`,s=e.__dynamic.rewrite.js.rewrite(s,{type:"script"},!1,e.__dynamic),e.eval(s)},construct(t,i){var r=[...i],n=r.pop();return n=`(function anonymous(${r.toString()}) {${n}})`,n=e.__dynamic.rewrite.js.rewrite(n,{type:"script"},!1,e.__dynamic),e.eval(n)}}),e.Function.prototype.apply=e.__dynamic.wrap(e.Function.prototype.apply,function(t,...i){return i[0]==e.__dynamic$window&&(i[0]=i[0].__dynamic$self),i[0]==e.__dynamic$document&&(i[0]=e.document),Reflect.apply(t,this,i)},"Function.prototype.apply"),e.Function.prototype.call=new Proxy(e.Function.prototype.call,{apply:(t,i,r)=>(r[0]==e.__dynamic$window&&(r[0]=r[0].__dynamic$self),r[0]==e.__dynamic$document&&(r[0]=e.document),Reflect.apply(t,i,r))}),e.Function.prototype.bind=e.__dynamic.wrap(e.Function.prototype.bind,function(t,...i){return i[0]==e.__dynamic$window&&(i[0]=i[0].__dynamic$self),i[0]==e.__dynamic$document&&(i[0]=e.document),t.apply(this,i)},"Function.prototype.bind")}function ar(e){}function sr(e){}var zn,qe=class{constructor(e){this.methods=[{name:"get",function:"self"},{name:"func",function:"self"},{name:"location",function:"self"},{name:"mutation",function:"self"},{name:"dom",function:"self"},{name:"write",function:"self"},{name:"message",function:"self"},{name:"reflect",function:"self"},{name:"window",function:"self"},{name:"eval",function:"self"},{name:"attr",function:"self"},{name:"policy",function:"self"},{name:"worker",function:"self"},{name:"history",function:"self"},{name:"ws",function:"self"},{name:"cookie",function:"self"},{name:"fetch",function:"self"},{name:"niche",function:"self"},{name:"storage",function:"self"},{name:"style",function:"self"},{name:"rtc",function:"self"},{name:"blob",function:"self"},{name:"navigator",function:"self"},],"DedicatedWorkerGlobalScope"==self.constructor.name||"SharedWorkerGlobalScope"==self.constructor.name?(this.message=gt,this.location=dt,this.window=yt,this.get=mt,this.reflect=_t,this.imports=xt,this.blob=bt,this.mutation=wt):(this.location=dt,this.get=mt,this.window=yt,this.attr=qi,this.worker=Gi,this.history=zi,this.ws=Ki,this.fetch=Xi,this.message=gt,this.policy=ar,this.write=Qi,this.imports=xt,this.reflect=_t,this.niche=Yi,this.storage=Ji,this.navigator=Zi,this.cookie=tr,this.style=ir,this.blob=bt,this.mutation=wt,this.eval=rr,this.func=nr,this.rtc=sr,this.dom=Wi),this.ctx=e}};function Qs(e,t){return e||(e=[]),e.find(e=>e.name==t.name)?e[e.findIndex(e=>e.name==t.name)]={name:t.name,value:t.value,expires:t.expires}:e.push({name:t.name,value:t.value,expires:t.expires}),e}var he={open:async()=>Bt("__dynamic$cookies",1,{async upgrade(e){await e.createObjectStore("__dynamic$cookies")}}),set:async(e,t,i)=>(t.domain&&(e=t.domain),e.startsWith(".")&&(e=e.slice(1)),t.expires&&new Date(t.expires)e.name==s&&e.value==a&&e.expires==o),t);continue}r.find(e=>e.name==s&&e.value==a)||r.push({name:s,value:a,expires:o||new Date(1e13)})}}return r},async remove(e,t,i){t.domain&&(e=t.domain),e.startsWith(".")&&(e=e.slice(1));var r=await (await i).get("__dynamic$cookies",e);return!!r&&(await (await i).put("__dynamic$cookies",r=r.filter(e=>e.name!==t.name),e),!0)},async update(e,t){var i=await (await t).get("__dynamic$cookies",e.replace(/^(.*\.)?([^.]*\..*)$/g,"$2"));if(i){for(var{name:r,value:n,expires:s}of i)if(s&&new Date(s)<=new Date){he.remove(e,{name:r,value:n,expires:s},t);continue}}return i}},Ge=class{constructor(e){this.db=he,this.ctx=e}async get(e){this._db||(this._db=this.db.open());let t=await he.get(e,this._db);return We(t)}async set(e,t=""){return t=this.ctx.modules.setCookieParser.parse(t,{decodeValues:!1})[0],this._db||(this._db=this.db.open()),await he.set(e,t,this._db)}async open(){await he.open()}async update(e){return this._db||(this._db=this.db.open()),await he.update(e,this._db)}},lr={};dr(lr,{aes:()=>po,base64:()=>mo,none:()=>fo,plain:()=>ho,xor:()=>lo});var xe=14,ne=8,ze=!1,Ys=e=>{try{return unescape(encodeURIComponent(e))}catch{throw"Error on UTF-8 encode"}},Js=e=>{try{return decodeURIComponent(escape(e))}catch{throw"Bad Key"}},Zs=e=>{var t,i,r=[];for(e.length<16&&(r=[t=16-e.length,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t]),i=0;i{var i,r,n="";if(t){if((i=e[15])>16)throw"Decryption error: Maybe bad key";if(16===i)return"";for(r=0;r<16-i;r++)n+=String.fromCharCode(e[r])}else for(r=0;r<16;r++)n+=String.fromCharCode(e[r]);return n},or=(e,t)=>{var i,r=[];for(t||(e=Ys(e)),i=0;i{var t,i=[];for(t=0;t{var i,r=xe>=12?3:2,n=[],s=[],a=[],o=[],c=e.concat(t);for(a[0]=Qn(c),o=a[0],i=1;i{t=ta(t);var r,n=Math.ceil(e.length/16),s=[],a=[];for(r=0;r{t=ta(t);var n,s=e.length/16,a=[],o=[],c="";for(n=0;n=0;n--)o[n]=no(a[n],t),o[n]=0===n?Pt(o[n],i):Pt(o[n],a[n-1]);for(n=0;n{ze=!1;var i,r=Lt(e,t,0);for(i=1;i{ze=!0;var i,r=Lt(e,t,xe);for(i=xe-1;i>-1;i--)r=Zn(r),r=Jn(r),r=Lt(r,t,i),i>0&&(r=ea(r));return r},Jn=e=>{var t,i=ze?co:ur,r=[];for(t=0;t<16;t++)r[t]=i[e[t]];return r},Zn=e=>{var t,i=[],r=ze?[0,13,10,7,4,1,14,11,8,5,2,15,12,9,6,3]:[0,5,10,15,4,9,14,3,8,13,2,7,12,1,6,11];for(t=0;t<16;t++)i[t]=e[r[t]];return i},ea=e=>{var t,i=[];if(ze)for(t=0;t<4;t++)i[4*t]=At[e[4*t]]^Ct[e[1+4*t]]^kt[e[2+4*t]]^Et[e[3+4*t]],i[1+4*t]=Et[e[4*t]]^At[e[1+4*t]]^Ct[e[2+4*t]]^kt[e[3+4*t]],i[2+4*t]=kt[e[4*t]]^Et[e[1+4*t]]^At[e[2+4*t]]^Ct[e[3+4*t]],i[3+4*t]=Ct[e[4*t]]^kt[e[1+4*t]]^Et[e[2+4*t]]^At[e[3+4*t]];else for(t=0;t<4;t++)i[4*t]=vt[e[4*t]]^St[e[1+4*t]]^e[2+4*t]^e[3+4*t],i[1+4*t]=e[4*t]^vt[e[1+4*t]]^St[e[2+4*t]]^e[3+4*t],i[2+4*t]=e[4*t]^e[1+4*t]^vt[e[2+4*t]]^St[e[3+4*t]],i[3+4*t]=St[e[4*t]]^e[1+4*t]^e[2+4*t]^vt[e[3+4*t]];return i},Lt=(e,t,i)=>{var r,n=[];for(r=0;r<16;r++)n[r]=e[r]^t[i][r];return n},Pt=(e,t)=>{var i,r=[];for(i=0;i<16;i++)r[i]=e[i]^t[i];return r},ta=e=>{var t,i,r,n,s=[],a=[],o=[];for(t=0;t6&&t%ne==4&&(a=Xn(a)),r=0;r<4;r++)s[t][r]=s[t-ne][r]^a[r]}for(t=0;t{for(var t=0;t<4;t++)e[t]=ur[e[t]];return e},ao=e=>{var t,i=e[0];for(t=0;t<3;t++)e[t]=e[t+1];return e[3]=i,e},cr=(e,t)=>{var i,r=[];for(i=0;i{var t,i=[];for(t=0;t{var i,r;for(r=0,i=0;i<8;i++)r=(1&t)==1?r^e:r,e=e>127?283^e<<1:e<<1,t>>>=1;return r},Ae=e=>{var t,i=[];for(t=0;t<256;t++)i[t]=oo(e,t);return i},ur=cr("637c777bf26b6fc53001672bfed7ab76ca82c97dfa5947f0add4a2af9ca472c0b7fd9326363ff7cc34a5e5f171d8311504c723c31896059a071280e2eb27b27509832c1a1b6e5aa0523bd6b329e32f8453d100ed20fcb15b6acbbe394a4c58cfd0efaafb434d338545f9027f503c9fa851a3408f929d38f5bcb6da2110fff3d2cd0c13ec5f974417c4a77e3d645d197360814fdc222a908846eeb814de5e0bdbe0323a0a4906245cc2d3ac629195e479e7c8376d8dd54ea96c56f4ea657aae08ba78252e1ca6b4c6e8dd741f4bbd8b8a703eb5664803f60e613557b986c11d9ee1f8981169d98e949b1e87e9ce5528df8ca1890dbfe6426841992d0fb054bb16",2),co=so(ur),uo=cr("01020408102040801b366cd8ab4d9a2f5ebc63c697356ad4b37dfaefc591",2),vt=Ae(2),St=Ae(3),Et=Ae(9),Ct=Ae(11),kt=Ae(13),At=Ae(14),ia=(e,t,i)=>{var r,n=eo(8),s=Yn(or(t,i),n),a=s.key,o=s.iv,c=[[83,97,108,116,101,100,95,95].concat(n)];return e=or(e,i),r=c.concat(r=to(e,a,o)),na.encode(r)},ra=(e,t,i)=>{var r=na.decode(e),n=r.slice(8,16),s=Yn(or(t,i),n),a=s.key,o=s.iv;return e=io(r=r.slice(16,r.length),a,o,i)},Qn=e=>{function t(e,t){return e<>>32-t}function i(e,t){var i,r,n,s,a;return n=2147483648&e,s=2147483648&t,i=1073741824&e,r=1073741824&t,a=(1073741823&e)+(1073741823&t),i&r?2147483648^a^n^s:i|r?1073741824&a?3221225472^a^n^s:1073741824^a^n^s:a^n^s}function r(e,t,i){return e&t|~e&i}function n(e,t,i){return e&i|t&~i}function s(e,t,i){return e^t^i}function a(e,t,i){return t^(e|~i)}function o(e,n,s,a,o,c,u){return e=i(e,i(i(r(n,s,a),o),u)),i(t(e,c),n)}function c(e,r,s,a,o,c,u){return e=i(e,i(i(n(r,s,a),o),u)),i(t(e,c),r)}function u(e,r,n,a,o,c,u){return e=i(e,i(i(s(r,n,a),o),u)),i(t(e,c),r)}function l(e,r,n,s,o,c,u){return e=i(e,i(i(a(r,n,s),o),u)),i(t(e,c),r)}function h(e){for(var t,i=e.length,r=i+8,n=((r-r%64)/64+1)*16,s=[],a=0,o=0;o>>29,s}function p(e){var t,i,r=[];for(i=0;i<=3;i++)t=e>>>8*i&255,r=r.concat(t);return r}var d,m,f,$,y,_,g,x,v,w=[],b=cr("67452301efcdab8998badcfe10325476d76aa478e8c7b756242070dbc1bdceeef57c0faf4787c62aa8304613fd469501698098d88b44f7afffff5bb1895cd7be6b901122fd987193a679438e49b40821f61e2562c040b340265e5a51e9b6c7aad62f105d02441453d8a1e681e7d3fbc821e1cde6c33707d6f4d50d87455a14eda9e3e905fcefa3f8676f02d98d2a4c8afffa39428771f6816d9d6122fde5380ca4beea444bdecfa9f6bb4b60bebfbc70289b7ec6eaa127fad4ef308504881d05d9d4d039e6db99e51fa27cf8c4ac5665f4292244432aff97ab9423a7fc93a039655b59c38f0ccc92ffeff47d85845dd16fa87e4ffe2ce6e0a30143144e0811a1f7537e82bd3af2352ad7d2bbeb86d391",8);for(w=h(e),_=b[0],g=b[1],x=b[2],v=b[3],d=0;d{var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=e.split(""),i=(e,i)=>{var r,n,s=[],a="",o=Math.floor(16*e.length/3);for(r=0;r<16*e.length;r++)s.push(e[Math.floor(r/16)][r%16]);for(r=0;r>2],a+=t[(3&s[r])<<4|s[r+1]>>4],void 0!==s[r+1]?a+=t[(15&s[r+1])<<2|s[r+2]>>6]:a+="=",void 0!==s[r+2]?a+=t[63&s[r+2]]:a+="=";for(n=a.slice(0,64)+`
`,r=1;r{t=t.replace(/\n/g,"");var i,r=[],n=[],s=[];for(i=0;i>4,s[1]=(15&n[1])<<4|n[2]>>2,s[2]=(3&n[2])<<6|n[3],r.push(s[0],s[1],s[2]);return r.slice(0,r.length-r.length%16)};return"function"==typeof Array.indexOf&&(e=t),{encode:i,decode:r}})(),lo={encode:(e,t=2)=>e&&encodeURIComponent(e.split("").map((e,i)=>i%t?String.fromCharCode(e.charCodeAt(0)^t):e).join("")),decode:(e,t=2)=>e&&decodeURIComponent(e).split("").map((e,i)=>i%t?String.fromCharCode(e.charCodeAt(0)^t):e).join("")},ho={encode:e=>e&&encodeURIComponent(e),decode:e=>e&&decodeURIComponent(e)},po={encode:e=>e&&encodeURIComponent(ia(e,"dynamic").substring(10)),decode:e=>e&&ra("U2FsdGVkX1"+decodeURIComponent(e),"dynamic")},fo={encode:e=>e,decode:e=>e},mo={encode:e=>e&&decodeURIComponent(btoa(e)),decode:e=>e&&atob(e)},Rt=class{constructor(e){this.modules=new Mn(this),this.util=new $n(this),this.meta=new Un(this),this.regex=new Ue(this),this.rewrite=new Vn(this),this.url=new jn(this),this.is=new Wn(this),this.cookies=new Ge(this),this.client=new qe(this),this.encoding=lr,this.headers=Hn,this.listeners=[],e&&!this.config&&(this.config=e),e&&this.util.encode(self)}on(e,t){this.listeners.push({event:e,cb:t})}fire(e,t){let i=!1;for(let r of this.listeners)r.event===e&&(t=(i=!0,r.cb(...t)));return i&&t?t:null}};function hr(e,t){t||(t=e.__dynamic),t.define=new e.Proxy(e.Object.defineProperty,{apply(e,t,i){try{return Reflect.apply(e,t,i)}catch{return i[2]}}}),t.defines=new e.Proxy(e.Object.defineProperties,{apply(e,t,i){try{return Reflect.apply(e,t,i)}catch{return i[1]}}}),e.parent&&(t.parent=e.parent),e.top&&(t.top=e.top),e.document&&(t.elements={attributes:["src","href","srcset","action","data","integrity","nonce","imagesrcset",],iframeSrc:Object.getOwnPropertyDescriptor(e.HTMLIFrameElement.prototype,"src"),contentWindow:Object.getOwnPropertyDescriptor(e.HTMLIFrameElement.prototype,"contentWindow"),innerHTML:Object.getOwnPropertyDescriptor(e.Element.prototype,"innerHTML"),outerHTML:Object.getOwnPropertyDescriptor(e.Element.prototype,"outerHTML"),attrValue:Object.getOwnPropertyDescriptor(e.Attr.prototype,"value"),setAttribute:e.Element.prototype.setAttribute,getAttribute:e.Element.prototype.getAttribute,removeAttribute:e.Element.prototype.removeAttribute,hasAttribute:e.Element.prototype.hasAttribute,cloneNode:e.Node.prototype.cloneNode,addEventListener:e.Node.prototype.addEventListener,config:[{elements:[e.HTMLScriptElement,e.HTMLIFrameElement,e.HTMLEmbedElement,e.HTMLInputElement,e.HTMLTrackElement,e.HTMLMediaElement,e.HTMLSourceElement,e.Image,e.HTMLImageElement,],tags:["src"],action:"url"},{elements:[e.HTMLSourceElement,e.HTMLImageElement],tags:["srcset"],action:"srcset"},{elements:[e.HTMLAnchorElement,e.HTMLLinkElement,e.HTMLAreaElement,e.SVGImageElement,e.HTMLBaseElement,],tags:["href"],action:"url"},{elements:[e.HTMLIFrameElement],tags:["contentWindow","contentDocument"],action:"window"},{elements:[e.HTMLFormElement],tags:["action"],action:"url"},{elements:[e.HTMLObjectElement],tags:["data"],action:"url"},{elements:[e.HTMLScriptElement,e.HTMLLinkElement],tags:["integrity"],action:"rewrite",new:"nointegrity"},{elements:[e.HTMLScriptElement,e.HTMLLinkElement],tags:["nonce"],action:"rewrite",new:"nononce"},{elements:[e.HTMLIFrameElement],tags:["srcdoc"],action:"html"},{elements:[e.HTMLElement],tags:["style"],action:"css"},{elements:[e.HTMLLinkElement],tags:["imageSrcset"],action:"srcset"},],createGetter:t=>({get(){return new URL(this.href||e.__dynamic$location.href)[t]},set(e){}}),client:It},e.__dynamic.baseURL=e.document?new URL(e.__dynamic.url.decode(e.document.baseURI)):null),e.document&&(t.cookie={str:e.__dynamic$cookie||"",desc:Object.getOwnPropertyDescriptor(e.Document.prototype,"cookie")}),e.XMLHttpRequest&&(t.http={XMLResponseURL:Object.getOwnPropertyDescriptor(e.XMLHttpRequest.prototype,"responseURL"),ResponseURL:Object.getOwnPropertyDescriptor(e.Response.prototype,"url"),RequestURL:Object.getOwnPropertyDescriptor(e.Request.prototype,"url"),XMLHttpRequest:e.XMLHttpRequest}),e.Storage&&(t.storage={localStorage:e.localStorage,sessionStorage:e.sessionStorage,keys:{localStorage:Object.keys(e.localStorage),sessionStorage:Object.keys(e.sessionStorage)},methods:["getItem","setItem","removeItem","clear","length","keys","values","entries","forEach","hasOwnProperty","toString","toLocaleString","valueOf","isPrototypeOf","propertyIsEnumerable","constructor","key",]},t.storage.cloned={localStorage:t.util.clone(t.storage.localStorage),sessionStorage:t.util.clone(t.storage.sessionStorage)}),e.RTCPeerConnection&&(t.webrtc={endpoints:["stun:stun.webice.org"]}),e.trustedTypes&&(t.trustedTypes={policy:e.trustedTypes.createPolicy("dynamic",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e,createURL:e=>e}),createScript:e.TrustedTypePolicy.prototype.createScript}),e.__dynamic$config.tab&&(e.document&&e.__dynamic$config.tab.title&&(document.title=e.__dynamic$config.tab.title,t.define(e.document,"title",{get:()=>e.__dynamic$config.tab.title,set:e=>e})),e.__dynamic$config.tab.icon&&(e.__dynamic$icon=e.__dynamic$config.tab.icon),e.Navigator&&e.__dynamic$config.tab.ua&&t.define(e.navigator,"userAgent",{get:()=>e.__dynamic$config.tab.ua,set(){}}))}function pr(e){e.__dynamic.wrap=(t,i,r)=>{if(t.__dynamic$target)return t;if(t.toString().includes("{ [native code] }")&&!t.prototype){var n=i,s=t,a=function(...t){if("string"==typeof r){var i=e.__dynamic.fire(r,this?[this,...t]:t);if(i)return i}return n.call(this,s,...t)},o=function(...e){return a.call(this,...e)};return e.__dynamic.define(o,"name",{value:t.name,writable:!1}),o.__dynamic$target=t,o.toString=()=>`function ${t.name}() { [native code] }`,o}try{let c=class extends t{constructor(...e){var n=[...e],s=i.call(t,t,...e);s&&(e=s),super(...e),r&&r(this,n)}};return Object.defineProperty(c,"name",{value:t.name,writable:!1}),c}catch{return t}}}function It(e,t={},i=""){if(e.hasOwnProperty("__dynamic"))return!1;e.hasOwnProperty("__dynamic$config")||(e.__dynamic$config=t),e.parent?.__dynamic&&(e.__dynamic$bare=e.parent.__dynamic$bare);let r=new Rt(e.__dynamic$config);for(var n of(r.config.bare.path="string"==typeof r.config.bare.path||r.config.bare.path instanceof URL?new URL(r.config.bare.path,e.location):r.config.bare.path.map(t=>new URL(t,e.location)),e.__dynamic$baseURL=i||e.__dynamic$url||r.url.decode(location.pathname+location.search+location.hash)||"",e.__dynamic=r,e.__dynamic.bare=new e.__dynamic.modules.bare.BareClient(e.__dynamic$config.bare.path,e.__dynamic$bare),e.__dynamic.meta.load(new URL(e.__dynamic$baseURL)),hr(e,null),pr(e),e.__dynamic.client.methods)){let s=n.name,a=Object.entries(e.__dynamic.client).find(e=>e[0]==s);"mutation"==s&&e.frameElement||"self"==n.function&&a[1](e)}return e}var Fl=It(self)})(); /*! Bundled license information:
cookie/index.js:
(*!
* cookie
* Copyright(c) 2012-2014 Roman Shtylman
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
*/
================================================
FILE: static/assets/history/config.js
================================================
self.__dynamic$config = {
prefix: "/a/q/",
encoding: "xor",
mode: "production",
logLevel: 0,
bare: {
version: 2,
path: "/ca/",
},
tab: {
title: null,
icon: null,
ua: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.3",
},
assets: {
prefix: "/assets/history/",
files: {
handler: "handler.js?v=2025-04-15",
client: "client.js?v=12",
worker: "worker.js?v=12",
config: "config.js?v=2025-04-15",
inject: "",
},
},
block: [],
};
================================================
FILE: static/assets/history/handler.js
================================================
"use strict";(()=>{var aa=Object.create,Je=Object.defineProperty,sa=Object.getOwnPropertyDescriptor,oa=Object.getOwnPropertyNames,ca=Object.getPrototypeOf,ua=Object.prototype.hasOwnProperty,la=(e,t,i)=>t in e?Je(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Nt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),fr=(e,t)=>{for(var i in t)Je(e,i,{get:t[i],enumerable:!0})},ha=(e,t,i,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of oa(t))!ua.call(e,n)&&n!==i&&Je(e,n,{get:()=>t[n],enumerable:!(r=sa(t,n))||r.enumerable});return e},Ze=(e,t,i)=>(i=null!=e?aa(ca(e)):{},ha(!t&&e&&e.__esModule?i:Je(i,"default",{value:e,enumerable:!0}),e)),q=(e,t,i)=>(la(e,"symbol"!=typeof t?t+"":t,i),i),Mt=Nt(((e,t)=>{function i(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var i,r="",n=0,s=-1,a=0,o=0;o<=e.length;++o){if(o2){var c=r.lastIndexOf("/");if(c!==r.length-1){-1===c?(r="",n=0):n=(r=r.slice(0,c)).length-1-r.lastIndexOf("/"),s=o,a=0;continue}}else if(2===r.length||1===r.length){r="",n=0,s=o,a=0;continue}t&&(r.length>0?r+="/..":r="..",n=2)}else r.length>0?r+="/"+e.slice(s+1,o):r=e.slice(s+1,o),n=o-s-1;s=o,a=0}else 46===i&&-1!==a?++a:a=-1}return r}var n={resolve:function(){for(var e,t="",n=!1,s=arguments.length-1;s>=-1&&!n;s--){var a;s>=0?a=arguments[s]:(void 0===e&&(e=process.cwd()),a=e),i(a),0!==a.length&&(t=a+"/"+t,n=47===a.charCodeAt(0))}return t=r(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(i(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0===(e=r(e,!t)).length&&!t&&(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return i(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":n.normalize(e)},relative:function(e,t){if(i(e),i(t),e===t||(e=n.resolve(e))===(t=n.resolve(t)))return"";for(var r=1;rl){if(47===t.charCodeAt(o+h))return t.slice(o+h+1);if(0===h)return t.slice(o+h)}else a>l&&(47===e.charCodeAt(r+h)?p=h:0===h&&(p=0));break}var u=e.charCodeAt(r+h);if(u!==t.charCodeAt(o+h))break;47===u&&(p=h)}var d="";for(h=r+p+1;h<=s;++h)(h===s||47===e.charCodeAt(h))&&(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(o+p):(o+=p,47===t.charCodeAt(o)&&++o,t.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(i(e),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,s=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!s){n=a;break}}else s=!1;return-1===n?r?"/":".":r&&1===n?"//":e.slice(0,n)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');i(e);var r,n=0,s=-1,a=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var o=t.length-1,c=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(47===l){if(!a){n=r+1;break}}else-1===c&&(a=!1,c=r+1),o>=0&&(l===t.charCodeAt(o)?-1==--o&&(s=r):(o=-1,s=c))}return n===s?s=c:-1===s&&(s=e.length),e.slice(n,s)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){n=r+1;break}}else-1===s&&(a=!1,s=r+1);return-1===s?"":e.slice(n,s)},extname:function(e){i(e);for(var t=-1,r=0,n=-1,s=!0,a=0,o=e.length-1;o>=0;--o){var c=e.charCodeAt(o);if(47!==c)-1===n&&(s=!1,n=o+1),46===c?-1===t?t=o:1!==a&&(a=1):-1!==t&&(a=-1);else if(!s){r=o+1;break}}return-1===t||-1===n||0===a||1===a&&t===n-1&&t===r+1?"":e.slice(t,n)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var i=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return i?i===t.root?i+r:i+e+r:r}("/",e)},parse:function(e){i(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var r,n=e.charCodeAt(0),s=47===n;s?(t.root="/",r=1):r=0;for(var a=-1,o=0,c=-1,l=!0,p=e.length-1,h=0;p>=r;--p)if(47!==(n=e.charCodeAt(p)))-1===c&&(l=!1,c=p+1),46===n?-1===a?a=p:1!==h&&(h=1):-1!==a&&(h=-1);else if(!l){o=p+1;break}return-1===a||-1===c||0===h||1===h&&a===c-1&&a===o+1?-1!==c&&(t.base=t.name=0===o&&s?e.slice(1,c):e.slice(o,c)):(0===o&&s?(t.name=e.slice(1,a),t.base=e.slice(1,c)):(t.name=e.slice(o,a),t.base=e.slice(o,c)),t.ext=e.slice(a,c)),o>0?t.dir=e.slice(0,o-1):s&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,t.exports=n})),wn=Nt((e=>{e.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var i={},n=(t||{}).decode||r,a=0;a{var i={decodeValues:!0,map:!1,silent:!1};function r(e){return"string"==typeof e&&!!e.trim()}function n(e,t){var n=e.split(";").filter(r),s=function(e){var t="",i="",r=e.split("=");return r.length>1?(t=r.shift(),i=r.join("=")):i=e,{name:t,value:i}}(n.shift()),a=s.name,o=s.value;t=t?Object.assign({},i,t):i;try{o=t.decodeValues?decodeURIComponent(o):o}catch(e){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+o+"'. Set options.decodeValues to false to disable this feature.",e)}var c={name:a,value:o};return n.forEach((function(e){var t=e.split("="),i=t.shift().trimLeft().toLowerCase(),r=t.join("=");"expires"===i?c.expires=new Date(r):"max-age"===i?c.maxAge=parseInt(r,10):"secure"===i?c.secure=!0:"httponly"===i?c.httpOnly=!0:"samesite"===i?c.sameSite=r:c[i]=r})),c}function s(e,t){if(t=t?Object.assign({},i,t):i,!e)return t.map?{}:[];if(e.headers)if("function"==typeof e.headers.getSetCookie)e=e.headers.getSetCookie();else if(e.headers["set-cookie"])e=e.headers["set-cookie"];else{var s=e.headers[Object.keys(e.headers).find((function(e){return"set-cookie"===e.toLowerCase()}))];!s&&e.headers.cookie&&!t.silent&&console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),e=s}if(Array.isArray(e)||(e=[e]),(t=t?Object.assign({},i,t):i).map){return e.filter(r).reduce((function(e,i){var r=n(i,t);return e[r.name]=r,e}),{})}return e.filter(r).map((function(e){return n(e,t)}))}t.exports=s,t.exports.parse=s,t.exports.parseString=n,t.exports.splitCookiesString=function(e){if(Array.isArray(e))return e;if("string"!=typeof e)return[];var t,i,r,n,s,a=[],o=0;function c(){for(;o=e.length)&&a.push(e.substring(t,e.length))}return a}})),gr=Ze(Mt()),et={"application/ecmascript":{source:"apache",compressible:!0,extensions:["ecma"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/http":{source:"iana"},"application/javascript":{source:"apache",charset:"UTF-8",compressible:!0,extensions:["js"]},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/mp4":{source:"iana",extensions:["mp4","mpg4","mp4s","m4p"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/sql":{source:"iana",extensions:["sql"]},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-gzip":{source:"apache"},"application/x-javascript":{compressible:!0},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/red":{source:"iana"},"audio/rtx":{source:"iana"},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/webp":{source:"iana",extensions:["webp"]},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/ecmascript":{source:"apache"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"text/markdown":{source:"iana",compressible:!0,extensions:["md","markdown"]}},xr=/^\s*([^;\s]*)(?:;|\s|$)/,fa=/^text\//i,U={};function yr(e){if(!e||"string"!=typeof e)return!1;var t=xr.exec(e),i=t&&et[t[1].toLowerCase()];return i&&i.charset?i.charset:!(!t||!fa.test(t[1]))&&"UTF-8"}function da(e){if(!e||"string"!=typeof e)return!1;var t=-1===e.indexOf("/")?U.lookup(e):e;if(!t)return!1;if(-1===t.indexOf("charset")){var i=U.charset(t);i&&(t+="; charset="+i.toLowerCase())}return t}function ma(e){if(!e||"string"!=typeof e)return!1;var t=xr.exec(e),i=t&&U.extensions[t[1].toLowerCase()];return!(!i||!i.length)&&i[0]}function ya(e){if(!e||"string"!=typeof e)return!1;var t=(0,gr.extname)("x."+e).toLowerCase().substr(1);return t&&U.types[t]||!1}function ga(e,t){var i=["nginx","apache",void 0,"iana"];Object.keys(et).forEach((function(r){var n=et[r],s=n.extensions;if(s&&s.length){e[r]=s;for(var a=0;al||c===l&&"application/"===t[o].substr(0,12)))continue}t[o]=r}}}))}U.charset=yr,U.charsets={lookup:yr},U.contentType=da,U.extension=ma,U.extensions=Object.create(null),U.lookup=ya,U.types=Object.create(null),ga(U.extensions,U.types);var _r=U,Us=Ze(Mt(),1),tt={};fr(tt,{deleteDB:()=>Ca,openDB:()=>$t,unwrap:()=>Pe,wrap:()=>G});var xa=(e,t)=>t.some((t=>e instanceof t)),br,wr;function _a(){return br||(br=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function ba(){return wr||(wr=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var vr=new WeakMap,Ot=new WeakMap,Sr=new WeakMap,Dt=new WeakMap,Ft=new WeakMap;function wa(e){let t=new Promise(((t,i)=>{let r=()=>{e.removeEventListener("success",n),e.removeEventListener("error",s)},n=()=>{t(G(e.result)),r()},s=()=>{i(e.error),r()};e.addEventListener("success",n),e.addEventListener("error",s)}));return t.then((t=>{t instanceof IDBCursor&&vr.set(t,e)})).catch((()=>{})),Ft.set(t,e),t}function va(e){if(Ot.has(e))return;let t=new Promise(((t,i)=>{let r=()=>{e.removeEventListener("complete",n),e.removeEventListener("error",s),e.removeEventListener("abort",s)},n=()=>{t(),r()},s=()=>{i(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",n),e.addEventListener("error",s),e.addEventListener("abort",s)}));Ot.set(e,t)}var Vt={get(e,t,i){if(e instanceof IDBTransaction){if("done"===t)return Ot.get(e);if("objectStoreNames"===t)return e.objectStoreNames||Sr.get(e);if("store"===t)return i.objectStoreNames[1]?void 0:i.objectStore(i.objectStoreNames[0])}return G(e[t])},set:(e,t,i)=>(e[t]=i,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function Er(e){Vt=e(Vt)}function Sa(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?ba().includes(e)?function(...t){return e.apply(Pe(this),t),G(vr.get(this))}:function(...t){return G(e.apply(Pe(this),t))}:function(t,...i){let r=e.call(Pe(this),t,...i);return Sr.set(r,t.sort?t.sort():[t]),G(r)}}function Ea(e){return"function"==typeof e?Sa(e):(e instanceof IDBTransaction&&va(e),xa(e,_a())?new Proxy(e,Vt):e)}function G(e){if(e instanceof IDBRequest)return wa(e);if(Dt.has(e))return Dt.get(e);let t=Ea(e);return t!==e&&(Dt.set(e,t),Ft.set(t,e)),t}var Pe=e=>Ft.get(e);function $t(e,t,{blocked:i,upgrade:r,blocking:n,terminated:s}={}){let a=indexedDB.open(e,t),o=G(a);return r&&a.addEventListener("upgradeneeded",(e=>{r(G(a.result),e.oldVersion,e.newVersion,G(a.transaction),e)})),i&&a.addEventListener("blocked",(e=>i(e.oldVersion,e.newVersion,e))),o.then((e=>{s&&e.addEventListener("close",(()=>s())),n&&e.addEventListener("versionchange",(e=>n(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),o}function Ca(e,{blocked:t}={}){let i=indexedDB.deleteDatabase(e);return t&&i.addEventListener("blocked",(e=>t(e.oldVersion,e))),G(i).then((()=>{}))}var ka=["get","getKey","getAll","getAllKeys","count"],Aa=["put","add","delete","clear"],Bt=new Map;function Cr(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(Bt.get(t))return Bt.get(t);let i=t.replace(/FromIndex$/,""),r=t!==i,n=Aa.includes(i);if(!(i in(r?IDBIndex:IDBObjectStore).prototype)||!n&&!ka.includes(i))return;let s=async function(e,...t){let s=this.transaction(e,n?"readwrite":"readonly"),a=s.store;return r&&(a=a.index(t.shift())),(await Promise.all([a[i](...t),n&&s.done]))[0]};return Bt.set(t,s),s}Er((e=>({...e,get:(t,i,r)=>Cr(t,i)||e.get(t,i,r),has:(t,i)=>!!Cr(t,i)||e.has(t,i)})));var La=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],Rr=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],Pa="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",Ir="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",jt={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Ut="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",Ra={5:Ut,"5module":Ut+" export import",6:Ut+" const class extends export import super"},Ia=/^in(stanceof)?$/,Ta=new RegExp("["+Ir+"]"),Na=new RegExp("["+Ir+Pa+"]");function Wt(e,t){for(var i=65536,r=0;re)return!1;if((i+=t[r+1])>=e)return!0}return!1}function ce(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&Ta.test(String.fromCharCode(e)):!1!==t&&Wt(e,Rr)))}function be(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&Na.test(String.fromCharCode(e)):!1!==t&&(Wt(e,Rr)||Wt(e,La)))))}var L=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function z(e,t){return new L(e,{beforeExpr:!0,binop:t})}var K={beforeExpr:!0},H={startsExpr:!0},zt={};function k(e,t){return void 0===t&&(t={}),t.keyword=e,zt[e]=new L(e,t)}var u={num:new L("num",H),regexp:new L("regexp",H),string:new L("string",H),name:new L("name",H),privateId:new L("privateId",H),eof:new L("eof"),bracketL:new L("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new L("]"),braceL:new L("{",{beforeExpr:!0,startsExpr:!0}),braceR:new L("}"),parenL:new L("(",{beforeExpr:!0,startsExpr:!0}),parenR:new L(")"),comma:new L(",",K),semi:new L(";",K),colon:new L(":",K),dot:new L("."),question:new L("?",K),questionDot:new L("?."),arrow:new L("=>",K),template:new L("template"),invalidTemplate:new L("invalidTemplate"),ellipsis:new L("...",K),backQuote:new L("`",H),dollarBraceL:new L("${",{beforeExpr:!0,startsExpr:!0}),eq:new L("=",{beforeExpr:!0,isAssign:!0}),assign:new L("_=",{beforeExpr:!0,isAssign:!0}),incDec:new L("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new L("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:z("||",1),logicalAND:z("&&",2),bitwiseOR:z("|",3),bitwiseXOR:z("^",4),bitwiseAND:z("&",5),equality:z("==/!=/===/!==",6),relational:z(">/<=/>=",7),bitShift:z("<>>/>>>",8),plusMin:new L("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:z("%",10),star:z("*",10),slash:z("/",10),starstar:new L("**",{beforeExpr:!0}),coalesce:z("??",1),_break:k("break"),_case:k("case",K),_catch:k("catch"),_continue:k("continue"),_debugger:k("debugger"),_default:k("default",K),_do:k("do",{isLoop:!0,beforeExpr:!0}),_else:k("else",K),_finally:k("finally"),_for:k("for",{isLoop:!0}),_function:k("function",H),_if:k("if"),_return:k("return",K),_switch:k("switch"),_throw:k("throw",K),_try:k("try"),_var:k("var"),_const:k("const"),_while:k("while",{isLoop:!0}),_with:k("with"),_new:k("new",{beforeExpr:!0,startsExpr:!0}),_this:k("this",H),_super:k("super",H),_class:k("class",H),_extends:k("extends",K),_export:k("export"),_import:k("import",H),_null:k("null",H),_true:k("true",H),_false:k("false",H),_in:k("in",{beforeExpr:!0,binop:7}),_instanceof:k("instanceof",{beforeExpr:!0,binop:7}),_typeof:k("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:k("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:k("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Y=/\r\n?|\n|\u2028|\u2029/,Ma=new RegExp(Y.source,"g");function we(e){return 10===e||13===e||8232===e||8233===e}function Tr(e,t,i){void 0===i&&(i=e.length);for(var r=t;r>10),56320+(1023&e)))}var Va=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Ie=function(e,t){this.line=e,this.column=t};Ie.prototype.offset=function(e){return new Ie(this.line,this.column+e)};var st=function(e,t,i){this.start=t,this.end=i,null!==e.sourceFile&&(this.source=e.sourceFile)};function Dr(e,t){for(var i=1,r=0;;){var n=Tr(e,r,t);if(n<0)return new Ie(i,t-r);++i,r=n}}var qt={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Ar=!1;function Fa(e){var t={};for(var i in qt)t[i]=e&&Ne(e,i)?e[i]:qt[i];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!Ar&&"object"==typeof console&&console.warn&&(Ar=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),(!e||null==e.allowHashBang)&&(t.allowHashBang=t.ecmaVersion>=14),kr(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return kr(t.onComment)&&(t.onComment=Ba(t,t.onComment)),t}function Ba(e,t){return function(i,r,n,s,a,o){var c={type:i?"Block":"Line",value:r,start:n,end:s};e.locations&&(c.loc=new st(this,a,o)),e.ranges&&(c.range=[n,s]),t.push(c)}}var Te=1,ve=2,Kt=4,Or=8,Vr=16,Fr=32,Xt=64,Br=128,Me=256,Qt=Te|ve|Me;function Yt(e,t){return ve|(e?Kt:0)|(t?Or:0)}var rt=0,Jt=1,le=2,$r=3,jr=4,Ur=5,T=function(e,t,i){this.options=e=Fa(e),this.sourceFile=e.sourceFile,this.keywords=pe(Ra[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var r="";!0!==e.allowReserved&&(r=jt[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(r+=" await")),this.reservedWords=pe(r);var n=(r?r+" ":"")+jt.strict;this.reservedWordsStrict=pe(n),this.reservedWordsStrictBind=pe(n+" "+jt.strictBind),this.input=String(t),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf("\n",i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Y).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=u.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(Te),this.regexpState=null,this.privateNameStack=[]},ie={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};T.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},ie.inFunction.get=function(){return(this.currentVarScope().flags&ve)>0},ie.inGenerator.get=function(){return(this.currentVarScope().flags&Or)>0&&!this.currentVarScope().inClassFieldInit},ie.inAsync.get=function(){return(this.currentVarScope().flags&Kt)>0&&!this.currentVarScope().inClassFieldInit},ie.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&Me)return!1;if(t.flags&ve)return(t.flags&Kt)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},ie.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&Xt)>0||i||this.options.allowSuperOutsideMethod},ie.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Br)>0},ie.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},ie.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&(ve|Me))>0||i},ie.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Me)>0},T.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var i=this,r=0;r=,?^&]/.test(n)||"!"===n&&"="===this.input.charAt(r+1))}e+=t[0].length,X.lastIndex=e,e+=X.exec(this.input)[0].length,";"===this.input[e]&&e++}},$.eat=function(e){return this.type===e&&(this.next(),!0)},$.isContextual=function(e){return this.type===u.name&&this.value===e&&!this.containsEsc},$.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},$.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},$.canInsertSemicolon=function(){return this.type===u.eof||this.type===u.braceR||Y.test(this.input.slice(this.lastTokEnd,this.start))},$.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},$.semicolon=function(){!this.eat(u.semi)&&!this.insertSemicolon()&&this.unexpected()},$.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},$.expect=function(e){this.eat(e)||this.unexpected()},$.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var ot=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};$.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var i=t?e.parenthesizedAssign:e.parenthesizedBind;i>-1&&this.raiseRecoverable(i,t?"Assigning to rvalue":"Parenthesized pattern")}},$.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,r=e.doubleProto;if(!t)return i>=0||r>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},$.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&r<56320)return!0;if(ce(r,!0)){for(var n=i+1;be(r=this.input.charCodeAt(n),!0);)++n;if(92===r||r>55295&&r<56320)return!0;var s=this.input.slice(i,n);if(!Ia.test(s))return!0}return!1},w.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;X.lastIndex=this.pos;var e,t=X.exec(this.input),i=this.pos+t[0].length;return!(Y.test(this.input.slice(this.pos,i))||"function"!==this.input.slice(i,i+8)||i+8!==this.input.length&&(be(e=this.input.charCodeAt(i+8))||e>55295&&e<56320))},w.parseStatement=function(e,t,i){var r,n=this.type,s=this.startNode();switch(this.isLet(e)&&(n=u._var,r="let"),n){case u._break:case u._continue:return this.parseBreakContinueStatement(s,n.keyword);case u._debugger:return this.parseDebuggerStatement(s);case u._do:return this.parseDoStatement(s);case u._for:return this.parseForStatement(s);case u._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case u._class:return e&&this.unexpected(),this.parseClass(s,!0);case u._if:return this.parseIfStatement(s);case u._return:return this.parseReturnStatement(s);case u._switch:return this.parseSwitchStatement(s);case u._throw:return this.parseThrowStatement(s);case u._try:return this.parseTryStatement(s);case u._const:case u._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(s,r);case u._while:return this.parseWhileStatement(s);case u._with:return this.parseWithStatement(s);case u.braceL:return this.parseBlock(!0,s);case u.semi:return this.parseEmptyStatement(s);case u._export:case u._import:if(this.options.ecmaVersion>10&&n===u._import){X.lastIndex=this.pos;var a=X.exec(this.input),o=this.pos+a[0].length,c=this.input.charCodeAt(o);if(40===c||46===c)return this.parseExpressionStatement(s,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),n===u._import?this.parseImport(s):this.parseExport(s,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var l=this.value,p=this.parseExpression();return n===u.name&&"Identifier"===p.type&&this.eat(u.colon)?this.parseLabeledStatement(s,l,p,e):this.parseExpressionStatement(s,p)}},w.parseBreakContinueStatement=function(e,t){var i="break"===t;this.next(),this.eat(u.semi)||this.insertSemicolon()?e.label=null:this.type!==u.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r=6?this.eat(u.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},w.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Zt),this.enterScope(0),this.expect(u.parenL),this.type===u.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===u._var||this.type===u._const||i){var r=this.startNode(),n=i?"let":this.value;return this.next(),this.parseVar(r,!0,n),this.finishNode(r,"VariableDeclaration"),(this.type===u._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===r.declarations.length?(this.options.ecmaVersion>=9&&(this.type===u._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var s=this.isContextual("let"),a=!1,o=new ot,c=this.parseExpression(!(t>-1)||"await",o);return this.type===u._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===u._in?t>-1&&this.unexpected(t):e.await=t>-1),s&&a&&this.raise(c.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(c,!1,o),this.checkLValPattern(c),this.parseForIn(e,c)):(this.checkExpressionErrors(o,!0),t>-1&&this.unexpected(t),this.parseFor(e,c))},w.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,Re|(i?0:Gt),!1,t)},w.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(u._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},w.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(u.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},w.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(u.braceL),this.labels.push(ja),this.enterScope(0);for(var t,i=!1;this.type!==u.braceR;)if(this.type===u._case||this.type===u._default){var r=this.type===u._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,t.test=null),this.expect(u.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},w.parseThrowStatement=function(e){return this.next(),Y.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Ua=[];w.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?Fr:0),this.checkLValPattern(e,t?jr:le),this.expect(u.parenR),e},w.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===u._catch){var t=this.startNode();this.next(),this.eat(u.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(u._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},w.parseVarStatement=function(e,t,i){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")},w.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Zt),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},w.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},w.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},w.parseLabeledStatement=function(e,t,i,r){for(var n=0,s=this.labels;n=0;o--){var c=this.labels[o];if(c.statementStart!==e.start)break;c.statementStart=this.start,c.kind=a}return this.labels.push({name:t,kind:a,statementStart:this.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")},w.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},w.parseBlock=function(e,t,i){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(u.braceL),e&&this.enterScope(0);this.type!==u.braceR;){var r=this.parseStatement(null);t.body.push(r)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},w.parseFor=function(e,t){return e.init=t,this.expect(u.semi),e.test=this.type===u.semi?null:this.parseExpression(),this.expect(u.semi),e.update=this.type===u.parenR?null:this.parseExpression(),this.expect(u.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},w.parseForIn=function(e,t){var i=this.type===u._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!i||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(u.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")},w.parseVar=function(e,t,i,r){for(e.declarations=[],e.kind=i;;){var n=this.startNode();if(this.parseVarId(n,i),this.eat(u.eq)?n.init=this.parseMaybeAssign(t):r||"const"!==i||this.type===u._in||this.options.ecmaVersion>=6&&this.isContextual("of")?r||"Identifier"===n.id.type||t&&(this.type===u._in||this.isContextual("of"))?n.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(u.comma))break}return e},w.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?Jt:le,!1)};var Re=1,Gt=2,Hr=4;function Ha(e,t){var i=t.key.name,r=e[i],n="true";return"MethodDefinition"===t.type&&("get"===t.kind||"set"===t.kind)&&(n=(t.static?"s":"i")+t.kind),"iget"===r&&"iset"===n||"iset"===r&&"iget"===n||"sget"===r&&"sset"===n||"sset"===r&&"sget"===n?(e[i]="true",!1):!!r||(e[i]=n,!1)}function nt(e,t){var i=e.computed,r=e.key;return!i&&("Identifier"===r.type&&r.name===t||"Literal"===r.type&&r.value===t)}w.parseFunction=function(e,t,i,r,n){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===u.star&&t&Gt&&this.unexpected(),e.generator=this.eat(u.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&Re&&(e.id=t&Hr&&this.type!==u.name?null:this.parseIdent(),e.id&&!(t&Gt)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Jt:le:$r));var s=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Yt(e.async,e.generator)),t&Re||(e.id=this.type===u.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,n),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&Re?"FunctionDeclaration":"FunctionExpression")},w.parseFunctionParams=function(e){this.expect(u.parenL),e.params=this.parseBindingList(u.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},w.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),n=this.startNode(),s=!1;for(n.body=[],this.expect(u.braceL);this.type!==u.braceR;){var a=this.parseClassElement(null!==e.superClass);a&&(n.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(s&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),s=!0):a.key&&"PrivateIdentifier"===a.key.type&&Ha(r,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=i,this.next(),e.body=this.finishNode(n,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},w.parseClassElement=function(e){if(this.eat(u.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),r="",n=!1,s=!1,a="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(u.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===u.star?o=!0:r="static"}if(i.static=o,!r&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==u.star||this.canInsertSemicolon()?r="async":s=!0),!r&&(t>=9||!s)&&this.eat(u.star)&&(n=!0),!r&&!s&&!n){var c=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=c:r=c)}if(r?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=r,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===u.parenL||"method"!==a||n||s){var l=!i.static&&nt(i,"constructor"),p=l&&e;l&&"method"!==a&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=l?"constructor":a,this.parseClassMethod(i,n,s,p)}else this.parseClassField(i);return i},w.isClassElementNameStart=function(){return this.type===u.name||this.type===u.privateId||this.type===u.num||this.type===u.string||this.type===u.bracketL||this.type.keyword},w.parseClassElementName=function(e){this.type===u.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},w.parseClassMethod=function(e,t,i,r){var n=e.key;"constructor"===e.kind?(t&&this.raise(n.start,"Constructor can't be a generator"),i&&this.raise(n.start,"Constructor can't be an async method")):e.static&&nt(e,"prototype")&&this.raise(n.start,"Classes may not have a static property named prototype");var s=e.value=this.parseMethod(t,i,r);return"get"===e.kind&&0!==s.params.length&&this.raiseRecoverable(s.start,"getter should have no params"),"set"===e.kind&&1!==s.params.length&&this.raiseRecoverable(s.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===s.params[0].type&&this.raiseRecoverable(s.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},w.parseClassField=function(e){if(nt(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&nt(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(u.eq)){var t=this.currentThisScope(),i=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=i}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},w.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Me|Xt);this.type!==u.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},w.parseClassId=function(e,t){this.type===u.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,le,!1)):(!0===t&&this.unexpected(),e.id=null)},w.parseClassSuper=function(e){e.superClass=this.eat(u._extends)?this.parseExprSubscripts(null,!1):null},w.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},w.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,i=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,n=0===r?null:this.privateNameStack[r-1],s=0;s=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==u.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},w.parseExport=function(e,t){if(this.next(),this.eat(u.star))return this.parseExportAllDeclaration(e,t);if(this.eat(u._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==u.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var i=0,r=e.specifiers;i=13&&this.type===u.string){var e=this.parseLiteral(this.value);return Va.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},w.adaptDirectivePrologue=function(e){for(var t=0;t=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var J=T.prototype;J.toAssignable=function(e,t,i){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var r=0,n=e.properties;r=6)switch(this.type){case u.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(u.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case u.braceL:return this.parseObj(!0)}return this.parseIdent()},J.parseBindingList=function(e,t,i,r){for(var n=[],s=!0;!this.eat(e);)if(s?s=!1:this.expect(u.comma),t&&this.type===u.comma)n.push(null);else{if(i&&this.afterTrailingComma(e))break;if(this.type===u.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),n.push(a),this.type===u.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}n.push(this.parseAssignableListItem(r))}return n},J.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},J.parseBindingListItem=function(e){return e},J.parseMaybeDefault=function(e,t,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(u.eq))return i;var r=this.startNodeAt(e,t);return r.left=i,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},J.checkLValSimple=function(e,t,i){void 0===t&&(t=rt);var r=t!==rt;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(t===le&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),i&&(Ne(i,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),i[e.name]=!0),t!==Ur&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,i);default:this.raise(e.start,(r?"Binding":"Assigning to")+" rvalue")}},J.checkLValPattern=function(e,t,i){switch(void 0===t&&(t=rt),e.type){case"ObjectPattern":for(var r=0,n=e.properties;r=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},Se.updateContext=function(e){var t,i=this.type;i.keyword&&e===u.dot?this.exprAllowed=!1:(t=i.updateContext)?t.call(this,e):this.exprAllowed=i.beforeExpr},Se.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},u.parenR.updateContext=u.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===R.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},u.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?R.b_stat:R.b_expr),this.exprAllowed=!0},u.dollarBraceL.updateContext=function(){this.context.push(R.b_tmpl),this.exprAllowed=!0},u.parenL.updateContext=function(e){var t=e===u._if||e===u._for||e===u._with||e===u._while;this.context.push(t?R.p_stat:R.p_expr),this.exprAllowed=!0},u.incDec.updateContext=function(){},u._function.updateContext=u._class.updateContext=function(e){!e.beforeExpr||e===u._else||e===u.semi&&this.curContext()!==R.p_stat||e===u._return&&Y.test(this.input.slice(this.lastTokEnd,this.start))||(e===u.colon||e===u.braceL)&&this.curContext()===R.b_stat?this.context.push(R.f_stat):this.context.push(R.f_expr),this.exprAllowed=!1},u.backQuote.updateContext=function(){this.curContext()===R.q_tmpl?this.context.pop():this.context.push(R.q_tmpl),this.exprAllowed=!1},u.star.updateContext=function(e){if(e===u._function){var t=this.context.length-1;this.context[t]===R.f_expr?this.context[t]=R.f_expr_gen:this.context[t]=R.f_gen}this.exprAllowed=!0},u.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==u.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var v=T.prototype;function Wr(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&Wr(e.expression)}v.checkPropClash=function(e,t,i){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r,n=e.key;switch(n.type){case"Identifier":r=n.name;break;case"Literal":r=String(n.value);break;default:return}var s=e.kind;if(this.options.ecmaVersion>=6)return void("__proto__"===r&&"init"===s&&(t.proto&&(i?i.doubleProto<0&&(i.doubleProto=n.start):this.raiseRecoverable(n.start,"Redefinition of __proto__ property")),t.proto=!0));var a=t[r="$"+r];if(a)("init"===s?this.strict&&a.init||a.get||a.set:a.init||a[s])&&this.raiseRecoverable(n.start,"Redefinition of property");else a=t[r]={init:!1,get:!1,set:!1};a[s]=!0}},v.parseExpression=function(e,t){var i=this.start,r=this.startLoc,n=this.parseMaybeAssign(e,t);if(this.type===u.comma){var s=this.startNodeAt(i,r);for(s.expressions=[n];this.eat(u.comma);)s.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(s,"SequenceExpression")}return n},v.parseMaybeAssign=function(e,t,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,n=-1,s=-1,a=-1;t?(n=t.parenthesizedAssign,s=t.trailingComma,a=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new ot,r=!0);var o=this.start,c=this.startLoc;(this.type===u.parenL||this.type===u.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var l=this.parseMaybeConditional(e,t);if(i&&(l=i.call(this,l,o,c)),this.type.isAssign){var p=this.startNodeAt(o,c);return p.operator=this.value,this.type===u.eq&&(l=this.toAssignable(l,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===u.eq?this.checkLValPattern(l):this.checkLValSimple(l),p.left=l,this.next(),p.right=this.parseMaybeAssign(e),a>-1&&(t.doubleProto=a),this.finishNode(p,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),n>-1&&(t.parenthesizedAssign=n),s>-1&&(t.trailingComma=s),l},v.parseMaybeConditional=function(e,t){var i=this.start,r=this.startLoc,n=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return n;if(this.eat(u.question)){var s=this.startNodeAt(i,r);return s.test=n,s.consequent=this.parseMaybeAssign(),this.expect(u.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return n},v.parseExprOps=function(e,t){var i=this.start,r=this.startLoc,n=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||n.start===i&&"ArrowFunctionExpression"===n.type?n:this.parseExprOp(n,i,r,-1,e)},v.parseExprOp=function(e,t,i,r,n){var s=this.type.binop;if(null!=s&&(!n||this.type!==u._in)&&s>r){var a=this.type===u.logicalOR||this.type===u.logicalAND,o=this.type===u.coalesce;o&&(s=u.logicalAND.binop);var c=this.value;this.next();var l=this.start,p=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,n),l,p,s,n),d=this.buildBinary(t,i,e,h,c,a||o);return(a&&this.type===u.coalesce||o&&(this.type===u.logicalOR||this.type===u.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(d,t,i,r,n)}return e},v.buildBinary=function(e,t,i,r,n,s){"PrivateIdentifier"===r.type&&this.raise(r.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(e,t);return a.left=i,a.operator=n,a.right=r,this.finishNode(a,s?"LogicalExpression":"BinaryExpression")},v.parseMaybeUnary=function(e,t,i,r){var n,s=this.start,a=this.startLoc;if(this.isContextual("await")&&this.canAwait)n=this.parseAwait(r),t=!0;else if(this.type.prefix){var o=this.startNode(),c=this.type===u.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,c,r),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&"Identifier"===o.argument.type?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&Wr(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):t=!0,n=this.finishNode(o,c?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==u.privateId){if(n=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return n;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(s,a);l.operator=this.value,l.prefix=!1,l.argument=n,this.checkLValSimple(n),this.next(),n=this.finishNode(l,"UpdateExpression")}}else(r||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),n=this.parsePrivateIdent(),this.type!==u._in&&this.unexpected();return i||!this.eat(u.starstar)?n:t?void this.unexpected(this.lastTokStart):this.buildBinary(s,a,n,this.parseMaybeUnary(null,!1,!1,r),"**",!1)},v.parseExprSubscripts=function(e,t){var i=this.start,r=this.startLoc,n=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===n.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return n;var s=this.parseSubscripts(n,i,r,!1,t);return e&&"MemberExpression"===s.type&&(e.parenthesizedAssign>=s.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=s.start&&(e.parenthesizedBind=-1),e.trailingComma>=s.start&&(e.trailingComma=-1)),s},v.parseSubscripts=function(e,t,i,r,n){for(var s=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,a=!1;;){var o=this.parseSubscript(e,t,i,r,s,a,n);if(o.optional&&(a=!0),o===e||"ArrowFunctionExpression"===o.type){if(a){var c=this.startNodeAt(t,i);c.expression=o,o=this.finishNode(c,"ChainExpression")}return o}e=o}},v.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(u.arrow)},v.parseSubscriptAsyncArrow=function(e,t,i,r){return this.parseArrowExpression(this.startNodeAt(e,t),i,!0,r)},v.parseSubscript=function(e,t,i,r,n,s,a){var o=this.options.ecmaVersion>=11,c=o&&this.eat(u.questionDot);r&&c&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(u.bracketL);if(l||c&&this.type!==u.parenL&&this.type!==u.backQuote||this.eat(u.dot)){var p=this.startNodeAt(t,i);p.object=e,l?(p.property=this.parseExpression(),this.expect(u.bracketR)):this.type===u.privateId&&"Super"!==e.type?p.property=this.parsePrivateIdent():p.property=this.parseIdent("never"!==this.options.allowReserved),p.computed=!!l,o&&(p.optional=c),e=this.finishNode(p,"MemberExpression")}else if(!r&&this.eat(u.parenL)){var h=new ot,d=this.yieldPos,m=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var y=this.parseExprList(u.parenR,this.options.ecmaVersion>=8,!1,h);if(n&&!c&&this.shouldParseAsyncArrow())return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=d,this.awaitPos=m,this.awaitIdentPos=f,this.parseSubscriptAsyncArrow(t,i,y,a);this.checkExpressionErrors(h,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=m||this.awaitPos,this.awaitIdentPos=f||this.awaitIdentPos;var g=this.startNodeAt(t,i);g.callee=e,g.arguments=y,o&&(g.optional=c),e=this.finishNode(g,"CallExpression")}else if(this.type===u.backQuote){(c||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var _=this.startNodeAt(t,i);_.tag=e,_.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(_,"TaggedTemplateExpression")}return e},v.parseExprAtom=function(e,t,i){this.type===u.slash&&this.readRegexp();var r,n=this.potentialArrowAt===this.start;switch(this.type){case u._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type===u.parenL&&!this.allowDirectSuper&&this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==u.dot&&this.type!==u.bracketL&&this.type!==u.parenL&&this.unexpected(),this.finishNode(r,"Super");case u._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case u.name:var s=this.start,a=this.startLoc,o=this.containsEsc,c=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&"async"===c.name&&!this.canInsertSemicolon()&&this.eat(u._function))return this.overrideContext(R.f_expr),this.parseFunction(this.startNodeAt(s,a),0,!1,!0,t);if(n&&!this.canInsertSemicolon()){if(this.eat(u.arrow))return this.parseArrowExpression(this.startNodeAt(s,a),[c],!1,t);if(this.options.ecmaVersion>=8&&"async"===c.name&&this.type===u.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return c=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(u.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,a),[c],!0,t)}return c;case u.regexp:var l=this.value;return(r=this.parseLiteral(l.value)).regex={pattern:l.pattern,flags:l.flags},r;case u.num:case u.string:return this.parseLiteral(this.value);case u._null:case u._true:case u._false:return(r=this.startNode()).value=this.type===u._null?null:this.type===u._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case u.parenL:var p=this.start,h=this.parseParenAndDistinguishExpression(n,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(h)&&(e.parenthesizedAssign=p),e.parenthesizedBind<0&&(e.parenthesizedBind=p)),h;case u.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(u.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case u.braceL:return this.overrideContext(R.b_expr),this.parseObj(!1,e);case u._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case u._class:return this.parseClass(this.startNode(),!1);case u._new:return this.parseNew();case u.backQuote:return this.parseTemplate();case u._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}},v.parseExprAtomDefault=function(){this.unexpected()},v.parseExprImport=function(e){var t=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var i=this.parseIdent(!0);return this.type!==u.parenL||e?this.type===u.dot?(t.meta=i,this.parseImportMeta(t)):void this.unexpected():this.parseDynamicImport(t)},v.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(u.parenR)){var t=this.start;this.eat(u.comma)&&this.eat(u.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},v.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"!==this.options.sourceType&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},v.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},v.parseParenExpression=function(){this.expect(u.parenL);var e=this.parseExpression();return this.expect(u.parenR),e},v.shouldParseArrow=function(e){return!this.canInsertSemicolon()},v.parseParenAndDistinguishExpression=function(e,t){var i,r=this.start,n=this.startLoc,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,c=this.startLoc,l=[],p=!0,h=!1,d=new ot,m=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==u.parenR;){if(p?p=!1:this.expect(u.comma),s&&this.afterTrailingComma(u.parenR,!0)){h=!0;break}if(this.type===u.ellipsis){a=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===u.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}l.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var y=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(u.parenR),e&&this.shouldParseArrow(l)&&this.eat(u.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=m,this.awaitPos=f,this.parseParenArrowList(r,n,l,t);(!l.length||h)&&this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(d,!0),this.yieldPos=m||this.yieldPos,this.awaitPos=f||this.awaitPos,l.length>1?((i=this.startNodeAt(o,c)).expressions=l,this.finishNodeAt(i,"SequenceExpression",y,g)):i=l[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var _=this.startNodeAt(r,n);return _.expression=i,this.finishNode(_,"ParenthesizedExpression")}return i},v.parseParenItem=function(e){return e},v.parseParenArrowList=function(e,t,i,r){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,r)};var Wa=[];v.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(u.dot)){e.meta=t;var i=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var r=this.start,n=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,n,!0,!1),this.eat(u.parenL)?e.arguments=this.parseExprList(u.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Wa,this.finishNode(e,"NewExpression")},v.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===u.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value,cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),i.tail=this.type===u.backQuote,this.finishNode(i,"TemplateElement")},v.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(i.quasis=[r];!r.tail;)this.type===u.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(u.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(u.braceR),i.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")},v.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===u.name||this.type===u.num||this.type===u.string||this.type===u.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===u.star)&&!Y.test(this.input.slice(this.lastTokEnd,this.start))},v.parseObj=function(e,t){var i=this.startNode(),r=!0,n={};for(i.properties=[],this.next();!this.eat(u.braceR);){if(r)r=!1;else if(this.expect(u.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(u.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,n,t),i.properties.push(s)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")},v.parseProperty=function(e,t){var i,r,n,s,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(u.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===u.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,t),this.type===u.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||t)&&(n=this.start,s=this.startLoc),e||(i=this.eat(u.star)));var o=this.containsEsc;return this.parsePropertyName(a),!e&&!o&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(a)?(r=!0,i=this.options.ecmaVersion>=9&&this.eat(u.star),this.parsePropertyName(a)):r=!1,this.parsePropertyValue(a,e,i,r,n,s,t,o),this.finishNode(a,"Property")},v.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t="get"===e.kind?0:1;if(e.value.params.length!==t){var i=e.value.start;"get"===e.kind?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},v.parsePropertyValue=function(e,t,i,r,n,s,a,o){(i||r)&&this.type===u.colon&&this.unexpected(),this.eat(u.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init"):this.options.ecmaVersion>=6&&this.type===u.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(i,r)):t||o||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===u.comma||this.type===u.braceR||this.type===u.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((i||r)&&this.unexpected(),this.checkUnreserved(e.key),"await"===e.key.name&&!this.awaitIdentPos&&(this.awaitIdentPos=n),e.kind="init",t?e.value=this.parseMaybeDefault(n,s,this.copyNode(e.key)):this.type===u.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(n,s,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected():((i||r)&&this.unexpected(),this.parseGetterSetter(e))},v.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(u.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(u.bracketR),e.key;e.computed=!1}return e.key=this.type===u.num||this.type===u.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},v.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},v.parseMethod=function(e,t,i){var r=this.startNode(),n=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Yt(t,r.generator)|Xt|(i?Br:0)),this.expect(u.parenL),r.params=this.parseBindingList(u.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=n,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(r,"FunctionExpression")},v.parseArrowExpression=function(e,t,i,r){var n=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(Yt(i,!1)|Vr),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=n,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")},v.parseFunctionBody=function(e,t,i,r){var n=t&&this.type!==u.braceL,s=this.strict,a=!1;if(n)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!s||o)&&((a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var c=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!s&&!a&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Ur),e.body=this.parseBlock(!1,void 0,a&&!s),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},v.isSimpleParamList=function(e){for(var t=0,i=e;t-1||n.functions.indexOf(e)>-1||n.var.indexOf(e)>-1,n.lexical.push(e),this.inModule&&n.flags&Te&&delete this.undefinedExports[e]}else if(t===jr){this.currentScope().lexical.push(e)}else if(t===$r){var s=this.currentScope();r=this.treatFunctionsAsVar?s.lexical.indexOf(e)>-1:s.lexical.indexOf(e)>-1||s.var.indexOf(e)>-1,s.functions.push(e)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(e)>-1&&!(o.flags&Fr&&o.lexical[0]===e)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(e)>-1){r=!0;break}if(o.var.push(e),this.inModule&&o.flags&Te&&delete this.undefinedExports[e],o.flags&Qt)break}r&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")},de.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},de.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},de.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Qt)return t}},de.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Qt&&!(t.flags&Vr))return t}};var ct=function(e,t,i){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new st(e,i)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},De=T.prototype;function qr(e,t,i,r){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=i),e}De.startNode=function(){return new ct(this,this.start,this.startLoc)},De.startNodeAt=function(e,t){return new ct(this,e,t)},De.finishNode=function(e,t){return qr.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},De.finishNodeAt=function(e,t,i,r){return qr.call(this,e,t,i,r)},De.copyNode=function(e){var t=new ct(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var Gr="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",zr=Gr+" Extended_Pictographic",Kr=zr,Xr=Kr+" EBase EComp EMod EPres ExtPict",Qr=Xr,Ga=Qr,za={9:Gr,10:zr,11:Kr,12:Xr,13:Qr,14:Ga},Ka="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Xa={9:"",10:"",11:"",12:"",13:"",14:Ka},Lr="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Yr="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Jr=Yr+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Zr=Jr+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",en=Zr+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",tn=en+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Qa=tn+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",Ya={9:Yr,10:Jr,11:Zr,12:en,13:tn,14:Qa},rn={};function Ja(e){var t=rn[e]={binary:pe(za[e]+" "+Lr),binaryOfStrings:pe(Xa[e]),nonBinary:{General_Category:pe(Lr),Script:pe(Ya[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(it=0,Ht=[9,10,11,12,13,14];it=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=rn[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function nn(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function Za(e){return ce(e,!0)||36===e||95===e}function es(e){return be(e,!0)||36===e||95===e||8204===e||8205===e}function an(e){return e>=65&&e<=90||e>=97&&e<=122}function ts(e){return e>=0&&e<=1114111}re.prototype.reset=function(e,t,i){var r=-1!==i.indexOf("v"),n=-1!==i.indexOf("u");this.start=0|e,this.source=t+"",this.flags=i,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=n&&this.parser.options.ecmaVersion>=9)},re.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},re.prototype.at=function(e,t){void 0===t&&(t=!1);var i=this.source,r=i.length;if(e>=r)return-1;var n=i.charCodeAt(e);if(!t&&!this.switchU||n<=55295||n>=57344||e+1>=r)return n;var s=i.charCodeAt(e+1);return s>=56320&&s<=57343?(n<<10)+s-56613888:n},re.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var i=this.source,r=i.length;if(e>=r)return r;var n,s=i.charCodeAt(e);return!t&&!this.switchU||s<=55295||s>=57344||e+1>=r||(n=i.charCodeAt(e+1))<56320||n>57343?e+1:e+2},re.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},re.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},re.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},re.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},re.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var i=this.pos,r=0,n=e;r-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===a&&(r=!0),"v"===a&&(n=!0)}this.options.ecmaVersion>=15&&r&&n&&this.raise(e.start,"Invalid regular expression flag")},b.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},b.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,i=e.backReferenceNames;t=9&&(i=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!i,!0}return e.pos=t,!1},b.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},b.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},b.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var r=0,n=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue),e.eat(125)))return-1!==n&&n=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},b.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},b.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},b.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!nn(t)&&(e.lastIntValue=t,e.advance(),!0)},b.regexp_eatPatternCharacters=function(e){for(var t=e.pos,i=0;-1!==(i=e.current())&&!nn(i);)e.advance();return e.pos!==t},b.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t)&&(e.advance(),!0)},b.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},b.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},b.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=fe(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=fe(e.lastIntValue);return!0}return!1},b.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,r=e.current(i);return e.advance(i),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(r=e.lastIntValue),Za(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},b.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,r=e.current(i);return e.advance(i),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(r=e.lastIntValue),es(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},b.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},b.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var i=e.lastIntValue;if(e.switchU)return i>e.maxBackReference&&(e.maxBackReference=i),!0;if(i<=e.numCapturingParens)return!0;e.pos=t}return!1},b.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},b.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},b.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},b.regexp_eatZero=function(e){return 48===e.current()&&!ut(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},b.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},b.regexp_eatControlLetter=function(e){var t=e.current();return!!an(t)&&(e.lastIntValue=t%32,e.advance(),!0)},b.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var i=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var n=e.lastIntValue;if(r&&n>=55296&&n<=56319){var s=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=1024*(n-55296)+(a-56320)+65536,!0}e.pos=s,e.lastIntValue=n}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&ts(e.lastIntValue))return!0;r&&e.raise("Invalid unicode escape"),e.pos=i}return!1},b.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t)&&(e.lastIntValue=t,e.advance(),!0)},b.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1};var sn=0,ue=1,Q=2;function is(e){return 100===e||68===e||115===e||83===e||119===e||87===e}function on(e){return an(e)||95===e}function rs(e){return on(e)||ut(e)}function ns(e){return 33===e||e>=35&&e<=38||e>=42&&e<=44||46===e||e>=58&&e<=64||94===e||96===e||126===e}function as(e){return 40===e||41===e||45===e||47===e||e>=91&&e<=93||e>=123&&e<=125}function ss(e){return 33===e||35===e||37===e||38===e||44===e||45===e||e>=58&&e<=62||64===e||96===e||126===e}function ut(e){return e>=48&&e<=57}function cn(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function un(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function ln(e){return e>=48&&e<=55}b.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(is(t))return e.lastIntValue=-1,e.advance(),ue;var i=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((i=80===t)||112===t)){var r;if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&r===Q&&e.raise("Invalid property name"),r;e.raise("Invalid property name")}return sn},b.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var i=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,r),ue}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,n)}return sn},b.regexp_validateUnicodePropertyNameAndValue=function(e,t,i){Ne(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")},b.regexp_validateUnicodePropertyNameOrValue=function(e,t){return e.unicodeProperties.binary.test(t)?ue:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?Q:void e.raise("Invalid property name")},b.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";on(t=e.current());)e.lastStringValue+=fe(t),e.advance();return""!==e.lastStringValue},b.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";rs(t=e.current());)e.lastStringValue+=fe(t),e.advance();return""!==e.lastStringValue},b.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},b.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),i=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&i===Q&&e.raise("Negated character class may contain strings"),!0}return!1},b.regexp_classContents=function(e){return 93===e.current()?ue:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),ue)},b.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var i=e.lastIntValue;e.switchU&&(-1===t||-1===i)&&e.raise("Invalid character class"),-1!==t&&-1!==i&&t>i&&e.raise("Range out of order in character class")}}},b.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var i=e.current();(99===i||ln(i))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},b.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},b.regexp_classSetExpression=function(e){var t,i=ue;if(!this.regexp_eatClassSetRange(e))if(t=this.regexp_eatClassSetOperand(e)){t===Q&&(i=Q);for(var r=e.pos;e.eatChars([38,38]);)38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))?t!==Q&&(i=ue):e.raise("Invalid character in character class");if(r!==e.pos)return i;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(r!==e.pos)return i}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return i;t===Q&&(i=Q)}},b.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return-1!==i&&-1!==r&&i>r&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},b.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?ue:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},b.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var i=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return i&&r===Q&&e.raise("Negated character class may contain strings"),r;e.pos=t}if(e.eat(92)){var n=this.regexp_eatCharacterClassEscape(e);if(n)return n;e.pos=t}return null},b.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var i=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return i}else e.raise("Invalid escape");e.pos=t}return null},b.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===Q&&(t=Q);return t},b.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?ue:Q},b.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return!(!this.regexp_eatCharacterEscape(e)&&!this.regexp_eatClassSetReservedPunctuator(e))||(e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1));var i=e.current();return!(i<0||i===e.lookahead()&&ns(i)||as(i))&&(e.advance(),e.lastIntValue=i,!0)},b.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return!!ss(t)&&(e.lastIntValue=t,e.advance(),!0)},b.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!ut(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},b.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},b.regexp_eatDecimalDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;ut(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t},b.regexp_eatHexDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;cn(i=e.current());)e.lastIntValue=16*e.lastIntValue+un(i),e.advance();return e.pos!==t},b.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var i=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*i+e.lastIntValue:e.lastIntValue=8*t+i}else e.lastIntValue=t;return!0}return!1},b.regexp_eatOctalDigit=function(e){var t=e.current();return ln(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},b.regexp_eatFixedHexDigits=function(e,t){var i=e.pos;e.lastIntValue=0;for(var r=0;r=this.input.length?this.finishToken(u.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},C.readToken=function(e){return ce(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},C.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},C.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(-1===i&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var r=void 0,n=t;(r=Tr(this.input,n,this.pos))>-1;)++this.curLine,n=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())},C.skipLineComment=function(e){for(var t=this.pos,i=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos8&&e<14||e>=5760&&Nr.test(String.fromCharCode(e))))break e;++this.pos}}},C.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=e,this.value=t,this.updateContext(i)},C.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(u.ellipsis)):(++this.pos,this.finishToken(u.dot))},C.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(u.assign,2):this.finishOp(u.slash,1)},C.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,r=42===e?u.star:u.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++i,r=u.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(u.assign,i+1):this.finishOp(r,i)},C.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(u.assign,3);return this.finishOp(124===e?u.logicalOR:u.logicalAND,2)}return 61===t?this.finishOp(u.assign,2):this.finishOp(124===e?u.bitwiseOR:u.bitwiseAND,1)},C.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(u.assign,2):this.finishOp(u.bitwiseXOR,1)},C.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!Y.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(u.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(u.assign,2):this.finishOp(u.plusMin,1)},C.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),i=1;return t===e?(i=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+i)?this.finishOp(u.assign,i+1):this.finishOp(u.bitShift,i)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(i=2),this.finishOp(u.relational,i)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},C.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(u.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(u.arrow)):this.finishOp(61===e?u.eq:u.prefix,1)},C.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(u.questionDot,2)}if(63===t){if(e>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(u.assign,3);return this.finishOp(u.coalesce,2)}}return this.finishOp(u.question,1)},C.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,ce(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(u.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+fe(e)+"'")},C.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(u.parenL);case 41:return++this.pos,this.finishToken(u.parenR);case 59:return++this.pos,this.finishToken(u.semi);case 44:return++this.pos,this.finishToken(u.comma);case 91:return++this.pos,this.finishToken(u.bracketL);case 93:return++this.pos,this.finishToken(u.bracketR);case 123:return++this.pos,this.finishToken(u.braceL);case 125:return++this.pos,this.finishToken(u.braceR);case 58:return++this.pos,this.finishToken(u.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(u.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(u.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+fe(e)+"'")},C.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)},C.readRegexp=function(){for(var e,t,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(Y.test(r)&&this.raise(i,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var n=this.input.slice(i,this.pos);++this.pos;var s=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(s);var o=this.regexpState||(this.regexpState=new re(this));o.reset(i,n,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var c=null;try{c=new RegExp(n,a)}catch{}return this.finishToken(u.regexp,{pattern:n,flags:a,value:c})},C.readInt=function(e,t,i){for(var r=this.options.ecmaVersion>=12&&void 0===t,n=i&&48===this.input.charCodeAt(this.pos),s=this.pos,a=0,o=0,c=0,l=t??1/0;c=97?p-97+10:p>=65?p-65+10:p>=48&&p<=57?p-48:1/0)>=e)break;o=p,a=a*e+h}}return r&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||null!=t&&this.pos-s!==t?null:a},C.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var i=this.readInt(e);return null==i&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(i=hn(this.input.slice(t,this.pos)),++this.pos):ce(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(u.num,i)},C.readNumber=function(e){var t=this.pos;!e&&null===this.readInt(10,void 0,!0)&&this.raise(t,"Invalid number");var i=this.pos-t>=2&&48===this.input.charCodeAt(t);i&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&110===r){var n=hn(this.input.slice(t,this.pos));return++this.pos,ce(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(u.num,n)}i&&/[89]/.test(this.input.slice(t,this.pos))&&(i=!1),46===r&&!i&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),(69===r||101===r)&&!i&&((43===(r=this.input.charCodeAt(++this.pos))||45===r)&&++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),ce(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s=os(this.input.slice(t,this.pos),i);return this.finishToken(u.num,s)},C.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},C.readString=function(e){for(var t="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!1),i=this.pos):8232===r||8233===r?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(we(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(u.string,t)};var pn={};C.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==pn)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},C.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw pn;this.raise(e,t)},C.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(96===i||36===i&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==u.template&&this.type!==u.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(u.template,e)):36===i?(this.pos+=2,this.finishToken(u.dollarBraceL)):(++this.pos,this.finishToken(u.backQuote));if(92===i)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(we(i)){switch(e+=this.input.slice(t,this.pos),++this.pos,i){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(i)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},C.readInvalidTemplateToken=function(){for(;this.pos=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],n=parseInt(r,8);return n>255&&(r=r.slice(0,-1),n=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),("0"!==r||56===t||57===t)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(n)}return we(t)?"":String.fromCharCode(t)}},C.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return null===i&&this.invalidStringToken(t,"Bad character escape sequence"),i},C.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,r=this.options.ecmaVersion>=6;this.pos>16)+(t>>16)+(i>>16)<<16|65535&i}function fs(e,t){return e<>>32-t}function pt(e,t,i,r,n,s){return ye(fs(ye(ye(t,e),ye(r,s)),n),i)}function D(e,t,i,r,n,s,a){return pt(t&i|~t&r,e,t,n,s,a)}function O(e,t,i,r,n,s,a){return pt(t&r|i&~r,e,t,n,s,a)}function V(e,t,i,r,n,s,a){return pt(t^i^r,e,t,n,s,a)}function F(e,t,i,r,n,s,a){return pt(i^(t|~r),e,t,n,s,a)}function lt(e,t){e[t>>5]|=128<>>9<<4)]=t;let i=1732584193,r=-271733879,n=-1732584194,s=271733878;for(let t=0;t>5]>>>r%32&255);return t}function ni(e){let t=[],i=e.length>>2;for(let e=0;e>5]|=(255&e.charCodeAt(i/8))<16&&(i=lt(i,8*e.length));for(let e=0;e<16;e+=1)r[e]=909522486^i[e],n[e]=1549556828^i[e];let s=lt(r.concat(ni(t)),512+8*t.length);return mn(lt(n.concat(s),640))}function yn(e){let t="0123456789abcdef",i="";for(let r=0;r>>4&15)+t.charAt(15&n)}return i}function ai(e){return unescape(encodeURIComponent(e))}function gn(e){return ds(ai(e))}function ys(e){return yn(gn(e))}function xn(e,t){return ms(ai(e),ai(t))}function gs(e,t){return yn(xn(e,t))}function xs(e,t,i){return t?i?xn(t,e):gs(t,e):i?gn(e):ys(e)}var ti=3072;function _s(e){let t=new Headers(e);if(e.has("x-bare-headers")){let i=e.get("x-bare-headers");if(i.length>ti){t.delete("x-bare-headers");let e=0;for(let r=0;r{s.removeEventListener("close",o),s.removeEventListener("message",c)},o=()=>{a()},c=e=>{if(a(),"string"!=typeof e.data)throw new TypeError("the first websocket message was not a text frame");let t=JSON.parse(e.data);if("open"!==t.type)throw new TypeError("message was not of open type");e.stopImmediatePropagation(),r({protocol:t.protocol,setCookies:t.setCookies}),n(ge.OPEN),s.dispatchEvent(new Event("open"))};return s.addEventListener("close",o),s.addEventListener("message",c),s.addEventListener("open",(r=>{r.stopImmediatePropagation(),n(ge.CONNECTING),i().then((i=>ge.prototype.send.call(s,JSON.stringify({type:"connect",remote:e.toString(),protocols:t,headers:i,forwardHeaders:[]}))))}),{once:!0}),s}async request(e,t,i,r,n,s,a){if(r.protocol.startsWith("blob:")){let e=await ii(r),t=new dn(e.body,e);return t.rawHeaders=Object.fromEntries(e.headers),t.rawResponse=e,t}let o={};if(t instanceof Headers)for(let[e,i]of t)o[e]=i;else for(let e in t)o[e]=t[e];let c={credentials:"omit",method:e,signal:a};"only-if-cached"!==n&&(c.cache=n),void 0!==i&&(c.body=i),void 0!==s&&(c.duplex=s),c.headers=this.createBareHeaders(r,o);let l=await ii(this.http+"?cache="+xs(r.toString()),c),p=await this.readBareResponse(l),h=new dn(hs.includes(p.status)?void 0:l.body,{status:p.status,statusText:p.statusText??void 0,headers:new Headers(p.headers)});return h.rawHeaders=p.headers,h.rawResponse=l,h}async readBareResponse(e){if(!e.ok)throw new ht(e.status,await e.json());let t=bs(e.headers),i={},r=t.get("x-bare-status");null!==r&&(i.status=parseInt(r));let n=t.get("x-bare-status-text");null!==n&&(i.statusText=n);let s=t.get("x-bare-headers");return null!==s&&(i.headers=JSON.parse(s)),i}createBareHeaders(e,t,i=[],r=[],n=[]){let s=new Headers;s.set("x-bare-url",e.toString()),s.set("x-bare-headers",JSON.stringify(t));for(let e of i)s.append("x-bare-forward-headers",e);for(let e of r)s.append("x-bare-pass-headers",e);for(let e of n)s.append("x-bare-pass-status",e.toString());return _s(s),s}},ws="!#$%&'*+-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`abcdefghijklmnopqrstuvwxyz|~";function vs(e){for(let t=0;tthis.loadManifest(e))).catch((e=>{throw delete this.working,e}))),this.working):this.client}getClient(){for(let[e,t]of Ss)if(this.manifest.versions.includes(e))return new t(this.server);throw new Error("Unable to find compatible client version. Starting from v2.0.0, @tomphttp/bare-client only supports Bare servers v3+. For more information, see https://github.com/tomphttp/bare-client/")}createWebSocket(e,t=[],i){if(!this.client)throw new TypeError("You need to wait for the client to finish fetching the manifest before creating any WebSockets. Try caching the manifest data before making this request.");try{e=new URL(e)}catch{throw new DOMException(`Faiiled to construct 'WebSocket': The URL '${e}' is invalid.`)}if(!Cs.includes(e.protocol))throw new DOMException(`Failed to construct 'WebSocket': The URL's scheme must be either 'ws' or 'wss'. '${e.protocol}' is not allowed.`);Array.isArray(t)||(t=[t]),t=t.map(String);for(let e of t)if(!vs(e))throw new DOMException(`Failed to construct 'WebSocket': The subprotocol '${e}' is invalid.`);let r=this.client.connect(e,t,(async()=>{let t="function"==typeof i.headers?await i.headers():i.headers||{},r=t instanceof Headers?Object.fromEntries(t):t;return r.Host=e.host,r.Pragma="no-cache",r["Cache-Control"]="no-cache",r.Upgrade="websocket",r.Connection="Upgrade",r}),(e=>{n=e.protocol,i.setCookiesCallback&&i.setCookiesCallback(e.setCookies)}),(e=>{s=e}),i.webSocketImpl||me),n="",s=ge.CONNECTING,a=()=>{let e=Es.call(r);return e===ge.OPEN?s:e};i.readyStateHook?i.readyStateHook(r,a):Object.defineProperty(r,"readyState",{get:a,configurable:!0,enumerable:!0});let o=()=>{if(a()===ge.CONNECTING)return new DOMException("Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.")};i.sendErrorHook?i.sendErrorHook(r,o):r.send=function(...e){let t=o();if(t)throw t;ge.prototype.send.call(this,...e)},i.urlHook?i.urlHook(r,e):Object.defineProperty(r,"url",{get:()=>e.toString(),configurable:!0,enumerable:!0});let c=()=>n;return i.protocolHook?i.protocolHook(r,c):Object.defineProperty(r,"protocol",{get:c,configurable:!0,enumerable:!0}),r}async fetch(e,t){let i=ks(e)?new us(e,t):e,r=t?.headers||i.headers,n=r instanceof Headers?Object.fromEntries(r):r,s=t?.duplex,a=t?.body||i.body,o=new URL(i.url),c=await this.demand();for(let e=0;;e++){"host"in n?n.host=o.host:n.Host=o.host;let r=await c.request(i.method,n,a,o,i.cache,s,i.signal);r.finalURL=o.toString();let l=t?.redirect||i.redirect;if(!ps.includes(r.status))return r;switch(l){case"follow":{let t=r.headers.get("location");if(ls>e&&null!==t){o=new URL(t,o);continue}throw new TypeError("Failed to fetch")}case"error":throw new TypeError("Failed to fetch");case"manual":return r}}}};function ks(e){return"string"==typeof e||e instanceof URL}async function bn(e,t){let i=await _n(e,t);return new Oe(e,i)}var Hs=Ze(wn(),1),Tn=Ze(Sn(),1),{stringify:Os}=JSON;if(!String.prototype.repeat)throw new Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw new Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");var dt={"||":2,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},ee=17,Vs={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:ee,ClassExpression:ee,FunctionExpression:ee,ObjectExpression:ee,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function Ce(e,t){let{generator:i}=e;if(e.write("("),null!=t&&t.length>0){i[t[0].type](t[0],e);let{length:r}=t;for(let n=1;n0){e.write(r);for(let t=1;t0){i.VariableDeclarator(r[0],e);for(let t=1;t0){t.write(r),n&&null!=e.comments&&j(t,e.comments,s,r);let{length:o}=a;for(let e=0;e0){for(;n0&&t.write(", ");let e=i[n],r=e.type[6];if("D"===r)t.write(e.local.name,e),n++;else{if("N"!==r)break;t.write("* as "+e.local.name,e),n++}}if(n0)for(let e=0;;){let n=i[e],{name:s}=n.local;if(t.write(s,n),s!==n.exported.name&&t.write(" as "+n.exported.name),!(++e "),"O"===e.body.type[0]?(t.write("("),this.ObjectExpression(e.body,t),t.write(")")):this[e.body.type](e.body,t)},ThisExpression(e,t){t.write("this",e)},Super(e,t){t.write("super",e)},RestElement:kn=function(e,t){t.write("..."),this[e.argument.type](e.argument,t)},SpreadElement:kn,YieldExpression(e,t){t.write(e.delegate?"yield*":"yield"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t))},AwaitExpression(e,t){t.write("await ",e),mt(t,e.argument,e)},TemplateLiteral(e,t){let{quasis:i,expressions:r}=e;t.write("`");let{length:n}=r;for(let e=0;e0){let{elements:i}=e,{length:r}=i;for(let e=0;;){let n=i[e];if(null!=n&&this[n.type](n,t),!(++e0){t.write(r),n&&null!=e.comments&&j(t,e.comments,s,r);let a=","+r,{properties:o}=e,{length:c}=o;for(let e=0;;){let i=o[e];if(n&&null!=i.comments&&j(t,i.comments,s,r),t.write(s),this[i.type](i,t),!(++e0){let{properties:i}=e,{length:r}=i;for(let e=0;this[i[e].type](i[e],t),++e1||"U"===n[0]&&("n"===n[1]||"p"===n[1])&&r.prefix&&r.operator[0]===i&&("+"===i||"-"===i))&&t.write(" "),s?(t.write(i.length>1?" (":"("),this[n](r,t),t.write(")")):this[n](r,t)}else this[e.argument.type](e.argument,t),t.write(e.operator)},UpdateExpression(e,t){e.prefix?(t.write(e.operator),this[e.argument.type](e.argument,t)):(this[e.argument.type](e.argument,t),t.write(e.operator))},AssignmentExpression(e,t){this[e.left.type](e.left,t),t.write(" "+e.operator+" "),this[e.right.type](e.right,t)},AssignmentPattern(e,t){this[e.left.type](e.left,t),t.write(" = "),this[e.right.type](e.right,t)},BinaryExpression:An=function(e,t){let i="in"===e.operator;i&&t.write("("),mt(t,e.left,e,!1),t.write(" "+e.operator+" "),mt(t,e.right,e,!0),i&&t.write(")")},LogicalExpression:An,ConditionalExpression(e,t){let{test:i}=e,r=t.expressionsPrecedence[i.type];r===ee||r<=t.expressionsPrecedence.ConditionalExpression?(t.write("("),this[i.type](i,t),t.write(")")):this[i.type](i,t),t.write(" ? "),this[e.consequent.type](e.consequent,t),t.write(" : "),this[e.alternate.type](e.alternate,t)},NewExpression(e,t){t.write("new ");let i=t.expressionsPrecedence[e.callee.type];i===ee||i0&&(this.lineEndSize>0&&(1===r.length?e[i-1]===r:e.endsWith(r))?(this.line+=this.lineEndSize,this.column=0):this.column+=i)}toString(){return this.output}};function In(e,t){let i=new hi(t);return i.generator[e.type](e,i),i.output}var pi=class{constructor(e){this.mime=_r,this.idb=tt,this.path=Us,this.acorn={parse:fn},this.bare={createBareClient:bn,BareClient:Oe},this.base64={encode:btoa,decode:atob},this.estree={generate:In},this.cookie=Hs,this.setCookieParser=Tn.parse,this.ctx=e}},Nn=pi;function fi(e,t,i,r,n="",s=!1,a=""){if(self.__dynamic$config)var o="development"==self.__dynamic$config.mode;else o=!1;if(s){var c=[{nodeName:"script",tagName:"script",namespaceURI:"http://www.w3.org/1999/xhtml",childNodes:[],attrs:[{name:"src",value:e+(o?"?"+Math.floor(89999*Math.random()+1e4):"")}]},{nodeName:"script",tagName:"script",namespaceURI:"http://www.w3.org/1999/xhtml",childNodes:[],attrs:[{name:"src",value:t+(o?"?"+Math.floor(89999*Math.random()+1e4):"")}]}];return this.ctx.config.assets.files.inject&&c.unshift({nodeName:"script",tagName:"script",namespaceURI:"http://www.w3.org/1999/xhtml",childNodes:[],attrs:[{name:"src",value:this.ctx.config.assets.files.inject+(o?"?"+Math.floor(89999*Math.random()+1e4):"")}]}),r&&c.unshift({nodeName:"script",tagName:"script",namespaceURI:"http://www.w3.org/1999/xhtml",childNodes:[],attrs:[{name:"src",value:"data:application/javascript;base64,"+btoa(`self.__dynamic$cookies = atob("${btoa(r)}");document.currentScript?.remove();`)}]}),n&&c.unshift({nodeName:"script",tagName:"script",namespaceURI:"http://www.w3.org/1999/xhtml",childNodes:[],attrs:[{name:"src",value:"data:application/javascript;base64,"+btoa(n+";document.currentScript?.remove();")}]}),a&&c.unshift({nodeName:"script",tagName:"script",namespaceURI:"http://www.w3.org/1999/xhtml",childNodes:[],attrs:[{name:"src",value:"data:application/javascript;base64,"+btoa(a+";document.currentScript?.remove();")}]}),c}var l=[`
All
Android Emulator
Multiplayer
Sports
Flash
Emulator
Local