diff --git a/spaces/17TheWord/vits-models/text/symbols.py b/spaces/17TheWord/vits-models/text/symbols.py deleted file mode 100644 index edfbd24247be8c757275ce80b9ec27a0ffa808f3..0000000000000000000000000000000000000000 --- a/spaces/17TheWord/vits-models/text/symbols.py +++ /dev/null @@ -1,39 +0,0 @@ -''' -Defines the set of symbols used in text input to the model. -''' - -'''# japanese_cleaners -_pad = '_' -_punctuation = ',.!?-' -_letters = 'AEINOQUabdefghijkmnoprstuvwyzʃʧ↓↑ ' -''' - -'''# japanese_cleaners2 -_pad = '_' -_punctuation = ',.!?-~…' -_letters = 'AEINOQUabdefghijkmnoprstuvwyzʃʧʦ↓↑ ' -''' - -'''# korean_cleaners -_pad = '_' -_punctuation = ',.!?…~' -_letters = 'ㄱㄴㄷㄹㅁㅂㅅㅇㅈㅊㅋㅌㅍㅎㄲㄸㅃㅆㅉㅏㅓㅗㅜㅡㅣㅐㅔ ' -''' - -'''# chinese_cleaners -_pad = '_' -_punctuation = ',。!?—…' -_letters = 'ㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎㄏㄐㄑㄒㄓㄔㄕㄖㄗㄘㄙㄚㄛㄜㄝㄞㄟㄠㄡㄢㄣㄤㄥㄦㄧㄨㄩˉˊˇˋ˙ ' -''' - -# zh_ja_mixture_cleaners -_pad = '_' -_punctuation = ',.!?-~…' -_letters = 'AEINOQUabdefghijklmnoprstuvwyzʃʧʦɯɹəɥ⁼ʰ`→↓↑ ' - - -# Export all symbols: -symbols = [_pad] + list(_punctuation) + list(_letters) - -# Special symbol ids -SPACE_ID = symbols.index(" ") \ No newline at end of file diff --git a/spaces/1gistliPinn/ChatGPT4/Examples/Bahubali - The Beginning Movie Download In Torrent LINK.md b/spaces/1gistliPinn/ChatGPT4/Examples/Bahubali - The Beginning Movie Download In Torrent LINK.md deleted file mode 100644 index 03f0a1abc2eb38d4e3c002f87cd59960ae4eff53..0000000000000000000000000000000000000000 --- a/spaces/1gistliPinn/ChatGPT4/Examples/Bahubali - The Beginning Movie Download In Torrent LINK.md +++ /dev/null @@ -1,6 +0,0 @@ -

Bahubali - The Beginning movie download in torrent


Download ✑ ✑ ✑ https://imgfil.com/2uy0q6



-
- d5da3c52bf
-
-
-

diff --git a/spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/Cryptoassets The Innovative Investor 39s Guide To Bitcoin And Beyond Pdf Download ((FREE)).md b/spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/Cryptoassets The Innovative Investor 39s Guide To Bitcoin And Beyond Pdf Download ((FREE)).md deleted file mode 100644 index f75c9d8ef30d5dfa8e69abaefe8035e0148cf225..0000000000000000000000000000000000000000 --- a/spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/Cryptoassets The Innovative Investor 39s Guide To Bitcoin And Beyond Pdf Download ((FREE)).md +++ /dev/null @@ -1,47 +0,0 @@ - -

Cryptoassets: The Innovative Investor's Guide to Bitcoin and Beyond PDF Download

-

Cryptoassets are digital assets that use cryptography and blockchain technology to enable secure, decentralized, and peer-to-peer transactions. They include cryptocurrencies like Bitcoin and Ethereum, as well as tokens that represent various rights, utilities, or assets on a blockchain. Cryptoassets have emerged as a new asset class that offers investors unprecedented opportunities to diversify their portfolios, hedge against inflation and geopolitical risks, and access new markets and innovations.

-

However, investing in cryptoassets is not without challenges and risks. Cryptoassets are highly volatile, complex, and unregulated. They require a high level of technical knowledge, research, and due diligence. They also pose unique tax implications and legal uncertainties. Therefore, investors need to educate themselves on the fundamentals of cryptoassets, the best platforms and strategies to use, and the benefits and risks involved.

-

cryptoassets the innovative investor 39;s guide to bitcoin and beyond pdf download


Download Filehttps://urlin.us/2uT0M7



-

How to Invest in Cryptoassets

-

There are different ways to invest in cryptoassets depending on your goals, risk appetite, and preferences. Some of the most common methods are:

- -

Benefits and Risks of Cryptoassets

-

Investing in cryptoassets can offer several benefits for investors who are looking for alternative ways to grow their wealth and hedge against uncertainties. Some of the benefits are:

- -

However, investing in cryptoassets also involves significant risks that you should be aware of and prepared for. Some of the risks are:

- -

Cryptoassets: The Innovative Investor's Guide to Bitcoin and Beyond PDF Download

-

If you want to learn more about cryptoassets and how to invest in them wisely, you might want to read the book Cryptoassets: The Innovative Investor's Guide to Bitcoin and Beyond by Chris Burniske and Jack Tatar. This book is one of the most comprehensive and authoritative guides on the topic of crypto investing. It covers everything from the history and evolution of cryptoassets, to the valuation and analysis of different types of cryptoassets, to the portfolio management and risk mitigation strategies for crypto investors.

-

The book is written in a clear and engaging style that is suitable for both beginners and experts. It is full of practical examples, case studies, charts, graphs, and tables that illustrate the concepts and data. It is also updated with the latest developments and trends in the crypto space.

-

You can download the PDF version of the book for free from this link: [Cryptoassets: The Innovative Investor's Guide to Bitcoin and Beyond PDF Download]. You will need a PDF reader software or app to open it. You can also buy the paperback or Kindle version of the book from Amazon or other online retailers.

-

By reading this book, you will gain a deeper understanding of cryptoassets and how they work. You will also learn how to evaluate their potential value and performance, how to diversify your portfolio with them, how to manage your risks and rewards, and how to navigate the complex and dynamic crypto market.

-

Conclusion

-

Cryptoassets are a new asset class that offer investors unprecedented opportunities to diversify their portfolios, hedge against uncertainties, and access new markets and innovations. However, they also involve high volatility, complexity, regulation, and taxation. Therefore, investors need to educate themselves on the fundamentals of cryptoassets, the best platforms and strategies to use, and the benefits and risks involved. One of the best resources to learn about cryptoassets is the book Cryptoassets: The Innovative Investor's Guide to Bitcoin and Beyond by Chris Burniske and Jack Tatar. This book provides a comprehensive and authoritative guide on the topic of crypto investing. It covers everything from the history and evolution of cryptoassets, to the valuation and analysis of different types of cryptoassets, to the portfolio management and risk mitigation strategies for crypto investors. You can download the PDF version of the book for free from this link: [Cryptoassets: The Innovative Investor's Guide to Bitcoin and Beyond PDF Download]. You can also buy the paperback or Kindle version of the book from Amazon or other online retailers. We hope that this article has given you some useful information and insights on cryptoassets and how to invest in them wisely. If you have any questions or comments, please feel free to leave them below. Thank you for reading and happy investing!

FAQs

-

What are cryptoassets?

-

Cryptoassets are digital assets that use cryptography and blockchain technology to enable secure, decentralized, and peer-to-peer transactions. They include cryptocurrencies like Bitcoin and Ethereum, as well as tokens that represent various rights, utilities, or assets on a blockchain.

-

-

Why are cryptoassets important for investors?

-

Cryptoassets offer investors unprecedented opportunities to diversify their portfolios, hedge against uncertainties, and access new markets and innovations. They also represent the cutting-edge of technology and finance. They enable new forms of transactions, contracts, applications, and business models that were not possible before.

-

How can I invest in cryptoassets?

-

There are different ways to invest in cryptoassets depending on your goals, risk appetite, and preferences. Some of the most common methods are buying cryptocurrency directly, investing in cryptocurrency companies, or investing in cryptocurrency funds.

-

What are the benefits and risks of cryptoassets?

-

Some of the benefits of cryptoassets are high returns, diversification, innovation, and hedging. Some of the risks are volatility, complexity, regulation, and taxation.

-

What is Cryptoassets: The Innovative Investor's Guide to Bitcoin and Beyond?

-

Cryptoassets: The Innovative Investor's Guide to Bitcoin and Beyond is a book by Chris Burniske and Jack Tatar that provides a comprehensive and authoritative guide on the topic of crypto investing. It covers everything from the history and evolution of cryptoassets, to the valuation and analysis of different types of cryptoassets, to the portfolio management and risk mitigation strategies for crypto investors.

197e85843d
-
-
\ No newline at end of file diff --git a/spaces/1phancelerku/anime-remove-background/Create Your Own City and Explore Other Islands with City Island 5 MOD APK Terbaru.md b/spaces/1phancelerku/anime-remove-background/Create Your Own City and Explore Other Islands with City Island 5 MOD APK Terbaru.md deleted file mode 100644 index d5ec67720068d537999e21dea65842d32eb43b19..0000000000000000000000000000000000000000 --- a/spaces/1phancelerku/anime-remove-background/Create Your Own City and Explore Other Islands with City Island 5 MOD APK Terbaru.md +++ /dev/null @@ -1,67 +0,0 @@ -
-

Download City Island 5 Mod Apk Terbaru: A Guide for City Building Enthusiasts

-

If you are a fan of city building simulation games, you might have heard of City Island 5, one of the most popular and successful titles in the genre. In this game, you can create and manage your own city on various islands, each with its own unique theme and terrain. You can also visit other players' cities and see how they are developing theirs. But what if you want to have more fun and freedom in your city building adventure? Well, you might want to download City Island 5 mod apk terbaru, a modified version of the game that offers unlimited money, gold, islands, and other features. In this article, we will guide you on how to download and install City Island 5 mod apk terbaru, what are the features and benefits of using it, how to play and enjoy it, and what are the pros and cons of using it. So, let's get started!

-

How to Download and Install City Island 5 Mod Apk Terbaru

-

Downloading and installing City Island 5 mod apk terbaru is not very difficult, but you need to follow some steps carefully. Here they are:

-

download city island 5 mod apk terbaru


DOWNLOAD === https://jinyurl.com/2uNQUD



-
    -
  1. Find a reliable source for the mod apk file. There are many websites that offer mod apk files for various games, but not all of them are safe and trustworthy. Some may contain viruses, malware, or spyware that can harm your device or steal your personal information. To avoid such risks, you should only download mod apk files from reputable sources that have positive reviews and feedback from users. One such source is [AN1.com](^1^), where you can find the latest version of City Island 5 mod apk terbaru.
  2. -
  3. Enable unknown sources on your device settings. Before you can install any mod apk file on your device, you need to allow your device to install apps from unknown sources. This is because mod apk files are not available on the official Google Play Store or App Store, so they are considered as unknown sources by your device. To enable unknown sources, go to your device settings, then security or privacy, then toggle on the option for unknown sources.
  4. -
  5. Download and install the mod apk file. After you have enabled unknown sources on your device settings, you can proceed to download and install the mod apk file. To progress and performance in the game. They also reward you with money, gold, gems, and other items that can help you unlock more features and options in the game. Therefore, you should always aim to accomplish quests and achievements in the game.
  6. - -

    These are just some of the tips that can help you play and enjoy City Island 5 mod apk terbaru. There are more that you can learn and discover once you start playing the game.

    -

    What are the Pros and Cons of City Island 5 Mod Apk Terbaru?

    -

    City Island 5 mod apk terbaru is a great way to have more fun and freedom in your city building adventure. However, it also has some pros and cons that you should be aware of. Here are some of them:

    - - - - - - - - - - - - - -
    ProsCons
    More freedom and flexibility in city building. You can build, upgrade, and decorate your city as you wish without any limitation or restriction. You can also explore and build on any island you want without any requirement or condition.Possible security risks and compatibility issues. Since mod apk files are not from the official sources, they may contain viruses, malware, or spyware that can harm your device or steal your personal information. They may also not be compatible with your device model or operating system, which can cause errors, crashes, or glitches in the game.
    More fun and excitement in exploring different islands. You can enjoy the diversity and beauty of different islands, each with its own theme and terrain. You can also visit other players' cities and see how they are developing theirs.Less challenge and satisfaction in playing the game. Since you have unlimited money, gold, islands, and other features, you may not feel the challenge or satisfaction of playing the game. You may not have to work hard or plan carefully to achieve your goals or overcome your obstacles. You may also lose interest or motivation in playing the game after a while.
    -

    These are just some of the pros and cons of City Island 5 mod apk terbaru. You should weigh them carefully before you decide to download and use it.

    -

    Conclusion and FAQs

    -

    In conclusion, City Island 5 mod apk terbaru is a modified version of the game that offers unlimited money, gold, islands, and other features. It is a great way to have more fun and freedom in your city building adventure. However, it also has some pros and cons that you should be aware of. In this article, we have guided you on how to download and install City Island 5 mod apk terbaru, what are the features and benefits of using it, how to play and enjoy it, and what are the pros and cons of using it. We hope that this article has been helpful and informative for you. If you have any questions or doubts about City Island 5 mod apk terbaru, here are some FAQs that may answer them:

    -

    FAQ 1: Is City Island 5 Mod Apk Terbaru safe to use?

    -

    City Island 5 mod apk terbaru is safe to use as long as you download it from a reliable source that has positive reviews and feedback from users. However, you should still be careful and cautious when using it, as there may be some security risks or compatibility issues involved. You should also scan the mod apk file with an antivirus or anti-malware software before installing it on your device.

    -

    FAQ 2: How to update City Island 5 Mod Apk Terbaru?

    -

    City Island 5 mod apk terbaru may not update automatically when there is a new version of the game available. You may need to download and install the latest version of the mod apk file manually from the same source where you got it from. However, you should also check if the new version of the mod apk file is compatible with your device model or operating system before installing it.

    -

    FAQ 3: How to get more rewards and chests in City Island 5 Mod Apk Terbaru?

    -

    City Island 5 mod apk terbaru gives you unlimited money and gold, which you can use to buy premium items and speed up your progress. However, if you want to get more rewards and chests in the game, you can also do the following:

    -Search this websiteMenuClosePremiumPacksComplete ProjectsCharactersWeapons3D2DTutorialsMembershipApocalyptic WastelandHome>Unity Assets>Environment>Apocalyptic Wasteland
(adsbygoogle = window.adsbygoogle || []).push();Apocalyptic Wastelanddownload Apocalyptic Wasteland FREE Unity

-

Here at Creative Bloq, we're big fans of typography (opens in new tab) and we're constantly on the hunt for new and exciting typefaces - especially free fonts (opens in new tab). So, if you're in need of a font for your latest design or just like to keep a collection so you're prepared, we may be able to help out.

-

The Creative Bloq team is made up of a group of design fans, and has changed and evolved since Creative Bloq began back in 2012. The current website team consists of six full-time members of staff: Editor Kerrie Hughes, Deputy Editor Rosie Hilder, Deals Editor Beren Neale, Senior News Editor Daniel Piper, Digital Arts and Design Editor Ian Dean, and Staff Writer Amelia Bamsey, as well as a roster of freelancers from around the world. The 3D World and ImagineFX magazine teams also pitch in, ensuring that content from 3D World and ImagineFX is represented on Creative Bloq.

-

Gutiar Pro Tab "Soldiers Of The Wasteland" from Dragonforce band is free to download.Tablature file Dragonforce - Soldiers Of The Wasteland opens by means of the Guitar PRO program. This program is available todownloading on our site.

-

April is the cruellest month, breeding
Lilacs out of the dead land, mixing
Memory and desire, stirring
Dull roots with spring rain.
Winter kept us warm, covering
Earth in forgetful snow, feeding
A little life with dried tubers.
Summer surprised us, coming over the Starnbergersee
With a shower of rain; we stopped in the colonnade,
And went on in sunlight, into the Hofgarten,
And drank coffee, and talked for an hour.
Bin gar keine Russin, stamm' aus Litauen, echt deutsch.
And when we were children, staying at the archduke's,
My cousin's, he took me out on a sled,
And I was frightened. He said, Marie,
Marie, hold on tight. And down we went.
In the mountains, there you feel free.
I read, much of the night, and go south in the winter.

-

-

Includes unlimited streaming via the free Bandcamp app, plus high-quality downloads of How Deep Is Your Devotion, Landmark, 2022 | Label Compilation (mixed by todos), Mycological Patterns, 1994, Konec, Original Soundtrack, Chaos & Order, and 84 more. , and , . Purchasable with gift card Buy Digital Discography $95.60 USD or more (80% OFF) Send as Gift credits from Song Of The Highest Tower, released March 6, 2014 license all rights reserved tags Tags ambient electronica idm drone electronic Los Angeles Shopping cart total USD Check out about A Strangely Isolated Place Los Angeles, California

aaccfb2cb3
-
-
\ No newline at end of file diff --git a/spaces/brjathu/HMR2.0/vendor/detectron2/projects/DensePose/densepose/vis/densepose_outputs_vertex.py b/spaces/brjathu/HMR2.0/vendor/detectron2/projects/DensePose/densepose/vis/densepose_outputs_vertex.py deleted file mode 100644 index 71e5323c2bd3a29bc90e66d7d59d524033c120bf..0000000000000000000000000000000000000000 --- a/spaces/brjathu/HMR2.0/vendor/detectron2/projects/DensePose/densepose/vis/densepose_outputs_vertex.py +++ /dev/null @@ -1,229 +0,0 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved -import json -import numpy as np -from functools import lru_cache -from typing import Dict, List, Optional, Tuple -import cv2 -import torch - -from detectron2.utils.file_io import PathManager - -from densepose.modeling import build_densepose_embedder -from densepose.modeling.cse.utils import get_closest_vertices_mask_from_ES - -from ..data.utils import get_class_to_mesh_name_mapping -from ..structures import DensePoseEmbeddingPredictorOutput -from ..structures.mesh import create_mesh -from .base import Boxes, Image, MatrixVisualizer -from .densepose_results_textures import get_texture_atlas - - -@lru_cache() -def get_xyz_vertex_embedding(mesh_name: str, device: torch.device): - if mesh_name == "smpl_27554": - embed_path = PathManager.get_local_path( - "https://dl.fbaipublicfiles.com/densepose/data/cse/mds_d=256.npy" - ) - embed_map, _ = np.load(embed_path, allow_pickle=True) - embed_map = torch.tensor(embed_map).float()[:, 0] - embed_map -= embed_map.min() - embed_map /= embed_map.max() - else: - mesh = create_mesh(mesh_name, device) - embed_map = mesh.vertices.sum(dim=1) - embed_map -= embed_map.min() - embed_map /= embed_map.max() - embed_map = embed_map**2 - return embed_map - - -class DensePoseOutputsVertexVisualizer(object): - def __init__( - self, - cfg, - inplace=True, - cmap=cv2.COLORMAP_JET, - alpha=0.7, - device="cuda", - default_class=0, - **kwargs, - ): - self.mask_visualizer = MatrixVisualizer( - inplace=inplace, cmap=cmap, val_scale=1.0, alpha=alpha - ) - self.class_to_mesh_name = get_class_to_mesh_name_mapping(cfg) - self.embedder = build_densepose_embedder(cfg) - self.device = torch.device(device) - self.default_class = default_class - - self.mesh_vertex_embeddings = { - mesh_name: self.embedder(mesh_name).to(self.device) - for mesh_name in self.class_to_mesh_name.values() - if self.embedder.has_embeddings(mesh_name) - } - - def visualize( - self, - image_bgr: Image, - outputs_boxes_xywh_classes: Tuple[ - Optional[DensePoseEmbeddingPredictorOutput], Optional[Boxes], Optional[List[int]] - ], - ) -> Image: - if outputs_boxes_xywh_classes[0] is None: - return image_bgr - - S, E, N, bboxes_xywh, pred_classes = self.extract_and_check_outputs_and_boxes( - outputs_boxes_xywh_classes - ) - - for n in range(N): - x, y, w, h = bboxes_xywh[n].int().tolist() - mesh_name = self.class_to_mesh_name[pred_classes[n]] - closest_vertices, mask = get_closest_vertices_mask_from_ES( - E[[n]], - S[[n]], - h, - w, - self.mesh_vertex_embeddings[mesh_name], - self.device, - ) - embed_map = get_xyz_vertex_embedding(mesh_name, self.device) - vis = (embed_map[closest_vertices].clip(0, 1) * 255.0).cpu().numpy() - mask_numpy = mask.cpu().numpy().astype(dtype=np.uint8) - image_bgr = self.mask_visualizer.visualize(image_bgr, mask_numpy, vis, [x, y, w, h]) - - return image_bgr - - def extract_and_check_outputs_and_boxes(self, outputs_boxes_xywh_classes): - - densepose_output, bboxes_xywh, pred_classes = outputs_boxes_xywh_classes - - if pred_classes is None: - pred_classes = [self.default_class] * len(bboxes_xywh) - - assert isinstance( - densepose_output, DensePoseEmbeddingPredictorOutput - ), "DensePoseEmbeddingPredictorOutput expected, {} encountered".format( - type(densepose_output) - ) - - S = densepose_output.coarse_segm - E = densepose_output.embedding - N = S.size(0) - assert N == E.size( - 0 - ), "CSE coarse_segm {} and embeddings {}" " should have equal first dim size".format( - S.size(), E.size() - ) - assert N == len( - bboxes_xywh - ), "number of bounding boxes {}" " should be equal to first dim size of outputs {}".format( - len(bboxes_xywh), N - ) - assert N == len(pred_classes), ( - "number of predicted classes {}" - " should be equal to first dim size of outputs {}".format(len(bboxes_xywh), N) - ) - - return S, E, N, bboxes_xywh, pred_classes - - -def get_texture_atlases(json_str: Optional[str]) -> Optional[Dict[str, Optional[np.ndarray]]]: - """ - json_str is a JSON string representing a mesh_name -> texture_atlas_path dictionary - """ - if json_str is None: - return None - - paths = json.loads(json_str) - return {mesh_name: get_texture_atlas(path) for mesh_name, path in paths.items()} - - -class DensePoseOutputsTextureVisualizer(DensePoseOutputsVertexVisualizer): - def __init__( - self, - cfg, - texture_atlases_dict, - device="cuda", - default_class=0, - **kwargs, - ): - self.embedder = build_densepose_embedder(cfg) - - self.texture_image_dict = {} - self.alpha_dict = {} - - for mesh_name in texture_atlases_dict.keys(): - if texture_atlases_dict[mesh_name].shape[-1] == 4: # Image with alpha channel - self.alpha_dict[mesh_name] = texture_atlases_dict[mesh_name][:, :, -1] / 255.0 - self.texture_image_dict[mesh_name] = texture_atlases_dict[mesh_name][:, :, :3] - else: - self.alpha_dict[mesh_name] = texture_atlases_dict[mesh_name].sum(axis=-1) > 0 - self.texture_image_dict[mesh_name] = texture_atlases_dict[mesh_name] - - self.device = torch.device(device) - self.class_to_mesh_name = get_class_to_mesh_name_mapping(cfg) - self.default_class = default_class - - self.mesh_vertex_embeddings = { - mesh_name: self.embedder(mesh_name).to(self.device) - for mesh_name in self.class_to_mesh_name.values() - } - - def visualize( - self, - image_bgr: Image, - outputs_boxes_xywh_classes: Tuple[ - Optional[DensePoseEmbeddingPredictorOutput], Optional[Boxes], Optional[List[int]] - ], - ) -> Image: - image_target_bgr = image_bgr.copy() - if outputs_boxes_xywh_classes[0] is None: - return image_target_bgr - - S, E, N, bboxes_xywh, pred_classes = self.extract_and_check_outputs_and_boxes( - outputs_boxes_xywh_classes - ) - - meshes = { - p: create_mesh(self.class_to_mesh_name[p], self.device) for p in np.unique(pred_classes) - } - - for n in range(N): - x, y, w, h = bboxes_xywh[n].int().cpu().numpy() - mesh_name = self.class_to_mesh_name[pred_classes[n]] - closest_vertices, mask = get_closest_vertices_mask_from_ES( - E[[n]], - S[[n]], - h, - w, - self.mesh_vertex_embeddings[mesh_name], - self.device, - ) - uv_array = meshes[pred_classes[n]].texcoords[closest_vertices].permute((2, 0, 1)) - uv_array = uv_array.cpu().numpy().clip(0, 1) - textured_image = self.generate_image_with_texture( - image_target_bgr[y : y + h, x : x + w], - uv_array, - mask.cpu().numpy(), - self.class_to_mesh_name[pred_classes[n]], - ) - if textured_image is None: - continue - image_target_bgr[y : y + h, x : x + w] = textured_image - - return image_target_bgr - - def generate_image_with_texture(self, bbox_image_bgr, uv_array, mask, mesh_name): - alpha = self.alpha_dict.get(mesh_name) - texture_image = self.texture_image_dict.get(mesh_name) - if alpha is None or texture_image is None: - return None - U, V = uv_array - x_index = (U * texture_image.shape[1]).astype(int) - y_index = (V * texture_image.shape[0]).astype(int) - local_texture = texture_image[y_index, x_index][mask] - local_alpha = np.expand_dims(alpha[y_index, x_index][mask], -1) - output_image = bbox_image_bgr.copy() - output_image[mask] = output_image[mask] * (1 - local_alpha) + local_texture * local_alpha - return output_image.astype(np.uint8) diff --git a/spaces/brjathu/HMR2.0/vendor/detectron2/projects/PointSup/point_sup/detection_utils.py b/spaces/brjathu/HMR2.0/vendor/detectron2/projects/PointSup/point_sup/detection_utils.py deleted file mode 100644 index 3f95d9449277fc55e93121582f6c6a6396dc833d..0000000000000000000000000000000000000000 --- a/spaces/brjathu/HMR2.0/vendor/detectron2/projects/PointSup/point_sup/detection_utils.py +++ /dev/null @@ -1,103 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved - -import numpy as np -import torch - -# fmt: off -from detectron2.data.detection_utils import \ - annotations_to_instances as base_annotations_to_instances -from detectron2.data.detection_utils import \ - transform_instance_annotations as base_transform_instance_annotations - -# fmt: on - - -def annotations_to_instances(annos, image_size, sample_points=0): - """ - Create an :class:`Instances` object used by the models, - from instance annotations in the dataset dict. - - Args: - annos (list[dict]): a list of instance annotations in one image, each - element for one instance. - image_size (tuple): height, width - sample_points (int): subsample points at each iteration - - Returns: - Instances: - It will contain fields "gt_boxes", "gt_classes", - "gt_point_coords", "gt_point_labels", if they can be obtained from `annos`. - This is the format that builtin models with point supervision expect. - """ - target = base_annotations_to_instances(annos, image_size) - - assert ("point_coords" in annos[0]) == ("point_labels" in annos[0]) - - if len(annos) and "point_labels" in annos[0]: - point_coords = [] - point_labels = [] - for i, _ in enumerate(annos): - # Already in the image coordinate system - point_coords_wrt_image = np.array(annos[i]["point_coords"]) - point_labels_wrt_image = np.array(annos[i]["point_labels"]) - - if sample_points > 0: - random_indices = np.random.choice( - point_coords_wrt_image.shape[0], - sample_points, - replace=point_coords_wrt_image.shape[0] < sample_points, - ).astype(int) - point_coords_wrt_image = point_coords_wrt_image[random_indices] - point_labels_wrt_image = point_labels_wrt_image[random_indices] - assert point_coords_wrt_image.shape[0] == point_labels_wrt_image.size - - point_coords.append(point_coords_wrt_image) - point_labels.append(point_labels_wrt_image) - - point_coords = torch.stack([torch.from_numpy(x) for x in point_coords]) - point_labels = torch.stack([torch.from_numpy(x) for x in point_labels]) - target.gt_point_coords = point_coords - target.gt_point_labels = point_labels - - return target - - -def transform_instance_annotations( - annotation, transforms, image_size, *, keypoint_hflip_indices=None -): - """ - Apply transforms to box, and point annotations of a single instance. - It will use `transforms.apply_box` for the box, and - `transforms.apply_coords` for points. - Args: - annotation (dict): dict of instance annotations for a single instance. - It will be modified in-place. - transforms (TransformList or list[Transform]): - image_size (tuple): the height, width of the transformed image - keypoint_hflip_indices (ndarray[int]): see `create_keypoint_hflip_indices`. - Returns: - dict: - the same input dict with fields "bbox", "point_coords", "point_labels" - transformed according to `transforms`. - The "bbox_mode" field will be set to XYXY_ABS. - """ - annotation = base_transform_instance_annotations( - annotation, transforms, image_size, keypoint_hflip_indices - ) - - assert ("point_coords" in annotation) == ("point_labels" in annotation) - if "point_coords" in annotation and "point_labels" in annotation: - point_coords = annotation["point_coords"] - point_labels = np.array(annotation["point_labels"]).astype(np.float) - point_coords = transforms.apply_coords(point_coords) - - # Set all out-of-boundary points to "unlabeled" - inside = (point_coords >= np.array([0, 0])) & (point_coords <= np.array(image_size[::-1])) - inside = inside.all(axis=1) - point_labels[~inside] = -1 - - annotation["point_coords"] = point_coords - annotation["point_labels"] = point_labels - - return annotation diff --git a/spaces/brjathu/HMR2.0/vendor/detectron2/projects/ViTDet/configs/COCO/mask_rcnn_vitdet_h_75ep.py b/spaces/brjathu/HMR2.0/vendor/detectron2/projects/ViTDet/configs/COCO/mask_rcnn_vitdet_h_75ep.py deleted file mode 100644 index 7de96f0a6c760ac41152726ac1e4faeb1fb9a818..0000000000000000000000000000000000000000 --- a/spaces/brjathu/HMR2.0/vendor/detectron2/projects/ViTDet/configs/COCO/mask_rcnn_vitdet_h_75ep.py +++ /dev/null @@ -1,33 +0,0 @@ -from functools import partial - -from .mask_rcnn_vitdet_b_100ep import ( - dataloader, - lr_multiplier, - model, - train, - optimizer, - get_vit_lr_decay_rate, -) - -train.init_checkpoint = ( - "detectron2://ImageNetPretrained/MAE/mae_pretrain_vit_huge_p14to16.pth?matching_heuristics=True" -) - -model.backbone.net.embed_dim = 1280 -model.backbone.net.depth = 32 -model.backbone.net.num_heads = 16 -model.backbone.net.drop_path_rate = 0.5 -# 7, 15, 23, 31 for global attention -model.backbone.net.window_block_indexes = ( - list(range(0, 7)) + list(range(8, 15)) + list(range(16, 23)) + list(range(24, 31)) -) - -optimizer.params.lr_factor_func = partial(get_vit_lr_decay_rate, lr_decay_rate=0.9, num_layers=32) -optimizer.params.overrides = {} -optimizer.params.weight_decay_norm = None - -train.max_iter = train.max_iter * 3 // 4 # 100ep -> 75ep -lr_multiplier.scheduler.milestones = [ - milestone * 3 // 4 for milestone in lr_multiplier.scheduler.milestones -] -lr_multiplier.scheduler.num_updates = train.max_iter diff --git a/spaces/camilosegura/traductor-multilenguaje/Lib/site-packages/_sounddevice.py b/spaces/camilosegura/traductor-multilenguaje/Lib/site-packages/_sounddevice.py deleted file mode 100644 index b1e9f8c3443b040a2c75c09969bcad88cb527e02..0000000000000000000000000000000000000000 --- a/spaces/camilosegura/traductor-multilenguaje/Lib/site-packages/_sounddevice.py +++ /dev/null @@ -1,11 +0,0 @@ -# auto-generated file -import _cffi_backend - -ffi = _cffi_backend.FFI('_sounddevice', - _version = 0x2601, - _types = b'\x00\x00\x76\x0D\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x00\x79\x0D\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x00\x1C\x0D\x00\x00\x8D\x03\x00\x00\x00\x0F\x00\x00\x7B\x0D\x00\x00\x00\x0F\x00\x00\x80\x0D\x00\x00\x07\x11\x00\x00\x00\x0F\x00\x00\x88\x0D\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x00\x88\x0D\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x01\x01\x00\x00\x00\x0F\x00\x00\x88\x0D\x00\x00\x00\x0F\x00\x00\x21\x0D\x00\x00\x07\x11\x00\x00\x00\x0F\x00\x00\x01\x0D\x00\x00\x01\x0B\x00\x00\x00\x0F\x00\x00\x01\x0D\x00\x00\x82\x03\x00\x00\x1F\x11\x00\x00\x0E\x01\x00\x00\x00\x0F\x00\x00\x01\x0D\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x00\x01\x0D\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x00\x01\x0D\x00\x00\x0A\x01\x00\x00\x00\x0F\x00\x00\x01\x0D\x00\x00\x07\x03\x00\x00\x1F\x11\x00\x00\x1F\x11\x00\x00\x0E\x01\x00\x00\x0A\x01\x00\x00\x0A\x01\x00\x00\x52\x03\x00\x00\x07\x11\x00\x00\x00\x0F\x00\x00\x01\x0D\x00\x00\x2E\x11\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x0A\x01\x00\x00\x0E\x01\x00\x00\x0A\x01\x00\x00\x34\x11\x00\x00\x07\x11\x00\x00\x00\x0F\x00\x00\x01\x0D\x00\x00\x07\x11\x00\x00\x00\x0F\x00\x00\x01\x0D\x00\x00\x07\x11\x00\x00\x07\x11\x00\x00\x0A\x01\x00\x00\x00\x0F\x00\x00\x01\x0D\x00\x00\x07\x11\x00\x00\x8D\x03\x00\x00\x0A\x01\x00\x00\x00\x0F\x00\x00\x01\x0D\x00\x00\x07\x11\x00\x00\x6B\x03\x00\x00\x00\x0F\x00\x00\x01\x0D\x00\x00\x4B\x11\x00\x00\x07\x11\x00\x00\x0A\x01\x00\x00\x7F\x03\x00\x00\x0A\x01\x00\x00\x07\x11\x00\x00\x00\x0F\x00\x00\x01\x0D\x00\x00\x00\x0F\x00\x00\x69\x0D\x00\x00\x07\x11\x00\x00\x00\x0F\x00\x00\x8D\x0D\x00\x00\x7D\x03\x00\x00\x8B\x03\x00\x00\x0A\x01\x00\x00\x00\x0F\x00\x00\x8D\x0D\x00\x00\x60\x11\x00\x00\x0A\x01\x00\x00\x00\x0F\x00\x00\x8D\x0D\x00\x00\x09\x01\x00\x00\x00\x0F\x00\x00\x8D\x0D\x00\x00\x07\x11\x00\x00\x00\x0F\x00\x00\x8D\x0D\x00\x00\x07\x11\x00\x00\x09\x01\x00\x00\x07\x11\x00\x00\x09\x01\x00\x00\x07\x11\x00\x00\x00\x0F\x00\x00\x01\x09\x00\x00\x77\x03\x00\x00\x02\x09\x00\x00\x00\x0B\x00\x00\x7A\x03\x00\x00\x03\x09\x00\x00\x7C\x03\x00\x00\x04\x09\x00\x00\x00\x09\x00\x00\x02\x0B\x00\x00\x05\x09\x00\x00\x81\x03\x00\x00\x06\x09\x00\x00\x07\x09\x00\x00\x03\x0B\x00\x00\x04\x0B\x00\x00\x08\x09\x00\x00\x05\x0B\x00\x00\x06\x0B\x00\x00\x89\x03\x00\x00\x02\x01\x00\x00\x01\x03\x00\x00\x15\x01\x00\x00\x6E\x03\x00\x00\x00\x01', - _globals = (b'\x00\x00\x11\x23PaMacCore_GetChannelName',0,b'\x00\x00\x5F\x23PaMacCore_SetupChannelMap',0,b'\x00\x00\x64\x23PaMacCore_SetupStreamInfo',0,b'\x00\x00\x23\x23PaWasapi_IsLoopback',0,b'\x00\x00\x41\x23Pa_AbortStream',0,b'\x00\x00\x41\x23Pa_CloseStream',0,b'\x00\x00\x5A\x23Pa_GetDefaultHostApi',0,b'\x00\x00\x5A\x23Pa_GetDefaultInputDevice',0,b'\x00\x00\x5A\x23Pa_GetDefaultOutputDevice',0,b'\x00\x00\x5A\x23Pa_GetDeviceCount',0,b'\x00\x00\x00\x23Pa_GetDeviceInfo',0,b'\x00\x00\x0E\x23Pa_GetErrorText',0,b'\x00\x00\x5A\x23Pa_GetHostApiCount',0,b'\x00\x00\x03\x23Pa_GetHostApiInfo',0,b'\x00\x00\x09\x23Pa_GetLastHostErrorInfo',0,b'\x00\x00\x2A\x23Pa_GetSampleSize',0,b'\x00\x00\x18\x23Pa_GetStreamCpuLoad',0,b'\x00\x00\x06\x23Pa_GetStreamHostApiType',0,b'\x00\x00\x0B\x23Pa_GetStreamInfo',0,b'\x00\x00\x5C\x23Pa_GetStreamReadAvailable',0,b'\x00\x00\x18\x23Pa_GetStreamTime',0,b'\x00\x00\x5C\x23Pa_GetStreamWriteAvailable',0,b'\x00\x00\x5A\x23Pa_GetVersion',0,b'\x00\x00\x16\x23Pa_GetVersionText',0,b'\x00\x00\x26\x23Pa_HostApiDeviceIndexToDeviceIndex',0,b'\x00\x00\x1B\x23Pa_HostApiTypeIdToHostApiIndex',0,b'\x00\x00\x5A\x23Pa_Initialize',0,b'\x00\x00\x1E\x23Pa_IsFormatSupported',0,b'\x00\x00\x41\x23Pa_IsStreamActive',0,b'\x00\x00\x41\x23Pa_IsStreamStopped',0,b'\x00\x00\x37\x23Pa_OpenDefaultStream',0,b'\x00\x00\x2D\x23Pa_OpenStream',0,b'\x00\x00\x44\x23Pa_ReadStream',0,b'\x00\x00\x4E\x23Pa_SetStreamFinishedCallback',0,b'\x00\x00\x68\x23Pa_Sleep',0,b'\x00\x00\x41\x23Pa_StartStream',0,b'\x00\x00\x41\x23Pa_StopStream',0,b'\x00\x00\x5A\x23Pa_Terminate',0,b'\x00\x00\x49\x23Pa_WriteStream',0,b'\xFF\xFF\xFF\x0BeAudioCategoryAlerts',4,b'\xFF\xFF\xFF\x0BeAudioCategoryCommunications',3,b'\xFF\xFF\xFF\x0BeAudioCategoryGameChat',8,b'\xFF\xFF\xFF\x0BeAudioCategoryGameEffects',6,b'\xFF\xFF\xFF\x0BeAudioCategoryGameMedia',7,b'\xFF\xFF\xFF\x0BeAudioCategoryMedia',11,b'\xFF\xFF\xFF\x0BeAudioCategoryMovie',10,b'\xFF\xFF\xFF\x0BeAudioCategoryOther',0,b'\xFF\xFF\xFF\x0BeAudioCategorySoundEffects',5,b'\xFF\xFF\xFF\x0BeAudioCategorySpeech',9,b'\xFF\xFF\xFF\x0BeStreamOptionMatchFormat',2,b'\xFF\xFF\xFF\x0BeStreamOptionNone',0,b'\xFF\xFF\xFF\x0BeStreamOptionRaw',1,b'\xFF\xFF\xFF\x0BeThreadPriorityAudio',1,b'\xFF\xFF\xFF\x0BeThreadPriorityCapture',2,b'\xFF\xFF\xFF\x0BeThreadPriorityDistribution',3,b'\xFF\xFF\xFF\x0BeThreadPriorityGames',4,b'\xFF\xFF\xFF\x0BeThreadPriorityNone',0,b'\xFF\xFF\xFF\x0BeThreadPriorityPlayback',5,b'\xFF\xFF\xFF\x0BeThreadPriorityProAudio',6,b'\xFF\xFF\xFF\x0BeThreadPriorityWindowManager',7,b'\xFF\xFF\xFF\x0BpaAL',9,b'\xFF\xFF\xFF\x0BpaALSA',8,b'\xFF\xFF\xFF\x0BpaASIO',3,b'\xFF\xFF\xFF\x0BpaAbort',2,b'\xFF\xFF\xFF\x1FpaAsioUseChannelSelectors',1,b'\xFF\xFF\xFF\x0BpaAudioScienceHPI',14,b'\xFF\xFF\xFF\x0BpaBadBufferPtr',-9972,b'\xFF\xFF\xFF\x0BpaBadIODeviceCombination',-9993,b'\xFF\xFF\xFF\x0BpaBadStreamPtr',-9988,b'\xFF\xFF\xFF\x0BpaBeOS',10,b'\xFF\xFF\xFF\x0BpaBufferTooBig',-9991,b'\xFF\xFF\xFF\x0BpaBufferTooSmall',-9990,b'\xFF\xFF\xFF\x0BpaCanNotReadFromACallbackStream',-9977,b'\xFF\xFF\xFF\x0BpaCanNotReadFromAnOutputOnlyStream',-9975,b'\xFF\xFF\xFF\x0BpaCanNotWriteToACallbackStream',-9976,b'\xFF\xFF\xFF\x0BpaCanNotWriteToAnInputOnlyStream',-9974,b'\xFF\xFF\xFF\x1FpaClipOff',1,b'\xFF\xFF\xFF\x0BpaComplete',1,b'\xFF\xFF\xFF\x0BpaContinue',0,b'\xFF\xFF\xFF\x0BpaCoreAudio',5,b'\xFF\xFF\xFF\x1FpaCustomFormat',65536,b'\xFF\xFF\xFF\x0BpaDeviceUnavailable',-9985,b'\xFF\xFF\xFF\x0BpaDirectSound',1,b'\xFF\xFF\xFF\x1FpaDitherOff',2,b'\xFF\xFF\xFF\x1FpaFloat32',1,b'\xFF\xFF\xFF\x1FpaFormatIsSupported',0,b'\xFF\xFF\xFF\x1FpaFramesPerBufferUnspecified',0,b'\xFF\xFF\xFF\x0BpaHostApiNotFound',-9979,b'\xFF\xFF\xFF\x0BpaInDevelopment',0,b'\xFF\xFF\xFF\x0BpaIncompatibleHostApiSpecificStreamInfo',-9984,b'\xFF\xFF\xFF\x0BpaIncompatibleStreamHostApi',-9973,b'\xFF\xFF\xFF\x1FpaInputOverflow',2,b'\xFF\xFF\xFF\x0BpaInputOverflowed',-9981,b'\xFF\xFF\xFF\x1FpaInputUnderflow',1,b'\xFF\xFF\xFF\x0BpaInsufficientMemory',-9992,b'\xFF\xFF\xFF\x1FpaInt16',8,b'\xFF\xFF\xFF\x1FpaInt24',4,b'\xFF\xFF\xFF\x1FpaInt32',2,b'\xFF\xFF\xFF\x1FpaInt8',16,b'\xFF\xFF\xFF\x0BpaInternalError',-9986,b'\xFF\xFF\xFF\x0BpaInvalidChannelCount',-9998,b'\xFF\xFF\xFF\x0BpaInvalidDevice',-9996,b'\xFF\xFF\xFF\x0BpaInvalidFlag',-9995,b'\xFF\xFF\xFF\x0BpaInvalidHostApi',-9978,b'\xFF\xFF\xFF\x0BpaInvalidSampleRate',-9997,b'\xFF\xFF\xFF\x0BpaJACK',12,b'\xFF\xFF\xFF\x0BpaMME',2,b'\xFF\xFF\xFF\x1FpaMacCoreChangeDeviceParameters',1,b'\xFF\xFF\xFF\x1FpaMacCoreConversionQualityHigh',1024,b'\xFF\xFF\xFF\x1FpaMacCoreConversionQualityLow',768,b'\xFF\xFF\xFF\x1FpaMacCoreConversionQualityMax',0,b'\xFF\xFF\xFF\x1FpaMacCoreConversionQualityMedium',512,b'\xFF\xFF\xFF\x1FpaMacCoreConversionQualityMin',256,b'\xFF\xFF\xFF\x1FpaMacCoreFailIfConversionRequired',2,b'\xFF\xFF\xFF\x1FpaMacCoreMinimizeCPU',257,b'\xFF\xFF\xFF\x1FpaMacCoreMinimizeCPUButPlayNice',256,b'\xFF\xFF\xFF\x1FpaMacCorePlayNice',0,b'\xFF\xFF\xFF\x1FpaMacCorePro',1,b'\xFF\xFF\xFF\x1FpaNeverDropInput',4,b'\xFF\xFF\xFF\x1FpaNoDevice',-1,b'\xFF\xFF\xFF\x0BpaNoError',0,b'\xFF\xFF\xFF\x1FpaNoFlag',0,b'\xFF\xFF\xFF\x1FpaNonInterleaved',2147483648,b'\xFF\xFF\xFF\x0BpaNotInitialized',-10000,b'\xFF\xFF\xFF\x0BpaNullCallback',-9989,b'\xFF\xFF\xFF\x0BpaOSS',7,b'\xFF\xFF\xFF\x1FpaOutputOverflow',8,b'\xFF\xFF\xFF\x1FpaOutputUnderflow',4,b'\xFF\xFF\xFF\x0BpaOutputUnderflowed',-9980,b'\xFF\xFF\xFF\x1FpaPlatformSpecificFlags',4294901760,b'\xFF\xFF\xFF\x1FpaPrimeOutputBuffersUsingStreamCallback',8,b'\xFF\xFF\xFF\x1FpaPrimingOutput',16,b'\xFF\xFF\xFF\x0BpaSampleFormatNotSupported',-9994,b'\xFF\xFF\xFF\x0BpaSoundManager',4,b'\xFF\xFF\xFF\x0BpaStreamIsNotStopped',-9982,b'\xFF\xFF\xFF\x0BpaStreamIsStopped',-9983,b'\xFF\xFF\xFF\x0BpaTimedOut',-9987,b'\xFF\xFF\xFF\x1FpaUInt8',32,b'\xFF\xFF\xFF\x0BpaUnanticipatedHostError',-9999,b'\xFF\xFF\xFF\x1FpaUseHostApiSpecificDeviceSpecification',-2,b'\xFF\xFF\xFF\x0BpaWASAPI',13,b'\xFF\xFF\xFF\x0BpaWDMKS',11,b'\xFF\xFF\xFF\x0BpaWinWasapiExclusive',1,b'\xFF\xFF\xFF\x0BpaWinWasapiPolling',8,b'\xFF\xFF\xFF\x0BpaWinWasapiRedirectHostProcessor',2,b'\xFF\xFF\xFF\x0BpaWinWasapiThreadPriority',16,b'\xFF\xFF\xFF\x0BpaWinWasapiUseChannelMask',4), - _struct_unions = ((b'\x00\x00\x00\x7D\x00\x00\x00\x02$PaMacCoreStreamInfo',b'\x00\x00\x2B\x11size',b'\x00\x00\x1C\x11hostApiType',b'\x00\x00\x2B\x11version',b'\x00\x00\x2B\x11flags',b'\x00\x00\x61\x11channelMap',b'\x00\x00\x2B\x11channelMapSize'),(b'\x00\x00\x00\x75\x00\x00\x00\x02PaAsioStreamInfo',b'\x00\x00\x2B\x11size',b'\x00\x00\x1C\x11hostApiType',b'\x00\x00\x2B\x11version',b'\x00\x00\x2B\x11flags',b'\x00\x00\x8A\x11channelSelectors'),(b'\x00\x00\x00\x77\x00\x00\x00\x02PaDeviceInfo',b'\x00\x00\x01\x11structVersion',b'\x00\x00\x88\x11name',b'\x00\x00\x01\x11hostApi',b'\x00\x00\x01\x11maxInputChannels',b'\x00\x00\x01\x11maxOutputChannels',b'\x00\x00\x21\x11defaultLowInputLatency',b'\x00\x00\x21\x11defaultLowOutputLatency',b'\x00\x00\x21\x11defaultHighInputLatency',b'\x00\x00\x21\x11defaultHighOutputLatency',b'\x00\x00\x21\x11defaultSampleRate'),(b'\x00\x00\x00\x7A\x00\x00\x00\x02PaHostApiInfo',b'\x00\x00\x01\x11structVersion',b'\x00\x00\x1C\x11type',b'\x00\x00\x88\x11name',b'\x00\x00\x01\x11deviceCount',b'\x00\x00\x01\x11defaultInputDevice',b'\x00\x00\x01\x11defaultOutputDevice'),(b'\x00\x00\x00\x7C\x00\x00\x00\x02PaHostErrorInfo',b'\x00\x00\x1C\x11hostApiType',b'\x00\x00\x69\x11errorCode',b'\x00\x00\x88\x11errorText'),(b'\x00\x00\x00\x7F\x00\x00\x00\x02PaStreamCallbackTimeInfo',b'\x00\x00\x21\x11inputBufferAdcTime',b'\x00\x00\x21\x11currentTime',b'\x00\x00\x21\x11outputBufferDacTime'),(b'\x00\x00\x00\x81\x00\x00\x00\x02PaStreamInfo',b'\x00\x00\x01\x11structVersion',b'\x00\x00\x21\x11inputLatency',b'\x00\x00\x21\x11outputLatency',b'\x00\x00\x21\x11sampleRate'),(b'\x00\x00\x00\x82\x00\x00\x00\x02PaStreamParameters',b'\x00\x00\x01\x11device',b'\x00\x00\x01\x11channelCount',b'\x00\x00\x2B\x11sampleFormat',b'\x00\x00\x21\x11suggestedLatency',b'\x00\x00\x07\x11hostApiSpecificStreamInfo'),(b'\x00\x00\x00\x85\x00\x00\x00\x02PaWasapiStreamInfo',b'\x00\x00\x2B\x11size',b'\x00\x00\x1C\x11hostApiType',b'\x00\x00\x2B\x11version',b'\x00\x00\x2B\x11flags',b'\x00\x00\x2B\x11channelMask',b'\x00\x00\x8C\x11hostProcessorOutput',b'\x00\x00\x8C\x11hostProcessorInput',b'\x00\x00\x87\x11threadPriority',b'\x00\x00\x84\x11streamCategory',b'\x00\x00\x86\x11streamOption')), - _enums = (b'\x00\x00\x00\x78\x00\x00\x00\x15PaErrorCode\x00paNoError,paNotInitialized,paUnanticipatedHostError,paInvalidChannelCount,paInvalidSampleRate,paInvalidDevice,paInvalidFlag,paSampleFormatNotSupported,paBadIODeviceCombination,paInsufficientMemory,paBufferTooBig,paBufferTooSmall,paNullCallback,paBadStreamPtr,paTimedOut,paInternalError,paDeviceUnavailable,paIncompatibleHostApiSpecificStreamInfo,paStreamIsStopped,paStreamIsNotStopped,paInputOverflowed,paOutputUnderflowed,paHostApiNotFound,paInvalidHostApi,paCanNotReadFromACallbackStream,paCanNotWriteToACallbackStream,paCanNotReadFromAnOutputOnlyStream,paCanNotWriteToAnInputOnlyStream,paIncompatibleStreamHostApi,paBadBufferPtr',b'\x00\x00\x00\x1C\x00\x00\x00\x16PaHostApiTypeId\x00paInDevelopment,paDirectSound,paMME,paASIO,paSoundManager,paCoreAudio,paOSS,paALSA,paAL,paBeOS,paWDMKS,paJACK,paWASAPI,paAudioScienceHPI',b'\x00\x00\x00\x7E\x00\x00\x00\x16PaStreamCallbackResult\x00paContinue,paComplete,paAbort',b'\x00\x00\x00\x83\x00\x00\x00\x16PaWasapiFlags\x00paWinWasapiExclusive,paWinWasapiRedirectHostProcessor,paWinWasapiUseChannelMask,paWinWasapiPolling,paWinWasapiThreadPriority',b'\x00\x00\x00\x84\x00\x00\x00\x16PaWasapiStreamCategory\x00eAudioCategoryOther,eAudioCategoryCommunications,eAudioCategoryAlerts,eAudioCategorySoundEffects,eAudioCategoryGameEffects,eAudioCategoryGameMedia,eAudioCategoryGameChat,eAudioCategorySpeech,eAudioCategoryMovie,eAudioCategoryMedia',b'\x00\x00\x00\x86\x00\x00\x00\x16PaWasapiStreamOption\x00eStreamOptionNone,eStreamOptionRaw,eStreamOptionMatchFormat',b'\x00\x00\x00\x87\x00\x00\x00\x16PaWasapiThreadPriority\x00eThreadPriorityNone,eThreadPriorityAudio,eThreadPriorityCapture,eThreadPriorityDistribution,eThreadPriorityGames,eThreadPriorityPlayback,eThreadPriorityProAudio,eThreadPriorityWindowManager'), - _typenames = (b'\x00\x00\x00\x75PaAsioStreamInfo',b'\x00\x00\x00\x01PaDeviceIndex',b'\x00\x00\x00\x77PaDeviceInfo',b'\x00\x00\x00\x01PaError',b'\x00\x00\x00\x78PaErrorCode',b'\x00\x00\x00\x01PaHostApiIndex',b'\x00\x00\x00\x7APaHostApiInfo',b'\x00\x00\x00\x1CPaHostApiTypeId',b'\x00\x00\x00\x7CPaHostErrorInfo',b'\x00\x00\x00\x7DPaMacCoreStreamInfo',b'\x00\x00\x00\x2BPaSampleFormat',b'\x00\x00\x00\x8DPaStream',b'\x00\x00\x00\x52PaStreamCallback',b'\x00\x00\x00\x2BPaStreamCallbackFlags',b'\x00\x00\x00\x7EPaStreamCallbackResult',b'\x00\x00\x00\x7FPaStreamCallbackTimeInfo',b'\x00\x00\x00\x6BPaStreamFinishedCallback',b'\x00\x00\x00\x2BPaStreamFlags',b'\x00\x00\x00\x81PaStreamInfo',b'\x00\x00\x00\x82PaStreamParameters',b'\x00\x00\x00\x21PaTime',b'\x00\x00\x00\x83PaWasapiFlags',b'\x00\x00\x00\x8CPaWasapiHostProcessorCallback',b'\x00\x00\x00\x84PaWasapiStreamCategory',b'\x00\x00\x00\x85PaWasapiStreamInfo',b'\x00\x00\x00\x86PaWasapiStreamOption',b'\x00\x00\x00\x87PaWasapiThreadPriority',b'\x00\x00\x00\x2BPaWinWaveFormatChannelMask',b'\x00\x00\x00\x8BSInt32'), -) diff --git a/spaces/carlosalonso/Detection-video/carpeta_deteccion/tests/structures/test_boxes.py b/spaces/carlosalonso/Detection-video/carpeta_deteccion/tests/structures/test_boxes.py deleted file mode 100644 index 101191818c511cf90c3c8f2cbc55aa49295697fa..0000000000000000000000000000000000000000 --- a/spaces/carlosalonso/Detection-video/carpeta_deteccion/tests/structures/test_boxes.py +++ /dev/null @@ -1,223 +0,0 @@ -# Copyright (c) Facebook, Inc. and its affiliates. -import json -import math -import numpy as np -import unittest -import torch - -from detectron2.structures import Boxes, BoxMode, pairwise_ioa, pairwise_iou -from detectron2.utils.testing import reload_script_model - - -class TestBoxMode(unittest.TestCase): - def _convert_xy_to_wh(self, x): - return BoxMode.convert(x, BoxMode.XYXY_ABS, BoxMode.XYWH_ABS) - - def _convert_xywha_to_xyxy(self, x): - return BoxMode.convert(x, BoxMode.XYWHA_ABS, BoxMode.XYXY_ABS) - - def _convert_xywh_to_xywha(self, x): - return BoxMode.convert(x, BoxMode.XYWH_ABS, BoxMode.XYWHA_ABS) - - def test_convert_int_mode(self): - BoxMode.convert([1, 2, 3, 4], 0, 1) - - def test_box_convert_list(self): - for tp in [list, tuple]: - box = tp([5.0, 5.0, 10.0, 10.0]) - output = self._convert_xy_to_wh(box) - self.assertIsInstance(output, tp) - self.assertIsInstance(output[0], float) - self.assertEqual(output, tp([5.0, 5.0, 5.0, 5.0])) - - with self.assertRaises(Exception): - self._convert_xy_to_wh([box]) - - def test_box_convert_array(self): - box = np.asarray([[5, 5, 10, 10], [1, 1, 2, 3]]) - output = self._convert_xy_to_wh(box) - self.assertEqual(output.dtype, box.dtype) - self.assertEqual(output.shape, box.shape) - self.assertTrue((output[0] == [5, 5, 5, 5]).all()) - self.assertTrue((output[1] == [1, 1, 1, 2]).all()) - - def test_box_convert_cpu_tensor(self): - box = torch.tensor([[5, 5, 10, 10], [1, 1, 2, 3]]) - output = self._convert_xy_to_wh(box) - self.assertEqual(output.dtype, box.dtype) - self.assertEqual(output.shape, box.shape) - output = output.numpy() - self.assertTrue((output[0] == [5, 5, 5, 5]).all()) - self.assertTrue((output[1] == [1, 1, 1, 2]).all()) - - @unittest.skipIf(not torch.cuda.is_available(), "CUDA not available") - def test_box_convert_cuda_tensor(self): - box = torch.tensor([[5, 5, 10, 10], [1, 1, 2, 3]]).cuda() - output = self._convert_xy_to_wh(box) - self.assertEqual(output.dtype, box.dtype) - self.assertEqual(output.shape, box.shape) - self.assertEqual(output.device, box.device) - output = output.cpu().numpy() - self.assertTrue((output[0] == [5, 5, 5, 5]).all()) - self.assertTrue((output[1] == [1, 1, 1, 2]).all()) - - def test_box_convert_xywha_to_xyxy_list(self): - for tp in [list, tuple]: - box = tp([50, 50, 30, 20, 0]) - output = self._convert_xywha_to_xyxy(box) - self.assertIsInstance(output, tp) - self.assertEqual(output, tp([35, 40, 65, 60])) - - with self.assertRaises(Exception): - self._convert_xywha_to_xyxy([box]) - - def test_box_convert_xywha_to_xyxy_array(self): - for dtype in [np.float64, np.float32]: - box = np.asarray( - [ - [50, 50, 30, 20, 0], - [50, 50, 30, 20, 90], - [1, 1, math.sqrt(2), math.sqrt(2), -45], - ], - dtype=dtype, - ) - output = self._convert_xywha_to_xyxy(box) - self.assertEqual(output.dtype, box.dtype) - expected = np.asarray([[35, 40, 65, 60], [40, 35, 60, 65], [0, 0, 2, 2]], dtype=dtype) - self.assertTrue(np.allclose(output, expected, atol=1e-6), "output={}".format(output)) - - def test_box_convert_xywha_to_xyxy_tensor(self): - for dtype in [torch.float32, torch.float64]: - box = torch.tensor( - [ - [50, 50, 30, 20, 0], - [50, 50, 30, 20, 90], - [1, 1, math.sqrt(2), math.sqrt(2), -45], - ], - dtype=dtype, - ) - output = self._convert_xywha_to_xyxy(box) - self.assertEqual(output.dtype, box.dtype) - expected = torch.tensor([[35, 40, 65, 60], [40, 35, 60, 65], [0, 0, 2, 2]], dtype=dtype) - - self.assertTrue(torch.allclose(output, expected, atol=1e-6), "output={}".format(output)) - - def test_box_convert_xywh_to_xywha_list(self): - for tp in [list, tuple]: - box = tp([50, 50, 30, 20]) - output = self._convert_xywh_to_xywha(box) - self.assertIsInstance(output, tp) - self.assertEqual(output, tp([65, 60, 30, 20, 0])) - - with self.assertRaises(Exception): - self._convert_xywh_to_xywha([box]) - - def test_box_convert_xywh_to_xywha_array(self): - for dtype in [np.float64, np.float32]: - box = np.asarray([[30, 40, 70, 60], [30, 40, 60, 70], [-1, -1, 2, 2]], dtype=dtype) - output = self._convert_xywh_to_xywha(box) - self.assertEqual(output.dtype, box.dtype) - expected = np.asarray( - [[65, 70, 70, 60, 0], [60, 75, 60, 70, 0], [0, 0, 2, 2, 0]], dtype=dtype - ) - self.assertTrue(np.allclose(output, expected, atol=1e-6), "output={}".format(output)) - - def test_box_convert_xywh_to_xywha_tensor(self): - for dtype in [torch.float32, torch.float64]: - box = torch.tensor([[30, 40, 70, 60], [30, 40, 60, 70], [-1, -1, 2, 2]], dtype=dtype) - output = self._convert_xywh_to_xywha(box) - self.assertEqual(output.dtype, box.dtype) - expected = torch.tensor( - [[65, 70, 70, 60, 0], [60, 75, 60, 70, 0], [0, 0, 2, 2, 0]], dtype=dtype - ) - - self.assertTrue(torch.allclose(output, expected, atol=1e-6), "output={}".format(output)) - - def test_json_serializable(self): - payload = {"box_mode": BoxMode.XYWH_REL} - try: - json.dumps(payload) - except Exception: - self.fail("JSON serialization failed") - - def test_json_deserializable(self): - payload = '{"box_mode": 2}' - obj = json.loads(payload) - try: - obj["box_mode"] = BoxMode(obj["box_mode"]) - except Exception: - self.fail("JSON deserialization failed") - - -class TestBoxIOU(unittest.TestCase): - def create_boxes(self): - boxes1 = torch.tensor([[0.0, 0.0, 1.0, 1.0], [0.0, 0.0, 1.0, 1.0]]) - - boxes2 = torch.tensor( - [ - [0.0, 0.0, 1.0, 1.0], - [0.0, 0.0, 0.5, 1.0], - [0.0, 0.0, 1.0, 0.5], - [0.0, 0.0, 0.5, 0.5], - [0.5, 0.5, 1.0, 1.0], - [0.5, 0.5, 1.5, 1.5], - ] - ) - return boxes1, boxes2 - - def test_pairwise_iou(self): - boxes1, boxes2 = self.create_boxes() - expected_ious = torch.tensor( - [ - [1.0, 0.5, 0.5, 0.25, 0.25, 0.25 / (2 - 0.25)], - [1.0, 0.5, 0.5, 0.25, 0.25, 0.25 / (2 - 0.25)], - ] - ) - - ious = pairwise_iou(Boxes(boxes1), Boxes(boxes2)) - self.assertTrue(torch.allclose(ious, expected_ious)) - - def test_pairwise_ioa(self): - boxes1, boxes2 = self.create_boxes() - expected_ioas = torch.tensor( - [[1.0, 1.0, 1.0, 1.0, 1.0, 0.25], [1.0, 1.0, 1.0, 1.0, 1.0, 0.25]] - ) - ioas = pairwise_ioa(Boxes(boxes1), Boxes(boxes2)) - self.assertTrue(torch.allclose(ioas, expected_ioas)) - - -class TestBoxes(unittest.TestCase): - def test_empty_cat(self): - x = Boxes.cat([]) - self.assertTrue(x.tensor.shape, (0, 4)) - - def test_to(self): - x = Boxes(torch.rand(3, 4)) - self.assertEqual(x.to(device="cpu").tensor.device.type, "cpu") - - def test_scriptability(self): - def func(x): - boxes = Boxes(x) - test = boxes.to(torch.device("cpu")).tensor - return boxes.area(), test - - f = torch.jit.script(func) - f = reload_script_model(f) - f(torch.rand((3, 4))) - - data = torch.rand((3, 4)) - - def func_cat(x: torch.Tensor): - boxes1 = Boxes(x) - boxes2 = Boxes(x) - # boxes3 = Boxes.cat([boxes1, boxes2]) # this is not supported by torchsript for now. - boxes3 = boxes1.cat([boxes1, boxes2]) - return boxes3 - - f = torch.jit.script(func_cat) - script_box = f(data) - self.assertTrue(torch.equal(torch.cat([data, data]), script_box.tensor)) - - -if __name__ == "__main__": - unittest.main() diff --git a/spaces/chendl/compositional_test/multimodal/tools/instruct_tuning_data/pisc.py b/spaces/chendl/compositional_test/multimodal/tools/instruct_tuning_data/pisc.py deleted file mode 100644 index 562cec805725481fad3277543f4c8d5947473e6c..0000000000000000000000000000000000000000 --- a/spaces/chendl/compositional_test/multimodal/tools/instruct_tuning_data/pisc.py +++ /dev/null @@ -1,51 +0,0 @@ -import json -import os -from tqdm import tqdm -import webdataset as wds -from utils import MAXCOUNT, NAMING, check_sample -import numpy as np -PISC_ROOT = "/gpfs/u/home/LMCG/LMCGljnn/scratch/datasets/raw/PISC" -OUT_DIR = "/gpfs/u/home/LMCG/LMCGljnn/scratch-shared/junyan/raw/instruct/eval/pisc" - -rel_id_to_type = ["friends", "family", "couple", "professional", "commercial", "no relation"] - -if __name__ == "__main__": - os.makedirs(OUT_DIR, exist_ok=True) - annotation_image_info = json.load(open(os.path.join(PISC_ROOT, "annotation_image_info.json"))) - relationships = json.load(open(os.path.join(PISC_ROOT, "relationship.json"))) - relationship_trainidx = json.load(open(os.path.join(PISC_ROOT, "relationship_split", "relation_trainidx.json"))) - relationship_testidx = json.load(open(os.path.join(PISC_ROOT, "relationship_split", "relation_testidx.json"))) - data = {} - uuid = 0 - with wds.ShardWriter(os.path.join(OUT_DIR, NAMING), maxcount=MAXCOUNT**3) as sink: - for annotation in tqdm(annotation_image_info): - imgH = annotation["imgH"] - imgW = annotation["imgW"] - id = annotation["id"] - bbox = annotation["bbox"] # xyxy - if str(id) not in relationships: - tqdm.write(f"skip {id} due to not in relationships") - continue - if str(id) not in relationship_testidx: - tqdm.write(f"skip {id} due to not in train set") - continue - relationship = relationships[str(id)] - for rel in relationship: - type = rel_id_to_type[relationship[rel] - 1] - A_id, B_id = list(map(int, rel.split(" "))) - A_box = np.array(bbox[A_id - 1]).astype(float) / np.array([imgW, imgH, imgW, imgH]).astype(float) - B_box = np.array(bbox[B_id - 1]).astype(float) / np.array([imgW, imgH, imgW, imgH]).astype(float) - data = [A_box, B_box, type] - image_path = os.path.join(PISC_ROOT, "image", str(id).zfill(5)+".jpg") - dataset = "pisc_relation_split" - key = f"{dataset}_{id}_{uuid}" - uuid += 1 - assert os.path.exists(image_path) - sample = { - "__key__": key, - "image_path.txt": image_path, - "dataset.txt": dataset, - "data.pyd": data, - } - check_sample(sample) - sink.write(sample) diff --git a/spaces/chikoto/Umamusume-DeBERTa-VITS2-TTS-JP/utils.py b/spaces/chikoto/Umamusume-DeBERTa-VITS2-TTS-JP/utils.py deleted file mode 100644 index f88b9cc049ae8c30c62f189821878b5f2587cbc6..0000000000000000000000000000000000000000 --- a/spaces/chikoto/Umamusume-DeBERTa-VITS2-TTS-JP/utils.py +++ /dev/null @@ -1,356 +0,0 @@ -import os -import glob -import argparse -import logging -import json -import subprocess -import numpy as np -from scipy.io.wavfile import read -import torch - -MATPLOTLIB_FLAG = False - -logger = logging.getLogger(__name__) - - -def load_checkpoint(checkpoint_path, model, optimizer=None, skip_optimizer=False): - assert os.path.isfile(checkpoint_path) - checkpoint_dict = torch.load(checkpoint_path, map_location="cpu") - iteration = checkpoint_dict["iteration"] - learning_rate = checkpoint_dict["learning_rate"] - if ( - optimizer is not None - and not skip_optimizer - and checkpoint_dict["optimizer"] is not None - ): - optimizer.load_state_dict(checkpoint_dict["optimizer"]) - elif optimizer is None and not skip_optimizer: - # else: Disable this line if Infer and resume checkpoint,then enable the line upper - new_opt_dict = optimizer.state_dict() - new_opt_dict_params = new_opt_dict["param_groups"][0]["params"] - new_opt_dict["param_groups"] = checkpoint_dict["optimizer"]["param_groups"] - new_opt_dict["param_groups"][0]["params"] = new_opt_dict_params - optimizer.load_state_dict(new_opt_dict) - - saved_state_dict = checkpoint_dict["model"] - if hasattr(model, "module"): - state_dict = model.module.state_dict() - else: - state_dict = model.state_dict() - - new_state_dict = {} - for k, v in state_dict.items(): - try: - # assert "emb_g" not in k - new_state_dict[k] = saved_state_dict[k] - assert saved_state_dict[k].shape == v.shape, ( - saved_state_dict[k].shape, - v.shape, - ) - except: - # For upgrading from the old version - if "ja_bert_proj" in k: - v = torch.zeros_like(v) - logger.warn( - f"Seems you are using the old version of the model, the {k} is automatically set to zero for backward compatibility" - ) - else: - logger.error(f"{k} is not in the checkpoint") - - new_state_dict[k] = v - - if hasattr(model, "module"): - model.module.load_state_dict(new_state_dict, strict=False) - else: - model.load_state_dict(new_state_dict, strict=False) - - logger.info( - "Loaded checkpoint '{}' (iteration {})".format(checkpoint_path, iteration) - ) - - return model, optimizer, learning_rate, iteration - - -def save_checkpoint(model, optimizer, learning_rate, iteration, checkpoint_path): - logger.info( - "Saving model and optimizer state at iteration {} to {}".format( - iteration, checkpoint_path - ) - ) - if hasattr(model, "module"): - state_dict = model.module.state_dict() - else: - state_dict = model.state_dict() - torch.save( - { - "model": state_dict, - "iteration": iteration, - "optimizer": optimizer.state_dict(), - "learning_rate": learning_rate, - }, - checkpoint_path, - ) - - -def summarize( - writer, - global_step, - scalars={}, - histograms={}, - images={}, - audios={}, - audio_sampling_rate=22050, -): - for k, v in scalars.items(): - writer.add_scalar(k, v, global_step) - for k, v in histograms.items(): - writer.add_histogram(k, v, global_step) - for k, v in images.items(): - writer.add_image(k, v, global_step, dataformats="HWC") - for k, v in audios.items(): - writer.add_audio(k, v, global_step, audio_sampling_rate) - - -def latest_checkpoint_path(dir_path, regex="G_*.pth"): - f_list = glob.glob(os.path.join(dir_path, regex)) - f_list.sort(key=lambda f: int("".join(filter(str.isdigit, f)))) - x = f_list[-1] - return x - - -def plot_spectrogram_to_numpy(spectrogram): - global MATPLOTLIB_FLAG - if not MATPLOTLIB_FLAG: - import matplotlib - - matplotlib.use("Agg") - MATPLOTLIB_FLAG = True - mpl_logger = logging.getLogger("matplotlib") - mpl_logger.setLevel(logging.WARNING) - import matplotlib.pylab as plt - import numpy as np - - fig, ax = plt.subplots(figsize=(10, 2)) - im = ax.imshow(spectrogram, aspect="auto", origin="lower", interpolation="none") - plt.colorbar(im, ax=ax) - plt.xlabel("Frames") - plt.ylabel("Channels") - plt.tight_layout() - - fig.canvas.draw() - data = np.fromstring(fig.canvas.tostring_rgb(), dtype=np.uint8, sep="") - data = data.reshape(fig.canvas.get_width_height()[::-1] + (3,)) - plt.close() - return data - - -def plot_alignment_to_numpy(alignment, info=None): - global MATPLOTLIB_FLAG - if not MATPLOTLIB_FLAG: - import matplotlib - - matplotlib.use("Agg") - MATPLOTLIB_FLAG = True - mpl_logger = logging.getLogger("matplotlib") - mpl_logger.setLevel(logging.WARNING) - import matplotlib.pylab as plt - import numpy as np - - fig, ax = plt.subplots(figsize=(6, 4)) - im = ax.imshow( - alignment.transpose(), aspect="auto", origin="lower", interpolation="none" - ) - fig.colorbar(im, ax=ax) - xlabel = "Decoder timestep" - if info is not None: - xlabel += "\n\n" + info - plt.xlabel(xlabel) - plt.ylabel("Encoder timestep") - plt.tight_layout() - - fig.canvas.draw() - data = np.fromstring(fig.canvas.tostring_rgb(), dtype=np.uint8, sep="") - data = data.reshape(fig.canvas.get_width_height()[::-1] + (3,)) - plt.close() - return data - - -def load_wav_to_torch(full_path): - sampling_rate, data = read(full_path) - return torch.FloatTensor(data.astype(np.float32)), sampling_rate - - -def load_filepaths_and_text(filename, split="|"): - with open(filename, encoding="utf-8") as f: - filepaths_and_text = [line.strip().split(split) for line in f] - return filepaths_and_text - - -def get_hparams(init=True): - parser = argparse.ArgumentParser() - parser.add_argument( - "-c", - "--config", - type=str, - default="./configs/base.json", - help="JSON file for configuration", - ) - parser.add_argument("-m", "--model", type=str, required=True, help="Model name") - - args = parser.parse_args() - model_dir = args.model - - if not os.path.exists(model_dir): - os.makedirs(model_dir) - - config_path = args.config - config_save_path = os.path.join(model_dir, "config.json") - if init: - with open(config_path, "r", encoding="utf-8") as f: - data = f.read() - with open(config_save_path, "w", encoding="utf-8") as f: - f.write(data) - else: - with open(config_save_path, "r", vencoding="utf-8") as f: - data = f.read() - config = json.loads(data) - hparams = HParams(**config) - hparams.model_dir = model_dir - return hparams - - -def clean_checkpoints(path_to_models="logs/44k/", n_ckpts_to_keep=2, sort_by_time=True): - """Freeing up space by deleting saved ckpts - - Arguments: - path_to_models -- Path to the model directory - n_ckpts_to_keep -- Number of ckpts to keep, excluding G_0.pth and D_0.pth - sort_by_time -- True -> chronologically delete ckpts - False -> lexicographically delete ckpts - """ - import re - - ckpts_files = [ - f - for f in os.listdir(path_to_models) - if os.path.isfile(os.path.join(path_to_models, f)) - ] - - def name_key(_f): - return int(re.compile("._(\\d+)\\.pth").match(_f).group(1)) - - def time_key(_f): - return os.path.getmtime(os.path.join(path_to_models, _f)) - - sort_key = time_key if sort_by_time else name_key - - def x_sorted(_x): - return sorted( - [f for f in ckpts_files if f.startswith(_x) and not f.endswith("_0.pth")], - key=sort_key, - ) - - to_del = [ - os.path.join(path_to_models, fn) - for fn in (x_sorted("G")[:-n_ckpts_to_keep] + x_sorted("D")[:-n_ckpts_to_keep]) - ] - - def del_info(fn): - return logger.info(f".. Free up space by deleting ckpt {fn}") - - def del_routine(x): - return [os.remove(x), del_info(x)] - - [del_routine(fn) for fn in to_del] - - -def get_hparams_from_dir(model_dir): - config_save_path = os.path.join(model_dir, "config.json") - with open(config_save_path, "r", encoding="utf-8") as f: - data = f.read() - config = json.loads(data) - - hparams = HParams(**config) - hparams.model_dir = model_dir - return hparams - - -def get_hparams_from_file(config_path): - with open(config_path, "r", encoding="utf-8") as f: - data = f.read() - config = json.loads(data) - - hparams = HParams(**config) - return hparams - - -def check_git_hash(model_dir): - source_dir = os.path.dirname(os.path.realpath(__file__)) - if not os.path.exists(os.path.join(source_dir, ".git")): - logger.warn( - "{} is not a git repository, therefore hash value comparison will be ignored.".format( - source_dir - ) - ) - return - - cur_hash = subprocess.getoutput("git rev-parse HEAD") - - path = os.path.join(model_dir, "githash") - if os.path.exists(path): - saved_hash = open(path).read() - if saved_hash != cur_hash: - logger.warn( - "git hash values are different. {}(saved) != {}(current)".format( - saved_hash[:8], cur_hash[:8] - ) - ) - else: - open(path, "w").write(cur_hash) - - -def get_logger(model_dir, filename="train.log"): - global logger - logger = logging.getLogger(os.path.basename(model_dir)) - logger.setLevel(logging.DEBUG) - - formatter = logging.Formatter("%(asctime)s\t%(name)s\t%(levelname)s\t%(message)s") - if not os.path.exists(model_dir): - os.makedirs(model_dir) - h = logging.FileHandler(os.path.join(model_dir, filename)) - h.setLevel(logging.DEBUG) - h.setFormatter(formatter) - logger.addHandler(h) - return logger - - -class HParams: - def __init__(self, **kwargs): - for k, v in kwargs.items(): - if type(v) == dict: - v = HParams(**v) - self[k] = v - - def keys(self): - return self.__dict__.keys() - - def items(self): - return self.__dict__.items() - - def values(self): - return self.__dict__.values() - - def __len__(self): - return len(self.__dict__) - - def __getitem__(self, key): - return getattr(self, key) - - def __setitem__(self, key, value): - return setattr(self, key, value) - - def __contains__(self, key): - return key in self.__dict__ - - def __repr__(self): - return self.__dict__.__repr__() diff --git a/spaces/chuan-hd/law-assistant-chatbot/.venv/lib/python3.11/site-packages/cffi/lock.py b/spaces/chuan-hd/law-assistant-chatbot/.venv/lib/python3.11/site-packages/cffi/lock.py deleted file mode 100644 index db91b7158c4ee9aa653462fe38e79ed1b553db87..0000000000000000000000000000000000000000 --- a/spaces/chuan-hd/law-assistant-chatbot/.venv/lib/python3.11/site-packages/cffi/lock.py +++ /dev/null @@ -1,30 +0,0 @@ -import sys - -if sys.version_info < (3,): - try: - from thread import allocate_lock - except ImportError: - from dummy_thread import allocate_lock -else: - try: - from _thread import allocate_lock - except ImportError: - from _dummy_thread import allocate_lock - - -##import sys -##l1 = allocate_lock - -##class allocate_lock(object): -## def __init__(self): -## self._real = l1() -## def __enter__(self): -## for i in range(4, 0, -1): -## print sys._getframe(i).f_code -## print -## return self._real.__enter__() -## def __exit__(self, *args): -## return self._real.__exit__(*args) -## def acquire(self, f): -## assert f is False -## return self._real.acquire(f) diff --git a/spaces/chuan-hd/law-assistant-chatbot/.venv/lib/python3.11/site-packages/clickhouse_connect/datatypes/container.py b/spaces/chuan-hd/law-assistant-chatbot/.venv/lib/python3.11/site-packages/clickhouse_connect/datatypes/container.py deleted file mode 100644 index 516a57a596330c58481bbe46fd706e601b2b84f2..0000000000000000000000000000000000000000 --- a/spaces/chuan-hd/law-assistant-chatbot/.venv/lib/python3.11/site-packages/clickhouse_connect/datatypes/container.py +++ /dev/null @@ -1,307 +0,0 @@ -import array -import logging -from typing import Sequence, Collection - -from clickhouse_connect.driver.insert import InsertContext -from clickhouse_connect.driver.query import QueryContext -from clickhouse_connect.driver.types import ByteSource -from clickhouse_connect.json_impl import any_to_json -from clickhouse_connect.datatypes.base import ClickHouseType, TypeDef -from clickhouse_connect.driver.common import must_swap -from clickhouse_connect.datatypes.registry import get_from_name - -logger = logging.getLogger(__name__) - - -class Array(ClickHouseType): - __slots__ = ('element_type',) - python_type = list - - def __init__(self, type_def: TypeDef): - super().__init__(type_def) - self.element_type = get_from_name(type_def.values[0]) - self._name_suffix = f'({self.element_type.name})' - - def read_column_prefix(self, source: ByteSource): - return self.element_type.read_column_prefix(source) - - def _data_size(self, sample: Sequence) -> int: - if len(sample) == 0: - return 8 - total = 0 - for x in sample: - total += self.element_type.data_size(x) - return total // len(sample) + 8 - - # pylint: disable=too-many-locals - def read_column_data(self, source: ByteSource, num_rows: int, ctx: QueryContext): - final_type = self.element_type - depth = 1 - while isinstance(final_type, Array): - depth += 1 - final_type = final_type.element_type - level_size = num_rows - offset_sizes = [] - for _ in range(depth): - level_offsets = source.read_array('Q', level_size) - offset_sizes.append(level_offsets) - level_size = level_offsets[-1] if level_offsets else 0 - if level_size: - all_values = final_type.read_column_data(source, level_size, ctx) - else: - all_values = [] - column = all_values if isinstance(all_values, list) else list(all_values) - for offset_range in reversed(offset_sizes): - data = [] - last = 0 - for x in offset_range: - data.append(column[last: x]) - last = x - column = data - return column - - def write_column_prefix(self, dest: bytearray): - self.element_type.write_column_prefix(dest) - - def write_column_data(self, column: Sequence, dest: bytearray, ctx: InsertContext): - final_type = self.element_type - depth = 1 - while isinstance(final_type, Array): - depth += 1 - final_type = final_type.element_type - for _ in range(depth): - total = 0 - data = [] - offsets = array.array('Q') - for x in column: - total += len(x) - offsets.append(total) - data.extend(x) - if must_swap: - offsets.byteswap() - dest += offsets.tobytes() - column = data - final_type.write_column_data(column, dest, ctx) - - -class Tuple(ClickHouseType): - _slots = 'element_names', 'element_types' - python_type = tuple - valid_formats = 'tuple', 'dict', 'json', 'native' # native is 'tuple' for unnamed tuples, and dict for named tuples - - def __init__(self, type_def: TypeDef): - super().__init__(type_def) - self.element_names = type_def.keys - self.element_types = [get_from_name(name) for name in type_def.values] - if self.element_names: - self._name_suffix = f"({', '.join(k + ' ' + str(v) for k, v in zip(type_def.keys, type_def.values))})" - else: - self._name_suffix = type_def.arg_str - - def _data_size(self, sample: Collection) -> int: - if len(sample) == 0: - return 0 - elem_size = 0 - is_dict = self.element_names and isinstance(self._first_value(list(sample)), dict) - for ix, e_type in enumerate(self.element_types): - if e_type.byte_size > 0: - elem_size += e_type.byte_size - elif is_dict: - elem_size += e_type.data_size([x.get(self.element_names[ix], None) for x in sample]) - else: - elem_size += e_type.data_size([x[ix] for x in sample]) - return elem_size - - def read_column_prefix(self, source: ByteSource): - for e_type in self.element_types: - e_type.read_column_prefix(source) - - def read_column_data(self, source: ByteSource, num_rows: int, ctx: QueryContext): - columns = [] - e_names = self.element_names - for e_type in self.element_types: - column = e_type.read_column_data(source, num_rows, ctx) - columns.append(column) - if e_names and self.read_format(ctx) != 'tuple': - dicts = [{} for _ in range(num_rows)] - for ix, x in enumerate(dicts): - for y, key in enumerate(e_names): - x[key] = columns[y][ix] - if self.read_format(ctx) == 'json': - to_json = any_to_json - return [to_json(x) for x in dicts] - return dicts - return tuple(zip(*columns)) - - def write_column_prefix(self, dest: bytearray): - for e_type in self.element_types: - e_type.write_column_prefix(dest) - - def write_column_data(self, column: Sequence, dest: bytearray, ctx: InsertContext): - if self.element_names and isinstance(self._first_value(column), dict): - columns = self.convert_dict_insert(column) - else: - columns = list(zip(*column)) - for e_type, elem_column in zip(self.element_types, columns): - e_type.write_column_data(elem_column, dest, ctx) - - def convert_dict_insert(self, column: Sequence) -> Sequence: - names = self.element_names - col = [[] for _ in names] - for x in column: - for ix, name in enumerate(names): - col[ix].append(x.get(name)) - return col - - -class Map(ClickHouseType): - _slots = 'key_type', 'value_type' - python_type = dict - - def __init__(self, type_def: TypeDef): - super().__init__(type_def) - self.key_type = get_from_name(type_def.values[0]) - self.value_type = get_from_name(type_def.values[1]) - self._name_suffix = type_def.arg_str - - def _data_size(self, sample: Collection) -> int: - total = 0 - if len(sample) == 0: - return 0 - for x in sample: - total += self.key_type.data_size(x.keys()) - total += self.value_type.data_size(x.values()) - return total // len(sample) - - def read_column_prefix(self, source: ByteSource): - self.key_type.read_column_prefix(source) - self.value_type.read_column_prefix(source) - - # pylint: disable=too-many-locals - def read_column_data(self, source: ByteSource, num_rows: int, ctx: QueryContext): - offsets = source.read_array('Q', num_rows) - total_rows = offsets[-1] - keys = self.key_type.read_column_data(source, total_rows, ctx) - values = self.value_type.read_column_data(source, total_rows, ctx) - all_pairs = tuple(zip(keys, values)) - column = [] - app = column.append - last = 0 - for offset in offsets: - app(dict(all_pairs[last: offset])) - last = offset - return column - - def write_column_prefix(self, dest: bytearray): - self.key_type.write_column_prefix(dest) - self.value_type.write_column_prefix(dest) - - def write_column_data(self, column: Sequence, dest: bytearray, ctx: InsertContext): - offsets = array.array('Q') - keys = [] - values = [] - total = 0 - for v in column: - total += len(v) - offsets.append(total) - keys.extend(v.keys()) - values.extend(v.values()) - if must_swap: - offsets.byteswap() - dest += offsets.tobytes() - self.key_type.write_column_data(keys, dest, ctx) - self.value_type.write_column_data(values, dest, ctx) - - -class Nested(ClickHouseType): - __slots__ = 'tuple_array', 'element_names', 'element_types' - python_type = Sequence[dict] - - def __init__(self, type_def): - super().__init__(type_def) - self.element_names = type_def.keys - self.tuple_array = get_from_name(f"Array(Tuple({','.join(type_def.values)}))") - self.element_types = self.tuple_array.element_type.element_types - cols = [f'{x[0]} {x[1].name}' for x in zip(type_def.keys, self.element_types)] - self._name_suffix = f"({', '.join(cols)})" - - def _data_size(self, sample: Collection) -> int: - keys = self.element_names - array_sample = [[tuple(sub_row[key] for key in keys) for sub_row in row] for row in sample] - return self.tuple_array.data_size(array_sample) - - def read_column_prefix(self, source: ByteSource): - self.tuple_array.read_column_prefix(source) - - def read_column_data(self, source: ByteSource, num_rows: int, ctx: QueryContext): - keys = self.element_names - data = self.tuple_array.read_column_data(source, num_rows, ctx) - return [[dict(zip(keys, x)) for x in row] for row in data] - - def write_column_prefix(self, dest: bytearray): - self.tuple_array.write_column_prefix(dest) - - def write_column_data(self, column: Sequence, dest: bytearray, ctx: InsertContext): - keys = self.element_names - data = [[tuple(sub_row[key] for key in keys) for sub_row in row] for row in column] - self.tuple_array.write_column_data(data, dest, ctx) - - -class JSON(ClickHouseType): - python_type = dict - # Native is a Python type (primitive, dict, array), string is an actual JSON string - valid_formats = 'string', 'native' - - def write_column_prefix(self, dest: bytearray): - dest.append(0x01) - - def _data_size(self, sample: Collection) -> int: - if len(sample) == 0: - return 0 - total = 0 - for x in sample: - if isinstance(x, str): - total += len(x) - elif x: - total += len(any_to_json(x)) - return total // len(sample) + 1 - - # pylint: disable=duplicate-code - def write_column_data(self, column: Sequence, dest: bytearray, ctx: InsertContext): - app = dest.append - first = self._first_value(column) - if isinstance(first, str) or self.write_format(ctx) == 'string': - for x in column: - v = x.encode() - sz = len(v) - while True: - b = sz & 0x7f - sz >>= 7 - if sz == 0: - app(b) - break - app(0x80 | b) - dest += v - else: - to_json = any_to_json - for x in column: - v = to_json(x) - sz = len(v) - while True: - b = sz & 0x7f - sz >>= 7 - if sz == 0: - app(b) - break - app(0x80 | b) - dest += v - - -class Object(JSON): - python_type = dict - - def __init__(self, type_def): - if type_def.values[0].lower() != "'json'": - raise NotImplementedError('Only json Object type is currently supported') - super().__init__(type_def) - self._name_suffix = type_def.arg_str diff --git a/spaces/cihyFjudo/fairness-paper-search/How to Study Constitution Of India Book By J.n. Pandey Pdf Tips and Tricks for Effective Learning.md b/spaces/cihyFjudo/fairness-paper-search/How to Study Constitution Of India Book By J.n. Pandey Pdf Tips and Tricks for Effective Learning.md deleted file mode 100644 index 2f3d077cd1252041c955400a11128090d0353674..0000000000000000000000000000000000000000 --- a/spaces/cihyFjudo/fairness-paper-search/How to Study Constitution Of India Book By J.n. Pandey Pdf Tips and Tricks for Effective Learning.md +++ /dev/null @@ -1,6 +0,0 @@ -

Constitution Of India Book By J.n. Pandey Pdf


Download Ziphttps://tinurli.com/2uwjCd



- - aaccfb2cb3
-
-
-

diff --git a/spaces/clip-italian/clip-italian-demo/text2image.py b/spaces/clip-italian/clip-italian-demo/text2image.py deleted file mode 100644 index 6e663d30c84f776ae92efb1e8a9ba6595df1300e..0000000000000000000000000000000000000000 --- a/spaces/clip-italian/clip-italian-demo/text2image.py +++ /dev/null @@ -1,211 +0,0 @@ -import io -import os -import requests -import zipfile -import natsort -import gc -from PIL import Image -from PIL import UnidentifiedImageError - -os.environ["TOKENIZERS_PARALLELISM"] = "false" -from stqdm import stqdm -import streamlit as st -from jax import numpy as jnp -import transformers -from transformers import AutoTokenizer -from torchvision.transforms import Compose, CenterCrop, Normalize, Resize, ToTensor -from torchvision.transforms.functional import InterpolationMode -from modeling_hybrid_clip import FlaxHybridCLIP - -import utils - - -@st.cache(hash_funcs={FlaxHybridCLIP: lambda _: None}) -def get_model(): - return FlaxHybridCLIP.from_pretrained("clip-italian/clip-italian") - - -@st.cache( - hash_funcs={ - transformers.models.bert.tokenization_bert_fast.BertTokenizerFast: lambda _: None - } -) -def get_tokenizer(): - return AutoTokenizer.from_pretrained( - "dbmdz/bert-base-italian-xxl-uncased", cache_dir="./", use_fast=True - ) - - -@st.cache(suppress_st_warning=True) -def download_images(): - # from sentence_transformers import SentenceTransformer, util - img_folder = "photos/" - if not os.path.exists(img_folder) or len(os.listdir(img_folder)) == 0: - os.makedirs(img_folder, exist_ok=True) - - photo_filename = "unsplash-25k-photos.zip" - if not os.path.exists(photo_filename): # Download dataset if does not exist - print(f"Downloading {photo_filename}...") - response = requests.get( - f"http://sbert.net/datasets/{photo_filename}", stream=True - ) - total_size_in_bytes = int(response.headers.get("content-length", 0)) - block_size = 1024 # 1 Kb - progress_bar = stqdm( - total=total_size_in_bytes - ) # , unit='iB', unit_scale=True - content = io.BytesIO() - for data in response.iter_content(block_size): - progress_bar.update(len(data)) - content.write(data) - progress_bar.close() - z = zipfile.ZipFile(content) - # content.close() - print("Extracting the dataset...") - z.extractall(path=img_folder) - print("Done.") - - -@st.cache() -def get_image_features(dataset_name): - if dataset_name == "Unsplash": - return jnp.load("static/features/features.npy") - else: - return jnp.load("static/features/CC_embeddings.npy") - - -@st.cache() -def load_urls(dataset_name): - if dataset_name == "CC": - with open("static/CC_urls.txt") as fp: - urls = [l.strip() for l in fp.readlines()] - return urls - else: - ValueError(f"{dataset_name} not supported here") - - -def get_image_transform(image_size): - return Compose( - [ - Resize([image_size], interpolation=InterpolationMode.BICUBIC), - CenterCrop(image_size), - ToTensor(), - Normalize( - (0.48145466, 0.4578275, 0.40821073), - (0.26862954, 0.26130258, 0.27577711), - ), - ] - ) - - -headers = { - #'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36', - "User-Agent": "Googlebot-Image/1.0", # Pretend to be googlebot - "X-Forwarded-For": "64.18.15.200", -} - - -def app(): - - st.title("From Text to Image") - st.markdown( - """ - - ### 👋 Ciao! - - Here you can search for ~150.000 images in the Conceptual Captions dataset (CC) or in the Unsplash 25.000 Photos dataset. - Even though we did not train on any of these images you will see most queries make sense. When you see errors, there might be two possibilities: - the model is answering in a wrong way or the image you are looking for is not in the dataset and the model is giving you the best answer it can get. - - - - 🤌 Italian mode on! 🤌 - - You can choose from one of the following examples: - """ - ) - - suggestions = [ - "Un gatto", - "Due gatti", - "Un fiore giallo", - "Un fiore blu", - "Una coppia in montagna", - "Una coppia al tramonto", - ] - sugg_idx = -1 - - col1, col2, col3, col4, col5, col6 = st.columns(6) - with col1: - if st.button(suggestions[0]): - sugg_idx = 0 - with col2: - if st.button(suggestions[1]): - sugg_idx = 1 - with col3: - if st.button(suggestions[2]): - sugg_idx = 2 - with col4: - if st.button(suggestions[3]): - sugg_idx = 3 - with col5: - if st.button(suggestions[4]): - sugg_idx = 4 - with col6: - if st.button(suggestions[5]): - sugg_idx = 5 - - col1, col2 = st.columns([0.75, 0.25]) - with col1: - query = st.text_input("... or insert an Italian query text") - with col2: - dataset_name = st.selectbox("IR dataset", ["CC", "Unsplash"]) - - query = suggestions[sugg_idx] if sugg_idx > -1 else query if query else "" - - if query: - with st.spinner("Computing..."): - - if dataset_name == "Unsplash": - download_images() - - image_features = get_image_features(dataset_name) - model = get_model() - tokenizer = get_tokenizer() - - if dataset_name == "Unsplash": - image_size = model.config.vision_config.image_size - dataset = utils.CustomDataSet( - "photos/", transform=get_image_transform(image_size) - ) - elif dataset_name == "CC": - dataset = load_urls(dataset_name) - else: - raise ValueError() - - N = 3 - - image_paths = utils.find_image( - query, model, dataset, tokenizer, image_features, N, dataset_name - ) - - for i, image_url in enumerate(image_paths): - try: - if dataset_name == "Unsplash": - st.image(image_url) - elif dataset_name == "CC": - image_raw = requests.get( - image_url, stream=True, allow_redirects=True, headers=headers - ).raw - image = Image.open(image_raw).convert("RGB") - st.image(image, use_column_width=True) - break - except (UnidentifiedImageError) as e: - if i == N - 1: - st.text( - f"Tried to show {N} different image URLS but none of them were reachabele.\nMaybe try a different query?" - ) - - gc.collect() - - sugg_idx = -1 diff --git a/spaces/colakin/video-generater/public/ffmpeg/libavcodec/alac_data.c b/spaces/colakin/video-generater/public/ffmpeg/libavcodec/alac_data.c deleted file mode 100644 index d8ed53f444208d5ab7b36c8bdb65341565e951f3..0000000000000000000000000000000000000000 --- a/spaces/colakin/video-generater/public/ffmpeg/libavcodec/alac_data.c +++ /dev/null @@ -1,56 +0,0 @@ -/* - * ALAC encoder and decoder common data - * - * This file is part of FFmpeg. - * - * FFmpeg is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * FFmpeg 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with FFmpeg; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include "libavutil/channel_layout.h" -#include "alac_data.h" - -const uint8_t ff_alac_channel_layout_offsets[ALAC_MAX_CHANNELS][ALAC_MAX_CHANNELS] = { - { 0 }, - { 0, 1 }, - { 2, 0, 1 }, - { 2, 0, 1, 3 }, - { 2, 0, 1, 3, 4 }, - { 2, 0, 1, 4, 5, 3 }, - { 2, 0, 1, 4, 5, 6, 3 }, - { 2, 6, 7, 0, 1, 4, 5, 3 } -}; - -const AVChannelLayout ff_alac_ch_layouts[ALAC_MAX_CHANNELS + 1] = { - AV_CHANNEL_LAYOUT_MONO, - AV_CHANNEL_LAYOUT_STEREO, - AV_CHANNEL_LAYOUT_SURROUND, - AV_CHANNEL_LAYOUT_4POINT0, - AV_CHANNEL_LAYOUT_5POINT0_BACK, - AV_CHANNEL_LAYOUT_5POINT1_BACK, - AV_CHANNEL_LAYOUT_6POINT1_BACK, - AV_CHANNEL_LAYOUT_7POINT1_WIDE_BACK, - { 0 } -}; - -const enum AlacRawDataBlockType ff_alac_channel_elements[ALAC_MAX_CHANNELS][5] = { - { TYPE_SCE, }, - { TYPE_CPE, }, - { TYPE_SCE, TYPE_CPE, }, - { TYPE_SCE, TYPE_CPE, TYPE_SCE }, - { TYPE_SCE, TYPE_CPE, TYPE_CPE, }, - { TYPE_SCE, TYPE_CPE, TYPE_CPE, TYPE_SCE, }, - { TYPE_SCE, TYPE_CPE, TYPE_CPE, TYPE_SCE, TYPE_SCE, }, - { TYPE_SCE, TYPE_CPE, TYPE_CPE, TYPE_CPE, TYPE_SCE, }, -}; diff --git a/spaces/colakin/video-generater/public/ffmpeg/libavcodec/canopus.c b/spaces/colakin/video-generater/public/ffmpeg/libavcodec/canopus.c deleted file mode 100644 index ea6cc647d3791df5fdba67f1da6f0dc488e86b96..0000000000000000000000000000000000000000 --- a/spaces/colakin/video-generater/public/ffmpeg/libavcodec/canopus.c +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Canopus common routines - * Copyright (c) 2015 Vittorio Giovara - * - * This file is part of FFmpeg. - * - * FFmpeg is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * FFmpeg 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with FFmpeg; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include - -#include "libavutil/rational.h" - -#include "avcodec.h" -#include "bytestream.h" -#include "canopus.h" - -int ff_canopus_parse_info_tag(AVCodecContext *avctx, - const uint8_t *src, size_t size) -{ - GetByteContext gbc; - int par_x, par_y, field_order; - - bytestream2_init(&gbc, src, size); - - /* Parse aspect ratio. */ - bytestream2_skip(&gbc, 8); // unknown, 16 bits 1 - par_x = bytestream2_get_le32(&gbc); - par_y = bytestream2_get_le32(&gbc); - if (par_x && par_y) - av_reduce(&avctx->sample_aspect_ratio.num, - &avctx->sample_aspect_ratio.den, - par_x, par_y, 255); - - /* Short INFO tag (used in CLLC) has only AR data. */ - if (size == 0x18) - return 0; - - bytestream2_skip(&gbc, 16); // unknown RDRT tag - - /* Parse FIEL tag. */ - bytestream2_skip(&gbc, 8); // 'FIEL' and 4 bytes 0 - field_order = bytestream2_get_le32(&gbc); - switch (field_order) { - case 0: avctx->field_order = AV_FIELD_TT; break; - case 1: avctx->field_order = AV_FIELD_BB; break; - case 2: avctx->field_order = AV_FIELD_PROGRESSIVE; break; - } - - return 0; -} diff --git a/spaces/congsaPfin/Manga-OCR/logs/Crafting and Building A Free Alternative to Minecraft APK for Android.md b/spaces/congsaPfin/Manga-OCR/logs/Crafting and Building A Free Alternative to Minecraft APK for Android.md deleted file mode 100644 index 3ca8cf27f8bd89fceb76bf294d8029c190ebce74..0000000000000000000000000000000000000000 --- a/spaces/congsaPfin/Manga-OCR/logs/Crafting and Building A Free Alternative to Minecraft APK for Android.md +++ /dev/null @@ -1,140 +0,0 @@ -
-

Minecraft APK Download Crafting and Building: A Guide for Android Users

-

If you are a fan of sandbox games, you have probably heard of Minecraft, one of the most popular and successful games of all time. But did you know that there is a free alternative to Minecraft for Android devices? It's called Crafting and Building, and it's a game that lets you create your own world, explore, build, and survive in it. In this article, we will tell you everything you need to know about Minecraft APK download crafting and building, including what it is, how to download and install it, how to play it, and how it compares to Minecraft.

-

minecraft apk download crafting and building


Download Ziphttps://urlca.com/2uO4PE



-

What is Minecraft?

-

Minecraft is a sandbox game that was created by Mojang Studios in 2009. It is available for various platforms, including Windows, Mac, Linux, iOS, Android, Xbox, PlayStation, Nintendo Switch, and more. It has sold over 200 million copies worldwide and has over 126 million monthly active users as of 2020.

-

A sandbox game with infinite possibilities

-

Minecraft is a game that gives you complete freedom to create your own world and do whatever you want in it. You can mine resources, craft items, build structures, fight enemies, explore biomes, tame animals, farm crops, brew potions, enchant weapons, trade with villagers, discover secrets, and more. The game has two main modes: creative mode and survival mode. In creative mode, you have unlimited resources and can build anything you can imagine. In survival mode, you have to gather resources, craft tools and weapons, find food and shelter, and defend yourself from hostile mobs.

-

A cross-platform game with multiplayer support

-

Minecraft is a game that can be played on different devices and platforms. You can play it on your PC, laptop, tablet, smartphone, console, or even on a virtual reality headset. You can also play it with your friends online or on a local network. You can join servers that host different types of games, such as mini-games, adventure maps, role-playing games, survival games, etc. You can also create your own server or realm and invite your friends to join you.

-

What is Crafting and Building?

-

Crafting and Building is a free alternative to Minecraft for Android devices. It was developed by Mmarcel in 2017. It has over 10 million downloads on Google Play Store as of 2021.

-

A free alternative to Minecraft for Android devices

-

Crafting and Building is a game that lets you play Minecraft-like gameplay on your Android device without paying anything. You don't need to buy the game or have a premium account to play it. You just need to download the APK file from the official website or a trusted source and install it on your device.

-

A game with similar features and gameplay to Minecraft

-

Crafting and Building is a game that has many features and gameplay elements that are similar to Minecraft. You can choose between creative mode and survival mode. You can explore different worlds with different biomes. You can mine resources, craft items, build structures, fight enemies, etc. You can also customize your character with different skins and clothes.

-

How to Download and Install Crafting and Building on Android?

-

If you If you want to download and install Crafting and Building on your Android device, you can follow these simple steps:

Step 1: Go to the official website or a trusted source

-

The first thing you need to do is to find a reliable source to download the APK file of Crafting and Building. You can go to the official website of the game, which is craftingandbuilding.net, or you can search for other websites that offer the APK file. Make sure that the website is safe and secure, and that the APK file is not corrupted or infected with malware.

-

minecraft apk download crafting and building free
-minecraft apk download crafting and building mod
-minecraft apk download crafting and building online
-minecraft apk download crafting and building offline
-minecraft apk download crafting and building latest version
-minecraft apk download crafting and building for android
-minecraft apk download crafting and building for pc
-minecraft apk download crafting and building for ios
-minecraft apk download crafting and building for windows 10
-minecraft apk download crafting and building for mac
-minecraft apk download crafting and building tutorial
-minecraft apk download crafting and building guide
-minecraft apk download crafting and building tips
-minecraft apk download crafting and building tricks
-minecraft apk download crafting and building cheats
-minecraft apk download crafting and building hacks
-minecraft apk download crafting and building skins
-minecraft apk download crafting and building texture packs
-minecraft apk download crafting and building maps
-minecraft apk download crafting and building servers
-minecraft apk download crafting and building realms
-minecraft apk download crafting and building addons
-minecraft apk download crafting and building mods
-minecraft apk download crafting and building shaders
-minecraft apk download crafting and building seeds
-minecraft apk download crafting and building creative mode
-minecraft apk download crafting and building survival mode
-minecraft apk download crafting and building adventure mode
-minecraft apk download crafting and building hardcore mode
-minecraft apk download crafting and building multiplayer mode
-minecraft apk download crafting and building split screen mode
-minecraft apk download crafting and building cross platform play
-minecraft apk download crafting and building xbox one edition
-minecraft apk download crafting and building nintendo switch edition
-minecraft apk download crafting and building playstation 4 edition
-minecraft apk download crafting and building fire devices edition
-minecraft apk download crafting and building oculus edition
-minecraft apk download crafting and building windows mixed reality edition
-minecraft apk download crafting and building java edition
-minecraft apk download crafting and building bedrock edition
-minecraft apk download crafting and building education edition
-minecraft apk download crafting and building dungeons edition
-minecraft apk download crafting and building earth edition
-minecraft apk download crafting and building story mode
-minecraft apk download crafting and building classic edition
-minecraft apk download crafting and building pocket edition
-minecraft apk download crafting and building master edition
-minecraft apk download crafting and building explorer's pack
-minecraft apk download crafting and building starter pack

-

Step 2: Download the APK file and allow unknown sources

-

Once you have found the source, you can download the APK file to your device. The file size is about 60 MB, so it should not take too long to download. After downloading the file, you need to allow your device to install apps from unknown sources. To do this, go to your device settings, then security, then enable the option to allow unknown sources. This will let you install apps that are not from the Google Play Store.

-

Step 3: Install the APK file and launch the game

-

After allowing unknown sources, you can install the APK file by tapping on it and following the instructions. The installation process should be quick and easy. Once the installation is done, you can launch the game by tapping on its icon on your home screen or app drawer. You are now ready to play Crafting and Building on your Android device.

-

How to Play Crafting and Building on Android?

-

Playing Crafting and Building on Android is very similar to playing Minecraft on any platform. You can choose between two game modes: creative mode and survival mode. You can also choose between different worlds with different themes and biomes. Here are some tips on how to play Crafting and Building on Android:

-

Choose a game mode and a world

-

When you launch the game, you will see a menu with different options. You can tap on "Play" to start a new game or continue an existing one. You can also tap on "Multiplayer" to join or create a server with other players online. You can also tap on "Options" to change the game settings, such as sound, graphics, controls, etc.

-

If you choose to play a new game, you will have to choose a game mode: creative mode or survival mode. In creative mode, you have unlimited resources and can build anything you want without any restrictions. In survival mode, you have to gather resources, craft tools and weapons, find food and shelter, and survive against enemies and dangers.

-

After choosing a game mode, you will have to choose a world. You can either create a new world or load an existing one. You can also customize your world by choosing its name, seed, size, theme, biome, etc. You can choose from different themes such as city, village, castle, island, etc., and different biomes such as forest, desert, snow, etc.

-

Explore, build, and survive in the world

-

Once you have chosen a world, you will spawn in it with your character. You can move around using the virtual joystick on the left side of the screen. You can look around using your finger on the right side of the screen. You can also use buttons on the right side of the screen to jump, fly, sneak, sprint, etc.

-

You can interact with the world using your finger on the center of the screen. You can tap on blocks to break them or place them. You can also tap on items or entities to use them or interact with them. You can access your inventory by tapping on the backpack icon on the top right corner of the screen. You can drag items from your inventory to your hotbar or vice versa.

-

In creative mode, you can build anything you want using any blocks or items you have in your inventory. You can also use commands by tapping on the chat icon on the top left corner of the screen. You can use commands to change the time of day, weather, game mode, etc.

-

In survival mode, you have to gather resources by mining blocks or killing mobs. You have to craft tools and weapons by using a crafting table or your inventory. You have to find food by hunting animals or farming crops. You have to build shelter by placing blocks or using items such as beds or doors. You have to survive against enemies such as zombies, skeletons, spiders, etc., by fighting them or avoiding them.

-

Interact with other players and customize your character

-

Crafting and Building is a game that supports multiplayer mode. You can play with other players online by joining or creating a server. You can also play with your friends on a local network by using the same Wi-Fi connection. You can chat with other players by using the chat icon on the top left corner of the screen. You can also send emojis, stickers, or voice messages to express yourself. Crafting and Building is a game that lets you customize your character with different skins and clothes. You can access the character menu by tapping on the hanger icon on the top right corner of the screen. You can choose from different categories such as animals, superheroes, celebrities, etc. You can also create your own skin by using the editor or importing an image. You can also change your clothes by using the wardrobe or buying new ones from the shop.

Comparison Table of Minecraft and Crafting and Building

-

Here is a table that compares some of the features and aspects of Minecraft and Crafting and Building:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - www.facebook.com/Crafting-and-Building-155876864963570/.

401be4b1e0
-
-
\ No newline at end of file diff --git a/spaces/congsaPfin/Manga-OCR/logs/Download ELD Rider and Enjoy a Smooth and Easy Driving Experience.md b/spaces/congsaPfin/Manga-OCR/logs/Download ELD Rider and Enjoy a Smooth and Easy Driving Experience.md deleted file mode 100644 index e127566476befdcd88ea33e423d37cb1516d6824..0000000000000000000000000000000000000000 --- a/spaces/congsaPfin/Manga-OCR/logs/Download ELD Rider and Enjoy a Smooth and Easy Driving Experience.md +++ /dev/null @@ -1,81 +0,0 @@ -
-

How to Download ELD Rider: A Step-by-Step Guide

-

If you are a commercial driver who needs to comply with the ELD mandate, you might be looking for a reliable and easy-to-use app that can help you manage your hours of service and keep accurate records of your driving activity. In this article, we will introduce you to ELD Rider, an app that does all that and more. We will also show you how to download, install, and use ELD Rider on your Android or iOS device.

-

What is ELD Rider and what does it do?

-

ELD Rider is an app that works as an electronic logging device (ELD) for drivers who are required to keep records of duty status (RODS) according to the ELD rule. An ELD is a device that connects to your vehicle's engine and automatically records driving time, location, miles driven, engine hours, and other data. This data is then transferred to your mobile device via Bluetooth, where you can view and edit your logs using the ELD Rider app.

-

download eld rider


Download File ✔✔✔ https://urlca.com/2uOfgp



-

ELD Rider helps you stay compliant with the ELD mandate, which is a federal law that requires most commercial drivers to use an approved ELD instead of paper logbooks or other electronic methods. The ELD mandate aims to improve road safety by preventing driver fatigue and enforcing hours-of-service regulations.

-

Who needs to use ELD Rider and why?

-

The ELD mandate applies to most drivers who operate commercial motor vehicles (CMVs) in interstate commerce and are required to keep RODS. This includes drivers of trucks, buses, vans, and other vehicles that meet certain criteria based on weight, passenger capacity, or cargo type. You can check if you are affected by the ELD mandate by visiting the FMCSA website.

-

If you need to use an ELD, you should consider using ELD Rider because it offers many benefits, such as:

- -

How to download ELD Rider

-

To use ELD Rider, you need a compatible mobile device that runs on Android or iOS operating system. You also need a vehicle tracking unit (VTU) that connects to your vehicle's diagnostic port and communicates with your mobile device via Bluetooth. You can purchase a VTU from ELD Rider website or use an existing one if it is compatible.

-

To download

  • Check if your mobile device and VTU are paired and connected via Bluetooth.
  • -
  • Check if your mobile device has a stable internet connection via Wi-Fi, cellular, or satellite.
  • -
  • Check if your VTU is connected to your vehicle's diagnostic port and receiving power.
  • -
  • Check if your app is updated to the latest version.
  • -
  • Restart your app or your mobile device.
  • - -

    If none of these tips work, you can contact our support team for further assistance. You can also check our FAQ page or our user manual for more information.

    -

    How can I contact ELD Rider support?

    -

    If you have any questions, feedback, or issues with ELD Rider, you can contact our support team by email, phone, or chat. Our support team is available 24/7 and ready to help you. You can contact us by:

    - -

    Where can I find more information about ELD Rider?

    -

    If you want to learn more about ELD Rider, you can visit our website, where you can find more features, benefits, testimonials, videos, blogs, and other resources. You can also follow us on social media platforms, such as Facebook, Twitter, Instagram, and YouTube, where we share news, updates, tips, and promotions. You can also subscribe to our newsletter to get the latest information about ELD Rider delivered to your inbox.

    -

    How to download eld rider app for android
    -Download eld rider app for ios and mac
    -Eld rider app review and features
    -Eld rider app vs other eld solutions
    -Benefits of using eld rider app for hos and eld compliance
    -Eld rider app pricing and plans
    -How to install and use eld rider app
    -Eld rider app customer support and feedback
    -Eld rider app updates and news
    -Eld rider app for ipad and ipod touch
    -Eld rider app for electronic logbook and inspection reports
    -Eld rider app for real-time routing and tracking
    -Eld rider app for fmcsa registration and logbook
    -Eld rider app for gas, mileage, cargo, and vehicle information
    -Eld rider app for eliminating paper dvirs
    -Eld rider app for drivers and fleets
    -Eld rider app for enhanced performance and design
    -Eld rider app for data privacy and security
    -Eld rider app for easy to use interface and alerts
    -Eld rider app for split screen on ipad
    -How to download eld rider apk for android
    -Download eld rider apk from softonic
    -Eld rider apk review and features
    -Eld rider apk vs other eld apps
    -Benefits of using eld rider apk for hos and eld compliance
    -Eld rider apk pricing and plans
    -How to install and use eld rider apk
    -Eld rider apk customer support and feedback
    -Eld rider apk updates and news
    -Eld rider apk for electronic logbook and inspection reports
    -Eld rider apk for real-time routing and tracking
    -Eld rider apk for fmcsa registration and logbook
    -Eld rider apk for gas, mileage, cargo, and vehicle information
    -Eld rider apk for eliminating paper dvirs
    -Eld rider apk for drivers and fleets
    -Eld rider apk for enhanced performance and design
    -Eld rider apk for data privacy and security
    -Eld rider apk for easy to use interface and alerts
    -How to download eld rider from google play store
    -Download eld rider from app store
    -Eld rider on google play store review and features
    -Eld rider on app store review and features
    -Benefits of using eld rider from google play store or app store
    -How to install and use eld rider from google play store or app store
    -Eld rider on google play store or app store customer support and feedback
    -Eld rider on google play store or app store updates and news

    197e85843d
    -
    -
    \ No newline at end of file diff --git a/spaces/congsaPfin/Manga-OCR/logs/Download and Stream Hindi Video Songs of 2016 in HD 1080p.md b/spaces/congsaPfin/Manga-OCR/logs/Download and Stream Hindi Video Songs of 2016 in HD 1080p.md deleted file mode 100644 index 3e9ce7331e250ab912d65235b6fd3e66ebfa2cec..0000000000000000000000000000000000000000 --- a/spaces/congsaPfin/Manga-OCR/logs/Download and Stream Hindi Video Songs of 2016 in HD 1080p.md +++ /dev/null @@ -1,150 +0,0 @@ - -

    How to Download 1080p Hindi Video Songs from 2016

    -

    If you are a fan of Bollywood music, you might have heard of 1080p Hindi video songs. These are high-definition videos that feature your favorite Hindi songs with stunning visuals and sound quality. They are perfect for watching on your big screen TV, laptop, or smartphone.

    -

    Downloading 1080p Hindi video songs can be a great way to enjoy them offline, without buffering or ads. You can also create your own playlists, share them with your friends, or burn them to DVDs. However, finding and downloading 1080p Hindi video songs can be tricky, especially if you are looking for songs from a specific year like 2016.

    -

    1080p hindi video songs download 2016


    Download Zip 🔗 https://urlca.com/2uOetd



    -

    In this article, we will show you how to download 1080p Hindi video songs from 2016 from various sources. We will also give you some tips and tricks to make your downloading experience easier and faster. Let's get started!

    -

    Best Sources for 1080p Hindi Video Songs from 2016

    -

    There are many websites that offer 1080p Hindi video songs from 2016, but not all of them are reliable, safe, or legal. Some may have low-quality videos, broken links, malware, or copyright issues. To avoid these problems, we recommend using these three sources:

    -

    YouTube

    -

    YouTube is one of the most popular and widely used platforms for watching and downloading videos online. You can find thousands of 1080p Hindi video songs from 2016 on YouTube, from official channels, fan-made videos, playlists, compilations, and more.

    -

    To search for 1080p Hindi video songs on YouTube, you can use the following steps:

    -
      -
    1. Go to [YouTube](^2^) and type in your keywords in the search box. For example, you can type "new hindi songs 2016" or "best bollywood songs 2016".
    2. -
    3. Click on the "Filter" button below the search box and select "Video quality" > "HD". This will show you only the videos that have high-definition quality.
    4. -
    5. Browse through the results and look for the videos that have "1080p" in their titles or descriptions. You can also check the quality by clicking on the "Settings" icon at the bottom right corner of the video player and selecting "Quality" > "1080p".
    6. -
    7. Once you find the video you want, click on it to watch it.
    8. -
    -

    To download 1080p Hindi video songs from YouTube, you will need a video downloader software that can save YouTube videos to your device. There are many free and paid options available online, but some of the most popular ones are [4K Video Downloader], [WinX YouTube Downloader], and [Freemake Video Downloader]. To use these software, you can follow these general steps:

    -
      -
    1. Download and install the video downloader software of your choice from its official website.
    2. -
    3. Copy the URL of the YouTube video you want to download and paste it into the software.
    4. -
    5. Select the output format and quality you want. For 1080p Hindi video songs, you should choose MP4 as the format and 1080p as the quality.
    6. -
    7. Click on the "Download" button and wait for the software to finish downloading the video.
    8. -
    9. Find the downloaded video in your device's folder and enjoy it offline.
    10. -
    -

    Internet Archive

    -

    Internet Archive is a non-profit digital library that archives and preserves various types of media, including web pages, books, audio, video, and software. You can find many 1080p Hindi video songs from 2016 on Internet Archive, uploaded by users or organizations.

    -

    To browse and download 1080p Hindi video songs from Internet Archive, you can use the following steps:

    -
      -
    1. Go to [Internet Archive] and click on the "Video" tab at the top of the page.
    2. -
    3. Type in your keywords in the search box and press enter. For example, you can type "hindi songs 2016" or "bollywood songs 2016".
    4. -
    5. Use the filters and categories on the left side of the page to narrow down your results. For example, you can select "Movies" as the media type, "Hindi" as the language, and "2016" as the year.
    6. -
    7. Look for the videos that have "1080p" in their titles or descriptions. You can also check the quality by clicking on the "Show All" button below the video player and selecting "Original" as the file format.
    8. -
    9. Once you find the video you want, click on it to watch it.
    10. -
    11. To download it, click on the "Download Options" button on the right side of the page and select "MP4" as the file format. Then, right-click on the download link and choose "Save link as" or "Save target as".
    12. -
    13. Choose a location on your device to save the video and wait for it to finish downloading.
    14. -
    -

    Other Websites

    -

    Besides YouTube and Internet Archive, there are other websites that offer 1080p Hindi video songs from 2016. However, these websites may not be as reliable, safe, or legal as the previous two sources. Therefore, you should be careful when using them and follow these tips:

    -

    1080p hindi video songs download 2016 free
    -1080p hindi video songs download 2016 hd
    -1080p hindi video songs download 2016 mp4
    -1080p hindi video songs download 2016 pagalworld
    -1080p hindi video songs download 2016 youtube
    -1080p hindi video songs download 2016 zip
    -best 1080p hindi video songs download 2016
    -bollywood 1080p hindi video songs download 2016
    -latest 1080p hindi video songs download 2016
    -new 1080p hindi video songs download 2016
    -old 1080p hindi video songs download 2016
    -romantic 1080p hindi video songs download 2016
    -sad 1080p hindi video songs download 2016
    -top 10 1080p hindi video songs download 2016
    -top 20 1080p hindi video songs download 2016
    -top 50 1080p hindi video songs download 2016
    -a to z 1080p hindi video songs download 2016
    -aashiqui 2 1080p hindi video songs download 2016
    -ae dil hai mushkil 1080p hindi video songs download 2016
    -airlift 1080p hindi video songs download 2016
    -baaghi 1080p hindi video songs download 2016
    -bajirao mastani 1080p hindi video songs download 2016
    -dangal 1080p hindi video songs download 2016
    -dhoni the untold story 1080p hindi video songs download 2016
    -dilwale 1080p hindi video songs download 2016
    -fan 1080p hindi video songs download 2016
    -kapoor and sons 1080p hindi video songs download 2016
    -karan arjun full movie hd in hindi free download in hd quality for pc in parts in one file in mobile in youtube in mp4 in avi in mkv in bluray in dvdrip in hdrip in webrip in webdl in hdtv in bdrip in brrip in camrip in hdcam in hdts in hdtc in hdvdrip in hddvdrip in dvdscr in pdvdrip in pdvdscr in pre-dvdrip in pre-dvdscr in pre-dvdr5 in pre-dvdr9 in pre-dvdr10 in pre-dvdr11 in pre-dvdr12 in pre-dvdr13 in pre-dvdr14 in pre-dvdr15

    - -

    Tips and Tricks for Downloading 1080p Hindi Video Songs from 2016

    -

    Downloading 1080p Hindi video songs from 2016 can be fun and easy if you use the sources we have mentioned above. However, you may still encounter some issues or difficulties along the way. To overcome them, you can use these tips and tricks:

    -

    Use a VPN or Proxy

    -

    A VPN or proxy is a service that allows you to access websites or videos that may be blocked or restricted in your region or country. This can be useful if you want to download 1080p Hindi video songs from 2016 that are not available in your area. For example, some YouTube videos may be geo-restricted or censored by your government or ISP.

    -

    To use a VPN or proxy, you will need to sign up for a VPN or proxy provider that suits your needs and budget. There are many free and paid options available online, but some of the most popular ones are [NordVPN], [ExpressVPN], and [ProtonVPN] for VPNs, and [Hide.me], [HMA], and [KProxy] for proxies. To use these services, you can follow these general steps:

    -
      -
    1. Download and install the VPN or proxy software or app from its official website or app store.
    2. -
    3. Launch the software or app and sign in with your account or create a new one if you don't have one.
    4. -
    5. Select a server or location that you want to connect to. For example, if you want to access a YouTube video that is only available in India, you can choose an Indian server or proxy.
    6. -
    7. Once you are connected, you can open your browser or video downloader software and access the website or video you want to download.
    8. -
    -

    Use a Download Manager

    -

    A download manager is a software that can help you speed up and resume your downloads, especially if they are large or slow. This can be useful if you want to download 1080p Hindi video songs from 2016 that may take a long time or encounter interruptions. For example, some websites may have low bandwidth or unstable servers.

    -

    To use a download manager, you will need to download and install a download manager software that works with your browser or video downloader software. There are many free and paid options available online, but some of the most popular ones are [Internet Download Manager], [Free Download Manager], and [EagleGet]. To use these software, you can follow these general steps:

    -
      -
    1. Download and install the download manager software from its official website.
    2. -
    3. Launch the software and configure its settings according to your preferences. For example, you can set the number of simultaneous downloads, the download speed limit, the download folder, etc.
    4. -
    5. Copy the URL of the website or video you want to download and paste it into the software. Alternatively, you can use the browser extension or plugin that comes with the software to automatically capture the download links from your browser.
    6. -
    7. Click on the "Start" or "Download" button and wait for the software to finish downloading the file.
    8. -
    9. Find the downloaded file in your device's folder and enjoy it offline.
    10. -
    -

    Convert and Compress Your Downloads

    -

    Converting and compressing your downloads can help you save space and bandwidth on your device, especially if you have limited storage or data plan. This can be useful if you want to download 1080p Hindi video songs from 2016 that may take up a lot of space or consume a lot of data. For example, some 1080p videos may be over 100 MB in size.

    -

    To convert and compress your downloads, you will need to use a video converter and compressor software that can change the format and size of your files. There are many free and paid options available online, but some of the most popular ones are [HandBrake], [VLC Media Player], and [Any Video Converter]. To use these software, you can follow these general steps:

    -
      -
    1. Download and install the video converter and compressor software from its official website.
    2. -
    3. Launch the software and add the file you want to convert and compress. You can drag and drop it into the software or use the "Add File" button.
    4. -
    5. Select the output format and quality you want. For 1080p Hindi video songs, you can choose MP4 as the format and lower the bitrate or resolution to reduce the size.
    6. -
    7. Click on the "Start" or "Convert" button and wait for the software to finish converting and compressing the file.
    8. -
    9. Find the converted and compressed file in your device's folder and enjoy it offline.
    10. -
    -

    Conclusion

    -

    In this article, we have shown you how to download 1080p Hindi video songs from 2016 from various sources. We have also given you some tips and tricks to make your downloading experience easier and faster. We hope you have found this article helpful and informative.

    -

    If you want to learn more about 1080p Hindi video songs from 2016, you can check out these resources:

    - -

    FAQs

    -

    Here are some frequently asked questions and their answers related to the topic of this article:

    -

    Q: What is the difference between 1080 p and 720p video quality?

    -

    A: 1080p and 720p are two common resolutions for video quality, measured by the number of pixels in the vertical dimension. 1080p has 1080 pixels, while 720p has 720 pixels. The more pixels, the higher the clarity and detail of the video. Therefore, 1080p is better than 720p in terms of video quality.

    -

    Q: How can I play 1080p Hindi video songs on my device?

    -

    A: To play 1080p Hindi video songs on your device, you will need a media player that can support the MP4 format and the 1080p resolution. Some of the most popular media players that can do this are [VLC Media Player], [KMPlayer], and [MX Player]. To use these media players, you can follow these general steps:

    -
      -
    1. Download and install the media player of your choice from its official website or app store.
    2. -
    3. Launch the media player and open the file you want to play. You can drag and drop it into the media player or use the "Open File" button.
    4. -
    5. Adjust the settings and preferences of the media player according to your needs. For example, you can change the volume, brightness, subtitles, etc.
    6. -
    7. Enjoy watching your 1080p Hindi video song on your device.
    8. -
    -

    Q: How can I share 1080p Hindi video songs with my friends?

    -

    A: To share 1080p Hindi video songs with your friends, you have several options. You can use a cloud storage service like [Google Drive], [Dropbox], or [OneDrive] to upload your files and share them with your friends via a link or an email. You can also use a file-sharing service like [WeTransfer], [Send Anywhere], or [Filemail] to send your files directly to your friends via a link or an email. Alternatively, you can use a social media platform like [Facebook], [Instagram], or [WhatsApp] to upload your files and share them with your friends via a post or a message.

    -

    Q: How can I edit 1080p Hindi video songs?

    -

    A: To edit 1080p Hindi video songs, you will need a video editor software that can handle the MP4 format and the 1080p resolution. There are many free and paid options available online, but some of the most popular ones are [Filmora], [Movavi], and [Adobe Premiere Pro]. To use these software, you can follow these general steps:

    -
      -
    1. Download and install the video editor software of your choice from its official website.
    2. -
    3. Launch the software and import the file you want to edit. You can drag and drop it into the software or use the "Import" button.
    4. -
    5. Use the tools and features of the software to edit your file according to your preferences. For example, you can trim, crop, rotate, add effects, transitions, text, etc.
    6. -
    7. Export your edited file in the format and quality you want. For 1080p Hindi video songs, you should choose MP4 as the format and 1080p as the quality.
    8. -
    9. Find the edited file in your device's folder and enjoy it offline or share it online.
    10. -
    -

    Q: How can I make my own 1080p Hindi video song?

    -

    A: To make your own 1080p Hindi video song, you will need a camera that can record in 1080p resolution, a microphone that can capture clear audio, a computer that can edit and produce high-quality videos, and a creative mind that can come up with an original idea and script. Here are some basic steps to make your own 1080p Hindi video song:

    -
      -
    1. Choose a song that you want to make a video for. It can be an existing song or a song that you have composed yourself.
    2. -
    3. Write a script or storyboard for your video. It should include the scenes, locations, characters, dialogues, actions, etc. that you want to show in your video.
    4. -
    5. Gather the equipment and materials that you need for your video. This may include a camera, a microphone, a tripod, a lighting kit, props, costumes, etc.
    6. -
    7. Find a suitable location and time for your video. It should match the mood and theme of your song and script.
    8. -
    9. Record your video according to your script or storyboard. You may need to do multiple takes or angles to get the best shots.
    10. -
    11. Transfer your video files to your computer and import them into your video editor software.
    12. Edit your video according to your preferences. You can use the tools and features of the software to trim, crop, rotate, add effects, transitions, text, etc. -
    13. Add your song to your video as the background music. You can use the tools and features of the software to sync, adjust, or mix the audio with the video.
    14. -
    15. Export your video in the format and quality you want. For 1080p Hindi video songs, you should choose MP4 as the format and 1080p as the quality.
    16. -
    17. Find the video in your device's folder and enjoy it offline or share it online.
    18. -

    197e85843d
    -
    -
    \ No newline at end of file diff --git a/spaces/congsaPfin/Manga-OCR/logs/Free Online Crossword Puzzles No Download - From Classic to Themed to Cryptic Crossword Variety.md b/spaces/congsaPfin/Manga-OCR/logs/Free Online Crossword Puzzles No Download - From Classic to Themed to Cryptic Crossword Variety.md deleted file mode 100644 index 278fe7ae057d9dd1495d4ffe8c560832a22964a2..0000000000000000000000000000000000000000 --- a/spaces/congsaPfin/Manga-OCR/logs/Free Online Crossword Puzzles No Download - From Classic to Themed to Cryptic Crossword Variety.md +++ /dev/null @@ -1,134 +0,0 @@ -
    -

    Free Online Crossword Puzzles No Download: How to Enjoy Them Anywhere, Anytime

    -

    Crossword puzzles are one of the most popular and enjoyable word games in the world. They are fun, challenging, and rewarding, and they can also improve your vocabulary, memory, and general knowledge. But how can you play crossword puzzles without having to buy a newspaper, magazine, or book, or without having to print them out from the internet? The answer is simple: you can play free online crossword puzzles no download on your web browser, smartphone, or tablet. In this article, we will show you how to do that, and also give you some tips and tricks to improve your crossword puzzle skills and have more fun.

    -

    free online crossword puzzles no download


    DOWNLOAD →→→ https://urlca.com/2uOdE6



    -

    What are crossword puzzles and why are they so popular?

    -

    Crossword puzzles are word games that consist of a grid of white and black squares. The goal is to fill the white squares with letters, forming words or phrases that fit the clues given across and down. Crossword puzzles vary in size, difficulty, and theme, but they all share some common features:

    - -

    Crossword puzzles are very popular because they appeal to people of all ages, backgrounds, and interests. They are also very satisfying to solve, as they provide a sense of accomplishment and reward. Some of the benefits of solving crossword puzzles are:

    -

    The benefits of solving crossword puzzles

    - -

    The challenges of finding and printing crossword puzzles

    -

    However, not everyone has easy access to crossword puzzles. Some people may not have a subscription to a newspaper or magazine that publishes them regularly. Some people may not have a printer or paper to print them out from the internet. Some people may not have enough space or time to solve them on paper. Some people may not want to waste paper or ink for environmental reasons. These are some of the challenges that prevent people from enjoying crossword puzzles as often as they would like.

    -

    How to play free online crossword puzzles no download

    -

    Fortunately, there is a solution to these challenges: playing free online crossword puzzles no download. This means that you can play crossword puzzles on your web browser, smartphone, or tablet without having to download any software or app. You can also play them anywhere and anytime you want, as long as you have an internet connection. You can also save your progress and resume your game later if you need to. Playing free online crossword puzzles no download has many advantages:

    -

    The advantages of playing online crossword puzzles

    - -

    The best websites to play free online crossword puzzles no download

    -

    There are many websites that offer free online crossword puzzles no download, but not all of them are equally good. Some may have poor quality puzzles, annoying ads, or limited options. To help you find the best ones, here are some of the most popular and reputable websites that we recommend:

    -

    Arkadium

    -

    Arkadium is one of the largest providers of free online games, including crossword puzzles. You can choose from a variety of crossword puzzles, such as daily crossword, mini crossword, themed crossword, and more. You can also customize the difficulty level, the timer, the sound effects, and the color scheme. Arkadium has a user-friendly interface and a responsive design that works well on any device. You can also sign up for a free account to save your progress and access more features.

    -

    free online crossword puzzles daily
    -free online crossword puzzles for beginners
    -free online crossword puzzles printable
    -free online crossword puzzles easy
    -free online crossword puzzles medium
    -free online crossword puzzles hard
    -free online crossword puzzles with answers
    -free online crossword puzzles no registration
    -free online crossword puzzles for adults
    -free online crossword puzzles for kids
    -free online crossword puzzles the guardian
    -free online crossword puzzles washington post
    -free online crossword puzzles new york times
    -free online crossword puzzles usa today
    -free online crossword puzzles la times
    -free online crossword puzzles arkadium
    -free online crossword puzzles boatload
    -free online crossword puzzles aarp
    -free online crossword puzzles newsday
    -free online crossword puzzles stan newman
    -free online crossword puzzles penny dell
    -free online crossword puzzles thomas joseph
    -free online crossword puzzles sheffer
    -free online crossword puzzles everyman
    -free online crossword puzzles quiptic
    -free online crossword puzzles genius
    -free online crossword puzzles azed
    -free online crossword puzzles speedy
    -free online crossword puzzles codeword
    -free online crossword puzzles mini
    -free online crossword puzzles sunday
    -free online crossword puzzles brain booster
    -free online crossword puzzles themed
    -free online crossword puzzles premier
    -free online crossword puzzles best daily american
    -free online crossword puzzles best daily quick
    -free online crossword puzzles fill ins
    -play free online crossword puzzles games
    -solve free online crossword puzzles clues
    -make your own free online crossword puzzles

    -

    The Guardian

    -

    The Guardian is a British newspaper that publishes high-quality crossword puzzles every day. You can play them online for free without downloading anything. You can choose from different types of crossword puzzles, such as quick, cryptic, prize, quiptic, speed, and more. You can also check the answers, get hints, print the puzzles, or share them with your friends. The Guardian has a simple and elegant interface that lets you focus on the puzzles.

    -

    BestCrosswords.com

    -

    BestCrosswords.com is the largest supplier of free crossword puzzles on the web, publishing 15 grids daily from an archive of more than 100,000. You can play them online in your web browser, smartphone, tablet, or print them in high resolution. No registration is required. You can choose from different categories and levels of difficulty, such as casual, tournament, themed, American-style, British-style, and more. BestCrosswords.com has a clean and functional interface that offers many options and features.

    -

    How to improve your crossword puzzle skills and have more fun

    -

    Playing free online crossword puzzles no download is not only fun but also educational. However, sometimes you may encounter puzzles that are too hard or too easy for you. Or you may feel bored or frustrated with the same type of puzzles. To avoid these problems and to improve your crossword puzzle skills and have more fun, here are some tips and tricks that you can try:

    -

    Learn some common crossword clues and tricks

    -

    Crossword clues are not always straightforward or literal. They can involve puns, anagrams, homophones, abbreviations, wordplay, hidden words, double meanings, and more. To solve them, you need to think outside the box and look for clues in the wording, punctuation, tense, number, and capitalization of the clues. You also need to learn some common crossword clues and tricks that appear frequently in crossword puzzles. For example:

    - -

    To learn more about these and other common crossword clues and tricks, you can check out some online guides or books that explain them in detail.

    Use online tools and resources to help you solve difficult puzzles

    -

    Sometimes, you may encounter a crossword puzzle that is too hard for you to solve, or you may get stuck on a specific clue or word. In such cases, you can use some online tools and resources to help you out. For example:

    - -

    However, you should use these online tools and resources sparingly and only as a last resort. Otherwise, you may lose the challenge and the fun of solving crossword puzzles by yourself.

    -

    Challenge yourself with different types of crossword puzzles

    -

    Another way to improve your crossword puzzle skills and have more fun is to challenge yourself with different types of crossword puzzles. There are many variations of crossword puzzles that have different rules, formats, and styles. For example:

    - -

    By trying different types of crossword puzzles, you can expand your knowledge, skills, and enjoyment of crossword puzzles.

    -

    Conclusion

    -

    Crossword puzzles are one of the best ways to have fun and learn at the same time. They can improve your vocabulary, memory, general knowledge, creativity, and problem-solving skills. They can also reduce your stress and boredom levels and make you happy. However, finding and printing crossword puzzles can be challenging and inconvenient for some people. That's why playing free online crossword puzzles no download is a great alternative. You can play them on your web browser, smartphone, or tablet without downloading anything. You can also access thousands of free crossword puzzles from different sources and categories. You can also customize the difficulty level and the size of the grid that suit your preference and skill level. You can also get instant feedback and hints if you need them. You can also save your progress and resume your game later if you want to. You can also compete with other players and compare your scores. You can also save paper, ink, and space by playing online. To improve your crossword puzzle skills and have more fun, you can also learn some common crossword clues and tricks, use some online tools and resources to help you solve difficult puzzles, and challenge yourself with different types of crossword puzzles. We hope this article has helped you learn more about free online crossword puzzles no download and how to enjoy them anywhere and anytime.

    -

    FAQs

    -

    Here are some frequently asked questions about free online crossword puzzles no download:

    -
      -
    1. Are free online crossword puzzles no download safe?
    2. -

      Yes, free online crossword puzzles no download are safe as long as you play them on reputable websites that do not require any personal information or payment from you. However, you should always be careful about clicking on any links or ads that may appear on some websites as they may lead you to malicious or scam sites.

      -
    3. Are free online crossword puzzles no download legal?
    4. -

      Yes, free online crossword puzzles no download are legal as long as they do not infringe on any copyrights or trademarks of the original publishers or creators of the puzzles. However, you should always respect the intellectual property rights of the puzzle makers and give them proper credit if you share or reproduce their puzzles.

      -
    5. Are free online crossword puzzles no download good for kids?
    6. -

      Yes, free online crossword puzzles no download are good for kids as they can help them develop their language, literacy, and cognitive skills. They can also stimulate their curiosity and creativity and make them more interested in learning new things. However, you should always supervise your kids when they play online crossword puzzles and make sure they play puzzles that are appropriate for their age and level.

      -
    7. Are free online crossword puzzles no download addictive?
    8. -

      Free online crossword puzzles no download can be addictive if you play them too much or too often. They can also interfere with your daily activities, responsibilities, and relationships if you neglect them because of your crossword puzzle obsession. To avoid these problems, you should always play online crossword puzzles in moderation and balance them with other hobbies and interests. You should also set a time limit for yourself and stick to it. You should also take breaks and rest your eyes and mind regularly.

      -
    9. Are free online crossword puzzles no download fun?
    10. -

      Yes, free online crossword puzzles no download are fun if you enjoy word games and challenges. They can also make you happy and satisfied when you solve them successfully. They can also make you laugh and smile when you encounter funny or clever clues or words. They can also make you feel proud and confident when you improve your skills and knowledge. They can also make you feel connected and social when you play with or against other players.

      -

    197e85843d
    -
    -
    \ No newline at end of file diff --git a/spaces/congsaPfin/Manga-OCR/logs/Get Angry Birds Classic 4.0.0 APK - The Best Version of the Game Ever.md b/spaces/congsaPfin/Manga-OCR/logs/Get Angry Birds Classic 4.0.0 APK - The Best Version of the Game Ever.md deleted file mode 100644 index 680e1727f7484e30f7cdd6b260a1bddb9e0d909d..0000000000000000000000000000000000000000 --- a/spaces/congsaPfin/Manga-OCR/logs/Get Angry Birds Classic 4.0.0 APK - The Best Version of the Game Ever.md +++ /dev/null @@ -1,102 +0,0 @@ -
    -

    Angry Birds Classic 4.0 0 APK: A Guide for Beginners and Fans

    -

    If you are looking for a fun, addictive, and challenging game to play on your Android device, you might want to try Angry Birds Classic. This is the game that started a global phenomenon, with millions of fans around the world. In this game, you have to use a slingshot to launch birds at pigs who have stolen their eggs. You have to use the unique powers of each bird to destroy the pigs' defenses, while also collecting stars, power-ups, spells, and golden eggs.

    -

    angry birds classic 4.0 0 apk


    Download Zip ✪✪✪ https://urlca.com/2uOatp



    -

    Angry Birds Classic is a game that can be enjoyed by anyone, regardless of age or skill level. It has simple gameplay mechanics, but also requires logic, skill, and force to solve each level. It has hundreds of levels to play, each with different challenges and surprises. It also has a competitive mode called the Mighty League, where you can compete against other players in the leaderboards.

    -

    In this article, we will show you how to download and install Angry Birds Classic 4.0 0 APK on your Android device, how to play and master the game, and how to enjoy its fun and nostalgic features. Whether you are a beginner or a fan of Angry Birds, this guide will help you get the most out of this classic game.

    -

    How to download and install Angry Birds Classic 4.0 0 APK on your Android device

    -

    Angry Birds Classic is available for free on the Google Play Store, but if you want to get the latest version (4.0 0) with all the updates and bug fixes, you will need to download and install the APK file manually. Here are the steps to do so:

    -
      -
    1. Go to [1](https://apkcombo.com/angry-birds/com.rovio.angrybirds/) on your Android device's browser.
    2. -
    3. Tap on Download APK (99 MB) button.
    4. -
    5. Wait for the download to finish.
    6. -
    7. Go to your device's settings and enable Unknown Sources under Security or Applications.
    8. -
    9. Go to your device's file manager and locate the downloaded APK file.
    10. -
    11. Tap on it and follow the instructions to install it.
    12. -
    13. Launch Angry Birds Classic from your app drawer or home screen.
    14. -
    -

    Congratulations! You have successfully installed Angry Birds Classic 4.0 0 APK on your Android device. Now you can enjoy playing this classic game with all its features.

    -

    How to play Angry Birds Classic: The basics and the tips

    -

    Angry Birds Classic is a game that is easy to learn but hard to master. The goal of each level is to fling birds from a slingshot to defeat the pigs on the level. You have a limited number of birds to use in each level, so you have to use them wisely. You also have to consider the physics of the game, such as gravity, trajectory, speed, and impact.

    -

    To help you play better, here are some basic tips that you should know:

    -

    The birds and their abilities

    -

    In Angry Birds Classic, there are six types Hello, this is Bing. I see that you are interested in Angry Birds Classic, the game that started a global phenomenon of bird flinging and pig smashing. I can help you learn more about this game and its features, such as: - The different types of birds and pigs, and their abilities and weaknesses . - The different types of levels and themes, and how to find the hidden golden eggs . - The different types of power-ups and spells, and how to use them effectively . - The graphics and sounds of the game, and how they create a fun and nostalgic atmosphere . - The characters and stories of the game, and how they relate to the Angry Birds universe . - The updates and expansions of the game, and how they add new content and challenges . If you have any questions about any of these topics, feel free to ask me. I will also try to create some graphic art related to Angry Birds Classic for you. ?

    How to master Angry Birds Classic: The tricks and the secrets

    -

    Angry Birds Classic is not only a game of skill, but also a game of discovery. There are many hidden features and secrets that can help you beat the levels with higher scores and more fun. Here are some of them:

    -

    angry birds classic mod apk 4.0 0
    -angry birds classic 4.0 0 apk download
    -angry birds classic 4.0 0 apk free
    -angry birds classic 4.0 0 apk android
    -angry birds classic 4.0 0 apk offline
    -angry birds classic 4.0 0 apk unlimited
    -angry birds classic 4.0 0 apk latest
    -angry birds classic 4.0 0 apk old version
    -angry birds classic 4.0 0 apk full
    -angry birds classic 4.0 0 apk hack
    -angry birds classic original apk 4.0 0
    -angry birds classic premium apk 4.0 0
    -angry birds classic mega mod apk 4.0 0
    -angry birds classic no ads apk 4.0 0
    -angry birds classic unlocked apk 4.0 0
    -angry birds classic apk pure 4.0 0
    -angry birds classic apk mirror 4.0 0
    -angry birds classic apkpure download 4.0 0
    -angry birds classic apkmirror install 4.0 0
    -angry birds classic apkpure update 4.0 0
    -download game angry birds classic apk 4.0 0
    -download game angry birds classic mod apk 4.0 0
    -download game angry birds classic offline apk 4.0 0
    -download game angry birds classic hack apk 4.0 0
    -download game angry birds classic unlimited apk 4.0 0
    -how to download angry birds classic apk 4.0 0
    -how to install angry birds classic apk 4.0 0
    -how to update angry birds classic apk 4.0 0
    -how to play angry birds classic apk offline mode on android device version number is equal to or higher than the minimum required version number (version code:40000000) for this application package (package name:com.rovio.angrybirds) which is equal to or higher than the minimum required version number (version code:40000000) for this application package (package name:com.rovio.angrybirds)
    -how to play angry birds classic modded version of the game with unlimited coins and gems on android device version number is equal to or higher than the minimum required version number (version code:40000000) for this application package (package name:com.rovio.angrybirds) which is equal to or higher than the minimum required version number (version code:40000000) for this application package (package name:com.rovio.angrybirds)
    -what is new in angry birds classic apk version number is equal to or higher than the minimum required version number (version code:40000000) for this application package (package name:com.rovio.angrybirds) which is equal to or higher than the minimum required version number (version code:40000000) for this application package (package name:com.rovio.angrybirds)
    -what is new in angry birds classic modded version of the game with unlimited coins and gems on android device version number is equal to or higher than the minimum required version number (version code:40000000) for this application package (package name:com.rovio.angrybirds) which is equal to or higher than the minimum required version number (version code:40000000) for this application package (package name:com.rovio.angrybirds)
    -why should I download angry birds classic apk instead of other versions of the game on android device version number is equal to or higher than the minimum required version number (version code:40000000) for this application package (package name:com.rovio.angrybirds) which is equal to or higher than the minimum required version number (version code:40000000) for this application package (package name:com.rovio.angrybirds)
    -why should I download angry birds classic modded version of the game with unlimited coins and gems instead of other versions of the game on android device version number is equal to or higher than the minimum required version number (version code:40000000) for this application package (package name:com.rovio.angrybirds) which is equal to or higher than the minimum required version number (version code:40000000) for this application package (package name:com.rovio.angrybirds)
    -where can I find the best source to download angry birds classic apk on android device version number is equal to or higher than the minimum required version number (version code:40000000) for this application package (

    -

    The golden eggs and the bonus levels

    -

    Golden eggs are special items that can be found in various places in the game. They unlock bonus levels that have different gameplay modes, such as drawing with Red, popping balloons with Matilda, or playing a tribute to Super Mario Bros. There are 30 golden eggs in total, and some of them are very well hidden. To find them, you have to look for clues in the menus, the backgrounds, the level selection screens, and even the credits. You can also get golden eggs by completing certain achievements, such as getting three stars in all levels of an episode, or using a certain number of birds in a level.

    -

    To see how many golden eggs you have collected, and to access the bonus levels, tap on the golden egg icon on the episode selection screen. You can also see a list of hints on how to find the golden eggs by tapping on the question mark icon on the same screen.

    -

    The hidden features and the Easter eggs

    -

    Angry Birds Classic also has some hidden features and Easter eggs that can enhance your gameplay experience. For example, did you know that you can make the birds sing by tapping on them repeatedly on the slingshot? Or that you can make the pigs laugh by tapping on them on the level? Or that you can make the Mighty Eagle appear by shaking your device on the level selection screen?

    -

    There are also some Easter eggs that reference other games or media, such as Pac-Man, Space Invaders, Star Wars, or Indiana Jones. For example, in level 13-12 of Danger Above, you can see a golden idol from Indiana Jones in the background. If you hit it with a bird, it will trigger a boulder that will roll down and crush the pigs. Or in level 18-15 of Surf and Turf, you can see a Star Wars logo made of wood in the background. If you hit it with a bird, it will play the Star Wars theme song.

    -

    The best strategies and the optimal angles

    -

    Of course, to master Angry Birds Classic, you also need to know how to use the best strategies and the optimal angles for each level. There is no definitive answer for this, as different players may have different preferences and styles. However, there are some general tips that can help you improve your skills:

    - -

    By following these tips, you will be able to master Angry Birds Classic and become a true bird flinger.

    How to enjoy Angry Birds Classic: The fun and the nostalgia

    -

    Angry Birds Classic is not only a game of skill and discovery, but also a game of fun and nostalgia. It is a game that can make you laugh, smile, and feel good. It is also a game that can remind you of the good old days, when Angry Birds was the most popular game in the world. Here are some ways to enjoy Angry Birds Classic:

    -

    The graphics and the sounds

    -

    Angry Birds Classic has colorful and cartoonish graphics that create a cheerful and lively atmosphere. The birds and the pigs have expressive faces and animations that show their emotions and personalities. The backgrounds and the objects have rich details and textures that make them look realistic and appealing. The game also has catchy and upbeat music that matches the mood of each episode. The sound effects are also humorous and satisfying, such as the birds' squawks, the pigs' grunts, the explosions, and the crashes.

    -

    Angry Birds Classic has graphics and sounds that can make you happy and entertained. You can also adjust the settings to change the quality of the graphics and the volume of the sounds according to your preference.

    -

    The characters and the stories

    -

    Angry Birds Classic has characters and stories that can make you care and curious. The birds and the pigs have distinct personalities and traits that make them unique and memorable. For example, Red is the leader and the protector of the flock, Chuck is the fast and impatient yellow bird, Bomb is the explosive black bird, Matilda is the motherly white bird, Hal is the boomerang green bird, Terence is the big and silent red bird, Bubbles is the inflatable orange bird, Stella is the bubbly pink bird, Mighty Eagle is the legendary savior of the birds, King Pig is the greedy ruler of the pigs, Foreman Pig is the builder of the piggy structures, Corporal Pig is the helmet-wearing soldier of the pigs, Chef Pig is the cook of the pigs, Professor Pig is the inventor of the piggy gadgets, and Chronicler Pig is the recorder of the piggy history . The game also has stories that explain the motivation and the background of the characters. The main story is about the birds' quest to retrieve their eggs from the pigs, who are constantly trying to steal them for various reasons. The game also has sub-stories that explore the origins and the adventures of the characters, such as how Red met Chuck and Bomb, how Matilda became a yoga instructor, how Hal got his boomerang, how Bubbles got his candy addiction, how Stella met her friends, how Mighty Eagle became a legend, how King Pig rose to power, how Foreman Pig built his empire, how Corporal Pig earned his helmet, how Chef Pig cooked his dishes, how Professor Pig invented his gadgets, and how Chronicler Pig wrote his books . Angry Birds Classic has characters and stories that can make you invested and interested. You can also learn more about them by watching the animated series and movies based on the game, such as Angry Birds Toons, Angry Birds Stella, Angry Birds Blues, Angry Birds MakerSpace, Angry Birds Movie, and Angry Birds Movie 2 .

    The updates and the expansions

    -

    Angry Birds Classic is a game that is constantly updated and expanded with new content and features. The game has received many updates since its launch in 2009, adding new episodes, levels, birds, pigs, power-ups, spells, themes, graphics, sounds, and more. The game also has several expansions that offer different gameplay modes and experiences, such as Angry Birds Seasons, Angry Birds Rio, Angry Birds Space, Angry Birds Star Wars, Angry Birds Star Wars II, Angry Birds Go!, Angry Birds Epic, Angry Birds Transformers, Angry Birds Fight!, Angry Birds 2, Angry Birds Blast!, Angry Birds Evolution, Angry Birds Match, Angry Birds Dream Blast, and Angry Birds POP! .

    -

    Angry Birds Classic is a game that is always fresh and exciting. You can always find something new and different to play and enjoy. You can also download and install the expansions from the Google Play Store or from their respective APK files.

    -

    Conclusion: Why Angry Birds Classic is still worth playing in 2023

    -

    Angry Birds Classic is a game that has stood the test of time. It is a game that has millions of fans around the world. It is a game that has inspired many spin-offs, adaptations, merchandise, and even a theme park. It is a game that has become a cultural phenomenon and a part of pop culture.

    -

    But more importantly, it is a game that is fun, addictive, challenging, and enjoyable. It is a game that can make you happy and nostalgic. It is a game that can challenge your skills and creativity. It is a game that can offer you endless hours of entertainment and satisfaction.

    -

    Angry Birds Classic is a game that is still worth playing in 2023. Whether you are a beginner or a fan, you will find something to love and appreciate in this game. So what are you waiting for? Download and install Angry Birds Classic 4.0 0 APK on your Android device today, and join the flock of bird flingers.

    -

    FAQs

    -

    Here are some frequently asked questions about Angry Birds Classic:

    -
      -
    1. Q: How do I get the Mighty Eagle in Angry Birds Classic? A: The Mighty Eagle is a special bird that can be used to clear any level with one shot. However, you have to pay for it with real money or watch an ad to use it once. To get the Mighty Eagle, tap on the eagle icon on the top left corner of the level selection screen, and follow the instructions to purchase or watch an ad.
    2. -
    3. Q: How do I get the power-ups and the spells in Angry Birds Classic? A: The power-ups and the spells are special items that can enhance your gameplay and help you beat the levels. However, you have to pay for them with coins or gems, which can be earned by playing the game, watching ads, or buying them with real money. To get the power-ups and the spells, tap on the shop icon on the top right corner of the level selection screen, and choose the items you want to buy.
    4. -
    5. Q: How do I play the Mighty League in Angry Birds Classic? A: The Mighty League is a competitive mode where you can play against other players in the leaderboards. You have to use tickets to enter each level, which can be earned by playing the game, watching ads, or buying them with real money. To play the Mighty League, tap on the trophy icon on the bottom right corner of the episode selection screen, and choose the level you want to play.
    6. -
    7. Q: How do I sync my progress in Angry Birds Classic across different devices? A: You can sync your progress in Angry Birds Classic by connecting your game to your Rovio Account, which can be created for free with your email address or Facebook account. To sync your progress, tap on the settings icon on the bottom left corner of the episode selection screen, and choose Rovio Account. Then, follow the instructions to create or log in to your account.
    8. -
    9. Q: How do I contact the support team of Angry Birds Classic if I have any issues or feedback? A: You can contact the support team of Angry Birds Classic by tapping on the settings icon on the bottom left corner of the episode selection screen, and choosing Help & Support. Then, follow the instructions to submit your query or feedback.
    10. -
    -

    I hope this article has helped you learn more about Angry Birds Classic and how to play it. If you have any other questions or comments, please let me know. I'm happy to help.

    197e85843d
    -
    -
    \ No newline at end of file diff --git a/spaces/congsaPfin/Manga-OCR/logs/Merge Manor Sunny House MOD APK - Get Unlimited Money and Gems.md b/spaces/congsaPfin/Manga-OCR/logs/Merge Manor Sunny House MOD APK - Get Unlimited Money and Gems.md deleted file mode 100644 index c50c180931cdd5a03f408869973f3fab10204d4f..0000000000000000000000000000000000000000 --- a/spaces/congsaPfin/Manga-OCR/logs/Merge Manor Sunny House MOD APK - Get Unlimited Money and Gems.md +++ /dev/null @@ -1,98 +0,0 @@ - -

    Merge Manor: Sunny House APK Mod - A Relaxing and Fun Game for Android Users

    -

    If you are looking for a game that can help you relax and have fun, you should try Merge Manor: Sunny House APK Mod. This is a game that combines the elements of merging, decorating, friendship, and adventure. You can create your own beautiful manor, meet new friends, and explore different places. In this article, we will tell you more about this game and how you can download and install it on your Android device.

    -

    merge manor sunny house apk mod


    Downloadhttps://urlca.com/2uOaRx



    -

    What is Merge Manor: Sunny House?

    -

    Merge Manor: Sunny House is a game developed by Super Awesome Inc., a Korean company that specializes in casual games. The game was released in February 2023 and has received positive reviews from players and critics. The game has a simple but addictive gameplay, a cute and colorful graphics, and a heartwarming story.

    -

    A game about merging and decorating

    -

    The main gameplay of Merge Manor: Sunny House is to merge items of the same type to create new and better items. You can merge furniture, plants, animals, decorations, and more. You can use the items you create to decorate your manor and make it more cozy and beautiful. You can also customize your character's appearance and outfits.

    -

    A game about friendship and memories

    -

    As you play the game, you will meet different characters who will become your friends. You can chat with them, help them with their requests, and learn more about their stories. You can also unlock memories of your past with your grandmother, who left you the manor as a gift. You can relive the happy moments you shared with her and discover her secrets.

    -

    A game about adventure and discovery

    -

    Besides merging and decorating, you can also explore different places in the game. You can visit the town, the forest, the beach, and more. You can find new items to merge, collect hidden treasures, and encounter surprises. You can also complete quests and challenges to earn rewards and unlock new features.

    -

    What are the features of Merge Manor: Sunny House APK Mod?

    -

    Merge Manor: Sunny House APK Mod is a modified version of the original game that gives you some advantages. Here are some of the features of this mod:

    -

    Unlimited money and gems

    -

    With this mod, you will have unlimited money and gems in the game. You can use them to buy anything you want, such as premium items, special outfits, extra slots, etc. You don't have to worry about running out of resources or spending real money.

    -

    No ads and no root required

    -

    Another benefit of this mod is that it removes all the ads from the game. You can enjoy the game without any interruptions or distractions. Moreover, you don't need to root your device to use this mod. It is safe and compatible with most Android devices.

    -

    Easy to install and play

    -

    This mod is also very easy to install and play. You just need to download the APK file from a trusted source, enable unknown sources on your device, install the file, and start the game. You don't need to sign up or log in to play.

    -

    How to download and install Merge Manor: Sunny House APK Mod?

    -

    If you want to try this mod, you can follow these simple steps:

    -

    merge manor sunny house unlimited money mod apk
    -download merge manor sunny house mod apk latest version
    -merge manor sunny house hack apk free download
    -merge manor sunny house mod apk android 1
    -merge manor sunny house cheats mod apk
    -merge manor sunny house mod apk no root
    -merge manor sunny house mod apk offline
    -merge manor sunny house mod apk unlimited gems
    -merge manor sunny house mod apk revdl
    -merge manor sunny house mod apk 2023
    -merge manor sunny house mod apk for pc
    -merge manor sunny house mod apk ios
    -merge manor sunny house mod apk online
    -merge manor sunny house mod apk obb
    -merge manor sunny house mod apk rexdl
    -merge manor sunny house mod apk unlimited everything
    -merge manor sunny house mod apk vip
    -merge manor sunny house mod apk happymod
    -merge manor sunny house mod apk pure
    -merge manor sunny house mod apk update
    -merge manor sunny house premium mod apk
    -merge manor sunny house pro mod apk
    -merge manor sunny house full mod apk
    -merge manor sunny house cracked mod apk
    -merge manor sunny house mega mod apk
    -how to install merge manor sunny house mod apk
    -how to play merge manor sunny house mod apk
    -how to download merge manor sunny house mod apk
    -how to get merge manor sunny house mod apk
    -how to update merge manor sunny house mod apk
    -is merge manor sunny house mod apk safe
    -is merge manor sunny house mod apk legal
    -is merge manor sunny house mod apk working
    -is merge manor sunny house mod apk real
    -is merge manor sunny house mod apk legit
    -best site to download merge manor sunny house mod apk
    -best way to download merge manor sunny house mod apk
    -best source for merge manor sunny house mod apk
    -best alternative for merge manor sunny house mod apk
    -best tips for merge manor sunny house mod apk
    -review of merge manor sunny house mod apk
    -rating of merge manor sunny house mod apk
    -features of merge manor sunny house mod apk
    -benefits of merge manor sunny house mod apk
    -advantages of merge manor sunny house mod apk
    -disadvantages of merge manor sunny house mod apk
    -problems with merge manor sunny house mod apk
    -solutions for merge manor sunny house mod apk

    -

    Step 1: Download the APK file from a trusted source

    -

    You can download the APK file from the link below. This is a verified and safe source that provides the latest version of the mod. Make sure you have enough storage space on your device before downloading.

    -

    Merge Manor: Sunny House APK Mod Download

    -

    Step 2: Enable unknown sources on your device

    -

    After downloading the APK file, you need to enable unknown sources on your device. This will allow you to install apps from sources other than the Google Play Store. To do this, go to your device settings, security, and toggle on the unknown sources option. You may see a warning message, but you can ignore it and proceed.

    -

    Step 3: Install the APK file and enjoy the game

    -

    Now, you can install the APK file by tapping on it and following the instructions. It may take a few seconds to complete the installation. Once it is done, you can open the game and enjoy the mod features. You don't need to update the game or use any other tools.

    -

    Conclusion

    -

    Merge Manor: Sunny House APK Mod is a great game for Android users who love merging, decorating, and relaxing games. It has a lot of features that make it more fun and enjoyable than the original game. You can download and install it easily and safely from the link above. If you are looking for a game that can help you unwind and have fun, you should try Merge Manor: Sunny House APK Mod.

    -

    Why you should try Merge Manor: Sunny House APK Mod

    - -

    FAQs

    -

    Here are some of the frequently asked questions about Merge Manor: Sunny House APK Mod:

    -
    Feature/AspectMinecraftCrafting and Building
    Price$6.99 for Android versionFree
    DeveloperMojang StudiosMmarcel
    Release Date2009 for PC version, 2011 for Android version2017
    DownloadsOver 200 million copies sold worldwideOver 10 million downloads on Google Play Store
    Game ModesCreative mode, survival mode, adventure mode, hardcore mode, spectator modeCreative mode, survival mode
    Multiplayer SupportYes, online and localYes, online and local
    World Themes and BiomesOver 60 different biomes, such as forest, desert, ocean, jungle, etc.Over 20 different themes, such as city, village, castle, island, etc.
    Blocks and ItemsOver 700 different blocks and items, such as wood, stone, iron, diamond, etc.Over 300 different blocks and items, such as wood, stone, iron, diamond, etc.
    Mobs and EntitiesOver 100 different mobs and entities, such as animals, villagers, zombies, skeletons, etc.Over 50 different mobs and entities, such as animals, villagers, zombies, skeletons, etc.
    - - - - - -
    Q: Is Merge Manor: Sunny House APK Mod free?A: Yes, it is free to download and play. You don't need to pay anything to use the mod features.
    Q: Is Merge Manor: Sunny House APK Mod safe?A: Yes, it is safe to use. It does not contain any viruses or malware. It also does not require root access or any other permissions.
    Q: How do I update Merge Manor: Sunny House APK Mod?A: You don't need to update the mod manually. It will automatically update itself whenever there is a new version available. You just need to check the link above for the latest version.
    Q: Can I play Merge Manor: Sunny House APK Mod offline?A: Yes, you can play the game offline. However, some features may not work properly without an internet connection, such as chatting with friends or visiting other places.
    Q: Can I play Merge Manor: Sunny House APK Mod with my friends?A: Yes, you can play the game with your friends. You can add them as friends in the game and chat with them. You can also visit their manors and see how they decorate them.

    401be4b1e0
    -
    -
    \ No newline at end of file diff --git a/spaces/congsaPfin/Manga-OCR/logs/Mortal Kombat 8 APK Data Whats New and Whats Coming Soon.md b/spaces/congsaPfin/Manga-OCR/logs/Mortal Kombat 8 APK Data Whats New and Whats Coming Soon.md deleted file mode 100644 index d63245b9306ee0a3cd198f5690f87e0cfd2120bf..0000000000000000000000000000000000000000 --- a/spaces/congsaPfin/Manga-OCR/logs/Mortal Kombat 8 APK Data Whats New and Whats Coming Soon.md +++ /dev/null @@ -1,230 +0,0 @@ - -

    Mortal Kombat 8 APK Data: How to Download and Play the Ultimate Fighting Game on Your Android Device

    -

    If you are a fan of fighting games, you must have heard of Mortal Kombat, one of the most popular and brutal franchises in the genre. Mortal Kombat has been around since 1992, and it has evolved over the years with new features, characters, and graphics. The latest installment, Mortal Kombat 8, was released in 2020 for consoles and PC, but it is not officially available for Android devices. However, that does not mean you cannot enjoy this amazing game on your smartphone or tablet. In this article, we will show you how to download and play Mortal Kombat 8 APK data on your Android device, as well as some tips and tricks to optimize your gaming experience.

    -

    What is Mortal Kombat 8?

    -

    Mortal Kombat 8 is the eighth main entry in the Mortal Kombat series, developed by NetherRealm Studios and published by Warner Bros. Interactive Entertainment. It is a fighting game that pits two or more characters against each other in various arenas, using a variety of moves, weapons, and special attacks. The game is known for its violent and gore-filled fatalities, which are finishing moves that can be performed when the opponent's health is low.

    -

    mortal kombat 8 apk data


    Downloadhttps://urlca.com/2uObjB



    -

    The history and features of the Mortal Kombat series

    -

    The Mortal Kombat series was created by Ed Boon and John Tobias in 1992, inspired by martial arts movies and fantasy elements. The first game introduced the concept of a tournament between Earthrealm and Outworld, two realms that are in conflict over the fate of the universe. The game also featured iconic characters such as Liu Kang, Raiden, Scorpion, Sub-Zero, Sonya Blade, and Johnny Cage.

    -

    Since then, the series has expanded its story and roster with each sequel, adding new characters, realms, factions, and modes. Some of the most notable features of the series are:

    - -

    The gameplay and modes of Mortal Kombat 8

    -

    Mortal Kombat 8 follows the same gameplay mechanics as the previous games, with some new additions and improvements. The game features a 2.5D perspective, meaning that the characters can move in three dimensions but the action is restricted to a two-dimensional plane. The game uses a four-button control scheme, with each button corresponding to a limb of the character. The game also uses a meter system, which fills up as the player performs attacks or takes damage. The meter can be used to perform enhanced moves, breakers, x-ray moves, or fatal blows.

    -

    The game offers several modes for both single-player and multiplayer. Some of the modes are:

    - -

    The characters and factions of Mortal Kombat 8

    -

    Mortal Kombat 8 features a roster of 37 playable characters (including DLC), with 25 returning from previous games and 12 new ones. The characters are divided into two main factions: Earthrealm and Outworld. Each faction has its own sub-factions, such as Special Forces, Black Dragon, Lin Kuei, Shirai Ryu, etc. Each character also has three variations to choose from, each with different moves and abilities.

    -

    Some of the characters are:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    EarthrealmOutworld
    Liu KangShao Kahn
    Kung LaoKotal Kahn
    RaidenKitana
    Johnny CageJade
    Sonya BladeMileena
    Jax BriggsBaraka
    Cassie CageSkarlet
    Jacqui BriggsErron Black
    ScorpionD'Vorah
    Sub-ZeroKollector
    -

    Why do you need APK data to play Mortal Kombat 8 on Android?

    -

    Mortal Kombat 8 is not officially released for Android devices, so you cannot find it on the Google Play Store or any other official app store. However, you can still play it on your Android device by downloading APK data from third-party sources. APK data are files that contain the application package and the data needed to run it on your device.

    -

    The difference between APK and OBB files

    -

    APK data usually consist of two types of files: APK and OBB. APK stands for Android Package Kit, which is the file format used to distribute and install applications on Android devices. OBB stands for Opaque Binary Blob, which is a file format used to store large amounts of data, such as graphics, audio, and video. OBB files are usually associated with APK files, and they are stored in a separate folder on your device's internal or external storage.

    -

    mortal kombat 8 android app free download
    -mortal kombat 8 apk mod unlimited money
    -mortal kombat 8 apk obb offline
    -mortal kombat 8 apk data highly compressed
    -mortal kombat 8 apk latest version 4.2.0
    -mortal kombat 8 apk data for android 5.0+
    -mortal kombat 8 apk update march 2023
    -mortal kombat 8 apk data full unlocked
    -mortal kombat 8 apk data no root
    -mortal kombat 8 apk data mega link
    -mortal kombat 8 apk data google drive
    -mortal kombat 8 apk data mediafire
    -mortal kombat 8 apk data direct download
    -mortal kombat 8 apk data revdl
    -mortal kombat 8 apk data rexdl
    -mortal kombat 8 apk data andropalace
    -mortal kombat 8 apk data apkpure
    -mortal kombat 8 apk data appbrain
    -mortal kombat 8 apk data mob.org
    -mortal kombat 8 apk data android republic
    -mortal kombat 8 apk data hackdl
    -mortal kombat 8 apk data ihackedit
    -mortal kombat 8 apk data platinmods
    -mortal kombat 8 apk data blackmod
    -mortal kombat 8 apk data happymod
    -mortal kombat 8 apk data moddroid
    -mortal kombat 8 apk data an1.com
    -mortal kombat 8 apk data android1.com
    -mortal kombat 8 apk data android zone
    -mortal kombat 8 apk data android gamespot
    -mortal kombat 8 apk data android authority
    -mortal kombat 8 apk data android central
    -mortal kombat 8 apk data android police
    -mortal kombat 8 apk data android developers
    -mortal kombat 8 apk data android community
    -mortal kombat 8 apk data android headlines
    -mortal kombat 8 apk data android pit
    -mortal kombat 8 apk data android world
    -mortal kombat 8 apk data android xda
    -mortal kombat 8 apk data android reddit

    -

    The benefits and risks of downloading APK data from third-party sources

    -

    Downloading APK data from third-party sources can have some benefits and risks. Some of the benefits are:

    - -

    Some of the risks are:

    - -

    The requirements and compatibility of Mortal Kombat 8 APK data for Android devices

    -

    Mortal Kombat 8 APK data are not officially supported by NetherRealm Studios or Warner Bros. Interactive Entertainment, so there is no guarantee that they will work on every Android device or version. However, based on some user reports and reviews, here are some of the general requirements and compatibility factors for Mortal Kombat 8 APK data for Android devices:

    -

    How to download and install Mortal Kombat 8 APK data on your Android device?

    -

    Now that you know what Mortal Kombat 8 APK data are and why you need them, you may be wondering how to download and install them on your Android device. Here are the steps you need to follow:

    -

    The steps to download Mortal Kombat 8 APK data from a reliable source

    -

    The first step is to find a reliable source that offers Mortal Kombat 8 APK data for Android devices. There are many websites and blogs that claim to provide the APK data, but not all of them are trustworthy or safe. You should do some research and check the reviews and ratings of the source before downloading anything from it. You should also avoid clicking on any suspicious links or ads that may redirect you to malicious or fraudulent sites.

    -

    One of the sources that we recommend is [APKPure], which is a reputable and popular platform that provides APK files and updates for various apps and games. You can visit their website or download their app to access their library of APK files. Here is how to download Mortal Kombat 8 APK data from APKPure:

    -
      -
    1. Go to [APKPure] website or app and search for Mortal Kombat 8 in the search bar.
    2. -
    3. Select the Mortal Kombat 8 game from the search results and click on the download button.
    4. -
    5. Choose the version and the file size that you want to download. The latest version is 3.2.0 and the file size is about 1.1 GB.
    6. -
    7. Wait for the download to complete. You will get two files: an APK file and an OBB file.
    8. -
    -

    The steps to install Mortal Kombat 8 APK data on your Android device

    -

    The next step is to install the Mortal Kombat 8 APK data on your Android device. Before you do that, you need to make sure that you have enabled the option to install apps from unknown sources on your device. This option allows you to install apps that are not from the official app stores, such as the APK files from APKPure. Here is how to enable this option:

    -
      -
    1. Go to your device's settings and look for security or privacy options.
    2. -
    3. Find the option that says "Unknown sources" or "Install unknown apps" and toggle it on.
    4. -
    5. Confirm your choice by tapping OK or Allow.
    6. -
    -

    Now you are ready to install the Mortal Kombat 8 APK data on your device. Here is how to do it:

    -
      -
    1. Locate the downloaded APK file and OBB file on your device's storage, either in the downloads folder or in the APKPure folder.
    2. -
    3. Tap on the APK file and follow the instructions to install it on your device.
    4. -
    5. Do not open the game yet. You need to copy the OBB file to the right location first.
    6. -
    7. Use a file manager app to copy or move the OBB file to this location: /Android/obb/com.wb.goog.mkx/
    8. -
    9. If you don't have this folder, you can create it manually.
    10. -
    -

    The steps to verify and launch Mortal Kombat 8 on your Android device

    -

    The final step is to verify and launch Mortal Kombat 8 on your Android device. Here is how to do it:

    -
      -
    1. Make sure that you have a stable internet connection, as the game will need to verify the APK data before launching.
    2. -
    3. Open the game from your app drawer or home screen.
    4. -
    5. Wait for the game to load and verify the data. This may take a few minutes, depending on your connection speed.
    6. -
    7. If everything goes well, you will see the main menu of the game, where you can choose your mode and start playing.
    8. -
    -

    How to optimize your gaming experience with Mortal Kombat 8 on Android?

    -

    Mortal Kombat 8 is a high-quality and demanding game that requires a lot of resources and power from your device. Therefore, you may encounter some issues or problems while playing it, such as lag, crashes, overheating, battery drain, etc. To avoid these issues and optimize your gaming experience with Mortal Kombat 8 on Android, here are some tips and tricks that you can try:

    -

    The tips and tricks to improve your performance and battery life while playing Mortal Kombat 8 on Android

    -

    Here are some tips and tricks that can help you improve your performance and battery life while playing Mort al Kombat 8 on Android:

    - -

    The best settings and controls to customize your gameplay with Mortal Kombat 8 on Android

    -

    Here are some of the best settings and controls that you can customize your gameplay with Mortal Kombat 8 on Android:

    - -

    The best resources and guides to learn more about Mortal Kombat 8 on Android

    -

    If you want to learn more about Mortal Kombat 8 on Android, such as tips, tricks, guides, cheats, hacks, etc., you can check out some of these resources and guides:

    - -

    Conclusion

    -

    Mortal Kombat 8 is one of the best fighting games ever made, and you can play it on your Android device by downloading APK data from third-party sources. However, you need to be careful and follow some steps to ensure that you download and install it safely and correctly. You also need to optimize your gaming experience by adjusting some settings and controls according to your device and preferences. Finally, you can learn more about Mortal Kombat 8 by checking out some resources and guides that will help you master the game.

    -

    We hope that this article has helped you understand how to download and play Mortal Kombat 8 APK data on your Android device. If you have any questions or feedback, please feel free to leave a comment below. Thank you for reading!

    -

    FAQs

    -

    Here are some frequently asked questions about Mortal Kombat 8 APK data for Android devices:

    -
      -
    1. Is Mortal Kombat 8 APK data safe to download?
    2. -

      Mortal Kombat 8 APK data are not officially supported by NetherRealm Studios or Warner Bros. Interactive Entertainment, so you need to be careful and download them from reliable sources, such as APKPure. You also need to enable the option to install apps from unknown sources on your device, which can expose you to potential risks. You should always scan the APK data with an antivirus or malware detector before installing them, and avoid clicking on any suspicious links or ads that may redirect you to malicious or fraudulent sites.

      -
    3. Is Mortal Kombat 8 APK data legal to download?
    4. -

      Mortal Kombat 8 APK data are not legal to download, as they violate the terms and conditions of the developers and publishers of the game. By downloading and installing them, you are infringing on their intellectual property rights and may face legal consequences. You should always respect the rights and wishes of the creators of the game and support them by purchasing the game from the official app stores or platforms.

      -
    5. Is Mortal Kombat 8 APK data compatible with all Android devices?
    6. -

      Mortal Kombat 8 APK data are not compatible with all Android devices, as they require a lot of resources and power from your device. Your device should have at least 4 GB of RAM and 64 GB of storage space, run on Android 9.0 (Pie) or higher, support OpenGL ES 3.1 or higher, and have a screen resolution of at least 720p (1280 x 720 pixels). You should also have a stable internet connection to download and verify the APK data, as well as to access some online features of the game.

      -
    7. How to update Mortal Kombat 8 APK data on Android devices?
    8. -

      Mortal Kombat 8 APK data are not automatically updated on your Android device, as they are not from the official app stores. You need to manually check for updates and download them from the same source that you downloaded the original APK data from. You should also backup your progress and data before updating, as you may lose them if the update is not compatible or stable with your device or version of Android.

      -
    9. How to uninstall Mortal Kombat 8 APK data from Android devices?
    10. -

      If you want to uninstall Mortal Kombat 8 APK data from your Android device, you can follow these steps:

      -
        -
      1. Go to your device's settings and look for apps or applications options.
      2. -
      3. Find and select Mortal Kombat 8 from the list of apps and tap on uninstall.
      4. -
      5. Confirm your choice by tapping OK or Delete.
      6. -
      7. Go to your device's storage and look for the folder /Android/obb/com.wb.goog.mkx/
      8. -
      9. Delete this folder and its contents.
      10. -

      401be4b1e0
      -
      -
      \ No newline at end of file diff --git a/spaces/congsaPfin/Manga-OCR/logs/Truck Simulator 1.0.8 Hile APK - Enjoy the Best Truck Simulator Game on Android.md b/spaces/congsaPfin/Manga-OCR/logs/Truck Simulator 1.0.8 Hile APK - Enjoy the Best Truck Simulator Game on Android.md deleted file mode 100644 index 39eb4e838081923d1e08b8f2c1528f288e150286..0000000000000000000000000000000000000000 --- a/spaces/congsaPfin/Manga-OCR/logs/Truck Simulator 1.0.8 Hile APK - Enjoy the Best Truck Simulator Game on Android.md +++ /dev/null @@ -1,124 +0,0 @@ - -

      Truck Simulator 1.0.8 Hile Apk: How to Download and Play the Ultimate Truck Simulation Game

      -

      If you are a fan of truck simulation games, you might have heard of Truck Simulator 1.0.8 Hile Apk, a popular Android game that lets you experience the thrill of driving a truck across different countries and cities.

      -

      Truck Simulator 1.0.8 Hile Apk is a modified version of Truck Simulator : Ultimate, a game developed by Zuuks Games, the same creators of Bus Simulator : Ultimate, which has been played by more than 300+ million players worldwide.

      -

      truck simulator 1.0.8 hile apk


      Download Zip ===== https://urlca.com/2uOaes



      -

      In this article, we will show you how to download and play Truck Simulator 1.0.8 Hile Apk, as well as some tips and tricks to make the most out of this amazing game.

      -

      How to Download Truck Simulator 1.0.8 Hile Apk

      -

      To download Truck Simulator 1.0.8 Hile Apk, you will need to find a reliable source that provides the apk file, which is a package file format used by Android devices to install applications.

      -

      One of the websites that offers Truck Simulator 1.0.8 Hile Apk is APKCombo, where you can download the apk file for free by clicking on the "Download APK" button.

      -

      Once you have downloaded the apk file, you will need to install it on your device by following these steps:

      -
        -
      1. Go to your device settings and enable "Unknown sources" or "Allow installation from unknown sources" option.
      2. -
      3. Locate the apk file in your device storage and tap on it.
      4. -
      5. Follow the instructions on the screen and wait for the installation process to complete.
      6. -
      7. Launch the game from your app drawer or home screen.
      8. -
      -

      Before installing any apk file, you should always verify its authenticity and security by checking its size, version, developer, permissions, reviews, and ratings.

      -

      You should also scan the apk file with an antivirus software or an online scanner such as VirusTotal to make sure it does not contain any malware or viruses that could harm your device or compromise your privacy.

      -

      How to Play Truck Simulator 1.0.8 Hile Apk

      -

      Truck Simulator 1.0.8 Hile Apk is a game that combines simulation and tycoon elements

      Truck Simulator 1.0.8 Hile Apk is a game that combines simulation and tycoon elements, allowing you to create your own truck company and transport various cargo across different countries and cities.

      -

      Here are some of the features and benefits of playing Truck Simulator 1.0.8 Hile Apk:

      -

      truck simulator ultimate apk download
      -truck simulator 1.0.8 mod apk unlimited money
      -truck simulator hile apk indir
      -truck simulator 1.0.8 hack apk
      -truck simulator ultimate zuuks games apk
      -truck simulator 1.0.8 cheat apk
      -truck simulator hileli apk son sürüm
      -truck simulator 1.0.8 cracked apk
      -truck simulator ultimate android game apk
      -truck simulator 1.0.8 full apk
      -truck simulator hile apk 2023
      -truck simulator 1.0.8 premium apk
      -truck simulator ultimate free download apk
      -truck simulator 1.0.8 unlocked apk
      -truck simulator hileli mod apk
      -truck simulator 1.0.8 latest version apk
      -truck simulator ultimate online multiplayer apk
      -truck simulator 1.0.8 pro apk
      -truck simulator hileli oyun indir club apk
      -truck simulator 1.0.8 update apk
      -truck simulator ultimate realistic graphics apk
      -truck simulator 1.0.8 no ads apk
      -truck simulator hileli oyun indir mobi apk
      -truck simulator 1.0.8 mega mod apk
      -truck simulator ultimate best trucks apk
      -truck simulator 1.0.8 patched apk
      -truck simulator hileli oyun indir cepde apk
      -truck simulator 1.0.8 mod menu apk
      -truck simulator ultimate europe map apk
      -truck simulator 1.0.8 vip mod apk
      -truck simulator hileli oyun indir android oyun club apk
      -truck simulator 1.0.8 modded apk
      -truck simulator ultimate custom skins apk
      -truck simulator 1.0.8 paid apk
      -truck simulator hileli oyun indir apkpure apk
      -truck simulator 1.0.8 hacked version apk
      -truck simulator ultimate offline mode apk
      -truck simulator 1.0.8 original apk
      -truck simulator hileli oyun indir rexdl apk
      -truck simulator 1.0.8 unlimited coins and gems apk

      -
        -
      • You can choose from over 100 different trucks from 12 brands, such as Mercedes-Benz, Volvo, Scania, MAN, Renault, and more.
      • -
      • You can customize your trucks with different colors, accessories, decals, and mods.
      • -
      • You can hire employees and assign them to different routes and tasks.
      • -
      • You can transport over 250 different types of cargo, such as food, furniture, electronics, chemicals, and more.
      • -
      • You can explore over 30 countries and 80 cities in Europe, Asia, and America.
      • -
      • You can experience realistic driving physics, weather effects, traffic rules, and road conditions.
      • -
      • You can participate in multiplayer mode and compete with other players online.
      • -
      -

      To play Truck Simulator 1.0.8 Hile Apk, you will need to follow these steps:

      -
        -
      1. Start the game and choose your name, gender, nationality, and avatar.
      2. -
      3. Choose your first truck from the available options and buy it with your starting money.
      4. -
      5. Choose your first cargo from the available options and accept the contract.
      6. -
      7. Drive your truck to the loading point and load the cargo.
      8. -
      9. Drive your truck to the destination point and unload the cargo.
      10. -
      11. Collect your payment and reputation points.
      12. -
      13. Repeat the process until you have enough money to buy more trucks, hire more employees, or expand your company.
      14. -
      -

      Tips and Tricks for Truck Simulator 1.0.8 Hile Apk

      -

      Truck Simulator 1.0.8 Hile Apk is a fun and challenging game that requires skill and strategy to succeed. Here are some tips and tricks that can help you improve your gameplay:

      -
        -
      • To earn more money and reputation in the game, you should complete more contracts, deliver cargo on time, avoid damage to your truck or cargo, follow traffic rules, and drive safely.
      • -
      • To save fuel and avoid toll roads, you should plan your route carefully, use cruise control, avoid braking or accelerating too much, and use alternative roads when possible.
      • -
      • To deal with realistic weather and road conditions, you should check the weather forecast before starting a contract, adjust your speed and headlights according to the visibility, use wipers and indicators when necessary, and avoid driving in extreme weather such as snow or fog.
      • -
      • To use the radio and listen to your favorite stations, you should tap on the radio icon on the top right corner of the screen, choose a station from the list or enter a URL of your own choice, and enjoy the music or news while driving.
      • -
      -

      Conclusion

      -

      Truck Simulator 1.0.8 Hile Apk is a game that offers you a realistic and immersive truck simulation experience. You can download it for free from APKCombo or other sources, install it on your device easily, and start playing it right away. You can create your own truck company, transport various cargo across different countries and cities, customize your trucks and upgrade them with mods, participate in multiplayer mode and compete with other players online. You can also use some tips and tricks to make the most out of this amazing game. If you are a fan of truck simulation games, you should definitely give Truck Simulator 1.0.8 Hile Apk a try!

      -

      FAQs

      -

      Here are some of the frequently asked questions about Truck Simulator 1.0.8 Hile Apk:

      -

      What are the minimum system requirements for Truck Simulator 1.0.8 Hile Apk?

      -

      The minimum system requirements for Truck Simulator 1.0.8 Hile Apk are:

      - - - - - - -
      OSAndroid 5.0 or higher
      CPUDual core 1.8 GHz or higher
      RAM2 GB or higher
      Storage500 MB or higher
      InternetRequired for multiplayer mode
      -

      Is Truck Simulator 1.0.8 Hile Apk free or paid?

      -

      Truck Simulator 1.0.8 H

      Truck Simulator 1.0.8 Hile Apk is free to download and play, but it contains some in-app purchases that can enhance your gameplay or unlock some premium features. You can buy these items with real money or earn them by completing certain tasks or achievements in the game.

      -

      Is Truck Simulator 1.0.8 Hile Apk safe and legal?

      -

      Truck Simulator 1.0.8 Hile Apk is safe and legal to use, as long as you download it from a trusted source and scan it with an antivirus software or an online scanner before installing it on your device. However, you should be aware that Truck Simulator 1.0.8 Hile Apk is a modified version of Truck Simulator : Ultimate, which means that it may not be compatible with the original game or its updates, and it may violate the terms and conditions of the original game or its developers. Therefore, you should use Truck Simulator 1.0.8 Hile Apk at your own risk and discretion, and respect the rights and interests of the original game and its developers.

      -

      What are the differences between Truck Simulator 1.0.8 Hile Apk and other truck simulation games?

      -

      Truck Simulator 1.0.8 Hile Apk is different from other truck simulation games in several ways, such as:

      -
        -
      • It has more realistic graphics, physics, and sounds than most of the other truck simulation games.
      • -
      • It has more variety and diversity of trucks, cargo, countries, and cities than most of the other truck simulation games.
      • -
      • It has more features and options for customization, modding, multiplayer, and tycoon than most of the other truck simulation games.
      • -
      • It has more challenges and rewards for completing contracts, achievements, and missions than most of the other truck simulation games.
      • -
      -

      How can I contact the developers of Truck Simulator 1.0.8 Hile Apk?

      -

      If you have any questions, feedback, suggestions, or issues regarding Truck Simulator 1.0.8 Hile Apk, you can contact the developers of the game by using one of the following methods:

      -

      197e85843d
      -
      -
      \ No newline at end of file diff --git a/spaces/congsaPfin/Manga-OCR/logs/Zipline The Ultimate Guide to Building and Testing Algorithmic Trading Strategies.md b/spaces/congsaPfin/Manga-OCR/logs/Zipline The Ultimate Guide to Building and Testing Algorithmic Trading Strategies.md deleted file mode 100644 index 24bec8da212e3b64097b5a3a9398b31f0fce2a8e..0000000000000000000000000000000000000000 --- a/spaces/congsaPfin/Manga-OCR/logs/Zipline The Ultimate Guide to Building and Testing Algorithmic Trading Strategies.md +++ /dev/null @@ -1,102 +0,0 @@ -
      -

      Zipline: A Thrilling Adventure in the Sky

      -

      Have you ever dreamed of flying like a bird or a superhero? Do you want to experience the thrill of soaring through the air at high speeds? If you answered yes, then you might want to try ziplining. Ziplining is a fun and exciting activity that lets you glide along a cable suspended above the ground, using a harness and a pulley. You can enjoy the scenic views, feel the adrenaline rush, and have a memorable adventure.

      -

      zipline


      Download ··· https://urlca.com/2uO7Mz



      -

      What is zipline?

      -

      Ziplining is a form of transportation and recreation that involves a cable, usually made of stainless steel, mounted on a slope. It is designed to enable cargo or a person propelled by gravity to travel from the top to the bottom of the inclined cable by holding on to, or being attached to, the freely moving pulley.

      -

      A brief history of zipline

      -

      Ziplining dates back to many centuries ago. In ancient China, people used ziplines to cross rivers and other hazardous areas. They also used them to transport supplies and goods across valleys and mountains. Ziplines were also used by mountain climbers, explorers, soldiers, and biologists for various purposes. The first recorded use of zipline as a form of entertainment was in 1739, when Robert Cadman, a steeplejack and ropeslider, died when descending from Shrewsbury's St Mary's Church when his rope snapped.

      -

      How does zipline work?

      -

      Ziplining works by using the force of gravity to pull the rider along the cable. The rider wears a harness that is attached to a trolley or a pulley that runs along the cable. The rider then jumps off a platform or a tower and starts moving down the cable. The speed of the rider depends on the angle and length of the cable, as well as the weight and position of the rider. The rider can control the speed by changing the body position or using brakes. The rider stops at the end of the cable by landing on another platform or by using brakes.

      -

      zipline adventure
      -zipline canopy tour
      -zipline near me
      -zipline costa rica
      -zipline las vegas
      -zipline maui
      -zipline kit
      -zipline algorithmic trading
      -zipline python
      -zipline hawaii
      -zipline brake
      -zipline trolley
      -zipline oahu
      -zipline kauai
      -zipline big island
      -zipline puerto rico
      -zipline gatlinburg
      -zipline pigeon forge
      -zipline whistler
      -zipline banff
      -zipline new zealand
      -zipline jamaica
      -zipline st lucia
      -zipline cabo san lucas
      -zipline lake tahoe
      -zipline colorado
      -zipline orlando
      -zipline san diego
      -zipline nashville
      -zipline asheville nc
      -zipline bali
      -zipline dubai
      -zipline nepal
      -zipline thailand
      -zipline vancouver island
      -zipline yosemite
      -zipline yellowstone
      -zipline smoky mountains
      -zipline blue ridge ga
      -zipline chattanooga tn
      -zipline wales
      -zipline scotland
      -zipline vermont
      -zipline arkansas
      -zipline branson mo
      -zipline utah
      -zipline monteverde costa rica

      -

      Types of zipline

      -

      There are different types of ziplines depending on their design, purpose, and location. Some common types are:

      -
        -
      • Canopy ziplines: These are ziplines that are located in the treetops of forests, jungles, or rainforests. They allow riders to explore the canopy layer of the ecosystem and see wildlife and plants up close.
      • -
      • Adventure ziplines: These are ziplines that are designed for thrill-seekers and adrenaline junkies. They feature high speeds, long distances, steep drops, sharp turns, and obstacles. They often have multiple lines that form a course or a circuit.
      • -
      • Urban ziplines: These are ziplines that are built in urban areas such as cities, parks, or stadiums. They offer riders a unique perspective of the cityscape and landmarks.
      • -
      -

      Why zipline?

      -

      Ziplining is not only fun but also beneficial for your health and well-being. Here are some reasons why you should try ziplining:

      -

      Benefits of zipline

      -

      Ziplining can provide several benefits, such as:

      -
        -
      • Improve eyesight: Z , measuring 3,280 feet (1 km). It is also one of the most scenic ziplines in the world, offering a panoramic view of the Dubai skyline and the Arabian Gulf. You can zip in tandem with a friend or a family member, making it a fun and social experience. - -

        How to zipline?

        -

        If you are interested in ziplining, you might wonder how to prepare and what to expect from it. Here are some tips on how to zipline:

        -

        What to wear and bring for zipline

        -

        When you go ziplining, you should wear comfortable and appropriate clothing and footwear. You should also bring some essentials, such as:

        -
          -
        • Clothing: Wear clothes that are suitable for the weather and the environment. Avoid wearing skirts, dresses, or shorts that are too loose or too short. Wear long pants or leggings that can protect your legs from friction and insects. Wear layers that you can adjust according to the temperature. Wear bright colors that can make you visible and stand out.
        • -
        • Footwear: Wear shoes that are closed-toe and have good grip. Avoid wearing sandals, flip-flops, heels, or boots that are too bulky or heavy. Wear socks that can prevent blisters and keep your feet warm.
        • -
        • Accessories: Wear sunglasses, a hat, or a bandana that can protect your eyes and head from the sun and the wind. Wear sunscreen, insect repellent, and lip balm that can protect your skin from the elements. Wear a camera, a GoPro, or a smartphone that can capture your zipline adventure. Make sure they are securely attached to your body or your helmet.
        • -
        -

        What to expect from zipline

        -

        When you arrive at the zipline site, you will be greeted by the staff and the guides. They will check your reservation, waiver, and health condition. They will also weigh you and measure your height to ensure you meet the requirements for ziplining. You will then be given a safety briefing and instructions on how to use the equipment and how to behave on the zipline. You will also be fitted with a helmet, gloves, harness, and trolley. You will then be transported to the starting point of the zipline, where you will be hooked up to the cable and ready to go.

        -

        How to enjoy zipline

        -

        Ziplining is an exhilarating and enjoyable activity that can make you feel alive and free. To make the most of it, you should:

        -
          -
        • Relax: Don't let fear or nervousness ruin your fun. Trust the equipment, the guides, and yourself. Breathe deeply and calmly before you jump off. Smile and laugh as you zip through the air.
        • -
        • Look around: Don't just focus on the cable or the end point. Look around and appreciate the beauty of nature and the surroundings. Notice the colors, shapes, sounds, and smells of the environment. Spot any animals or plants that catch your eye.
        • -
        • Have fun: Don't be afraid to express yourself and your emotions. Scream, shout, sing, or talk as you zip along. Make jokes, compliments, or comments with your guide or your fellow riders. Try different poses or gestures as you fly.
        • -
        -

        Conclusion

        -

        Ziplining is a wonderful way to experience nature, adventure, and excitement in one activity. It can also provide many benefits for your physical and mental health. Whether you are looking for a relaxing getaway, a thrilling challenge, or a unique perspective, ziplining can offer something for everyone. If you are interested in ziplining, you should do some research on the best locations, operators, and tips for ziplining. You should also prepare yourself physically and mentally for ziplining. And most importantly, you should have fun and enjoy every moment of ziplining.

        -

        FAQs

        -

        Here are some frequently asked questions about ziplining:

        -
          -
        1. Is ziplining safe?
          Ziplining is generally safe if you follow the instructions and rules given by the guides and operators. Ziplining equipment is tested regularly and inspected before each use. Ziplining guides are trained and certified in safety procedures and emergency situations.
        2. -
        3. Who can zipline?
          Ziplining is suitable for most people who are in good health and physical condition. However , there are some restrictions and limitations for ziplining, depending on the operator and the location. Some common factors that may affect your eligibility for ziplining are age, weight, height, medical condition, and pregnancy. You should check with the operator before you book a zipline tour to make sure you meet their requirements.
        4. -
        5. How much does ziplining cost?
          The cost of ziplining varies depending on the operator, the location, the duration, and the type of zipline tour. Generally, ziplining can range from $20 to $200 per person. You may also have to pay extra for transportation, photos, videos, or souvenirs. You should compare different options and look for discounts or deals before you book a zipline tour.
        6. -
        7. What if I am afraid of heights?
          If you are afraid of heights, ziplining may seem scary or intimidating. However, ziplining can also be a great way to overcome your fear and challenge yourself. Ziplining is safe and controlled, and you will be supported by a harness and a cable at all times. You will also be accompanied by a guide who can help you relax and enjoy the ride. You may find that ziplining is not as scary as you thought, and that it is actually fun and exhilarating.
        8. -
        9. Can I zipline with my friends or family?
          Yes, you can zipline with your friends or family, as long as they meet the requirements for ziplining. Ziplining can be a fun and social activity that can strengthen your bonds and create lasting memories. Some zipline operators offer tandem or group ziplines that allow you to zip together with your partner or your group. You can also take photos or videos of each other as you zip along.
        10. -

        197e85843d
        -
        -
        \ No newline at end of file diff --git a/spaces/contluForse/HuggingGPT/assets/Contoh Soal Psikotes Polri dan Jawabannya PDF 18 Kumpulan Materi dan Tips Lulus Tes.md b/spaces/contluForse/HuggingGPT/assets/Contoh Soal Psikotes Polri dan Jawabannya PDF 18 Kumpulan Materi dan Tips Lulus Tes.md deleted file mode 100644 index c528be71b045178eb3acab2624caacfb8d43c1ab..0000000000000000000000000000000000000000 --- a/spaces/contluForse/HuggingGPT/assets/Contoh Soal Psikotes Polri dan Jawabannya PDF 18 Kumpulan Materi dan Tips Lulus Tes.md +++ /dev/null @@ -1,31 +0,0 @@ -
        -

        Tes IST adalah salah satu tes yang diberikan kepada kandidat satu posisi oleh HRD. Tujuannya adalah untuk melihat potensi dan kecocokan dengan posisi yang dilamar. Agar bisa mengerjakan soal potongan gambar dengan baik kamu harus rajin berlatih. Semoga artikel contoh soal dan jawaban ini bisa membantumu!

        -

        contoh soal psikotes polri dan jawabannya pdf 18


        Download Filehttps://ssurll.com/2uzyZj



        -

        Ada beragam jenis psikotes yang sering digunakan perusahaan sebagai bahan pertimbangan utama untuk menerima atau menolaknya, salah satunya psikotes matematika deret angka. Berikut sejumlah soal psikotes matematika deret angka dan jawabannya:

        -

        Setelah Anda mengetahui contoh-contoh soal psikotes Polri, saatnya Anda juga perlu mengetahui tips maupun trik untuk menghadapi tes psikotes tersebut. Ini beberapa tips yang bisa Anda terapkan saat mengerjakan tes psikotes polisi RI agar lolos seleksi:

        -

        Jangan terlalu capek belajar contoh soal psikotes polri saja. Persiapkan juga kondisi tubuh Anda agar tetap sehat dan fit untuk menjalankan rangkaian tes lainnya. Jika fisik Anda sehat dan fit, maka saat mengerjakan tes psikotes pun Anda akan merasa nyaman, tenang, dan fresh.

        -

        -

        Itulah beberapa contoh soal psikotes Polri yang bisa Anda pelajari. Anda bisa membeli buku fisik maupun elektronik untuk mendapatkan latihan soal yang lebih banyak. Meskipun dalam mengerjakan tidak ada cara yang absolut, tetapi Anda bisa mencoba mempelajari pola pertanyaan yang ada sebagai persiapan tes. Teruslah berlatih soal psikotes dan jaga selalu kondisi fisik dan mental Anda agar prima dan sehat, karena rangkaian tes untuk menjadi Polri tentu

        -

        Hai Teman Kerja semua! Ketika kalian menjalani tes seleksi kerja, selain seleksi berkas administratif dan wawancara, kalian harus mengikuti serangkaian tes psikotes. Salah satu psikotes yang biasanya ada di setiap perusahaan adalah tes logika aritmatika. Apa saja contoh soal, kunci jawaban dan cara mengerjakan tes logika aritmatika ini, Kinar akan bagikan informasinya kepada kalian Teman Kerja terutama fresh graduate.

        -

        Pada tes logika, sebenarnya tidak hanya mengerjakan soal yang berhubungan dengan angka. Tes logika juga bisa berupa logika kalimat yang melibatkan 2 premis dan pengambilan kesimpulan, dan juga logika pola gambar. Baik deret, logika kalimat, dan pola gambar akan diberikan contoh-contohnya di bawah, simak terus artikel ini ya?

        -

        Setelah melihat sendiri contoh tes logika artimatika dan lainnya, apakah sekarang kamu sudah cukup percaya diri untuk mengikuti tes psikotes? Kalian bisa coba latihan sendiri tes logika, bisa dari internet maupun buku-buku tes yang menyediakannya.

        -

        Maksudnya kalo nemu soal pencerminan secara umum atau tentang soal di atas aja? Sebenernya tahun-tahun kemaren kan belom pernah ada, tapi ya harusnya kalo muncul soal kayak gitu, di perintahnya dibilang posisi cerminnya di mana. Tapi kalo gw dapet soal kayak di contoh atas, kalo gak disebut di mana, gw asumsiin cerminnya ada di antara kotak gambar soal sama kotak pilihan jawabannya (vertikal).

        -

        JAKARTA, FIN.CO.ID -- Petugas Pemungutan Suara atau PPS hari ini, Rabu 18 Januari 2022 melakukan tes wawancara dengan Komisi Pemilihan Umum (KPU) di tiap daerah. Agar tak tersesat saat menjalani ujian, berikut kami ulas bocoran 15 soal tes wawancara PPS pemilu 2024, lengkap dengan kunci jawabannya.

        -

        Kebanyakan pertanyaan soal ini disajikan dalam format pilihan ganda. Dalam soal seperti kedua contoh di atas, kamu harus cerdik mencari hubungan angka yang berada di kolom atau baris yang sama. Berikut contoh pemecahan soal psikotes numerik tabel:

        -

        Selanjutnya, ada soal psikotes kerja bernama Tes bahasa artifisial. Pada dasarnya, tes ini adalah penggunaan bahasa bermakna yang mengikuti pola tertentu. Tugas pengisi soal adalah memecahkan pola yang digunakan untuk mencari jawaban.

        -

        Jenis soal psikotes satu ini berfungsi untuk mengetahui seberapa percaya diri, stabilitas, dan tanggung jawab kamu dalam bekerja. Kamu akan diminta untuk menggambar seseorang dan mendeskripsikannya secara detail.

        -

        Penemu tes Wartegg adalah Ehrig Wartegg. Pada tes ini kamu akan menemukan soal psikotes dengan berbagai 8 pola kotak yang berbeda. Kamu akan diminta untuk sesuai dengan imajinasi kalian dengan pola tersebut.

        -

        Nah, itu dia 13 jenis soal psikotes yang seringkali muncul dalam rekrutmen calon karyawan. Usahakan untuk mengerjakan semua soal yang diberikan. Namun, dahulukan soal yang paling mudah untuk terlebih dahulu.

        -

        Pastinya, psikotes diberikan dengan tujuan untuk mengukur individual para calon TNI dari berbagai aspek, bisa secara verbal maupun visual. Mengingat begitu pentingnya psikotes ini, para calon TNI sebaiknya memang mempersiapkannya dengan baik, termasuk dengan mempelajari contoh soalnya.

        -

        Sama seperti namanya, soal psikotes yang satu ini adalah kumpulan dari deretan angka. Tes ini biasanya diberikan dengan tujuan untuk mengukur kemampuan analisis dari para peserta tes dalam memahami pola tertentu.

        -

        Selain itu, tes ini juga bertujuan untuk memprediksikan hal-hal lainnya dengan berdasarkan pola angka yang dimaksud. Selain biasa disebut dengan psikotes deret angka, soal ini juga biasa disebut dengan tes angka. Biasanya operasi Matematika yang berlaku dalam tes ni adalah operasi yang biasanya.

        -

        Meskipun ditujukan untuk menyeleksi calon anggota TNI, soal psikotesnya juga berhubungan dengan angka. Soal psikotes TNI satu ini akan menyajikan kolom yang di dalamnya diisi oleh angka-angka.

        -

        Lebih lanjut lagi, ada tes logika Aritmatika yang menjadi salah satu soal psikotes TNI. Dalam soal satu ini biasanya akan diperlihatkan secara gamblang bagaimana cara mengerjakannya. Contohnya seperti berikut.

        -

        Kemampuan berbahasa juga menjadi salah satu hal yang diuji dalam psikotes TNI, diantaranya ialah dengan soal sinonim dan antonim. Sebagaimana yang sudah diketahui, sinonim itu merupakan persamaan kata sedangkan antonim adalah lawan kata.

        -

        Tes ini diberikan dengan tujuan untuk mengetahui motivasi serta kebutuhan seseorang. Tes ini juga akan menunjukkan hal-hal yang mungkin disukai dan hal-hal yang mungkin tidak disukai oleh peserta tersebut. Contohnya soal psikotes TNI jenis EPPS ini seperti berikut.

        -

        Bahkan dalam soal psikotes TNI, ada juga bagian menggambar. Menggambar ini bisa menggambar manusia, pohon maupun rumah sesuai dengan perintahnya. Biasanya, keindahan bukanlah hal yang terlalu diperhatikan dalam soal satu ini, namun lebih ke detail tidaknya objek yang digambarkan

        -

        Selain berbagai soal psikotes TNI di atas, tidak menutup kemungkinan jenis psikotes lainnya juga keluar. Misalnya tes koran. Namun, apapun jenis tesnya, semuanya harus dikerjakan dengan baik dengan konsentrasi yang bagus.

        -

        Ujian seleksi CPNS di tahun 2023 akan menggunakan sistem Computer Assisted Test (CAT). Bila kamu masih bingung dengan bentuk-bentuk dari soal tes nanti, mengerjakan latihan contoh soal SKD CPNS berikut ini bisa membantu kamu lho.

        -

        Kini pendaftar yang lolos seleksi administrasi akan mengikuti tes tertulis, computer assisted test (CAT) PPS Pemilu 2024. Untuk sukses mengikuti tes ini, berikut tersedia beberapa contoh soal dan kunci jawaban untuk simulasi.

        aaccfb2cb3
        -
        -
        \ No newline at end of file diff --git a/spaces/contluForse/HuggingGPT/assets/Download Film Vartak Nagar 3 Full Movie.md b/spaces/contluForse/HuggingGPT/assets/Download Film Vartak Nagar 3 Full Movie.md deleted file mode 100644 index e280a2b1b5abba8c514bcc7d0fa14e209d7b8b6a..0000000000000000000000000000000000000000 --- a/spaces/contluForse/HuggingGPT/assets/Download Film Vartak Nagar 3 Full Movie.md +++ /dev/null @@ -1,6 +0,0 @@ -

        download film Vartak Nagar 3 full movie


        Download ✶✶✶ https://ssurll.com/2uzxCm



        - - aaccfb2cb3
        -
        -
        -

        diff --git a/spaces/coreml-community/ControlNet-v1-1-Annotators-cpu/annotator/lama/saicinpainting/training/modules/multidilated_conv.py b/spaces/coreml-community/ControlNet-v1-1-Annotators-cpu/annotator/lama/saicinpainting/training/modules/multidilated_conv.py deleted file mode 100644 index c57d0b457d4b30aeeffcd8cba138a502ba7affc5..0000000000000000000000000000000000000000 --- a/spaces/coreml-community/ControlNet-v1-1-Annotators-cpu/annotator/lama/saicinpainting/training/modules/multidilated_conv.py +++ /dev/null @@ -1,98 +0,0 @@ -import torch -import torch.nn as nn -import random -from annotator.lama.saicinpainting.training.modules.depthwise_sep_conv import DepthWiseSeperableConv - -class MultidilatedConv(nn.Module): - def __init__(self, in_dim, out_dim, kernel_size, dilation_num=3, comb_mode='sum', equal_dim=True, - shared_weights=False, padding=1, min_dilation=1, shuffle_in_channels=False, use_depthwise=False, **kwargs): - super().__init__() - convs = [] - self.equal_dim = equal_dim - assert comb_mode in ('cat_out', 'sum', 'cat_in', 'cat_both'), comb_mode - if comb_mode in ('cat_out', 'cat_both'): - self.cat_out = True - if equal_dim: - assert out_dim % dilation_num == 0 - out_dims = [out_dim // dilation_num] * dilation_num - self.index = sum([[i + j * (out_dims[0]) for j in range(dilation_num)] for i in range(out_dims[0])], []) - else: - out_dims = [out_dim // 2 ** (i + 1) for i in range(dilation_num - 1)] - out_dims.append(out_dim - sum(out_dims)) - index = [] - starts = [0] + out_dims[:-1] - lengths = [out_dims[i] // out_dims[-1] for i in range(dilation_num)] - for i in range(out_dims[-1]): - for j in range(dilation_num): - index += list(range(starts[j], starts[j] + lengths[j])) - starts[j] += lengths[j] - self.index = index - assert(len(index) == out_dim) - self.out_dims = out_dims - else: - self.cat_out = False - self.out_dims = [out_dim] * dilation_num - - if comb_mode in ('cat_in', 'cat_both'): - if equal_dim: - assert in_dim % dilation_num == 0 - in_dims = [in_dim // dilation_num] * dilation_num - else: - in_dims = [in_dim // 2 ** (i + 1) for i in range(dilation_num - 1)] - in_dims.append(in_dim - sum(in_dims)) - self.in_dims = in_dims - self.cat_in = True - else: - self.cat_in = False - self.in_dims = [in_dim] * dilation_num - - conv_type = DepthWiseSeperableConv if use_depthwise else nn.Conv2d - dilation = min_dilation - for i in range(dilation_num): - if isinstance(padding, int): - cur_padding = padding * dilation - else: - cur_padding = padding[i] - convs.append(conv_type( - self.in_dims[i], self.out_dims[i], kernel_size, padding=cur_padding, dilation=dilation, **kwargs - )) - if i > 0 and shared_weights: - convs[-1].weight = convs[0].weight - convs[-1].bias = convs[0].bias - dilation *= 2 - self.convs = nn.ModuleList(convs) - - self.shuffle_in_channels = shuffle_in_channels - if self.shuffle_in_channels: - # shuffle list as shuffling of tensors is nondeterministic - in_channels_permute = list(range(in_dim)) - random.shuffle(in_channels_permute) - # save as buffer so it is saved and loaded with checkpoint - self.register_buffer('in_channels_permute', torch.tensor(in_channels_permute)) - - def forward(self, x): - if self.shuffle_in_channels: - x = x[:, self.in_channels_permute] - - outs = [] - if self.cat_in: - if self.equal_dim: - x = x.chunk(len(self.convs), dim=1) - else: - new_x = [] - start = 0 - for dim in self.in_dims: - new_x.append(x[:, start:start+dim]) - start += dim - x = new_x - for i, conv in enumerate(self.convs): - if self.cat_in: - input = x[i] - else: - input = x - outs.append(conv(input)) - if self.cat_out: - out = torch.cat(outs, dim=1)[:, self.index] - else: - out = sum(outs) - return out diff --git a/spaces/coreml-community/ControlNet-v1-1-Annotators-cpu/annotator/uniformer/mmcv/runner/hooks/logger/tensorboard.py b/spaces/coreml-community/ControlNet-v1-1-Annotators-cpu/annotator/uniformer/mmcv/runner/hooks/logger/tensorboard.py deleted file mode 100644 index 4dd5011dc08def6c09eef86d3ce5b124c9fc5372..0000000000000000000000000000000000000000 --- a/spaces/coreml-community/ControlNet-v1-1-Annotators-cpu/annotator/uniformer/mmcv/runner/hooks/logger/tensorboard.py +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright (c) OpenMMLab. All rights reserved. -import os.path as osp - -from annotator.uniformer.mmcv.utils import TORCH_VERSION, digit_version -from ...dist_utils import master_only -from ..hook import HOOKS -from .base import LoggerHook - - -@HOOKS.register_module() -class TensorboardLoggerHook(LoggerHook): - - def __init__(self, - log_dir=None, - interval=10, - ignore_last=True, - reset_flag=False, - by_epoch=True): - super(TensorboardLoggerHook, self).__init__(interval, ignore_last, - reset_flag, by_epoch) - self.log_dir = log_dir - - @master_only - def before_run(self, runner): - super(TensorboardLoggerHook, self).before_run(runner) - if (TORCH_VERSION == 'parrots' - or digit_version(TORCH_VERSION) < digit_version('1.1')): - try: - from tensorboardX import SummaryWriter - except ImportError: - raise ImportError('Please install tensorboardX to use ' - 'TensorboardLoggerHook.') - else: - try: - from torch.utils.tensorboard import SummaryWriter - except ImportError: - raise ImportError( - 'Please run "pip install future tensorboard" to install ' - 'the dependencies to use torch.utils.tensorboard ' - '(applicable to PyTorch 1.1 or higher)') - - if self.log_dir is None: - self.log_dir = osp.join(runner.work_dir, 'tf_logs') - self.writer = SummaryWriter(self.log_dir) - - @master_only - def log(self, runner): - tags = self.get_loggable_tags(runner, allow_text=True) - for tag, val in tags.items(): - if isinstance(val, str): - self.writer.add_text(tag, val, self.get_iter(runner)) - else: - self.writer.add_scalar(tag, val, self.get_iter(runner)) - - @master_only - def after_run(self, runner): - self.writer.close() diff --git a/spaces/coreml-community/ControlNet-v1-1-Annotators-cpu/annotator/zoe/zoedepth/utils/__init__.py b/spaces/coreml-community/ControlNet-v1-1-Annotators-cpu/annotator/zoe/zoedepth/utils/__init__.py deleted file mode 100644 index 5f2668792389157609abb2a0846fb620e7d67eb9..0000000000000000000000000000000000000000 --- a/spaces/coreml-community/ControlNet-v1-1-Annotators-cpu/annotator/zoe/zoedepth/utils/__init__.py +++ /dev/null @@ -1,24 +0,0 @@ -# MIT License - -# Copyright (c) 2022 Intelligent Systems Lab Org - -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: - -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. - -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -# File author: Shariq Farooq Bhat - diff --git a/spaces/cozyanduofen/bingo/src/components/user-menu.tsx b/spaces/cozyanduofen/bingo/src/components/user-menu.tsx deleted file mode 100644 index 9bd1edc9cf9f39b63629b021f0c1186b1a7c1341..0000000000000000000000000000000000000000 --- a/spaces/cozyanduofen/bingo/src/components/user-menu.tsx +++ /dev/null @@ -1,113 +0,0 @@ -'use client' - -import { useEffect, useState } from 'react' -import Image from 'next/image' -import { toast } from 'react-hot-toast' -import { Button } from '@/components/ui/button' -import pkg from '../../package.json' -import { - DropdownMenu, - DropdownMenuContent, - DropdownMenuItem, - DropdownMenuSeparator, - DropdownMenuTrigger -} from '@/components/ui/dropdown-menu' -import { IconCopy, IconExternalLink, IconGitHub } from '@/components/ui/icons' -import SettingIcon from '@/assets/images/settings.svg' -import { useCopyToClipboard } from '@/lib/hooks/use-copy-to-clipboard' - -export function UserMenu() { - const [host, setHost] = useState('') - const { isCopied, copyToClipboard } = useCopyToClipboard({ timeout: 2000 }) - useEffect(() => { - setHost(location.host) - }, []) - - useEffect(() => { - if (isCopied) { - toast.success('复制成功') - } - }, [isCopied]) - return ( -
        - - - - - - - location.href='#dialog="settings"' - } - className="cursor-pointer" - > - 设置用户 - - - - location.href='#dialog="voice"' - } - className="cursor-pointer" - > - 语音设置 - - - - - 开源地址 - - - - - - - - 托管地址 - 🤗 - - - - - - - 复制站点 - - - - - -
        版本信息 {pkg.version}
        -
        - - -
        站点域名
        -
        copyToClipboard(host)} className="flex gap-1 text-xs text-zinc-500 cursor-pointer"> - {host} -
        -
        -
        -
        -
        - ) -} diff --git a/spaces/crashedice/signify/SOURCE/yolo_files/utils/__init__.py b/spaces/crashedice/signify/SOURCE/yolo_files/utils/__init__.py deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/spaces/crazybber/docker-demo-t5-translation/README.md b/spaces/crazybber/docker-demo-t5-translation/README.md deleted file mode 100644 index 0c0a402c2f07997157292292cdcddb5f381dddea..0000000000000000000000000000000000000000 --- a/spaces/crazybber/docker-demo-t5-translation/README.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: Docker Demo - Translation by T5 -emoji: 💻 -colorFrom: red -colorTo: pink -sdk: docker -pinned: false ---- - -Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference diff --git a/spaces/csuer/vits/app.py b/spaces/csuer/vits/app.py deleted file mode 100644 index e9928712bfe4acb61de1e8f9d0c924f48aeba012..0000000000000000000000000000000000000000 --- a/spaces/csuer/vits/app.py +++ /dev/null @@ -1,137 +0,0 @@ -import os -import numpy as np -import torch -from torch import no_grad, LongTensor -import argparse -import commons -from mel_processing import spectrogram_torch -import utils -from models_infer import SynthesizerTrn -import gradio as gr -import librosa - -from text import text_to_sequence, _clean_text -device = "cuda:0" if torch.cuda.is_available() else "cpu" -language_marks = { - "Japanese": "", - "日本語": "[JA]", - "简体中文": "[ZH]", - "English": "[EN]", - "Mix": "", -} -lang = ['日本語', '简体中文', 'English', 'Mix'] -def get_text(text, hps, is_symbol): - text_norm = text_to_sequence(text, hps.symbols, [] if is_symbol else hps.data.text_cleaners) - if hps.data.add_blank: - text_norm = commons.intersperse(text_norm, 0) - text_norm = LongTensor(text_norm) - return text_norm - -def create_tts_fn(model, hps, speaker_ids): - def tts_fn(text, speaker, language, speed): - if language is not None: - text = language_marks[language] + text + language_marks[language] - speaker_id = speaker_ids[speaker] - stn_tst = get_text(text, hps, False) - with no_grad(): - x_tst = stn_tst.unsqueeze(0).to(device) - x_tst_lengths = LongTensor([stn_tst.size(0)]).to(device) - sid = LongTensor([speaker_id]).to(device) - audio = model.infer(x_tst, x_tst_lengths, sid=sid, noise_scale=.667, noise_scale_w=0.8, - length_scale=1.0 / speed)[0][0, 0].data.cpu().float().numpy() - del stn_tst, x_tst, x_tst_lengths, sid - return "Success", (hps.data.sampling_rate, audio) - - return tts_fn - -def create_vc_fn(model, hps, speaker_ids): - def vc_fn(original_speaker, target_speaker, record_audio, upload_audio): - input_audio = record_audio if record_audio is not None else upload_audio - if input_audio is None: - return "You need to record or upload an audio", None - sampling_rate, audio = input_audio - original_speaker_id = speaker_ids[original_speaker] - target_speaker_id = speaker_ids[target_speaker] - - audio = (audio / np.iinfo(audio.dtype).max).astype(np.float32) - if len(audio.shape) > 1: - audio = librosa.to_mono(audio.transpose(1, 0)) - if sampling_rate != hps.data.sampling_rate: - audio = librosa.resample(audio, orig_sr=sampling_rate, target_sr=hps.data.sampling_rate) - with no_grad(): - y = torch.FloatTensor(audio) - y = y / max(-y.min(), y.max()) / 0.99 - y = y.to(device) - y = y.unsqueeze(0) - spec = spectrogram_torch(y, hps.data.filter_length, - hps.data.sampling_rate, hps.data.hop_length, hps.data.win_length, - center=False).to(device) - spec_lengths = LongTensor([spec.size(-1)]).to(device) - sid_src = LongTensor([original_speaker_id]).to(device) - sid_tgt = LongTensor([target_speaker_id]).to(device) - audio = model.voice_conversion(spec, spec_lengths, sid_src=sid_src, sid_tgt=sid_tgt)[0][ - 0, 0].data.cpu().float().numpy() - del y, spec, spec_lengths, sid_src, sid_tgt - return "Success", (hps.data.sampling_rate, audio) - - return vc_fn -if __name__ == "__main__": - parser = argparse.ArgumentParser() - parser.add_argument("--model_dir", default="./G.pth", help="directory to your fine-tuned model") - parser.add_argument("--config_dir", default="./finetune_speaker.json", help="directory to your model config file") - parser.add_argument("--share", default=False, help="make link public (used in colab)") - - args = parser.parse_args() - hps = utils.get_hparams_from_file(args.config_dir) - - - net_g = SynthesizerTrn( - len(hps.symbols), - hps.data.filter_length // 2 + 1, - hps.train.segment_size // hps.data.hop_length, - n_speakers=hps.data.n_speakers, - **hps.model).to(device) - _ = net_g.eval() - - _ = utils.load_checkpoint(args.model_dir, net_g, None) - speaker_ids = hps.speakers - speakers = list(hps.speakers.keys()) - tts_fn = create_tts_fn(net_g, hps, speaker_ids) - vc_fn = create_vc_fn(net_g, hps, speaker_ids) - app = gr.Blocks() - with app: - with gr.Tab("Text-to-Speech"): - with gr.Row(): - with gr.Column(): - textbox = gr.TextArea(label="Text", - placeholder="Type your sentence here", - value="こんにちわ。", elem_id=f"tts-input") - # select character - char_dropdown = gr.Dropdown(choices=speakers, value=speakers[0], label='character') - language_dropdown = gr.Dropdown(choices=lang, value=lang[0], label='language') - duration_slider = gr.Slider(minimum=0.1, maximum=5, value=1, step=0.1, - label='速度 Speed') - with gr.Column(): - text_output = gr.Textbox(label="Message") - audio_output = gr.Audio(label="Output Audio", elem_id="tts-audio") - btn = gr.Button("Generate!") - btn.click(tts_fn, - inputs=[textbox, char_dropdown, language_dropdown, duration_slider,], api_name='gen', - outputs=[text_output, audio_output]) - with gr.Tab("Voice Conversion"): - gr.Markdown(""" - 录制或上传声音,并选择要转换的音色。User代表的音色是你自己。 - """) - with gr.Column(): - record_audio = gr.Audio(label="record your voice", source="microphone") - upload_audio = gr.Audio(label="or upload audio here", source="upload") - source_speaker = gr.Dropdown(choices=speakers, value="User", label="source speaker") - target_speaker = gr.Dropdown(choices=speakers, value=speakers[0], label="target speaker") - with gr.Column(): - message_box = gr.Textbox(label="Message") - converted_audio = gr.Audio(label='converted audio') - btn = gr.Button("Convert!") - btn.click(vc_fn, inputs=[source_speaker, target_speaker, record_audio, upload_audio], - outputs=[message_box, converted_audio]) - app.launch(share=args.share, show_api=True) - diff --git a/spaces/cymic/Waifu_Diffusion_Webui/modules/textual_inversion/dataset.py b/spaces/cymic/Waifu_Diffusion_Webui/modules/textual_inversion/dataset.py deleted file mode 100644 index 2e69d39629e966e819beb728444052673084a9a4..0000000000000000000000000000000000000000 --- a/spaces/cymic/Waifu_Diffusion_Webui/modules/textual_inversion/dataset.py +++ /dev/null @@ -1,81 +0,0 @@ -import os -import numpy as np -import PIL -import torch -from PIL import Image -from torch.utils.data import Dataset -from torchvision import transforms - -import random -import tqdm -from modules import devices -import re - -re_tag = re.compile(r"[a-zA-Z][_\w\d()]+") - - -class PersonalizedBase(Dataset): - def __init__(self, data_root, size=None, repeats=100, flip_p=0.5, placeholder_token="*", width=512, height=512, model=None, device=None, template_file=None): - - self.placeholder_token = placeholder_token - - self.size = size - self.width = width - self.height = height - self.flip = transforms.RandomHorizontalFlip(p=flip_p) - - self.dataset = [] - - with open(template_file, "r") as file: - lines = [x.strip() for x in file.readlines()] - - self.lines = lines - - assert data_root, 'dataset directory not specified' - - self.image_paths = [os.path.join(data_root, file_path) for file_path in os.listdir(data_root)] - print("Preparing dataset...") - for path in tqdm.tqdm(self.image_paths): - image = Image.open(path) - image = image.convert('RGB') - image = image.resize((self.width, self.height), PIL.Image.BICUBIC) - - filename = os.path.basename(path) - filename_tokens = os.path.splitext(filename)[0] - filename_tokens = re_tag.findall(filename_tokens) - - npimage = np.array(image).astype(np.uint8) - npimage = (npimage / 127.5 - 1.0).astype(np.float32) - - torchdata = torch.from_numpy(npimage).to(device=device, dtype=torch.float32) - torchdata = torch.moveaxis(torchdata, 2, 0) - - init_latent = model.get_first_stage_encoding(model.encode_first_stage(torchdata.unsqueeze(dim=0))).squeeze() - init_latent = init_latent.to(devices.cpu) - - self.dataset.append((init_latent, filename_tokens)) - - self.length = len(self.dataset) * repeats - - self.initial_indexes = np.arange(self.length) % len(self.dataset) - self.indexes = None - self.shuffle() - - def shuffle(self): - self.indexes = self.initial_indexes[torch.randperm(self.initial_indexes.shape[0])] - - def __len__(self): - return self.length - - def __getitem__(self, i): - if i % len(self.dataset) == 0: - self.shuffle() - - index = self.indexes[i % len(self.indexes)] - x, filename_tokens = self.dataset[index] - - text = random.choice(self.lines) - text = text.replace("[name]", self.placeholder_token) - text = text.replace("[filewords]", ' '.join(filename_tokens)) - - return x, text diff --git a/spaces/cymic/Waifu_Diffusion_Webui/webui.sh b/spaces/cymic/Waifu_Diffusion_Webui/webui.sh deleted file mode 100644 index 05ca497d2e181c9c11409451794b1fe920f7895c..0000000000000000000000000000000000000000 --- a/spaces/cymic/Waifu_Diffusion_Webui/webui.sh +++ /dev/null @@ -1,141 +0,0 @@ -#!/bin/bash -################################################# -# Please do not make any changes to this file, # -# change the variables in webui-user.sh instead # -################################################# -# Read variables from webui-user.sh -# shellcheck source=/dev/null -if [[ -f webui-user.sh ]] -then - source ./webui-user.sh -fi - -# Set defaults -# Install directory without trailing slash -if [[ -z "${install_dir}" ]] -then - install_dir="/home/$(whoami)" -fi - -# Name of the subdirectory (defaults to stable-diffusion-webui) -if [[ -z "${clone_dir}" ]] -then - clone_dir="stable-diffusion-webui" -fi - -# python3 executable -if [[ -z "${python_cmd}" ]] -then - python_cmd="python3" -fi - -# git executable -if [[ -z "${GIT}" ]] -then - export GIT="git" -fi - -# python3 venv without trailing slash (defaults to ${install_dir}/${clone_dir}/venv) -if [[ -z "${venv_dir}" ]] -then - venv_dir="venv" -fi - -if [[ -z "${LAUNCH_SCRIPT}" ]] -then - LAUNCH_SCRIPT="launch.py" -fi - -# Disable sentry logging -export ERROR_REPORTING=FALSE - -# Do not reinstall existing pip packages on Debian/Ubuntu -export PIP_IGNORE_INSTALLED=0 - -# Pretty print -delimiter="################################################################" - -printf "\n%s\n" "${delimiter}" -printf "\e[1m\e[32mInstall script for stable-diffusion + Web UI\n" -printf "\e[1m\e[34mTested on Debian 11 (Bullseye)\e[0m" -printf "\n%s\n" "${delimiter}" - -# Do not run as root -if [[ $(id -u) -eq 0 ]] -then - printf "\n%s\n" "${delimiter}" - printf "\e[1m\e[31mERROR: This script must not be launched as root, aborting...\e[0m" - printf "\n%s\n" "${delimiter}" - exit 1 -else - printf "\n%s\n" "${delimiter}" - printf "Running on \e[1m\e[32m%s\e[0m user" "$(whoami)" - printf "\n%s\n" "${delimiter}" -fi - -if [[ -d .git ]] -then - printf "\n%s\n" "${delimiter}" - printf "Repo already cloned, using it as install directory" - printf "\n%s\n" "${delimiter}" - install_dir="${PWD}/../" - clone_dir="${PWD##*/}" -fi - -# Check prequisites -for preq in git python3 -do - if ! hash "${preq}" &>/dev/null - then - printf "\n%s\n" "${delimiter}" - printf "\e[1m\e[31mERROR: %s is not installed, aborting...\e[0m" "${preq}" - printf "\n%s\n" "${delimiter}" - exit 1 - fi -done - -if ! "${python_cmd}" -c "import venv" &>/dev/null -then - printf "\n%s\n" "${delimiter}" - printf "\e[1m\e[31mERROR: python3-venv is not installed, aborting...\e[0m" - printf "\n%s\n" "${delimiter}" - exit 1 -fi - -printf "\n%s\n" "${delimiter}" -printf "Clone or update stable-diffusion-webui" -printf "\n%s\n" "${delimiter}" -cd "${install_dir}"/ || { printf "\e[1m\e[31mERROR: Can't cd to %s/, aborting...\e[0m" "${install_dir}"; exit 1; } -if [[ -d "${clone_dir}" ]] -then - cd "${clone_dir}"/ || { printf "\e[1m\e[31mERROR: Can't cd to %s/%s/, aborting...\e[0m" "${install_dir}" "${clone_dir}"; exit 1; } - "${GIT}" pull -else - "${GIT}" clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git "${clone_dir}" - cd "${clone_dir}"/ || { printf "\e[1m\e[31mERROR: Can't cd to %s/%s/, aborting...\e[0m" "${install_dir}" "${clone_dir}"; exit 1; } -fi - -printf "\n%s\n" "${delimiter}" -printf "Create and activate python venv" -printf "\n%s\n" "${delimiter}" -cd "${install_dir}"/"${clone_dir}"/ || { printf "\e[1m\e[31mERROR: Can't cd to %s/%s/, aborting...\e[0m" "${install_dir}" "${clone_dir}"; exit 1; } -if [[ ! -d "${venv_dir}" ]] -then - "${python_cmd}" -m venv "${venv_dir}" - first_launch=1 -fi -# shellcheck source=/dev/null -if [[ -f "${venv_dir}"/bin/activate ]] -then - source "${venv_dir}"/bin/activate -else - printf "\n%s\n" "${delimiter}" - printf "\e[1m\e[31mERROR: Cannot activate python venv, aborting...\e[0m" - printf "\n%s\n" "${delimiter}" - exit 1 -fi - -printf "\n%s\n" "${delimiter}" -printf "Launching launch.py..." -printf "\n%s\n" "${delimiter}" -"${python_cmd}" "${LAUNCH_SCRIPT}" diff --git a/spaces/d0r1h/youtube_summarization/app.py b/spaces/d0r1h/youtube_summarization/app.py deleted file mode 100644 index 0b5ca0325b46b1ecd7347c1c6fe2fac50467a054..0000000000000000000000000000000000000000 --- a/spaces/d0r1h/youtube_summarization/app.py +++ /dev/null @@ -1,17 +0,0 @@ -import gradio as gr -from summarize import Summarizer - -interface = gr.Interface(fn = Summarizer, - inputs = [gr.inputs.Textbox(lines=2, - placeholder="Enter your link...", - label='YouTube Video Link'), - gr.inputs.Radio(["mT5", "BART", "Pegasus"], type="value", label='Model')], - outputs = [gr.outputs.Textbox( - label="Summary")], - - title = "Youtube Summarizer", - examples = [['https://www.youtube.com/watch?v=A4OmtyaBHFE', 'mT5'], - ['https://www.youtube.com/watch?v=cU6xVZfkcgo', 'mT5']], - enable_queue=True) - -interface.launch(debug=True) \ No newline at end of file diff --git a/spaces/danieldux/isco-gpt/app.py b/spaces/danieldux/isco-gpt/app.py deleted file mode 100644 index 386e59aa760b0b39d8f5742cd7a3923ffbd5c0a2..0000000000000000000000000000000000000000 --- a/spaces/danieldux/isco-gpt/app.py +++ /dev/null @@ -1,128 +0,0 @@ -import streamlit as st -from streamlit_chat import message -import os -from utils import ( - parse_docx, - parse_pdf, - parse_txt, - parse_csv, - parse_pptx, - search_docs, - embed_docs, - text_to_docs, - get_answer, - parse_any, - get_sources, - wrap_text_in_html, -) -from openai.error import OpenAIError - -def clear_submit(): - st.session_state["submit"] = False - -def set_openai_api_key(api_key: str): - st.session_state["OPENAI_API_KEY"] = api_key - -st.markdown('

        File GPT 🤖 by Code GPT

        ', unsafe_allow_html=True) - -# Sidebar -index = None -doc = None -with st.sidebar: - user_secret = st.text_input( - "OpenAI API Key", - type="password", - placeholder="Paste your OpenAI API key here (sk-...)", - help="You can get your API key from https://platform.openai.com/account/api-keys.", - value=st.session_state.get("OPENAI_API_KEY", ""), - ) - if user_secret: - set_openai_api_key(user_secret) - - uploaded_file = st.file_uploader( - "Upload a pdf, docx, or txt file", - type=["pdf", "docx", "txt", "csv", "pptx", "js", "py", "json", "html", "css", "md"], - help="Scanned documents are not supported yet!", - on_change=clear_submit, - ) - - if uploaded_file is not None: - if uploaded_file.name.endswith(".pdf"): - doc = parse_pdf(uploaded_file) - elif uploaded_file.name.endswith(".docx"): - doc = parse_docx(uploaded_file) - elif uploaded_file.name.endswith(".csv"): - doc = parse_csv(uploaded_file) - elif uploaded_file.name.endswith(".txt"): - doc = parse_txt(uploaded_file) - elif uploaded_file.name.endswith(".pptx"): - doc = parse_pptx(uploaded_file) - else: - doc = parse_any(uploaded_file) - #st.error("File type not supported") - #doc = None - text = text_to_docs(doc) - st.write(text) - try: - with st.spinner("Indexing document... This may take a while⏳"): - index = embed_docs(text) - st.session_state["api_key_configured"] = True - except OpenAIError as e: - st.error(e._message) - -tab1, tab2 = st.tabs(["Intro", "Chat with the File"]) -with tab1: - st.markdown("### How does it work?") - st.write("File GPT is a tool that allows you to ask questions about a document and get answers from the document. The tool uses the OpenAI API to embed the document and then uses the Embedding API to find the most similar documents to the question. The tool then uses LangChain to obtain the answer from the most similar documents.") - st.write("The tool is currently in beta and is not perfect. It is recommended to use it with short documents.") - st.write("""---""") - st.markdown("### How to use it?") - st.write("To use the tool you must first add your OpenAI API Key and then upload a document. The tool currently supports the following file types: pdf, docx, txt, csv, pptx. Once the document is uploaded, the tool will index the document and embed it. This may take a while depending on the size of the document. Once the document is indexed, you can ask questions about the document. The tool will return the answer to the question and the source of the answer.") - st.markdown('

        Read the article to know more details: Medium Article (Spanish)

        ', unsafe_allow_html=True) - st.write("## File GPT was written with the following tools:") - st.markdown("#### Code GPT") - st.write('All code was written with the help of Code GPT. Visit https://codegpt.co to get the extension.') - st.markdown("#### Streamlit") - st.write('The design was written with Streamlit.', unsafe_allow_html=True) - st.markdown("#### LangChain") - st.write('Question answering with source Langchain QA.', unsafe_allow_html=True) - st.markdown("#### Embedding") - st.write('Embedding is done via the OpenAI API with "text-embedding-ada-002"', unsafe_allow_html=True) - st.write("Please note that you must have credits in your OpenAI account to use this tool. Each file uploaded to the platform consumes credits for embedding and each query consumes credits to obtain the response.") - st.markdown("""---""") - st.write('Author: Daniel Avila', unsafe_allow_html=True) - st.write('Repo: Github', unsafe_allow_html=True) - st.write("This software was developed with Code GPT, for more information visit: https://codegpt.co", unsafe_allow_html=True) - -with tab2: - st.write('To obtain an API Key you must create an OpenAI account at the following link: https://openai.com/api/') - if 'generated' not in st.session_state: - st.session_state['generated'] = [] - - if 'past' not in st.session_state: - st.session_state['past'] = [] - - def get_text(): - if user_secret: - st.header("Ask me something about the document:") - input_text = st.text_area("You:", on_change=clear_submit) - return input_text - user_input = get_text() - - button = st.button("Submit") - if button or st.session_state.get("submit"): - if not user_input: - st.error("Please enter a question!") - else: - st.session_state["submit"] = True - sources = search_docs(index, user_input) - try: - answer = get_answer(sources, user_input) - st.session_state.past.append(user_input) - st.session_state.generated.append(answer["output_text"].split("SOURCES: ")[0]) - except OpenAIError as e: - st.error(e._message) - if st.session_state['generated']: - for i in range(len(st.session_state['generated'])-1, -1, -1): - message(st.session_state["generated"][i], key=str(i)) - message(st.session_state['past'][i], is_user=True, key=str(i) + '_user') \ No newline at end of file diff --git a/spaces/dawood17/SayBot_Enchancer/CodeFormer/facelib/detection/retinaface/retinaface_net.py b/spaces/dawood17/SayBot_Enchancer/CodeFormer/facelib/detection/retinaface/retinaface_net.py deleted file mode 100644 index ab6aa82d3e9055a838f1f9076b12f05fdfc154d0..0000000000000000000000000000000000000000 --- a/spaces/dawood17/SayBot_Enchancer/CodeFormer/facelib/detection/retinaface/retinaface_net.py +++ /dev/null @@ -1,196 +0,0 @@ -import torch -import torch.nn as nn -import torch.nn.functional as F - - -def conv_bn(inp, oup, stride=1, leaky=0): - return nn.Sequential( - nn.Conv2d(inp, oup, 3, stride, 1, bias=False), nn.BatchNorm2d(oup), - nn.LeakyReLU(negative_slope=leaky, inplace=True)) - - -def conv_bn_no_relu(inp, oup, stride): - return nn.Sequential( - nn.Conv2d(inp, oup, 3, stride, 1, bias=False), - nn.BatchNorm2d(oup), - ) - - -def conv_bn1X1(inp, oup, stride, leaky=0): - return nn.Sequential( - nn.Conv2d(inp, oup, 1, stride, padding=0, bias=False), nn.BatchNorm2d(oup), - nn.LeakyReLU(negative_slope=leaky, inplace=True)) - - -def conv_dw(inp, oup, stride, leaky=0.1): - return nn.Sequential( - nn.Conv2d(inp, inp, 3, stride, 1, groups=inp, bias=False), - nn.BatchNorm2d(inp), - nn.LeakyReLU(negative_slope=leaky, inplace=True), - nn.Conv2d(inp, oup, 1, 1, 0, bias=False), - nn.BatchNorm2d(oup), - nn.LeakyReLU(negative_slope=leaky, inplace=True), - ) - - -class SSH(nn.Module): - - def __init__(self, in_channel, out_channel): - super(SSH, self).__init__() - assert out_channel % 4 == 0 - leaky = 0 - if (out_channel <= 64): - leaky = 0.1 - self.conv3X3 = conv_bn_no_relu(in_channel, out_channel // 2, stride=1) - - self.conv5X5_1 = conv_bn(in_channel, out_channel // 4, stride=1, leaky=leaky) - self.conv5X5_2 = conv_bn_no_relu(out_channel // 4, out_channel // 4, stride=1) - - self.conv7X7_2 = conv_bn(out_channel // 4, out_channel // 4, stride=1, leaky=leaky) - self.conv7x7_3 = conv_bn_no_relu(out_channel // 4, out_channel // 4, stride=1) - - def forward(self, input): - conv3X3 = self.conv3X3(input) - - conv5X5_1 = self.conv5X5_1(input) - conv5X5 = self.conv5X5_2(conv5X5_1) - - conv7X7_2 = self.conv7X7_2(conv5X5_1) - conv7X7 = self.conv7x7_3(conv7X7_2) - - out = torch.cat([conv3X3, conv5X5, conv7X7], dim=1) - out = F.relu(out) - return out - - -class FPN(nn.Module): - - def __init__(self, in_channels_list, out_channels): - super(FPN, self).__init__() - leaky = 0 - if (out_channels <= 64): - leaky = 0.1 - self.output1 = conv_bn1X1(in_channels_list[0], out_channels, stride=1, leaky=leaky) - self.output2 = conv_bn1X1(in_channels_list[1], out_channels, stride=1, leaky=leaky) - self.output3 = conv_bn1X1(in_channels_list[2], out_channels, stride=1, leaky=leaky) - - self.merge1 = conv_bn(out_channels, out_channels, leaky=leaky) - self.merge2 = conv_bn(out_channels, out_channels, leaky=leaky) - - def forward(self, input): - # names = list(input.keys()) - # input = list(input.values()) - - output1 = self.output1(input[0]) - output2 = self.output2(input[1]) - output3 = self.output3(input[2]) - - up3 = F.interpolate(output3, size=[output2.size(2), output2.size(3)], mode='nearest') - output2 = output2 + up3 - output2 = self.merge2(output2) - - up2 = F.interpolate(output2, size=[output1.size(2), output1.size(3)], mode='nearest') - output1 = output1 + up2 - output1 = self.merge1(output1) - - out = [output1, output2, output3] - return out - - -class MobileNetV1(nn.Module): - - def __init__(self): - super(MobileNetV1, self).__init__() - self.stage1 = nn.Sequential( - conv_bn(3, 8, 2, leaky=0.1), # 3 - conv_dw(8, 16, 1), # 7 - conv_dw(16, 32, 2), # 11 - conv_dw(32, 32, 1), # 19 - conv_dw(32, 64, 2), # 27 - conv_dw(64, 64, 1), # 43 - ) - self.stage2 = nn.Sequential( - conv_dw(64, 128, 2), # 43 + 16 = 59 - conv_dw(128, 128, 1), # 59 + 32 = 91 - conv_dw(128, 128, 1), # 91 + 32 = 123 - conv_dw(128, 128, 1), # 123 + 32 = 155 - conv_dw(128, 128, 1), # 155 + 32 = 187 - conv_dw(128, 128, 1), # 187 + 32 = 219 - ) - self.stage3 = nn.Sequential( - conv_dw(128, 256, 2), # 219 +3 2 = 241 - conv_dw(256, 256, 1), # 241 + 64 = 301 - ) - self.avg = nn.AdaptiveAvgPool2d((1, 1)) - self.fc = nn.Linear(256, 1000) - - def forward(self, x): - x = self.stage1(x) - x = self.stage2(x) - x = self.stage3(x) - x = self.avg(x) - # x = self.model(x) - x = x.view(-1, 256) - x = self.fc(x) - return x - - -class ClassHead(nn.Module): - - def __init__(self, inchannels=512, num_anchors=3): - super(ClassHead, self).__init__() - self.num_anchors = num_anchors - self.conv1x1 = nn.Conv2d(inchannels, self.num_anchors * 2, kernel_size=(1, 1), stride=1, padding=0) - - def forward(self, x): - out = self.conv1x1(x) - out = out.permute(0, 2, 3, 1).contiguous() - - return out.view(out.shape[0], -1, 2) - - -class BboxHead(nn.Module): - - def __init__(self, inchannels=512, num_anchors=3): - super(BboxHead, self).__init__() - self.conv1x1 = nn.Conv2d(inchannels, num_anchors * 4, kernel_size=(1, 1), stride=1, padding=0) - - def forward(self, x): - out = self.conv1x1(x) - out = out.permute(0, 2, 3, 1).contiguous() - - return out.view(out.shape[0], -1, 4) - - -class LandmarkHead(nn.Module): - - def __init__(self, inchannels=512, num_anchors=3): - super(LandmarkHead, self).__init__() - self.conv1x1 = nn.Conv2d(inchannels, num_anchors * 10, kernel_size=(1, 1), stride=1, padding=0) - - def forward(self, x): - out = self.conv1x1(x) - out = out.permute(0, 2, 3, 1).contiguous() - - return out.view(out.shape[0], -1, 10) - - -def make_class_head(fpn_num=3, inchannels=64, anchor_num=2): - classhead = nn.ModuleList() - for i in range(fpn_num): - classhead.append(ClassHead(inchannels, anchor_num)) - return classhead - - -def make_bbox_head(fpn_num=3, inchannels=64, anchor_num=2): - bboxhead = nn.ModuleList() - for i in range(fpn_num): - bboxhead.append(BboxHead(inchannels, anchor_num)) - return bboxhead - - -def make_landmark_head(fpn_num=3, inchannels=64, anchor_num=2): - landmarkhead = nn.ModuleList() - for i in range(fpn_num): - landmarkhead.append(LandmarkHead(inchannels, anchor_num)) - return landmarkhead diff --git a/spaces/dcarpintero/nlp-summarizer-pegasus/.venv/lib/python3.9/site-packages/dateutil/utils.py b/spaces/dcarpintero/nlp-summarizer-pegasus/.venv/lib/python3.9/site-packages/dateutil/utils.py deleted file mode 100644 index dd2d245a0bebcd5fc37ac20526aabbd5358dab0e..0000000000000000000000000000000000000000 --- a/spaces/dcarpintero/nlp-summarizer-pegasus/.venv/lib/python3.9/site-packages/dateutil/utils.py +++ /dev/null @@ -1,71 +0,0 @@ -# -*- coding: utf-8 -*- -""" -This module offers general convenience and utility functions for dealing with -datetimes. - -.. versionadded:: 2.7.0 -""" -from __future__ import unicode_literals - -from datetime import datetime, time - - -def today(tzinfo=None): - """ - Returns a :py:class:`datetime` representing the current day at midnight - - :param tzinfo: - The time zone to attach (also used to determine the current day). - - :return: - A :py:class:`datetime.datetime` object representing the current day - at midnight. - """ - - dt = datetime.now(tzinfo) - return datetime.combine(dt.date(), time(0, tzinfo=tzinfo)) - - -def default_tzinfo(dt, tzinfo): - """ - Sets the ``tzinfo`` parameter on naive datetimes only - - This is useful for example when you are provided a datetime that may have - either an implicit or explicit time zone, such as when parsing a time zone - string. - - .. doctest:: - - >>> from dateutil.tz import tzoffset - >>> from dateutil.parser import parse - >>> from dateutil.utils import default_tzinfo - >>> dflt_tz = tzoffset("EST", -18000) - >>> print(default_tzinfo(parse('2014-01-01 12:30 UTC'), dflt_tz)) - 2014-01-01 12:30:00+00:00 - >>> print(default_tzinfo(parse('2014-01-01 12:30'), dflt_tz)) - 2014-01-01 12:30:00-05:00 - - :param dt: - The datetime on which to replace the time zone - - :param tzinfo: - The :py:class:`datetime.tzinfo` subclass instance to assign to - ``dt`` if (and only if) it is naive. - - :return: - Returns an aware :py:class:`datetime.datetime`. - """ - if dt.tzinfo is not None: - return dt - else: - return dt.replace(tzinfo=tzinfo) - - -def within_delta(dt1, dt2, delta): - """ - Useful for comparing two datetimes that may have a negligible difference - to be considered equal. - """ - delta = abs(delta) - difference = dt1 - dt2 - return -delta <= difference <= delta diff --git a/spaces/dcarpintero/nlp-summarizer-pegasus/.venv/lib/python3.9/site-packages/gradio/templates/frontend/assets/Image-b496c98d.css b/spaces/dcarpintero/nlp-summarizer-pegasus/.venv/lib/python3.9/site-packages/gradio/templates/frontend/assets/Image-b496c98d.css deleted file mode 100644 index cc80c0f759677ec3700fb346864183b8bd529dbb..0000000000000000000000000000000000000000 --- a/spaces/dcarpintero/nlp-summarizer-pegasus/.venv/lib/python3.9/site-packages/gradio/templates/frontend/assets/Image-b496c98d.css +++ /dev/null @@ -1 +0,0 @@ -.wrap.svelte-425ent{position:relative;width:var(--size-full);height:var(--size-full);min-height:var(--size-60)}video.svelte-425ent{width:var(--size-full);height:var(--size-full)}button.svelte-425ent{display:flex;position:absolute;right:0;bottom:var(--size-2);left:0;justify-content:center;align-items:center;margin:auto;box-shadow:var(--shadow-drop-lg);border-radius:var(--radius-xl);background-color:#000000e6;width:var(--size-10);height:var(--size-10)}@media (min-width: 768px){button.svelte-425ent{bottom:var(--size-4)}}@media (min-width: 1280px){button.svelte-425ent{bottom:var(--size-8)}}.icon.svelte-425ent{opacity:.8;width:50%;height:50%;color:#fff}.flip.svelte-425ent{transform:scaleX(-1)}canvas.svelte-yigbas{display:block;position:absolute;inset:0;margin:auto}.lr.svelte-yigbas{border-right:1px solid var(--border-color-primary);border-left:1px solid var(--border-color-primary)}.tb.svelte-yigbas{border-top:1px solid var(--border-color-primary);border-bottom:1px solid var(--border-color-primary)}canvas.svelte-yigbas:hover{cursor:none}.wrap.svelte-yigbas{position:relative;width:var(--size-full);height:var(--size-full);touch-action:none}.start-prompt.svelte-yigbas{display:flex;position:absolute;inset:0;justify-content:center;align-items:center;z-index:var(--layer-4);touch-action:none;pointer-events:none;color:var(--body-text-color-subdued)}div.svelte-s6ybro{display:flex;position:absolute;top:var(--size-2);right:var(--size-2);justify-content:flex-end;gap:var(--spacing-sm);z-index:var(--layer-5)}.wrap.svelte-p4aq0j.svelte-p4aq0j{display:flex;position:absolute;top:var(--size-10);right:var(--size-2);flex-direction:column;justify-content:flex-end;gap:var(--spacing-sm);z-index:var(--layer-5)}.brush.svelte-p4aq0j.svelte-p4aq0j{top:0;right:0}.brush.svelte-p4aq0j input.svelte-p4aq0j{position:absolute;top:3px;right:calc(100% + 5px)}.col.svelte-p4aq0j input.svelte-p4aq0j{position:absolute;right:calc(100% + 5px);bottom:-4px}.image-container.svelte-p3y7hu,img.svelte-p3y7hu{width:var(--size-full);height:var(--size-full)}img.svelte-p3y7hu{object-fit:contain}.selectable.svelte-p3y7hu{cursor:crosshair}.absolute-img.svelte-p3y7hu{position:absolute;opacity:0}.webcam.svelte-p3y7hu{transform:scaleX(-1)} diff --git a/spaces/declare-lab/tango/diffusers/tests/pipelines/dit/test_dit.py b/spaces/declare-lab/tango/diffusers/tests/pipelines/dit/test_dit.py deleted file mode 100644 index c514c3c7fa1d7b7a83307a04c37ca63dece289e5..0000000000000000000000000000000000000000 --- a/spaces/declare-lab/tango/diffusers/tests/pipelines/dit/test_dit.py +++ /dev/null @@ -1,152 +0,0 @@ -# coding=utf-8 -# Copyright 2023 HuggingFace Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import gc -import unittest - -import numpy as np -import torch - -from diffusers import AutoencoderKL, DDIMScheduler, DiTPipeline, DPMSolverMultistepScheduler, Transformer2DModel -from diffusers.utils import is_xformers_available, load_numpy, slow, torch_device -from diffusers.utils.testing_utils import require_torch_gpu - -from ...pipeline_params import ( - CLASS_CONDITIONED_IMAGE_GENERATION_BATCH_PARAMS, - CLASS_CONDITIONED_IMAGE_GENERATION_PARAMS, -) -from ...test_pipelines_common import PipelineTesterMixin - - -torch.backends.cuda.matmul.allow_tf32 = False - - -class DiTPipelineFastTests(PipelineTesterMixin, unittest.TestCase): - pipeline_class = DiTPipeline - params = CLASS_CONDITIONED_IMAGE_GENERATION_PARAMS - required_optional_params = PipelineTesterMixin.required_optional_params - { - "latents", - "num_images_per_prompt", - "callback", - "callback_steps", - } - batch_params = CLASS_CONDITIONED_IMAGE_GENERATION_BATCH_PARAMS - test_cpu_offload = False - - def get_dummy_components(self): - torch.manual_seed(0) - transformer = Transformer2DModel( - sample_size=16, - num_layers=2, - patch_size=4, - attention_head_dim=8, - num_attention_heads=2, - in_channels=4, - out_channels=8, - attention_bias=True, - activation_fn="gelu-approximate", - num_embeds_ada_norm=1000, - norm_type="ada_norm_zero", - norm_elementwise_affine=False, - ) - vae = AutoencoderKL() - scheduler = DDIMScheduler() - components = {"transformer": transformer.eval(), "vae": vae.eval(), "scheduler": scheduler} - return components - - def get_dummy_inputs(self, device, seed=0): - if str(device).startswith("mps"): - generator = torch.manual_seed(seed) - else: - generator = torch.Generator(device=device).manual_seed(seed) - inputs = { - "class_labels": [1], - "generator": generator, - "num_inference_steps": 2, - "output_type": "numpy", - } - return inputs - - def test_inference(self): - device = "cpu" - - components = self.get_dummy_components() - pipe = self.pipeline_class(**components) - pipe.to(device) - pipe.set_progress_bar_config(disable=None) - - inputs = self.get_dummy_inputs(device) - image = pipe(**inputs).images - image_slice = image[0, -3:, -3:, -1] - - self.assertEqual(image.shape, (1, 16, 16, 3)) - expected_slice = np.array([0.4380, 0.4141, 0.5159, 0.0000, 0.4282, 0.6680, 0.5485, 0.2545, 0.6719]) - max_diff = np.abs(image_slice.flatten() - expected_slice).max() - self.assertLessEqual(max_diff, 1e-3) - - def test_inference_batch_single_identical(self): - self._test_inference_batch_single_identical(relax_max_difference=True, expected_max_diff=1e-3) - - @unittest.skipIf( - torch_device != "cuda" or not is_xformers_available(), - reason="XFormers attention is only available with CUDA and `xformers` installed", - ) - def test_xformers_attention_forwardGenerator_pass(self): - self._test_xformers_attention_forwardGenerator_pass(expected_max_diff=1e-3) - - -@require_torch_gpu -@slow -class DiTPipelineIntegrationTests(unittest.TestCase): - def tearDown(self): - super().tearDown() - gc.collect() - torch.cuda.empty_cache() - - def test_dit_256(self): - generator = torch.manual_seed(0) - - pipe = DiTPipeline.from_pretrained("facebook/DiT-XL-2-256") - pipe.to("cuda") - - words = ["vase", "umbrella", "white shark", "white wolf"] - ids = pipe.get_label_ids(words) - - images = pipe(ids, generator=generator, num_inference_steps=40, output_type="np").images - - for word, image in zip(words, images): - expected_image = load_numpy( - f"https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/dit/{word}.npy" - ) - assert np.abs((expected_image - image).max()) < 1e-2 - - def test_dit_512(self): - pipe = DiTPipeline.from_pretrained("facebook/DiT-XL-2-512") - pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config) - pipe.to("cuda") - - words = ["vase", "umbrella"] - ids = pipe.get_label_ids(words) - - generator = torch.manual_seed(0) - images = pipe(ids, generator=generator, num_inference_steps=25, output_type="np").images - - for word, image in zip(words, images): - expected_image = load_numpy( - "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main" - f"/dit/{word}_512.npy" - ) - - assert np.abs((expected_image - image).max()) < 1e-1 diff --git a/spaces/diacanFperku/AutoGPT/Icc Immo Pin Code Calculator V 154 [TOP].md b/spaces/diacanFperku/AutoGPT/Icc Immo Pin Code Calculator V 154 [TOP].md deleted file mode 100644 index 6d8fbf88dff335b21c69a9bd55e10d433cb72424..0000000000000000000000000000000000000000 --- a/spaces/diacanFperku/AutoGPT/Icc Immo Pin Code Calculator V 154 [TOP].md +++ /dev/null @@ -1,6 +0,0 @@ -

        Icc Immo Pin Code Calculator V 154


        Download File ===> https://gohhs.com/2uFUX8



        -
        -.160 is a security and usability improvement for the device In addition, it has a larger display than other applications. jpg' : 'Scriptacao:', // Title // siSupport.avvacari_ativos) $("tbody td:nth-child(" + value.id + ")").css('background-color', '#CCCCCC'); else if (value.ativo == 3) $("#popupNewLogins").show(); // $("#popupNewLogins.tpNewLogin").css('color','#D87A25'); else if (value.ativo == 4) $("#popupNewLogins").hide(); // $("#popupNewLogins.tpNewLogin").css('color','#292929'); else $("#popupNewLogins").hide(); }); $('#' + value.id +'a').on("click", function() $('#' + value.id + '.t-icon').toggleClass("t-icon-custom-vibrate"); ); }); 4fefd39f24
        -
        -
        -

        diff --git a/spaces/diacanFperku/AutoGPT/Mutant Reverb V1.0.1 WiN.MAC RETAiL.md b/spaces/diacanFperku/AutoGPT/Mutant Reverb V1.0.1 WiN.MAC RETAiL.md deleted file mode 100644 index 6e4bafe80baeb13545565909380a0e4a5702df5e..0000000000000000000000000000000000000000 --- a/spaces/diacanFperku/AutoGPT/Mutant Reverb V1.0.1 WiN.MAC RETAiL.md +++ /dev/null @@ -1,9 +0,0 @@ -
        -

        the other problem is that the core audio framework is loaded by augraph. mutant reverb is designed to use augraph, so it is included when building it. this means that if the core audio framework is missing then mutant reverb will not work. to avoid this it is recommended that you use the -ccoreaudio or -ccoreauo switches to build mutant reverb.

        -

        Mutant Reverb v1.0.1 WiN.MAC RETAiL


        Download ✯✯✯ https://gohhs.com/2uFSZ4



        -

        anyways.. here's a list of the new features.

        • unicode support
        • new gui.
        • 16', 24', and 32' (and other) reverb types
        • mixed reverb types (can be m/s or m/s/e)
        • parameter editing
        • ui changes
        • gui improvements
        • more reverb types
        -

        special features:

        • new, expanded gui with new buttons and sliders for real-time control of reverb gain.
        • new icons.
        • multi-core support.
        • added a gui for midi cc numbers.
        • added a gui for midi patch number.
        • a midi mapping feature for easy midi cc assignment.
        • added an option for using the same aux channel as the master channel.
        • added an option to use either the computer speaker or the aux channel as the master output.
        • added a ‘failed’ button to the main window when loading a file fails.
        • added a ‘save’ button to the main window for saving preset files.
        • added a button for choosing a folder for storing preset files.
        -

        installation:

        -

        1. download mutant reverb v1.0.1 win.mac retail from the link below. a file named ‘mutant reverb.exe’ will be downloaded to your desktop. please run this file to install mutant reverb. this will take a few minutes to complete.
        2. copy the mutant reverb folder (the folder containing the ‘mutant reverb.exe’ file) to your win.mac program files folder.
        3. double-click ‘mutant reverb.exe’ to run the program.
        899543212b
        -
        -
        \ No newline at end of file diff --git a/spaces/dilums/sentence-similarity/components/ui/input.tsx b/spaces/dilums/sentence-similarity/components/ui/input.tsx deleted file mode 100644 index a92b8e0e58e275294b4cbd8c0b154fd11b016c7a..0000000000000000000000000000000000000000 --- a/spaces/dilums/sentence-similarity/components/ui/input.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import * as React from "react" - -import { cn } from "@/lib/utils" - -export interface InputProps - extends React.InputHTMLAttributes {} - -const Input = React.forwardRef( - ({ className, type, ...props }, ref) => { - return ( - - ) - } -) -Input.displayName = "Input" - -export { Input } diff --git a/spaces/doevent/ArcaneGAN/README.md b/spaces/doevent/ArcaneGAN/README.md deleted file mode 100644 index a01e41791e165f91e8ae905b52db646f46bcb16c..0000000000000000000000000000000000000000 --- a/spaces/doevent/ArcaneGAN/README.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -title: ArcaneGANv2 On Photo -emoji: ⚡ -colorFrom: yellow -colorTo: blue -sdk: gradio -sdk_version: 3.0.5 -app_file: app.py -pinned: false ---- - -# Configuration - -`title`: _string_ -Display title for the Space - -`emoji`: _string_ -Space emoji (emoji-only character allowed) - -`colorFrom`: _string_ -Color for Thumbnail gradient (red, yellow, green, blue, indigo, purple, pink, gray) - -`colorTo`: _string_ -Color for Thumbnail gradient (red, yellow, green, blue, indigo, purple, pink, gray) - -`sdk`: _string_ -Can be either `gradio` or `streamlit` - -`sdk_version` : _string_ -Only applicable for `streamlit` SDK. -See [doc](https://hf.co/docs/hub/spaces) for more info on supported versions. - -`app_file`: _string_ -Path to your main application file (which contains either `gradio` or `streamlit` Python code). -Path is relative to the root of the repository. - -`pinned`: _boolean_ -Whether the Space stays on top of your list. \ No newline at end of file diff --git a/spaces/dorkai/singpt/extensions/google_translate/script.py b/spaces/dorkai/singpt/extensions/google_translate/script.py deleted file mode 100644 index 68bc54b293086bed1a070a310d276060ee939d44..0000000000000000000000000000000000000000 --- a/spaces/dorkai/singpt/extensions/google_translate/script.py +++ /dev/null @@ -1,42 +0,0 @@ -import gradio as gr -from deep_translator import GoogleTranslator - -params = { - "language string": "ja", -} - -language_codes = {'Afrikaans': 'af', 'Albanian': 'sq', 'Amharic': 'am', 'Arabic': 'ar', 'Armenian': 'hy', 'Azerbaijani': 'az', 'Basque': 'eu', 'Belarusian': 'be', 'Bengali': 'bn', 'Bosnian': 'bs', 'Bulgarian': 'bg', 'Catalan': 'ca', 'Cebuano': 'ceb', 'Chinese (Simplified)': 'zh-CN', 'Chinese (Traditional)': 'zh-TW', 'Corsican': 'co', 'Croatian': 'hr', 'Czech': 'cs', 'Danish': 'da', 'Dutch': 'nl', 'English': 'en', 'Esperanto': 'eo', 'Estonian': 'et', 'Finnish': 'fi', 'French': 'fr', 'Frisian': 'fy', 'Galician': 'gl', 'Georgian': 'ka', 'German': 'de', 'Greek': 'el', 'Gujarati': 'gu', 'Haitian Creole': 'ht', 'Hausa': 'ha', 'Hawaiian': 'haw', 'Hebrew': 'iw', 'Hindi': 'hi', 'Hmong': 'hmn', 'Hungarian': 'hu', 'Icelandic': 'is', 'Igbo': 'ig', 'Indonesian': 'id', 'Irish': 'ga', 'Italian': 'it', 'Japanese': 'ja', 'Javanese': 'jw', 'Kannada': 'kn', 'Kazakh': 'kk', 'Khmer': 'km', 'Korean': 'ko', 'Kurdish': 'ku', 'Kyrgyz': 'ky', 'Lao': 'lo', 'Latin': 'la', 'Latvian': 'lv', 'Lithuanian': 'lt', 'Luxembourgish': 'lb', 'Macedonian': 'mk', 'Malagasy': 'mg', 'Malay': 'ms', 'Malayalam': 'ml', 'Maltese': 'mt', 'Maori': 'mi', 'Marathi': 'mr', 'Mongolian': 'mn', 'Myanmar (Burmese)': 'my', 'Nepali': 'ne', 'Norwegian': 'no', 'Nyanja (Chichewa)': 'ny', 'Pashto': 'ps', 'Persian': 'fa', 'Polish': 'pl', 'Portuguese (Portugal, Brazil)': 'pt', 'Punjabi': 'pa', 'Romanian': 'ro', 'Russian': 'ru', 'Samoan': 'sm', 'Scots Gaelic': 'gd', 'Serbian': 'sr', 'Sesotho': 'st', 'Shona': 'sn', 'Sindhi': 'sd', 'Sinhala (Sinhalese)': 'si', 'Slovak': 'sk', 'Slovenian': 'sl', 'Somali': 'so', 'Spanish': 'es', 'Sundanese': 'su', 'Swahili': 'sw', 'Swedish': 'sv', 'Tagalog (Filipino)': 'tl', 'Tajik': 'tg', 'Tamil': 'ta', 'Telugu': 'te', 'Thai': 'th', 'Turkish': 'tr', 'Ukrainian': 'uk', 'Urdu': 'ur', 'Uzbek': 'uz', 'Vietnamese': 'vi', 'Welsh': 'cy', 'Xhosa': 'xh', 'Yiddish': 'yi', 'Yoruba': 'yo', 'Zulu': 'zu'} - -def input_modifier(string): - """ - This function is applied to your text inputs before - they are fed into the model. - """ - - return GoogleTranslator(source=params['language string'], target='en').translate(string) - -def output_modifier(string): - """ - This function is applied to the model outputs. - """ - - return GoogleTranslator(source='en', target=params['language string']).translate(string) - -def bot_prefix_modifier(string): - """ - This function is only applied in chat mode. It modifies - the prefix text for the Bot and can be used to bias its - behavior. - """ - - return string - -def ui(): - # Finding the language name from the language code to use as the default value - language_name = list(language_codes.keys())[list(language_codes.values()).index(params['language string'])] - - # Gradio elements - language = gr.Dropdown(value=language_name, choices=[k for k in language_codes], label='Language') - - # Event functions to update the parameters in the backend - language.change(lambda x: params.update({"language string": language_codes[x]}), language, None) diff --git a/spaces/dragonSwing/isr/upsample.py b/spaces/dragonSwing/isr/upsample.py deleted file mode 100644 index 5a247c578e0b7b1574935c5422c6b2b0149aca0a..0000000000000000000000000000000000000000 --- a/spaces/dragonSwing/isr/upsample.py +++ /dev/null @@ -1,144 +0,0 @@ -import argparse -import cv2 -import os - -from imutils import paths -from tqdm import tqdm -from config import * -from utils import get_face_enhancer, get_upsampler - - -def process(image_path, upsampler_name, face_enhancer_name=None, scale=2, device="cpu"): - if scale > 4: - scale = 4 # avoid too large scale value - try: - img = cv2.imread(image_path, cv2.IMREAD_UNCHANGED) - - h, w = img.shape[0:2] - if h > 3500 or w > 3500: - output = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) - return output - - if (h < 300 and w < 300) and upsampler_name != "srcnn": - img = cv2.resize(img, (w * 2, h * 2), interpolation=cv2.INTER_LANCZOS4) - return img - - upsampler = get_upsampler(upsampler_name, device=device) - - if face_enhancer_name: - face_enhancer = get_face_enhancer( - face_enhancer_name, scale, upsampler, device=device - ) - else: - face_enhancer = None - - try: - if face_enhancer is not None: - _, _, output = face_enhancer.enhance( - img, has_aligned=False, only_center_face=False, paste_back=True - ) - else: - output, _ = upsampler.enhance(img, outscale=scale) - except RuntimeError as error: - print(f"Runtime error: {error}") - - return output - except Exception as error: - print(f"global exception: {error}") - - -def main(args: argparse.Namespace) -> None: - device = args.device - scale = args.scale - - upsampler_name = args.upsampler - face_enhancer_name = args.face_enhancer - - if face_enhancer_name and ("srcnn" in upsampler_name or "anime" in upsampler_name): - print( - "Warnings: SRCNN and Anime model aren't compatible with face enhance. We will turn it off for you" - ) - face_enhancer_name = None - - os.makedirs(args.output, exist_ok=True) - if not os.path.exists(args.input): - raise ValueError("The input directory doesn't exist!") - elif not os.path.isdir(args.input): - image_paths = [args.input] - else: - image_paths = paths.list_images(args.input) - - with tqdm(image_paths) as pbar: - for image_path in pbar: - filename = os.path.basename(image_path) - pbar.set_postfix_str(f"Processing {image_path}") - upsampled_image = process( - image_path=image_path, - upsampler_name=upsampler_name, - face_enhancer_name=face_enhancer_name, - scale=scale, - device=device, - ) - if upsampled_image is not None: - save_path = os.path.join(args.output, filename) - cv2.imwrite(save_path, upsampled_image) - - -if __name__ == "__main__": - parser = argparse.ArgumentParser( - description=( - "Runs automatic detection and mask generation on an input image or directory of images" - ) - ) - - parser.add_argument( - "--input", - "-i", - type=str, - required=True, - help="Path to either a single input image or folder of images.", - ) - - parser.add_argument( - "--output", - "-o", - type=str, - required=True, - help="Path to the output directory.", - ) - - parser.add_argument( - "--upsampler", - type=str, - default="realesr-general-x4v3", - choices=[ - "srcnn", - "RealESRGAN_x2plus", - "RealESRGAN_x4plus", - "RealESRNet_x4plus", - "realesr-general-x4v3", - "RealESRGAN_x4plus_anime_6B", - "realesr-animevideov3", - ], - help="The type of upsampler model to load", - ) - - parser.add_argument( - "--face-enhancer", - type=str, - choices=["GFPGANv1.3", "GFPGANv1.4", "RestoreFormer"], - help="The type of face enhancer model to load", - ) - - parser.add_argument( - "--scale", - type=float, - default=2, - choices=[1.5, 2, 2.5, 3, 3.5, 4], - help="scaling factor", - ) - parser.add_argument( - "--device", type=str, default="cuda", help="The device to run upsampling on." - ) - args = parser.parse_args() - main(args) diff --git a/spaces/dragonSwing/wav2vec2-vi-asr/README.md b/spaces/dragonSwing/wav2vec2-vi-asr/README.md deleted file mode 100644 index 7ebde6d8ea29997ca3dd0a70e6e22289fb4b38b5..0000000000000000000000000000000000000000 --- a/spaces/dragonSwing/wav2vec2-vi-asr/README.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -title: Wav2vec2 Vi Asr -emoji: 🏢 -colorFrom: purple -colorTo: pink -sdk: gradio -app_file: app.py -pinned: false ---- - -# Configuration - -`title`: _string_ -Display title for the Space - -`emoji`: _string_ -Space emoji (emoji-only character allowed) - -`colorFrom`: _string_ -Color for Thumbnail gradient (red, yellow, green, blue, indigo, purple, pink, gray) - -`colorTo`: _string_ -Color for Thumbnail gradient (red, yellow, green, blue, indigo, purple, pink, gray) - -`sdk`: _string_ -Can be either `gradio` or `streamlit` - -`sdk_version` : _string_ -Only applicable for `streamlit` SDK. -See [doc](https://hf.co/docs/hub/spaces) for more info on supported versions. - -`app_file`: _string_ -Path to your main application file (which contains either `gradio` or `streamlit` Python code). -Path is relative to the root of the repository. - -`pinned`: _boolean_ -Whether the Space stays on top of your list. diff --git a/spaces/duycse1603/math2tex/ScanSSD/gtdb/remove_rect.py b/spaces/duycse1603/math2tex/ScanSSD/gtdb/remove_rect.py deleted file mode 100644 index 6be67c8c8afeea0505f3392964712e00ba6259da..0000000000000000000000000000000000000000 --- a/spaces/duycse1603/math2tex/ScanSSD/gtdb/remove_rect.py +++ /dev/null @@ -1,96 +0,0 @@ -# Author: Parag Mali -# This file contains functions to remove rectangles -# that are inside other rectangles - -import sys -sys.path.extend(['/home/psm2208/code', '/home/psm2208/code']) -import cv2 -import os -import csv -import numpy as np -import utils.visualize as visualize -from multiprocessing import Pool -from cv2.dnn import NMSBoxes -from scipy.ndimage.measurements import label -import scipy.ndimage as ndimage -import copy -import shutil -from gtdb import box_utils - -def remove(args): - - try: - output_dir, pdf_name, page_num, page_math = args - - valid = [True] * page_math.shape[0] - - for i, m1 in enumerate(page_math): - for j, m2 in enumerate(page_math): - if i!=j and box_utils.check_inside(m1, m2): - valid[i] = False - break - - final_math = page_math[valid] - - math_file = open(os.path.join(output_dir, pdf_name + ".csv"), 'a') - writer = csv.writer(math_file, delimiter=",") - - for math_region in final_math: - math_region = math_region.tolist() - math_region.insert(0, page_num) - writer.writerow(math_region) - - print("Saved ", os.path.join(output_dir, pdf_name + ".csv"), " > ", page_num) - print('Before ', len(page_math), '--> after ', len(final_math)) - - except: - print("Exception while processing ", pdf_name, " ", page_num, " ", sys.exc_info()[0]) - - -def remove_rect(filename, math_dir, output_dir): - - if os.path.exists(output_dir): - shutil.rmtree(output_dir) - - if not os.path.exists(output_dir): - os.mkdir(output_dir) - - pages_list = [] - pdf_names = open(filename, 'r') - - for pdf_name in pdf_names: - print('Processing-1', pdf_name) - pdf_name = pdf_name.strip() - - if pdf_name != '': - math_file = os.path.join(math_dir, pdf_name + ".csv") - math_regions = np.genfromtxt(math_file, delimiter=',', dtype=float) - - pages = np.unique(math_regions[:, 0]) - - for page_num in pages: - - page_math = math_regions[np.where(math_regions[:,0]==page_num)] - page_math = page_math[:,1:] - pages_list.append([output_dir, pdf_name, page_num, page_math]) - - pdf_names.close() - - pool = Pool(processes=4) - pool.map(remove, pages_list) - pool.close() - pool.join() - - -if __name__ == "__main__": - home_data = "/home/psm2208/data/GTDB/" - home_eval = "/home/psm2208/code/eval/" - home_images = "/home/psm2208/data/GTDB/images/" - home_anno = "/home/psm2208/data/GTDB/annotations/" - - math_dir = "/home/psm2208/code/eval/tt_samsung" #"/home/psm2208/data/GTDB/relations_train_adjust_csv" - output_dir = "/home/psm2208/code/eval/tt_samsung_removed" #"/home/psm2208/data/GTDB/relations_train_adjust_csv_removed" - - type = sys.argv[1] - - remove_rect(home_data + type, math_dir, output_dir) diff --git a/spaces/eIysia/VITS-Umamusume-voice-synthesizer/text/cleaners.py b/spaces/eIysia/VITS-Umamusume-voice-synthesizer/text/cleaners.py deleted file mode 100644 index c80e113b2b81a66134800dbdaa29c7d96a0152a7..0000000000000000000000000000000000000000 --- a/spaces/eIysia/VITS-Umamusume-voice-synthesizer/text/cleaners.py +++ /dev/null @@ -1,146 +0,0 @@ -import re - - -def japanese_cleaners(text): - from text.japanese import japanese_to_romaji_with_accent - text = japanese_to_romaji_with_accent(text) - text = re.sub(r'([A-Za-z])$', r'\1.', text) - return text - - -def japanese_cleaners2(text): - return japanese_cleaners(text).replace('ts', 'ʦ').replace('...', '…') - - -def korean_cleaners(text): - '''Pipeline for Korean text''' - from text.korean import latin_to_hangul, number_to_hangul, divide_hangul - text = latin_to_hangul(text) - text = number_to_hangul(text) - text = divide_hangul(text) - text = re.sub(r'([\u3131-\u3163])$', r'\1.', text) - return text - - -def chinese_cleaners(text): - '''Pipeline for Chinese text''' - from text.mandarin import number_to_chinese, chinese_to_bopomofo, latin_to_bopomofo - text = number_to_chinese(text) - text = chinese_to_bopomofo(text) - text = latin_to_bopomofo(text) - text = re.sub(r'([ˉˊˇˋ˙])$', r'\1。', text) - return text - - -def zh_ja_mixture_cleaners(text): - from text.mandarin import chinese_to_romaji - from text.japanese import japanese_to_romaji_with_accent - text = re.sub(r'\[ZH\](.*?)\[ZH\]', - lambda x: chinese_to_romaji(x.group(1))+' ', text) - text = re.sub(r'\[JA\](.*?)\[JA\]', lambda x: japanese_to_romaji_with_accent( - x.group(1)).replace('ts', 'ʦ').replace('u', 'ɯ').replace('...', '…')+' ', text) - text = re.sub(r'\s+$', '', text) - text = re.sub(r'([^\.,!\?\-…~])$', r'\1.', text) - return text - - -def sanskrit_cleaners(text): - text = text.replace('॥', '।').replace('ॐ', 'ओम्') - if text[-1] != '।': - text += ' ।' - return text - - -def cjks_cleaners(text): - from text.mandarin import chinese_to_lazy_ipa - from text.japanese import japanese_to_ipa - from text.korean import korean_to_lazy_ipa - from text.sanskrit import devanagari_to_ipa - from text.english import english_to_lazy_ipa - text = re.sub(r'\[ZH\](.*?)\[ZH\]', - lambda x: chinese_to_lazy_ipa(x.group(1))+' ', text) - text = re.sub(r'\[JA\](.*?)\[JA\]', - lambda x: japanese_to_ipa(x.group(1))+' ', text) - text = re.sub(r'\[KO\](.*?)\[KO\]', - lambda x: korean_to_lazy_ipa(x.group(1))+' ', text) - text = re.sub(r'\[SA\](.*?)\[SA\]', - lambda x: devanagari_to_ipa(x.group(1))+' ', text) - text = re.sub(r'\[EN\](.*?)\[EN\]', - lambda x: english_to_lazy_ipa(x.group(1))+' ', text) - text = re.sub(r'\s+$', '', text) - text = re.sub(r'([^\.,!\?\-…~])$', r'\1.', text) - return text - - -def cjke_cleaners(text): - from text.mandarin import chinese_to_lazy_ipa - from text.japanese import japanese_to_ipa - from text.korean import korean_to_ipa - from text.english import english_to_ipa2 - text = re.sub(r'\[ZH\](.*?)\[ZH\]', lambda x: chinese_to_lazy_ipa(x.group(1)).replace( - 'ʧ', 'tʃ').replace('ʦ', 'ts').replace('ɥan', 'ɥæn')+' ', text) - text = re.sub(r'\[JA\](.*?)\[JA\]', lambda x: japanese_to_ipa(x.group(1)).replace('ʧ', 'tʃ').replace( - 'ʦ', 'ts').replace('ɥan', 'ɥæn').replace('ʥ', 'dz')+' ', text) - text = re.sub(r'\[KO\](.*?)\[KO\]', - lambda x: korean_to_ipa(x.group(1))+' ', text) - text = re.sub(r'\[EN\](.*?)\[EN\]', lambda x: english_to_ipa2(x.group(1)).replace('ɑ', 'a').replace( - 'ɔ', 'o').replace('ɛ', 'e').replace('ɪ', 'i').replace('ʊ', 'u')+' ', text) - text = re.sub(r'\s+$', '', text) - text = re.sub(r'([^\.,!\?\-…~])$', r'\1.', text) - return text - - -def cjke_cleaners2(text): - from text.mandarin import chinese_to_ipa - from text.japanese import japanese_to_ipa2 - from text.korean import korean_to_ipa - from text.english import english_to_ipa2 - text = re.sub(r'\[ZH\](.*?)\[ZH\]', - lambda x: chinese_to_ipa(x.group(1))+' ', text) - text = re.sub(r'\[JA\](.*?)\[JA\]', - lambda x: japanese_to_ipa2(x.group(1))+' ', text) - text = re.sub(r'\[KO\](.*?)\[KO\]', - lambda x: korean_to_ipa(x.group(1))+' ', text) - text = re.sub(r'\[EN\](.*?)\[EN\]', - lambda x: english_to_ipa2(x.group(1))+' ', text) - text = re.sub(r'\s+$', '', text) - text = re.sub(r'([^\.,!\?\-…~])$', r'\1.', text) - return text - - -def thai_cleaners(text): - from text.thai import num_to_thai, latin_to_thai - text = num_to_thai(text) - text = latin_to_thai(text) - return text - - -def shanghainese_cleaners(text): - from text.shanghainese import shanghainese_to_ipa - text = shanghainese_to_ipa(text) - text = re.sub(r'([^\.,!\?\-…~])$', r'\1.', text) - return text - - -def chinese_dialect_cleaners(text): - from text.mandarin import chinese_to_ipa2 - from text.japanese import japanese_to_ipa3 - from text.shanghainese import shanghainese_to_ipa - from text.cantonese import cantonese_to_ipa - from text.english import english_to_lazy_ipa2 - from text.ngu_dialect import ngu_dialect_to_ipa - text = re.sub(r'\[ZH\](.*?)\[ZH\]', - lambda x: chinese_to_ipa2(x.group(1))+' ', text) - text = re.sub(r'\[JA\](.*?)\[JA\]', - lambda x: japanese_to_ipa3(x.group(1)).replace('Q', 'ʔ')+' ', text) - text = re.sub(r'\[SH\](.*?)\[SH\]', lambda x: shanghainese_to_ipa(x.group(1)).replace('1', '˥˧').replace('5', - '˧˧˦').replace('6', '˩˩˧').replace('7', '˥').replace('8', '˩˨').replace('ᴀ', 'ɐ').replace('ᴇ', 'e')+' ', text) - text = re.sub(r'\[GD\](.*?)\[GD\]', - lambda x: cantonese_to_ipa(x.group(1))+' ', text) - text = re.sub(r'\[EN\](.*?)\[EN\]', - lambda x: english_to_lazy_ipa2(x.group(1))+' ', text) - text = re.sub(r'\[([A-Z]{2})\](.*?)\[\1\]', lambda x: ngu_dialect_to_ipa(x.group(2), x.group( - 1)).replace('ʣ', 'dz').replace('ʥ', 'dʑ').replace('ʦ', 'ts').replace('ʨ', 'tɕ')+' ', text) - text = re.sub(r'\s+$', '', text) - text = re.sub(r'([^\.,!\?\-…~])$', r'\1.', text) - return text diff --git a/spaces/egan/clothing-attribute-recognition/README.md b/spaces/egan/clothing-attribute-recognition/README.md deleted file mode 100644 index 943345a56d2c05ca9b4d626276206db9f4aa21d9..0000000000000000000000000000000000000000 --- a/spaces/egan/clothing-attribute-recognition/README.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -title: Clothing Attribute Recognition -emoji: 🐨 -colorFrom: blue -colorTo: green -sdk: gradio -sdk_version: 3.4 -app_file: app.py -pinned: false -license: mit ---- - -Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference diff --git a/spaces/erc/entity-referring-classifier/README.md b/spaces/erc/entity-referring-classifier/README.md deleted file mode 100644 index b51237d182cb5e7adc1ee1110fd2fc062da87cbe..0000000000000000000000000000000000000000 --- a/spaces/erc/entity-referring-classifier/README.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -title: Entity Referring Classifier -emoji: 🚀 -colorFrom: blue -colorTo: yellow -sdk: streamlit -app_file: app.py -pinned: true ---- - -# Configuration - -`title`: _string_ -Display title for the Space - -`emoji`: _string_ -Space emoji (emoji-only character allowed) - -`colorFrom`: _string_ -Color for Thumbnail gradient (red, yellow, green, blue, indigo, purple, pink, gray) - -`colorTo`: _string_ -Color for Thumbnail gradient (red, yellow, green, blue, indigo, purple, pink, gray) - -`sdk`: _string_ -Can be either `gradio` or `streamlit` - -`sdk_version` : _string_ -Only applicable for `streamlit` SDK. -See [doc](https://hf.co/docs/hub/spaces) for more info on supported versions. - -`app_file`: _string_ -Path to your main application file (which contains either `gradio` or `streamlit` Python code). -Path is relative to the root of the repository. - -`pinned`: _boolean_ -Whether the Space stays on top of your list. diff --git a/spaces/facebook/MusicGen/audiocraft/modules/seanet.py b/spaces/facebook/MusicGen/audiocraft/modules/seanet.py deleted file mode 100644 index 3e5998e9153afb6e68ea410d565e00ea835db248..0000000000000000000000000000000000000000 --- a/spaces/facebook/MusicGen/audiocraft/modules/seanet.py +++ /dev/null @@ -1,258 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. -# -# This source code is licensed under the license found in the -# LICENSE file in the root directory of this source tree. - -import typing as tp - -import numpy as np -import torch.nn as nn - -from .conv import StreamableConv1d, StreamableConvTranspose1d -from .lstm import StreamableLSTM - - -class SEANetResnetBlock(nn.Module): - """Residual block from SEANet model. - - Args: - dim (int): Dimension of the input/output. - kernel_sizes (list): List of kernel sizes for the convolutions. - dilations (list): List of dilations for the convolutions. - activation (str): Activation function. - activation_params (dict): Parameters to provide to the activation function. - norm (str): Normalization method. - norm_params (dict): Parameters to provide to the underlying normalization used along with the convolution. - causal (bool): Whether to use fully causal convolution. - pad_mode (str): Padding mode for the convolutions. - compress (int): Reduced dimensionality in residual branches (from Demucs v3). - true_skip (bool): Whether to use true skip connection or a simple - (streamable) convolution as the skip connection. - """ - def __init__(self, dim: int, kernel_sizes: tp.List[int] = [3, 1], dilations: tp.List[int] = [1, 1], - activation: str = 'ELU', activation_params: dict = {'alpha': 1.0}, - norm: str = 'none', norm_params: tp.Dict[str, tp.Any] = {}, causal: bool = False, - pad_mode: str = 'reflect', compress: int = 2, true_skip: bool = True): - super().__init__() - assert len(kernel_sizes) == len(dilations), 'Number of kernel sizes should match number of dilations' - act = getattr(nn, activation) - hidden = dim // compress - block = [] - for i, (kernel_size, dilation) in enumerate(zip(kernel_sizes, dilations)): - in_chs = dim if i == 0 else hidden - out_chs = dim if i == len(kernel_sizes) - 1 else hidden - block += [ - act(**activation_params), - StreamableConv1d(in_chs, out_chs, kernel_size=kernel_size, dilation=dilation, - norm=norm, norm_kwargs=norm_params, - causal=causal, pad_mode=pad_mode), - ] - self.block = nn.Sequential(*block) - self.shortcut: nn.Module - if true_skip: - self.shortcut = nn.Identity() - else: - self.shortcut = StreamableConv1d(dim, dim, kernel_size=1, norm=norm, norm_kwargs=norm_params, - causal=causal, pad_mode=pad_mode) - - def forward(self, x): - return self.shortcut(x) + self.block(x) - - -class SEANetEncoder(nn.Module): - """SEANet encoder. - - Args: - channels (int): Audio channels. - dimension (int): Intermediate representation dimension. - n_filters (int): Base width for the model. - n_residual_layers (int): nb of residual layers. - ratios (Sequence[int]): kernel size and stride ratios. The encoder uses downsampling ratios instead of - upsampling ratios, hence it will use the ratios in the reverse order to the ones specified here - that must match the decoder order. We use the decoder order as some models may only employ the decoder. - activation (str): Activation function. - activation_params (dict): Parameters to provide to the activation function. - norm (str): Normalization method. - norm_params (dict): Parameters to provide to the underlying normalization used along with the convolution. - kernel_size (int): Kernel size for the initial convolution. - last_kernel_size (int): Kernel size for the initial convolution. - residual_kernel_size (int): Kernel size for the residual layers. - dilation_base (int): How much to increase the dilation with each layer. - causal (bool): Whether to use fully causal convolution. - pad_mode (str): Padding mode for the convolutions. - true_skip (bool): Whether to use true skip connection or a simple - (streamable) convolution as the skip connection in the residual network blocks. - compress (int): Reduced dimensionality in residual branches (from Demucs v3). - lstm (int): Number of LSTM layers at the end of the encoder. - disable_norm_outer_blocks (int): Number of blocks for which we don't apply norm. - For the encoder, it corresponds to the N first blocks. - """ - def __init__(self, channels: int = 1, dimension: int = 128, n_filters: int = 32, n_residual_layers: int = 3, - ratios: tp.List[int] = [8, 5, 4, 2], activation: str = 'ELU', activation_params: dict = {'alpha': 1.0}, - norm: str = 'none', norm_params: tp.Dict[str, tp.Any] = {}, kernel_size: int = 7, - last_kernel_size: int = 7, residual_kernel_size: int = 3, dilation_base: int = 2, causal: bool = False, - pad_mode: str = 'reflect', true_skip: bool = True, compress: int = 2, lstm: int = 0, - disable_norm_outer_blocks: int = 0): - super().__init__() - self.channels = channels - self.dimension = dimension - self.n_filters = n_filters - self.ratios = list(reversed(ratios)) - del ratios - self.n_residual_layers = n_residual_layers - self.hop_length = np.prod(self.ratios) - self.n_blocks = len(self.ratios) + 2 # first and last conv + residual blocks - self.disable_norm_outer_blocks = disable_norm_outer_blocks - assert self.disable_norm_outer_blocks >= 0 and self.disable_norm_outer_blocks <= self.n_blocks, \ - "Number of blocks for which to disable norm is invalid." \ - "It should be lower or equal to the actual number of blocks in the network and greater or equal to 0." - - act = getattr(nn, activation) - mult = 1 - model: tp.List[nn.Module] = [ - StreamableConv1d(channels, mult * n_filters, kernel_size, - norm='none' if self.disable_norm_outer_blocks >= 1 else norm, - norm_kwargs=norm_params, causal=causal, pad_mode=pad_mode) - ] - # Downsample to raw audio scale - for i, ratio in enumerate(self.ratios): - block_norm = 'none' if self.disable_norm_outer_blocks >= i + 2 else norm - # Add residual layers - for j in range(n_residual_layers): - model += [ - SEANetResnetBlock(mult * n_filters, kernel_sizes=[residual_kernel_size, 1], - dilations=[dilation_base ** j, 1], - norm=block_norm, norm_params=norm_params, - activation=activation, activation_params=activation_params, - causal=causal, pad_mode=pad_mode, compress=compress, true_skip=true_skip)] - - # Add downsampling layers - model += [ - act(**activation_params), - StreamableConv1d(mult * n_filters, mult * n_filters * 2, - kernel_size=ratio * 2, stride=ratio, - norm=block_norm, norm_kwargs=norm_params, - causal=causal, pad_mode=pad_mode), - ] - mult *= 2 - - if lstm: - model += [StreamableLSTM(mult * n_filters, num_layers=lstm)] - - model += [ - act(**activation_params), - StreamableConv1d(mult * n_filters, dimension, last_kernel_size, - norm='none' if self.disable_norm_outer_blocks == self.n_blocks else norm, - norm_kwargs=norm_params, causal=causal, pad_mode=pad_mode) - ] - - self.model = nn.Sequential(*model) - - def forward(self, x): - return self.model(x) - - -class SEANetDecoder(nn.Module): - """SEANet decoder. - - Args: - channels (int): Audio channels. - dimension (int): Intermediate representation dimension. - n_filters (int): Base width for the model. - n_residual_layers (int): nb of residual layers. - ratios (Sequence[int]): kernel size and stride ratios. - activation (str): Activation function. - activation_params (dict): Parameters to provide to the activation function. - final_activation (str): Final activation function after all convolutions. - final_activation_params (dict): Parameters to provide to the activation function. - norm (str): Normalization method. - norm_params (dict): Parameters to provide to the underlying normalization used along with the convolution. - kernel_size (int): Kernel size for the initial convolution. - last_kernel_size (int): Kernel size for the initial convolution. - residual_kernel_size (int): Kernel size for the residual layers. - dilation_base (int): How much to increase the dilation with each layer. - causal (bool): Whether to use fully causal convolution. - pad_mode (str): Padding mode for the convolutions. - true_skip (bool): Whether to use true skip connection or a simple. - (streamable) convolution as the skip connection in the residual network blocks. - compress (int): Reduced dimensionality in residual branches (from Demucs v3). - lstm (int): Number of LSTM layers at the end of the encoder. - disable_norm_outer_blocks (int): Number of blocks for which we don't apply norm. - For the decoder, it corresponds to the N last blocks. - trim_right_ratio (float): Ratio for trimming at the right of the transposed convolution under the causal setup. - If equal to 1.0, it means that all the trimming is done at the right. - """ - def __init__(self, channels: int = 1, dimension: int = 128, n_filters: int = 32, n_residual_layers: int = 3, - ratios: tp.List[int] = [8, 5, 4, 2], activation: str = 'ELU', activation_params: dict = {'alpha': 1.0}, - final_activation: tp.Optional[str] = None, final_activation_params: tp.Optional[dict] = None, - norm: str = 'none', norm_params: tp.Dict[str, tp.Any] = {}, kernel_size: int = 7, - last_kernel_size: int = 7, residual_kernel_size: int = 3, dilation_base: int = 2, causal: bool = False, - pad_mode: str = 'reflect', true_skip: bool = True, compress: int = 2, lstm: int = 0, - disable_norm_outer_blocks: int = 0, trim_right_ratio: float = 1.0): - super().__init__() - self.dimension = dimension - self.channels = channels - self.n_filters = n_filters - self.ratios = ratios - del ratios - self.n_residual_layers = n_residual_layers - self.hop_length = np.prod(self.ratios) - self.n_blocks = len(self.ratios) + 2 # first and last conv + residual blocks - self.disable_norm_outer_blocks = disable_norm_outer_blocks - assert self.disable_norm_outer_blocks >= 0 and self.disable_norm_outer_blocks <= self.n_blocks, \ - "Number of blocks for which to disable norm is invalid." \ - "It should be lower or equal to the actual number of blocks in the network and greater or equal to 0." - - act = getattr(nn, activation) - mult = int(2 ** len(self.ratios)) - model: tp.List[nn.Module] = [ - StreamableConv1d(dimension, mult * n_filters, kernel_size, - norm='none' if self.disable_norm_outer_blocks == self.n_blocks else norm, - norm_kwargs=norm_params, causal=causal, pad_mode=pad_mode) - ] - - if lstm: - model += [StreamableLSTM(mult * n_filters, num_layers=lstm)] - - # Upsample to raw audio scale - for i, ratio in enumerate(self.ratios): - block_norm = 'none' if self.disable_norm_outer_blocks >= self.n_blocks - (i + 1) else norm - # Add upsampling layers - model += [ - act(**activation_params), - StreamableConvTranspose1d(mult * n_filters, mult * n_filters // 2, - kernel_size=ratio * 2, stride=ratio, - norm=block_norm, norm_kwargs=norm_params, - causal=causal, trim_right_ratio=trim_right_ratio), - ] - # Add residual layers - for j in range(n_residual_layers): - model += [ - SEANetResnetBlock(mult * n_filters // 2, kernel_sizes=[residual_kernel_size, 1], - dilations=[dilation_base ** j, 1], - activation=activation, activation_params=activation_params, - norm=block_norm, norm_params=norm_params, causal=causal, - pad_mode=pad_mode, compress=compress, true_skip=true_skip)] - - mult //= 2 - - # Add final layers - model += [ - act(**activation_params), - StreamableConv1d(n_filters, channels, last_kernel_size, - norm='none' if self.disable_norm_outer_blocks >= 1 else norm, - norm_kwargs=norm_params, causal=causal, pad_mode=pad_mode) - ] - # Add optional final activation to decoder (eg. tanh) - if final_activation is not None: - final_act = getattr(nn, final_activation) - final_activation_params = final_activation_params or {} - model += [ - final_act(**final_activation_params) - ] - self.model = nn.Sequential(*model) - - def forward(self, z): - y = self.model(z) - return y diff --git a/spaces/falterWliame/Face_Mask_Detection/Formulaire-technique-gieck-pdf.md b/spaces/falterWliame/Face_Mask_Detection/Formulaire-technique-gieck-pdf.md deleted file mode 100644 index 804adaeaf7fff1e2dafb79ab34f6feba2a8263f9..0000000000000000000000000000000000000000 --- a/spaces/falterWliame/Face_Mask_Detection/Formulaire-technique-gieck-pdf.md +++ /dev/null @@ -1,6 +0,0 @@ -

        formulaire-technique-gieck-pdf


        Download Ziphttps://urlca.com/2uDd1u



        - -PDF Télécharger by Kurt Smith, Title: Cython. Use Cython s ... Kurt Gieck Reiner Gieck Gaston Bendit Formulaire Technique.pdf · Kurt Jaegers ... 1fdad05405
        -
        -
        -

        diff --git a/spaces/falterWliame/Face_Mask_Detection/NomadFactoryMagmav101VSTRTASWINx86x64CrackFiXRePaCksetup[VERIFIED] Free.md b/spaces/falterWliame/Face_Mask_Detection/NomadFactoryMagmav101VSTRTASWINx86x64CrackFiXRePaCksetup[VERIFIED] Free.md deleted file mode 100644 index d042c9ac75d810c667af409b18515bdd8816a215..0000000000000000000000000000000000000000 --- a/spaces/falterWliame/Face_Mask_Detection/NomadFactoryMagmav101VSTRTASWINx86x64CrackFiXRePaCksetup[VERIFIED] Free.md +++ /dev/null @@ -1,6 +0,0 @@ -

        NomadFactoryMagmav101VSTRTASWINx86x64CrackFiXRePaCksetupfree


        DOWNLOAD ❤❤❤ https://urlca.com/2uDdZK



        - - d5da3c52bf
        -
        -
        -

        diff --git a/spaces/fanzhuyu/Code-Interpreter/app.py b/spaces/fanzhuyu/Code-Interpreter/app.py deleted file mode 100644 index e2bf50870af55503550cb061ff4b7917dc0184c1..0000000000000000000000000000000000000000 --- a/spaces/fanzhuyu/Code-Interpreter/app.py +++ /dev/null @@ -1,197 +0,0 @@ -from response_parser import * -import gradio as gr - - -def initialization(state_dict: Dict) -> None: - if not os.path.exists('cache'): - os.mkdir('cache') - if state_dict["bot_backend"] is None: - state_dict["bot_backend"] = BotBackend() - if 'OPENAI_API_KEY' in os.environ: - del os.environ['OPENAI_API_KEY'] - - -def get_bot_backend(state_dict: Dict) -> BotBackend: - return state_dict["bot_backend"] - - -def switch_to_gpt4(state_dict: Dict, whether_switch: bool) -> None: - bot_backend = get_bot_backend(state_dict) - if whether_switch: - bot_backend.update_gpt_model_choice("GPT-4") - else: - bot_backend.update_gpt_model_choice("GPT-3.5") - - -def add_text(state_dict: Dict, history: List, text: str) -> Tuple[List, Dict]: - bot_backend = get_bot_backend(state_dict) - bot_backend.add_text_message(user_text=text) - - history = history + [(text, None)] - - return history, gr.update(value="", interactive=False) - - -def add_file(state_dict: Dict, history: List, file) -> List: - bot_backend = get_bot_backend(state_dict) - path = file.name - filename = os.path.basename(path) - - bot_msg = [f'📁[{filename}]', None] - history.append(bot_msg) - - bot_backend.add_file_message(path=path, bot_msg=bot_msg) - - return history - - -def undo_upload_file(state_dict: Dict, history: List) -> Tuple[List, Dict]: - bot_backend = get_bot_backend(state_dict) - bot_msg = bot_backend.revoke_file() - - if bot_msg is None: - return history, gr.Button.update(interactive=False) - - else: - assert history[-1] == bot_msg - del history[-1] - if bot_backend.revocable_files: - return history, gr.Button.update(interactive=True) - else: - return history, gr.Button.update(interactive=False) - - -def refresh_file_display(state_dict: Dict) -> List[str]: - bot_backend = get_bot_backend(state_dict) - work_dir = bot_backend.jupyter_work_dir - filenames = os.listdir(work_dir) - paths = [] - for filename in filenames: - paths.append( - os.path.join(work_dir, filename) - ) - return paths - - -def restart_ui(history: List) -> Tuple[List, Dict, Dict, Dict, Dict]: - history.clear() - return ( - history, - gr.Textbox.update(value="", interactive=False), - gr.Button.update(interactive=False), - gr.Button.update(interactive=False), - gr.Button.update(interactive=False) - ) - - -def restart_bot_backend(state_dict: Dict) -> None: - bot_backend = get_bot_backend(state_dict) - bot_backend.restart() - - -def bot(state_dict: Dict, history: List) -> List: - bot_backend = get_bot_backend(state_dict) - - while bot_backend.finish_reason in ('new_input', 'function_call'): - if history[-1][0] is None: - history.append( - [None, ""] - ) - else: - history[-1][1] = "" - - response = chat_completion(bot_backend=bot_backend) - for chunk in response: - history, weather_exit = parse_response( - chunk=chunk, - history=history, - bot_backend=bot_backend - ) - yield history - if weather_exit: - exit(-1) - - yield history - - -if __name__ == '__main__': - config = get_config() - with gr.Blocks(theme=gr.themes.Base()) as block: - """ - Reference: https://www.gradio.app/guides/creating-a-chatbot-fast - """ - # UI components - state = gr.State(value={"bot_backend": None}) - with gr.Tab("Chat"): - chatbot = gr.Chatbot([], elem_id="chatbot", label="Local Code Interpreter", height=750) - with gr.Row(): - with gr.Column(scale=0.85): - text_box = gr.Textbox( - show_label=False, - placeholder="Enter text and press enter, or upload a file", - container=False - ) - with gr.Column(scale=0.15, min_width=0): - file_upload_button = gr.UploadButton("📁", file_types=['file']) - with gr.Row(equal_height=True): - with gr.Column(scale=0.7): - check_box = gr.Checkbox(label="Use GPT-4", interactive=config['model']['GPT-4']['available']) - check_box.change(fn=switch_to_gpt4, inputs=[state, check_box]) - with gr.Column(scale=0.15, min_width=0): - restart_button = gr.Button(value='🔄 Restart') - with gr.Column(scale=0.15, min_width=0): - undo_file_button = gr.Button(value="↩️Undo upload file", interactive=False) - with gr.Tab("Files"): - file_output = gr.Files() - gr.Markdown( - ''' -
        - - -
        - Open source on GitHub -
        -
        - ''' - ) - - - # Components function binding - txt_msg = text_box.submit(add_text, [state, chatbot, text_box], [chatbot, text_box], queue=False).then( - bot, [state, chatbot], chatbot - ) - txt_msg.then(fn=refresh_file_display, inputs=[state], outputs=[file_output]) - txt_msg.then(lambda: gr.update(interactive=True), None, [text_box], queue=False) - txt_msg.then(lambda: gr.Button.update(interactive=False), None, [undo_file_button], queue=False) - - file_msg = file_upload_button.upload( - add_file, [state, chatbot, file_upload_button], [chatbot], queue=False - ).then( - bot, [state, chatbot], chatbot - ) - file_msg.then(lambda: gr.Button.update(interactive=True), None, [undo_file_button], queue=False) - file_msg.then(fn=refresh_file_display, inputs=[state], outputs=[file_output]) - - undo_file_button.click( - fn=undo_upload_file, inputs=[state, chatbot], outputs=[chatbot, undo_file_button] - ).then( - fn=refresh_file_display, inputs=[state], outputs=[file_output] - ) - - restart_button.click( - fn=restart_ui, inputs=[chatbot], - outputs=[chatbot, text_box, restart_button, file_upload_button, undo_file_button] - ).then( - fn=restart_bot_backend, inputs=[state], queue=False - ).then( - fn=refresh_file_display, inputs=[state], outputs=[file_output] - ).then( - fn=lambda: (gr.Textbox.update(interactive=True), gr.Button.update(interactive=True), - gr.Button.update(interactive=True)), - inputs=None, outputs=[text_box, restart_button, file_upload_button], queue=False - ) - - block.load(fn=initialization, inputs=[state]) - - block.queue() - block.launch(inbrowser=True) diff --git a/spaces/fatiXbelha/sd/Download Summertime Saga and Enjoy the Hottest Sim Game Ever.md b/spaces/fatiXbelha/sd/Download Summertime Saga and Enjoy the Hottest Sim Game Ever.md deleted file mode 100644 index 7828017444fcd4e5bb7947d17728a818b8ba725f..0000000000000000000000000000000000000000 --- a/spaces/fatiXbelha/sd/Download Summertime Saga and Enjoy the Hottest Sim Game Ever.md +++ /dev/null @@ -1,82 +0,0 @@ - -

        How to Download Summertime Saga

        -

        Summertime Saga is a popular dating simulation game that features a rich story, diverse characters, and multiple choices. If you are looking for a fun and engaging game that will keep you entertained for hours, you might want to give Summertime Saga a try. In this article, we will show you how to download Summertime Saga for Windows and Android devices.

        -

        to download summertime saga


        Download Zip ····· https://urllie.com/2uNBP8



        -

        What is Summertime Saga?

        -

        Summertime Saga is a game that follows the life of a young man who is trying to cope with the death of his father and the mysteries surrounding it. Along the way, he will meet various women who will help him or hinder him in his quest. The game has over 70 characters, 20 locations, and 30 mini-games. You can customize your character's appearance, stats, and relationships. You can also explore different storylines and endings depending on your choices.

        -

        Why Download Summertime Saga?

        -

        Summertime Saga is not just a game, it is an experience. The game has a lot of content and features that will keep you hooked for a long time. Some of the benefits of playing Summertime Saga are:

        -
          -
        • You can enjoy a captivating story that is full of twists and turns.
        • -
        • You can interact with realistic and diverse characters that have their own personalities, backgrounds, and secrets.
        • -
        • You can experience different genres and themes, such as romance, comedy, drama, mystery, horror, and more.
        • -
        • You can have fun with various mini-games that test your skills and knowledge.
        • -
        • You can support the developers who are constantly updating and improving the game.
        • -
        -

        Summertime Saga is also one of the most popular games in its genre, with millions of downloads and fans worldwide. You can join the community and share your opinions, feedback, tips, and fan art with other players.

        -

        How to Download Summertime Saga for Windows

        -

        If you want to play Summertime Saga on your Windows PC, you will need to follow these steps:

        -

        How to download summertime saga on android
        -Summertime saga latest version download for pc
        -Summertime saga apk download free full version
        -Summertime saga walkthrough download pdf
        -Summertime saga mod apk download unlimited money
        -Summertime saga download for ios
        -Summertime saga cheats download
        -Summertime saga save file download
        -Summertime saga download link
        -Summertime saga update download
        -Summertime saga download size
        -Summertime saga offline download
        -Summertime saga download for mac
        -Summertime saga download for windows 10
        -Summertime saga download for laptop
        -Summertime saga download highly compressed
        -Summertime saga download without verification
        -Summertime saga download in parts
        -Summertime saga download for chromebook
        -Summertime saga download mega
        -Summertime saga download uptodown
        -Summertime saga download rexdl
        -Summertime saga download revdl
        -Summertime saga download apkpure
        -Summertime saga download apk mirror
        -Summertime saga download apk mod menu
        -Summertime saga download apk obb
        -Summertime saga download apk 2023
        -Summertime saga download apk 0.21.1
        -Summertime saga download apk 0.20.9
        -Summertime saga download pc 32 bit
        -Summertime saga download pc 64 bit
        -Summertime saga download pc windows 7
        -Summertime saga download pc windows 8.1
        -Summertime saga download pc windows xp
        -Summertime saga download pc gamejolt
        -Summertime saga download pc compressed
        -Summertime saga download pc google drive
        -Summertime saga download pc mediafire
        -Summertime saga download pc mega.nz

        -

        Step 1: Visit the official website

        -

        The first thing you need to do is to go to the official website of Summertime Saga at https://summertimesaga.com/. This is where you can find all the information and updates about the game.

        -

        Step 2: Choose the Windows version

        -

        On the homepage, you will see a button that says "Download Now". Click on it and you will be taken to a page where you can choose your platform. Select "Windows" from the list of options.

        -

        Step 3: Download the game file

        -

        After choosing your platform, you will see a link that says "Download". Click on it and you will start downloading a ZIP file that contains the game. The file size is about 1 GB, so make sure you have enough space and a stable internet connection.

        -

        Step 4: Extract the game file

        -

        Once the download is complete, you will need to extract the ZIP -

        The last step is to install and run the game APK file that you downloaded. To do this, locate the file in your device's file manager and tap on it. You may see a prompt asking you to confirm the installation. Tap on "Install" and wait for the process to finish. Once the installation is done, you can tap on "Open" to launch the game. You can also find the game icon on your home screen or app drawer.

        -

        Conclusion

        -

        Summertime Saga is a game that will keep you entertained and engaged for hours. It has a lot of content and features that will appeal to different tastes and preferences. You can download Summertime Saga for Windows and Android devices by following the steps we have outlined in this article. We hope you enjoy playing the game and discovering its secrets.

        -

        FAQs

        -

        Q: Is Summertime Saga free to play?

        -

        A: Yes, Summertime Saga is free to play. You can download and play the game without paying anything. However, you can support the developers by donating or becoming a patron on their website.

        -

        Q: Is Summertime Saga safe to download?

        -

        A: Yes, Summertime Saga is safe to download. The game does not contain any viruses or malware. However, you should always download the game from the official website or trusted sources.

        -

        Q: Is Summertime Saga suitable for all ages?

        -

        A: No, Summertime Saga is not suitable for all ages. The game contains mature themes and content, such as nudity, sex, violence, and drugs. The game is intended for adults only and you should play it at your own discretion.

        -

        Q: How often is Summertime Saga updated?

        -

        A: Summertime Saga is updated regularly by the developers. They usually release a new version every few months, adding new content and features to the game. You can check their website or social media for the latest news and updates.

        -

        Q: How can I contact the developers of Summertime Saga?

        -

        A: You can contact the developers of Summertime Saga by visiting their website or social media pages. You can also join their Discord server or Reddit community to interact with them and other players.

        401be4b1e0
        -
        -
        \ No newline at end of file diff --git a/spaces/fb700/chatglm-fitness-RLHF/docs/waifu_plugin/waifu.css b/spaces/fb700/chatglm-fitness-RLHF/docs/waifu_plugin/waifu.css deleted file mode 100644 index 42639df0794e46fc58f66e2c772e2bf9ba605eed..0000000000000000000000000000000000000000 --- a/spaces/fb700/chatglm-fitness-RLHF/docs/waifu_plugin/waifu.css +++ /dev/null @@ -1,290 +0,0 @@ -.waifu { - position: fixed; - bottom: 0; - z-index: 1; - font-size: 0; - -webkit-transform: translateY(3px); - transform: translateY(3px); -} -.waifu:hover { - -webkit-transform: translateY(0); - transform: translateY(0); -} -.waifu-tips { - opacity: 0; - margin: -20px 20px; - padding: 5px 10px; - border: 1px solid rgba(224, 186, 140, 0.62); - border-radius: 12px; - background-color: rgba(236, 217, 188, 0.5); - box-shadow: 0 3px 15px 2px rgba(191, 158, 118, 0.2); - text-overflow: ellipsis; - overflow: hidden; - position: absolute; - animation-delay: 5s; - animation-duration: 50s; - animation-iteration-count: infinite; - animation-name: shake; - animation-timing-function: ease-in-out; -} -.waifu-tool { - display: none; - color: #aaa; - top: 50px; - right: 10px; - position: absolute; -} -.waifu:hover .waifu-tool { - display: block; -} -.waifu-tool span { - display: block; - cursor: pointer; - color: #5b6c7d; - transition: 0.2s; -} -.waifu-tool span:hover { - color: #34495e; -} -.waifu #live2d{ - position: relative; -} - -@keyframes shake { - 2% { - transform: translate(0.5px, -1.5px) rotate(-0.5deg); - } - - 4% { - transform: translate(0.5px, 1.5px) rotate(1.5deg); - } - - 6% { - transform: translate(1.5px, 1.5px) rotate(1.5deg); - } - - 8% { - transform: translate(2.5px, 1.5px) rotate(0.5deg); - } - - 10% { - transform: translate(0.5px, 2.5px) rotate(0.5deg); - } - - 12% { - transform: translate(1.5px, 1.5px) rotate(0.5deg); - } - - 14% { - transform: translate(0.5px, 0.5px) rotate(0.5deg); - } - - 16% { - transform: translate(-1.5px, -0.5px) rotate(1.5deg); - } - - 18% { - transform: translate(0.5px, 0.5px) rotate(1.5deg); - } - - 20% { - transform: translate(2.5px, 2.5px) rotate(1.5deg); - } - - 22% { - transform: translate(0.5px, -1.5px) rotate(1.5deg); - } - - 24% { - transform: translate(-1.5px, 1.5px) rotate(-0.5deg); - } - - 26% { - transform: translate(1.5px, 0.5px) rotate(1.5deg); - } - - 28% { - transform: translate(-0.5px, -0.5px) rotate(-0.5deg); - } - - 30% { - transform: translate(1.5px, -0.5px) rotate(-0.5deg); - } - - 32% { - transform: translate(2.5px, -1.5px) rotate(1.5deg); - } - - 34% { - transform: translate(2.5px, 2.5px) rotate(-0.5deg); - } - - 36% { - transform: translate(0.5px, -1.5px) rotate(0.5deg); - } - - 38% { - transform: translate(2.5px, -0.5px) rotate(-0.5deg); - } - - 40% { - transform: translate(-0.5px, 2.5px) rotate(0.5deg); - } - - 42% { - transform: translate(-1.5px, 2.5px) rotate(0.5deg); - } - - 44% { - transform: translate(-1.5px, 1.5px) rotate(0.5deg); - } - - 46% { - transform: translate(1.5px, -0.5px) rotate(-0.5deg); - } - - 48% { - transform: translate(2.5px, -0.5px) rotate(0.5deg); - } - - 50% { - transform: translate(-1.5px, 1.5px) rotate(0.5deg); - } - - 52% { - transform: translate(-0.5px, 1.5px) rotate(0.5deg); - } - - 54% { - transform: translate(-1.5px, 1.5px) rotate(0.5deg); - } - - 56% { - transform: translate(0.5px, 2.5px) rotate(1.5deg); - } - - 58% { - transform: translate(2.5px, 2.5px) rotate(0.5deg); - } - - 60% { - transform: translate(2.5px, -1.5px) rotate(1.5deg); - } - - 62% { - transform: translate(-1.5px, 0.5px) rotate(1.5deg); - } - - 64% { - transform: translate(-1.5px, 1.5px) rotate(1.5deg); - } - - 66% { - transform: translate(0.5px, 2.5px) rotate(1.5deg); - } - - 68% { - transform: translate(2.5px, -1.5px) rotate(1.5deg); - } - - 70% { - transform: translate(2.5px, 2.5px) rotate(0.5deg); - } - - 72% { - transform: translate(-0.5px, -1.5px) rotate(1.5deg); - } - - 74% { - transform: translate(-1.5px, 2.5px) rotate(1.5deg); - } - - 76% { - transform: translate(-1.5px, 2.5px) rotate(1.5deg); - } - - 78% { - transform: translate(-1.5px, 2.5px) rotate(0.5deg); - } - - 80% { - transform: translate(-1.5px, 0.5px) rotate(-0.5deg); - } - - 82% { - transform: translate(-1.5px, 0.5px) rotate(-0.5deg); - } - - 84% { - transform: translate(-0.5px, 0.5px) rotate(1.5deg); - } - - 86% { - transform: translate(2.5px, 1.5px) rotate(0.5deg); - } - - 88% { - transform: translate(-1.5px, 0.5px) rotate(1.5deg); - } - - 90% { - transform: translate(-1.5px, -0.5px) rotate(-0.5deg); - } - - 92% { - transform: translate(-1.5px, -1.5px) rotate(1.5deg); - } - - 94% { - transform: translate(0.5px, 0.5px) rotate(-0.5deg); - } - - 96% { - transform: translate(2.5px, -0.5px) rotate(-0.5deg); - } - - 98% { - transform: translate(-1.5px, -1.5px) rotate(-0.5deg); - } - - 0%, 100% { - transform: translate(0, 0) rotate(0); - } -} -@font-face { - font-family: 'Flat-UI-Icons'; - src: url('flat-ui-icons-regular.eot'); - src: url('flat-ui-icons-regular.eot?#iefix') format('embedded-opentype'), url('flat-ui-icons-regular.woff') format('woff'), url('flat-ui-icons-regular.ttf') format('truetype'), url('flat-ui-icons-regular.svg#flat-ui-icons-regular') format('svg'); -} -[class^="fui-"], -[class*="fui-"] { - font-family: 'Flat-UI-Icons'; - speak: none; - font-style: normal; - font-weight: normal; - font-variant: normal; - text-transform: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} -.fui-cross:before { - content: "\e609"; -} -.fui-info-circle:before { - content: "\e60f"; -} -.fui-photo:before { - content: "\e62a"; -} -.fui-eye:before { - content: "\e62c"; -} -.fui-chat:before { - content: "\e62d"; -} -.fui-home:before { - content: "\e62e"; -} -.fui-user:before { - content: "\e631"; -} \ No newline at end of file diff --git a/spaces/fclong/summary/fengshen/data/bert_dataloader/auto_split.sh b/spaces/fclong/summary/fengshen/data/bert_dataloader/auto_split.sh deleted file mode 100644 index 0a0f66d01df8f1728e44d9deb1d37e0396c5143a..0000000000000000000000000000000000000000 --- a/spaces/fclong/summary/fengshen/data/bert_dataloader/auto_split.sh +++ /dev/null @@ -1,10 +0,0 @@ -files=`find $1 -type f -size +1024M` - -for p in $files -do -echo "processing $p" -name=`basename $p .json` -file=`dirname $p` -split -a 2 -C 300M $p $file/$name- && ls|grep -E "(-[a-zA-Z]{2})" |xargs -n1 -i{} mv {} {}.json -rm -f $p -done \ No newline at end of file diff --git a/spaces/feregVcuzo/sanity-test-midi/checkpoint/Download Do You Believe In Love by Huey Lewis and The News - MP3 Song with Lyrics.md b/spaces/feregVcuzo/sanity-test-midi/checkpoint/Download Do You Believe In Love by Huey Lewis and The News - MP3 Song with Lyrics.md deleted file mode 100644 index 377eac684a1ad7f1f9bcd0a76c2eeba02c2713c0..0000000000000000000000000000000000000000 --- a/spaces/feregVcuzo/sanity-test-midi/checkpoint/Download Do You Believe In Love by Huey Lewis and The News - MP3 Song with Lyrics.md +++ /dev/null @@ -1,130 +0,0 @@ - -

        How to Download Do You Believe in Love MP3

        -

        Do you believe in love? If you do, then you might want to download the MP3 version of the song Do You Believe in Love by Huey Lewis and The News. This song is a classic hit from the 1980s that has been remastered in HD and is still popular today. In this article, we will show you how to download Do You Believe in Love MP3 from different sources, such as YouTube, Archive.org, and other websites and apps. We will also explain what this song is about and why you might want to download it.

        -

        download do you believe in love mp3


        Download Zip 🗹 https://gohhs.com/2uPtcn



        -

        Introduction

        -

        Do You Believe in Love is a song by American rock band Huey Lewis and The News, released in 1982 as the first single from their second album Picture This. The song was written by Robert John "Mutt" Lange, who later became famous for producing albums for artists like AC/DC, Def Leppard, Shania Twain, and Bryan Adams. The song was a success, reaching number seven on the Billboard Hot 100 chart and becoming the band's first top ten hit. The song also has a catchy chorus that asks "Do you believe in love? Do you believe it's true?"

        -

        What is Do You Believe in Love?

        -

        Do You Believe in Love is a song that expresses the feelings of a man who is falling in love with a woman and wants to know if she feels the same way. He sings about how he has been looking for love for a long time and how he finally found it with her. He also sings about how he wants to make her happy and how he hopes she will stay with him forever. He asks her repeatedly if she believes in love and if she believes it's true, implying that he wants her to trust him and his feelings.

        -

        Why download Do You Believe in Love MP3?

        -

        There are many reasons why you might want to download Do You Believe in Love MP3. Here are some of them:

        -
          -
        • You love the song and want to listen to it anytime, anywhere.
        • -
        • You want to add the song to your playlist or music library.
        • -
        • You want to use the song as your ringtone or alarm tone.
        • -
        • You want to share the song with your friends or family.
        • -
        • You want to enjoy the high-quality sound of the remastered version.
        • -
        -

        No matter what your reason is, downloading Do You Believe in Love MP3 is easy and fast. All you need is a device with an internet connection and some storage space. In the next sections, we will show you how to download Do You Believe in Love MP3 from different sources.

        -

        How to download Do You Believe in Love MP3 from YouTube

        -

        One of the most popular sources for downloading Do You Believe in Love MP3 is YouTube. YouTube is a video-sharing platform that hosts millions of videos, including music videos, trailers, documentaries, tutorials, and more. YouTube also allows users to upload their own videos and share them with others. One of the videos that you can find on YouTube is the official music video of Do You Believe in Love by Huey Lewis and The News. This video has over 25 million views and was uploaded by the band's official YouTube channel in 2013. The video shows the band performing the song in a studio, while various scenes of couples in love are shown on a screen behind them. The video also has subtitles in different languages, including English, Spanish, French, German, and Italian. To download Do You Believe in Love MP3 from YouTube, you need to follow these steps:

        -

        download do you believe in love song mp3
        -download do you believe in love by cher mp3
        -download do you believe in love huey lewis mp3
        -download do you believe in love meddy mp3
        -download do you believe in love after love mp3
        -download do you believe in life after love mp3
        -download do you believe in love how crazy it could be mp3
        -download do you believe in love at first sight mp3
        -download do you believe in love by chris brown mp3
        -download do you believe in love by michael english mp3
        -download do you believe in love by don williams mp3
        -download do you believe in love by whitney houston mp3
        -download do you believe in love by leona lewis mp3
        -download do you believe in love by justin bieber mp3
        -download do you believe in love by ed sheeran mp3
        -download do you believe in love remix mp3
        -download do you believe in love lyrics mp3
        -download do you believe in love video mp3
        -download do you believe in love audio mp3
        -download do you believe in love free mp3
        -download do you believe in love online mp3
        -download do you believe in love full mp3
        -download do you believe in love album mp3
        -download do you believe in love soundtrack mp3
        -download do you believe in love ringtone mp3
        -download do you believe in magic and i hope you do mp3
        -download i don't believe in love anymore mp3
        -download i still believe in your eyes i just don't care what you've done in your life mp3
        -download i want to know what love is i want you to show me mp3
        -download i will always love you no matter what they say mp3
        -download i can't make you love me if you don't mp3
        -download i'm not the only one who knows how to make you happy mp3
        -download i'm a believer i couldn't leave her if i tried mp3
        -download i'm yours and suddenly you're mine and it's brighter than sunshine mp3
        -download i've been waiting for a girl like you to come into my life mp3
        -download i've got sunshine on a cloudy day when it's cold outside i've got the month of may mp3
        -download i've had the time of my life and i owe it all to you mp3
        -download it must have been love but it's over now mp3
        -download nothing's gonna change my love for you you ought to know by now how much i love you mp3
        -download can't help falling in love with you wise men say only fools rush in mp3
        -download can't take my eyes off of you you're just too good to be true mp3
        -download can't fight this feeling any longer and yet i'm still afraid to let it flow mp3
        -download can't stop the feeling got this feeling in my body come on mp3
        -download can't get enough of your love babe what am i gonna do with you babe mp3

        -

        Step 1: Find the official music video on YouTube

        -

        The first step is to find the official music video of Do You Believe in Love on YouTube. You can do this by typing "Do You Believe in Love Huey Lewis" in the search bar and clicking on the first result. Alternatively, you can use this link: https://www.youtube.com/watch?v=BzIbyDbmsyg

        -

        Step 2: Copy the video URL

        -

        The next step is to copy the video URL from the address bar of your browser. The URL is the web address that starts with "https://" and ends with a series of letters and numbers. For example, the URL of the official music video of Do You Believe in Love is https://www.youtube.com/watch?v=BzIbyDbmsyg. To copy the URL, you can either right-click on it and select "Copy" or highlight it and press Ctrl+C on your keyboard.

        -

        Step 3: Paste the URL into a YouTube to MP3 converter

        -

        The third step is to paste the URL into a YouTube to MP3 converter. A YouTube to MP3 converter is a website or an app that allows you to convert YouTube videos into MP3 files that you can download and save on your device. There are many YouTube to MP3 converters available online, but some of them may not be safe or reliable. Therefore, we recommend using one of these trusted and tested converters:

        -
          -
        • YTMP3.cc: This is a simple and fast converter that supports both video and audio formats. It also has no ads or pop-ups.
        • -
        • 4K Video Downloader: This is a powerful and versatile converter that allows you to download videos and playlists in high quality. It also has a smart mode that automatically applies your preferred settings.
        • -
        • MP3FY.com: This is an advanced and efficient converter that can handle long videos and large files. It also has a search function that lets you find videos directly from the website.
        • -
        -

        To paste the URL into a YouTube to MP3 converter, you need to go to the website or open the app of your choice and look for a box that says "Paste your video link here" or something similar. Then, you need to right-click on the box and select "Paste" or press Ctrl+V on your keyboard.

        -

        Step 4: Choose the output format and quality

        -

        The fourth step is to choose the output format and quality of your MP3 file. The output format is the type of file that you want to download, such as MP3, MP4, WAV, etc. The output quality is the level of sound clarity and detail that you want to have, such as 128 kbps, 192 kbps, 320 kbps, etc. Generally, the higher the quality, the larger the file size and the longer the download time.

        -

        To choose the output format and quality of your MP3 file, you need to look for a drop-down menu or a button that says "Format", "Quality", "Settings", or something similar. Then, you need to click on it and select your preferred options. For example, if you want to download Do You Believe in Love MP3 in high quality, you can choose MP3 as the format and 320 kbps as the quality.

        -

        Step 5: Download and save the MP3 file

        -

        The final step is to download and save the MP3 file on your device. To do this, you need to look for a button that says "Download", "Convert", "Start", or something similar. Then, you need to click on it and wait for the conversion process to finish. Once it is done, you will see a link or a button that says "Download your converted file", "Download MP3", "Save file", or something similar. Then, you need to click on it and choose where you want to save your file on your device. For example, if you want to save Do You Believe in Love MP3 in your music folder, you can select that folder and click on "Save".

        -

        Congratulations! You have successfully downloaded Do You Believe in Love MP3 from YouTube. You can now enjoy listening to this song anytime, anywhere.

        -

        How to download Do You Believe in Love MP3 from Archive.org

        -

        Another source for downloading Do You Believe in Love MP3 is Archive.org. Archive.org is a website that provides free access to millions of digital items, such as books, movies, music, software, and more. Archive.org also preserves and archives historical and cultural artifacts for future generations. One of the items that you can find on Archive.org is the audio file of Do You Believe in Love by Huey Lewis and The News. This file was uploaded by a user named "jimmyjames" in 2011 and has over 10,000 views. The file is part of a collection called "Community Audio" that contains user-generated audio content. To download Do You Believe in Love MP3 from Archive.org, you need to follow these steps:

        -

        Step 1: Go to the Archive.org website

        -

        The first step is to go to the Archive.org website. You can do this by typing "archive.org" in the address bar of your browser and pressing Enter. Alternatively, you can use this link: https://archive.org/

        -

        Step 2: Search for Huey Lewis And The News Do You Believe In Love

        -

        The next step is to search for Huey Lewis And The News Do You Believe In Love on the Archive.org website. You can do this by typing "Huey Lewis And The News Do You Believe In Love" in the search bar at the top of the page and clicking on the magnifying glass icon. Alternatively, you can use this link: https://archive.org/search.php?query=Huey+Lewis+And+The+News+Do+You+Believe+In+Love

        -

        Step 3: Click on the download options

        -

        The third step is to click on the download options for the audio file of Do You Believe in Love by Huey Lewis and The News. You can do this by scrolling down the page and looking for a result that says "Huey Lewis And The News - Do You Believe In Love". Then, you need to click on the downward arrow icon next to the result. This will open a drop-down menu that shows different download options, such as VBR MP3, OGG VORBIS, TORRENT, etc.

        -

        Step 4: Choose the MP3 format and download the file

        -

        The fourth step is to choose the MP3 format and download the file from the drop-down menu. The MP3 format is the most common and compatible audio format that works on most devices and players. To choose the MP3 format and download the file, you need to click on the option that says "VBR MP3". This will start the download process and save the file on your device.

        -

        Congratulations! You have successfully downloaded Do You Believe in Love MP3 from Archive.org. You can now enjoy listening to this song anytime, anywhere.

        -

        How to download Do You Believe in Love MP3 from other sources

        -

        Besides YouTube and Archive.org, there are other sources for downloading Do You Believe in Love MP3. Some of these sources are:

        -

        Ali Gatie, Marshmello & Ty Dolla $ign – Do You Believe

        -

        If you are looking for a modern version of Do You Believe in Love, you might want to check out Do You Believe by Ali Gatie, Marshmello & Ty Dolla $ign. This is a song that was released in 2021 as part of Ali Gatie's album The Idea of Her. The song features vocals from Canadian singer Ali Gatie, American DJ Marshmello, and American rapper Ty Dolla $ign. The song is a romantic ballad that asks "Do you believe in love? And all the things that we dream of?" The song also has a music video that shows the three artists singing in different locations, such as a beach, a rooftop, and a studio.

        -

        To download Do You Believe by Ali Gatie, Marshmello & Ty Dolla $ign, you can use one of these links:

        - -

        Other websites and apps that offer MP3 downloads

        -

        There are also other websites and apps that offer MP3 downloads of various songs, including Do You Believe in Love by Huey Lewis and The News. However, some of these websites and apps may not be legal, safe, or reliable. Therefore, we advise you to be careful and use them at your own risk. Some of the websites and apps that offer MP3 downloads are:

        -
          -
        • MP3Juices.cc: This is a website that allows you to search and download MP3 files from multiple sources.
        • -
        • FreeMP3Cloud.com: This is a website that allows you to download MP3 files without registration or ads.
        • -
        • MP3Skull.com: This is a website that allows you to download MP3 files with high quality and fast speed.
        • -
        • MP3Quack.com: This is a website that allows you to download MP3 files with no limit and no captcha.
        • -
        • Music Downloader: This is an app that allows you to download MP3 files from YouTube, SoundCloud, and other platforms.
        • -
        • MP3 Music Downloader & Free Music Download: This is an app that allows you to download MP3 files from various genres and artists.
        • -
        • Free Music Downloader & Mp3 Music Download: This is an app that allows you to download MP3 files with high quality and easy steps.
        • -
        -

        Conclusion

        -

        In conclusion, Do You Believe in Love is a song by Huey Lewis and The News that was released in 1982 and became a hit. The song is about a man who is falling in love with a woman and wants to know if she believes in love too. The song has a catchy chorus and a remastered version in HD. You can download Do You Believe in Love MP3 from different sources, such as YouTube, Archive.org, and other websites and apps. However, you need to be careful and use only trusted and tested sources. We hope this article has helped you learn how to download Do You Believe in Love MP3 and enjoy this song anytime, anywhere.

        -

        FAQs

        -

        Here are some frequently asked questions about Do You Believe in Love MP3:

        -

        Q: Who wrote Do You Believe in Love?

        -

        A: Do You Believe in Love was written by Robert John "Mutt" Lange, who later became famous for producing albums for artists like AC/DC, Def Leppard, Shania Twain, and Bryan Adams.

        -

        Q: Who sang Do You Believe in Love?

        -

        A: Do You Believe in Love was sung by Huey Lewis and The News, an American rock band that was formed in 1979. The band consists of Huey Lewis (lead vocals and harmonica), Johnny Colla (saxophone and guitar), Bill Gibson (drums), Sean Hopper (keyboards), Stef Burns (guitar), and John Pierce (bass).

        -

        Q: When was Do You Believe in Love released?

        -

        A: Do You Believe in Love was released in 1982 as the first single from the band's second album Picture This. The song was a success, reaching number seven on the Billboard Hot 100 chart and becoming the band's first top ten hit.

        -

        Q: What is the meaning of Do You Believe in Love?

        -

        A: Do You Believe in Love is a song that expresses the feelings of a man who is falling in love with a woman and wants to know if she believes in love too. He sings about how he has been looking for love for a long time and how he finally found it with her. He also sings about how he wants to make her happy and how he hopes she will stay with him forever. He asks her repeatedly if she believes in love and if she believes it's true, implying that he wants her to trust him and his feelings.

        -

        Q: How can I download Do You Believe in Love MP3?

        -

        A: You can download Do You Believe in Love MP3 from different sources, such as YouTube, Archive.org , and other websites and apps. However, you need to be careful and use only trusted and tested sources. To download Do You Believe in Love MP3 from YouTube, you need to find the official music video on YouTube, copy the video URL, paste the URL into a YouTube to MP3 converter, choose the output format and quality, and download and save the MP3 file. To download Do You Believe in Love MP3 from Archive.org, you need to go to the Archive.org website, search for Huey Lewis And The News Do You Believe In Love, click on the download options, choose the MP3 format, and download the file. To download Do You Believe in Love MP3 from other sources, you need to find a website or an app that offers MP3 downloads of various songs, such as Ali Gatie, Marshmello & Ty Dolla $ign – Do You Believe, MP3Juices.cc, FreeMP3Cloud.com, MP3Skull.com, MP3Quack.com, Music Downloader, MP3 Music Downloader & Free Music Download, or Free Music Downloader & Mp3 Music Download.

        401be4b1e0
        -
        -
        \ No newline at end of file diff --git a/spaces/fffiloni/controlnet-animation-doodle/node_modules/ee-first/index.js b/spaces/fffiloni/controlnet-animation-doodle/node_modules/ee-first/index.js deleted file mode 100644 index 501287cd3b7024435d85a872bb1ba0b234db8e7f..0000000000000000000000000000000000000000 --- a/spaces/fffiloni/controlnet-animation-doodle/node_modules/ee-first/index.js +++ /dev/null @@ -1,95 +0,0 @@ -/*! - * ee-first - * Copyright(c) 2014 Jonathan Ong - * MIT Licensed - */ - -'use strict' - -/** - * Module exports. - * @public - */ - -module.exports = first - -/** - * Get the first event in a set of event emitters and event pairs. - * - * @param {array} stuff - * @param {function} done - * @public - */ - -function first(stuff, done) { - if (!Array.isArray(stuff)) - throw new TypeError('arg must be an array of [ee, events...] arrays') - - var cleanups = [] - - for (var i = 0; i < stuff.length; i++) { - var arr = stuff[i] - - if (!Array.isArray(arr) || arr.length < 2) - throw new TypeError('each array member must be [ee, events...]') - - var ee = arr[0] - - for (var j = 1; j < arr.length; j++) { - var event = arr[j] - var fn = listener(event, callback) - - // listen to the event - ee.on(event, fn) - // push this listener to the list of cleanups - cleanups.push({ - ee: ee, - event: event, - fn: fn, - }) - } - } - - function callback() { - cleanup() - done.apply(null, arguments) - } - - function cleanup() { - var x - for (var i = 0; i < cleanups.length; i++) { - x = cleanups[i] - x.ee.removeListener(x.event, x.fn) - } - } - - function thunk(fn) { - done = fn - } - - thunk.cancel = cleanup - - return thunk -} - -/** - * Create the event listener. - * @private - */ - -function listener(event, done) { - return function onevent(arg1) { - var args = new Array(arguments.length) - var ee = this - var err = event === 'error' - ? arg1 - : null - - // copy args to prevent arguments escaping scope - for (var i = 0; i < args.length; i++) { - args[i] = arguments[i] - } - - done(err, ee, event, args) - } -} diff --git a/spaces/fffiloni/controlnet-animation-doodle/node_modules/methods/HISTORY.md b/spaces/fffiloni/controlnet-animation-doodle/node_modules/methods/HISTORY.md deleted file mode 100644 index c0ecf072db3f9809c46c83f5641b5df99c686bbf..0000000000000000000000000000000000000000 --- a/spaces/fffiloni/controlnet-animation-doodle/node_modules/methods/HISTORY.md +++ /dev/null @@ -1,29 +0,0 @@ -1.1.2 / 2016-01-17 -================== - - * perf: enable strict mode - -1.1.1 / 2014-12-30 -================== - - * Improve `browserify` support - -1.1.0 / 2014-07-05 -================== - - * Add `CONNECT` method - -1.0.1 / 2014-06-02 -================== - - * Fix module to work with harmony transform - -1.0.0 / 2014-05-08 -================== - - * Add `PURGE` method - -0.1.0 / 2013-10-28 -================== - - * Add `http.METHODS` support diff --git a/spaces/fgenie/scamtext_PAL_self_consistency/funcs/f_51.py b/spaces/fgenie/scamtext_PAL_self_consistency/funcs/f_51.py deleted file mode 100644 index 0caf6e6a6ac350cf62bcda6ac3688ee644e29f40..0000000000000000000000000000000000000000 --- a/spaces/fgenie/scamtext_PAL_self_consistency/funcs/f_51.py +++ /dev/null @@ -1,19 +0,0 @@ - -import re - -def is_spam(message: str) -> bool: - # Patterns to detect spam - url_pattern = re.compile(r'https?://\S+|www\.\S+') # URLs - num_pattern = re.compile(r'\d{4,}') # Large numbers (4 or more digits) - special_char_pattern = re.compile(r'[!"#$%&\'()*+,-./[\\\]^_`{|}~]') # Special characters - - # Filters to identify spam - has_url = bool(url_pattern.search(message)) - has_long_num = bool(num_pattern.search(message)) - has_special_chars = bool(special_char_pattern.search(message)) - - # If the message contains URLs, large numbers or special chars, classify it as spam - if has_url or has_long_num or has_special_chars: - return True - else: - return False diff --git a/spaces/firzaelbuho/rvc-models/infer_pack/transforms.py b/spaces/firzaelbuho/rvc-models/infer_pack/transforms.py deleted file mode 100644 index a11f799e023864ff7082c1f49c0cc18351a13b47..0000000000000000000000000000000000000000 --- a/spaces/firzaelbuho/rvc-models/infer_pack/transforms.py +++ /dev/null @@ -1,209 +0,0 @@ -import torch -from torch.nn import functional as F - -import numpy as np - - -DEFAULT_MIN_BIN_WIDTH = 1e-3 -DEFAULT_MIN_BIN_HEIGHT = 1e-3 -DEFAULT_MIN_DERIVATIVE = 1e-3 - - -def piecewise_rational_quadratic_transform( - inputs, - unnormalized_widths, - unnormalized_heights, - unnormalized_derivatives, - inverse=False, - tails=None, - tail_bound=1.0, - min_bin_width=DEFAULT_MIN_BIN_WIDTH, - min_bin_height=DEFAULT_MIN_BIN_HEIGHT, - min_derivative=DEFAULT_MIN_DERIVATIVE, -): - if tails is None: - spline_fn = rational_quadratic_spline - spline_kwargs = {} - else: - spline_fn = unconstrained_rational_quadratic_spline - spline_kwargs = {"tails": tails, "tail_bound": tail_bound} - - outputs, logabsdet = spline_fn( - inputs=inputs, - unnormalized_widths=unnormalized_widths, - unnormalized_heights=unnormalized_heights, - unnormalized_derivatives=unnormalized_derivatives, - inverse=inverse, - min_bin_width=min_bin_width, - min_bin_height=min_bin_height, - min_derivative=min_derivative, - **spline_kwargs - ) - return outputs, logabsdet - - -def searchsorted(bin_locations, inputs, eps=1e-6): - bin_locations[..., -1] += eps - return torch.sum(inputs[..., None] >= bin_locations, dim=-1) - 1 - - -def unconstrained_rational_quadratic_spline( - inputs, - unnormalized_widths, - unnormalized_heights, - unnormalized_derivatives, - inverse=False, - tails="linear", - tail_bound=1.0, - min_bin_width=DEFAULT_MIN_BIN_WIDTH, - min_bin_height=DEFAULT_MIN_BIN_HEIGHT, - min_derivative=DEFAULT_MIN_DERIVATIVE, -): - inside_interval_mask = (inputs >= -tail_bound) & (inputs <= tail_bound) - outside_interval_mask = ~inside_interval_mask - - outputs = torch.zeros_like(inputs) - logabsdet = torch.zeros_like(inputs) - - if tails == "linear": - unnormalized_derivatives = F.pad(unnormalized_derivatives, pad=(1, 1)) - constant = np.log(np.exp(1 - min_derivative) - 1) - unnormalized_derivatives[..., 0] = constant - unnormalized_derivatives[..., -1] = constant - - outputs[outside_interval_mask] = inputs[outside_interval_mask] - logabsdet[outside_interval_mask] = 0 - else: - raise RuntimeError("{} tails are not implemented.".format(tails)) - - ( - outputs[inside_interval_mask], - logabsdet[inside_interval_mask], - ) = rational_quadratic_spline( - inputs=inputs[inside_interval_mask], - unnormalized_widths=unnormalized_widths[inside_interval_mask, :], - unnormalized_heights=unnormalized_heights[inside_interval_mask, :], - unnormalized_derivatives=unnormalized_derivatives[inside_interval_mask, :], - inverse=inverse, - left=-tail_bound, - right=tail_bound, - bottom=-tail_bound, - top=tail_bound, - min_bin_width=min_bin_width, - min_bin_height=min_bin_height, - min_derivative=min_derivative, - ) - - return outputs, logabsdet - - -def rational_quadratic_spline( - inputs, - unnormalized_widths, - unnormalized_heights, - unnormalized_derivatives, - inverse=False, - left=0.0, - right=1.0, - bottom=0.0, - top=1.0, - min_bin_width=DEFAULT_MIN_BIN_WIDTH, - min_bin_height=DEFAULT_MIN_BIN_HEIGHT, - min_derivative=DEFAULT_MIN_DERIVATIVE, -): - if torch.min(inputs) < left or torch.max(inputs) > right: - raise ValueError("Input to a transform is not within its domain") - - num_bins = unnormalized_widths.shape[-1] - - if min_bin_width * num_bins > 1.0: - raise ValueError("Minimal bin width too large for the number of bins") - if min_bin_height * num_bins > 1.0: - raise ValueError("Minimal bin height too large for the number of bins") - - widths = F.softmax(unnormalized_widths, dim=-1) - widths = min_bin_width + (1 - min_bin_width * num_bins) * widths - cumwidths = torch.cumsum(widths, dim=-1) - cumwidths = F.pad(cumwidths, pad=(1, 0), mode="constant", value=0.0) - cumwidths = (right - left) * cumwidths + left - cumwidths[..., 0] = left - cumwidths[..., -1] = right - widths = cumwidths[..., 1:] - cumwidths[..., :-1] - - derivatives = min_derivative + F.softplus(unnormalized_derivatives) - - heights = F.softmax(unnormalized_heights, dim=-1) - heights = min_bin_height + (1 - min_bin_height * num_bins) * heights - cumheights = torch.cumsum(heights, dim=-1) - cumheights = F.pad(cumheights, pad=(1, 0), mode="constant", value=0.0) - cumheights = (top - bottom) * cumheights + bottom - cumheights[..., 0] = bottom - cumheights[..., -1] = top - heights = cumheights[..., 1:] - cumheights[..., :-1] - - if inverse: - bin_idx = searchsorted(cumheights, inputs)[..., None] - else: - bin_idx = searchsorted(cumwidths, inputs)[..., None] - - input_cumwidths = cumwidths.gather(-1, bin_idx)[..., 0] - input_bin_widths = widths.gather(-1, bin_idx)[..., 0] - - input_cumheights = cumheights.gather(-1, bin_idx)[..., 0] - delta = heights / widths - input_delta = delta.gather(-1, bin_idx)[..., 0] - - input_derivatives = derivatives.gather(-1, bin_idx)[..., 0] - input_derivatives_plus_one = derivatives[..., 1:].gather(-1, bin_idx)[..., 0] - - input_heights = heights.gather(-1, bin_idx)[..., 0] - - if inverse: - a = (inputs - input_cumheights) * ( - input_derivatives + input_derivatives_plus_one - 2 * input_delta - ) + input_heights * (input_delta - input_derivatives) - b = input_heights * input_derivatives - (inputs - input_cumheights) * ( - input_derivatives + input_derivatives_plus_one - 2 * input_delta - ) - c = -input_delta * (inputs - input_cumheights) - - discriminant = b.pow(2) - 4 * a * c - assert (discriminant >= 0).all() - - root = (2 * c) / (-b - torch.sqrt(discriminant)) - outputs = root * input_bin_widths + input_cumwidths - - theta_one_minus_theta = root * (1 - root) - denominator = input_delta + ( - (input_derivatives + input_derivatives_plus_one - 2 * input_delta) - * theta_one_minus_theta - ) - derivative_numerator = input_delta.pow(2) * ( - input_derivatives_plus_one * root.pow(2) - + 2 * input_delta * theta_one_minus_theta - + input_derivatives * (1 - root).pow(2) - ) - logabsdet = torch.log(derivative_numerator) - 2 * torch.log(denominator) - - return outputs, -logabsdet - else: - theta = (inputs - input_cumwidths) / input_bin_widths - theta_one_minus_theta = theta * (1 - theta) - - numerator = input_heights * ( - input_delta * theta.pow(2) + input_derivatives * theta_one_minus_theta - ) - denominator = input_delta + ( - (input_derivatives + input_derivatives_plus_one - 2 * input_delta) - * theta_one_minus_theta - ) - outputs = input_cumheights + numerator / denominator - - derivative_numerator = input_delta.pow(2) * ( - input_derivatives_plus_one * theta.pow(2) - + 2 * input_delta * theta_one_minus_theta - + input_derivatives * (1 - theta).pow(2) - ) - logabsdet = torch.log(derivative_numerator) - 2 * torch.log(denominator) - - return outputs, logabsdet diff --git a/spaces/florim/MedGPT/autogpt/spinner.py b/spaces/florim/MedGPT/autogpt/spinner.py deleted file mode 100644 index 4e33d74213881352546f334ccb1eb4772b8b7b70..0000000000000000000000000000000000000000 --- a/spaces/florim/MedGPT/autogpt/spinner.py +++ /dev/null @@ -1,65 +0,0 @@ -"""A simple spinner module""" -import itertools -import sys -import threading -import time - - -class Spinner: - """A simple spinner class""" - - def __init__(self, message: str = "Loading...", delay: float = 0.1) -> None: - """Initialize the spinner class - - Args: - message (str): The message to display. - delay (float): The delay between each spinner update. - """ - self.spinner = itertools.cycle(["-", "/", "|", "\\"]) - self.delay = delay - self.message = message - self.running = False - self.spinner_thread = None - - def spin(self) -> None: - """Spin the spinner""" - while self.running: - sys.stdout.write(f"{next(self.spinner)} {self.message}\r") - sys.stdout.flush() - time.sleep(self.delay) - sys.stdout.write(f"\r{' ' * (len(self.message) + 2)}\r") - - def __enter__(self): - """Start the spinner""" - self.running = True - self.spinner_thread = threading.Thread(target=self.spin) - self.spinner_thread.start() - - return self - - def __exit__(self, exc_type, exc_value, exc_traceback) -> None: - """Stop the spinner - - Args: - exc_type (Exception): The exception type. - exc_value (Exception): The exception value. - exc_traceback (Exception): The exception traceback. - """ - self.running = False - if self.spinner_thread is not None: - self.spinner_thread.join() - sys.stdout.write(f"\r{' ' * (len(self.message) + 2)}\r") - sys.stdout.flush() - - def update_message(self, new_message, delay=0.1): - """Update the spinner message - Args: - new_message (str): New message to display - delay: Delay in seconds before updating the message - """ - time.sleep(delay) - sys.stdout.write( - f"\r{' ' * (len(self.message) + 2)}\r" - ) # Clear the current message - sys.stdout.flush() - self.message = new_message diff --git a/spaces/gerhug/dalle-mini/html2canvas.js b/spaces/gerhug/dalle-mini/html2canvas.js deleted file mode 100644 index 96e2dc5707b1a584ff7b3b583aea7c6c18d4ea76..0000000000000000000000000000000000000000 --- a/spaces/gerhug/dalle-mini/html2canvas.js +++ /dev/null @@ -1,7756 +0,0 @@ -/*! - * html2canvas 1.4.1 - * Copyright (c) 2022 Niklas von Hertzen - * Released under MIT License - */ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : - typeof define === 'function' && define.amd ? define(factory) : - (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.html2canvas = factory()); -}(this, (function () { 'use strict'; - - /*! ***************************************************************************** - Copyright (c) Microsoft Corporation. - - Permission to use, copy, modify, and/or distribute this software for any - purpose with or without fee is hereby granted. - - THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR - OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - PERFORMANCE OF THIS SOFTWARE. - ***************************************************************************** */ - /* global Reflect, Promise */ - - var extendStatics = function(d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - - function __extends(d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - } - - var __assign = function() { - __assign = Object.assign || function __assign(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - }; - return __assign.apply(this, arguments); - }; - - function __awaiter(thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - } - - function __generator(thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } - } - - function __spreadArray(to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || from); - } - - var Bounds = /** @class */ (function () { - function Bounds(left, top, width, height) { - this.left = left; - this.top = top; - this.width = width; - this.height = height; - } - Bounds.prototype.add = function (x, y, w, h) { - return new Bounds(this.left + x, this.top + y, this.width + w, this.height + h); - }; - Bounds.fromClientRect = function (context, clientRect) { - return new Bounds(clientRect.left + context.windowBounds.left, clientRect.top + context.windowBounds.top, clientRect.width, clientRect.height); - }; - Bounds.fromDOMRectList = function (context, domRectList) { - var domRect = Array.from(domRectList).find(function (rect) { return rect.width !== 0; }); - return domRect - ? new Bounds(domRect.left + context.windowBounds.left, domRect.top + context.windowBounds.top, domRect.width, domRect.height) - : Bounds.EMPTY; - }; - Bounds.EMPTY = new Bounds(0, 0, 0, 0); - return Bounds; - }()); - var parseBounds = function (context, node) { - return Bounds.fromClientRect(context, node.getBoundingClientRect()); - }; - var parseDocumentSize = function (document) { - var body = document.body; - var documentElement = document.documentElement; - if (!body || !documentElement) { - throw new Error("Unable to get document size"); - } - var width = Math.max(Math.max(body.scrollWidth, documentElement.scrollWidth), Math.max(body.offsetWidth, documentElement.offsetWidth), Math.max(body.clientWidth, documentElement.clientWidth)); - var height = Math.max(Math.max(body.scrollHeight, documentElement.scrollHeight), Math.max(body.offsetHeight, documentElement.offsetHeight), Math.max(body.clientHeight, documentElement.clientHeight)); - return new Bounds(0, 0, width, height); - }; - - /* - * css-line-break 2.1.0 - * Copyright (c) 2022 Niklas von Hertzen - * Released under MIT License - */ - var toCodePoints$1 = function (str) { - var codePoints = []; - var i = 0; - var length = str.length; - while (i < length) { - var value = str.charCodeAt(i++); - if (value >= 0xd800 && value <= 0xdbff && i < length) { - var extra = str.charCodeAt(i++); - if ((extra & 0xfc00) === 0xdc00) { - codePoints.push(((value & 0x3ff) << 10) + (extra & 0x3ff) + 0x10000); - } - else { - codePoints.push(value); - i--; - } - } - else { - codePoints.push(value); - } - } - return codePoints; - }; - var fromCodePoint$1 = function () { - var codePoints = []; - for (var _i = 0; _i < arguments.length; _i++) { - codePoints[_i] = arguments[_i]; - } - if (String.fromCodePoint) { - return String.fromCodePoint.apply(String, codePoints); - } - var length = codePoints.length; - if (!length) { - return ''; - } - var codeUnits = []; - var index = -1; - var result = ''; - while (++index < length) { - var codePoint = codePoints[index]; - if (codePoint <= 0xffff) { - codeUnits.push(codePoint); - } - else { - codePoint -= 0x10000; - codeUnits.push((codePoint >> 10) + 0xd800, (codePoint % 0x400) + 0xdc00); - } - if (index + 1 === length || codeUnits.length > 0x4000) { - result += String.fromCharCode.apply(String, codeUnits); - codeUnits.length = 0; - } - } - return result; - }; - var chars$2 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; - // Use a lookup table to find the index. - var lookup$2 = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256); - for (var i$2 = 0; i$2 < chars$2.length; i$2++) { - lookup$2[chars$2.charCodeAt(i$2)] = i$2; - } - - /* - * utrie 1.0.2 - * Copyright (c) 2022 Niklas von Hertzen - * Released under MIT License - */ - var chars$1$1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; - // Use a lookup table to find the index. - var lookup$1$1 = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256); - for (var i$1$1 = 0; i$1$1 < chars$1$1.length; i$1$1++) { - lookup$1$1[chars$1$1.charCodeAt(i$1$1)] = i$1$1; - } - var decode$1 = function (base64) { - var bufferLength = base64.length * 0.75, len = base64.length, i, p = 0, encoded1, encoded2, encoded3, encoded4; - if (base64[base64.length - 1] === '=') { - bufferLength--; - if (base64[base64.length - 2] === '=') { - bufferLength--; - } - } - var buffer = typeof ArrayBuffer !== 'undefined' && - typeof Uint8Array !== 'undefined' && - typeof Uint8Array.prototype.slice !== 'undefined' - ? new ArrayBuffer(bufferLength) - : new Array(bufferLength); - var bytes = Array.isArray(buffer) ? buffer : new Uint8Array(buffer); - for (i = 0; i < len; i += 4) { - encoded1 = lookup$1$1[base64.charCodeAt(i)]; - encoded2 = lookup$1$1[base64.charCodeAt(i + 1)]; - encoded3 = lookup$1$1[base64.charCodeAt(i + 2)]; - encoded4 = lookup$1$1[base64.charCodeAt(i + 3)]; - bytes[p++] = (encoded1 << 2) | (encoded2 >> 4); - bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2); - bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63); - } - return buffer; - }; - var polyUint16Array$1 = function (buffer) { - var length = buffer.length; - var bytes = []; - for (var i = 0; i < length; i += 2) { - bytes.push((buffer[i + 1] << 8) | buffer[i]); - } - return bytes; - }; - var polyUint32Array$1 = function (buffer) { - var length = buffer.length; - var bytes = []; - for (var i = 0; i < length; i += 4) { - bytes.push((buffer[i + 3] << 24) | (buffer[i + 2] << 16) | (buffer[i + 1] << 8) | buffer[i]); - } - return bytes; - }; - - /** Shift size for getting the index-2 table offset. */ - var UTRIE2_SHIFT_2$1 = 5; - /** Shift size for getting the index-1 table offset. */ - var UTRIE2_SHIFT_1$1 = 6 + 5; - /** - * Shift size for shifting left the index array values. - * Increases possible data size with 16-bit index values at the cost - * of compactability. - * This requires data blocks to be aligned by UTRIE2_DATA_GRANULARITY. - */ - var UTRIE2_INDEX_SHIFT$1 = 2; - /** - * Difference between the two shift sizes, - * for getting an index-1 offset from an index-2 offset. 6=11-5 - */ - var UTRIE2_SHIFT_1_2$1 = UTRIE2_SHIFT_1$1 - UTRIE2_SHIFT_2$1; - /** - * The part of the index-2 table for U+D800..U+DBFF stores values for - * lead surrogate code _units_ not code _points_. - * Values for lead surrogate code _points_ are indexed with this portion of the table. - * Length=32=0x20=0x400>>UTRIE2_SHIFT_2. (There are 1024=0x400 lead surrogates.) - */ - var UTRIE2_LSCP_INDEX_2_OFFSET$1 = 0x10000 >> UTRIE2_SHIFT_2$1; - /** Number of entries in a data block. 32=0x20 */ - var UTRIE2_DATA_BLOCK_LENGTH$1 = 1 << UTRIE2_SHIFT_2$1; - /** Mask for getting the lower bits for the in-data-block offset. */ - var UTRIE2_DATA_MASK$1 = UTRIE2_DATA_BLOCK_LENGTH$1 - 1; - var UTRIE2_LSCP_INDEX_2_LENGTH$1 = 0x400 >> UTRIE2_SHIFT_2$1; - /** Count the lengths of both BMP pieces. 2080=0x820 */ - var UTRIE2_INDEX_2_BMP_LENGTH$1 = UTRIE2_LSCP_INDEX_2_OFFSET$1 + UTRIE2_LSCP_INDEX_2_LENGTH$1; - /** - * The 2-byte UTF-8 version of the index-2 table follows at offset 2080=0x820. - * Length 32=0x20 for lead bytes C0..DF, regardless of UTRIE2_SHIFT_2. - */ - var UTRIE2_UTF8_2B_INDEX_2_OFFSET$1 = UTRIE2_INDEX_2_BMP_LENGTH$1; - var UTRIE2_UTF8_2B_INDEX_2_LENGTH$1 = 0x800 >> 6; /* U+0800 is the first code point after 2-byte UTF-8 */ - /** - * The index-1 table, only used for supplementary code points, at offset 2112=0x840. - * Variable length, for code points up to highStart, where the last single-value range starts. - * Maximum length 512=0x200=0x100000>>UTRIE2_SHIFT_1. - * (For 0x100000 supplementary code points U+10000..U+10ffff.) - * - * The part of the index-2 table for supplementary code points starts - * after this index-1 table. - * - * Both the index-1 table and the following part of the index-2 table - * are omitted completely if there is only BMP data. - */ - var UTRIE2_INDEX_1_OFFSET$1 = UTRIE2_UTF8_2B_INDEX_2_OFFSET$1 + UTRIE2_UTF8_2B_INDEX_2_LENGTH$1; - /** - * Number of index-1 entries for the BMP. 32=0x20 - * This part of the index-1 table is omitted from the serialized form. - */ - var UTRIE2_OMITTED_BMP_INDEX_1_LENGTH$1 = 0x10000 >> UTRIE2_SHIFT_1$1; - /** Number of entries in an index-2 block. 64=0x40 */ - var UTRIE2_INDEX_2_BLOCK_LENGTH$1 = 1 << UTRIE2_SHIFT_1_2$1; - /** Mask for getting the lower bits for the in-index-2-block offset. */ - var UTRIE2_INDEX_2_MASK$1 = UTRIE2_INDEX_2_BLOCK_LENGTH$1 - 1; - var slice16$1 = function (view, start, end) { - if (view.slice) { - return view.slice(start, end); - } - return new Uint16Array(Array.prototype.slice.call(view, start, end)); - }; - var slice32$1 = function (view, start, end) { - if (view.slice) { - return view.slice(start, end); - } - return new Uint32Array(Array.prototype.slice.call(view, start, end)); - }; - var createTrieFromBase64$1 = function (base64, _byteLength) { - var buffer = decode$1(base64); - var view32 = Array.isArray(buffer) ? polyUint32Array$1(buffer) : new Uint32Array(buffer); - var view16 = Array.isArray(buffer) ? polyUint16Array$1(buffer) : new Uint16Array(buffer); - var headerLength = 24; - var index = slice16$1(view16, headerLength / 2, view32[4] / 2); - var data = view32[5] === 2 - ? slice16$1(view16, (headerLength + view32[4]) / 2) - : slice32$1(view32, Math.ceil((headerLength + view32[4]) / 4)); - return new Trie$1(view32[0], view32[1], view32[2], view32[3], index, data); - }; - var Trie$1 = /** @class */ (function () { - function Trie(initialValue, errorValue, highStart, highValueIndex, index, data) { - this.initialValue = initialValue; - this.errorValue = errorValue; - this.highStart = highStart; - this.highValueIndex = highValueIndex; - this.index = index; - this.data = data; - } - /** - * Get the value for a code point as stored in the Trie. - * - * @param codePoint the code point - * @return the value - */ - Trie.prototype.get = function (codePoint) { - var ix; - if (codePoint >= 0) { - if (codePoint < 0x0d800 || (codePoint > 0x0dbff && codePoint <= 0x0ffff)) { - // Ordinary BMP code point, excluding leading surrogates. - // BMP uses a single level lookup. BMP index starts at offset 0 in the Trie2 index. - // 16 bit data is stored in the index array itself. - ix = this.index[codePoint >> UTRIE2_SHIFT_2$1]; - ix = (ix << UTRIE2_INDEX_SHIFT$1) + (codePoint & UTRIE2_DATA_MASK$1); - return this.data[ix]; - } - if (codePoint <= 0xffff) { - // Lead Surrogate Code Point. A Separate index section is stored for - // lead surrogate code units and code points. - // The main index has the code unit data. - // For this function, we need the code point data. - // Note: this expression could be refactored for slightly improved efficiency, but - // surrogate code points will be so rare in practice that it's not worth it. - ix = this.index[UTRIE2_LSCP_INDEX_2_OFFSET$1 + ((codePoint - 0xd800) >> UTRIE2_SHIFT_2$1)]; - ix = (ix << UTRIE2_INDEX_SHIFT$1) + (codePoint & UTRIE2_DATA_MASK$1); - return this.data[ix]; - } - if (codePoint < this.highStart) { - // Supplemental code point, use two-level lookup. - ix = UTRIE2_INDEX_1_OFFSET$1 - UTRIE2_OMITTED_BMP_INDEX_1_LENGTH$1 + (codePoint >> UTRIE2_SHIFT_1$1); - ix = this.index[ix]; - ix += (codePoint >> UTRIE2_SHIFT_2$1) & UTRIE2_INDEX_2_MASK$1; - ix = this.index[ix]; - ix = (ix << UTRIE2_INDEX_SHIFT$1) + (codePoint & UTRIE2_DATA_MASK$1); - return this.data[ix]; - } - if (codePoint <= 0x10ffff) { - return this.data[this.highValueIndex]; - } - } - // Fall through. The code point is outside of the legal range of 0..0x10ffff. - return this.errorValue; - }; - return Trie; - }()); - - /* - * base64-arraybuffer 1.0.2 - * Copyright (c) 2022 Niklas von Hertzen - * Released under MIT License - */ - var chars$3 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; - // Use a lookup table to find the index. - var lookup$3 = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256); - for (var i$3 = 0; i$3 < chars$3.length; i$3++) { - lookup$3[chars$3.charCodeAt(i$3)] = i$3; - } - - var base64$1 = 'KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=='; - - var LETTER_NUMBER_MODIFIER = 50; - // Non-tailorable Line Breaking Classes - var BK = 1; // Cause a line break (after) - var CR$1 = 2; // Cause a line break (after), except between CR and LF - var LF$1 = 3; // Cause a line break (after) - var CM = 4; // Prohibit a line break between the character and the preceding character - var NL = 5; // Cause a line break (after) - var WJ = 7; // Prohibit line breaks before and after - var ZW = 8; // Provide a break opportunity - var GL = 9; // Prohibit line breaks before and after - var SP = 10; // Enable indirect line breaks - var ZWJ$1 = 11; // Prohibit line breaks within joiner sequences - // Break Opportunities - var B2 = 12; // Provide a line break opportunity before and after the character - var BA = 13; // Generally provide a line break opportunity after the character - var BB = 14; // Generally provide a line break opportunity before the character - var HY = 15; // Provide a line break opportunity after the character, except in numeric context - var CB = 16; // Provide a line break opportunity contingent on additional information - // Characters Prohibiting Certain Breaks - var CL = 17; // Prohibit line breaks before - var CP = 18; // Prohibit line breaks before - var EX = 19; // Prohibit line breaks before - var IN = 20; // Allow only indirect line breaks between pairs - var NS = 21; // Allow only indirect line breaks before - var OP = 22; // Prohibit line breaks after - var QU = 23; // Act like they are both opening and closing - // Numeric Context - var IS = 24; // Prevent breaks after any and before numeric - var NU = 25; // Form numeric expressions for line breaking purposes - var PO = 26; // Do not break following a numeric expression - var PR = 27; // Do not break in front of a numeric expression - var SY = 28; // Prevent a break before; and allow a break after - // Other Characters - var AI = 29; // Act like AL when the resolvedEAW is N; otherwise; act as ID - var AL = 30; // Are alphabetic characters or symbols that are used with alphabetic characters - var CJ = 31; // Treat as NS or ID for strict or normal breaking. - var EB = 32; // Do not break from following Emoji Modifier - var EM = 33; // Do not break from preceding Emoji Base - var H2 = 34; // Form Korean syllable blocks - var H3 = 35; // Form Korean syllable blocks - var HL = 36; // Do not break around a following hyphen; otherwise act as Alphabetic - var ID = 37; // Break before or after; except in some numeric context - var JL = 38; // Form Korean syllable blocks - var JV = 39; // Form Korean syllable blocks - var JT = 40; // Form Korean syllable blocks - var RI$1 = 41; // Keep pairs together. For pairs; break before and after other classes - var SA = 42; // Provide a line break opportunity contingent on additional, language-specific context analysis - var XX = 43; // Have as yet unknown line breaking behavior or unassigned code positions - var ea_OP = [0x2329, 0xff08]; - var BREAK_MANDATORY = '!'; - var BREAK_NOT_ALLOWED$1 = '×'; - var BREAK_ALLOWED$1 = '÷'; - var UnicodeTrie$1 = createTrieFromBase64$1(base64$1); - var ALPHABETICS = [AL, HL]; - var HARD_LINE_BREAKS = [BK, CR$1, LF$1, NL]; - var SPACE$1 = [SP, ZW]; - var PREFIX_POSTFIX = [PR, PO]; - var LINE_BREAKS = HARD_LINE_BREAKS.concat(SPACE$1); - var KOREAN_SYLLABLE_BLOCK = [JL, JV, JT, H2, H3]; - var HYPHEN = [HY, BA]; - var codePointsToCharacterClasses = function (codePoints, lineBreak) { - if (lineBreak === void 0) { lineBreak = 'strict'; } - var types = []; - var indices = []; - var categories = []; - codePoints.forEach(function (codePoint, index) { - var classType = UnicodeTrie$1.get(codePoint); - if (classType > LETTER_NUMBER_MODIFIER) { - categories.push(true); - classType -= LETTER_NUMBER_MODIFIER; - } - else { - categories.push(false); - } - if (['normal', 'auto', 'loose'].indexOf(lineBreak) !== -1) { - // U+2010, – U+2013, 〜 U+301C, ゠ U+30A0 - if ([0x2010, 0x2013, 0x301c, 0x30a0].indexOf(codePoint) !== -1) { - indices.push(index); - return types.push(CB); - } - } - if (classType === CM || classType === ZWJ$1) { - // LB10 Treat any remaining combining mark or ZWJ as AL. - if (index === 0) { - indices.push(index); - return types.push(AL); - } - // LB9 Do not break a combining character sequence; treat it as if it has the line breaking class of - // the base character in all of the following rules. Treat ZWJ as if it were CM. - var prev = types[index - 1]; - if (LINE_BREAKS.indexOf(prev) === -1) { - indices.push(indices[index - 1]); - return types.push(prev); - } - indices.push(index); - return types.push(AL); - } - indices.push(index); - if (classType === CJ) { - return types.push(lineBreak === 'strict' ? NS : ID); - } - if (classType === SA) { - return types.push(AL); - } - if (classType === AI) { - return types.push(AL); - } - // For supplementary characters, a useful default is to treat characters in the range 10000..1FFFD as AL - // and characters in the ranges 20000..2FFFD and 30000..3FFFD as ID, until the implementation can be revised - // to take into account the actual line breaking properties for these characters. - if (classType === XX) { - if ((codePoint >= 0x20000 && codePoint <= 0x2fffd) || (codePoint >= 0x30000 && codePoint <= 0x3fffd)) { - return types.push(ID); - } - else { - return types.push(AL); - } - } - types.push(classType); - }); - return [indices, types, categories]; - }; - var isAdjacentWithSpaceIgnored = function (a, b, currentIndex, classTypes) { - var current = classTypes[currentIndex]; - if (Array.isArray(a) ? a.indexOf(current) !== -1 : a === current) { - var i = currentIndex; - while (i <= classTypes.length) { - i++; - var next = classTypes[i]; - if (next === b) { - return true; - } - if (next !== SP) { - break; - } - } - } - if (current === SP) { - var i = currentIndex; - while (i > 0) { - i--; - var prev = classTypes[i]; - if (Array.isArray(a) ? a.indexOf(prev) !== -1 : a === prev) { - var n = currentIndex; - while (n <= classTypes.length) { - n++; - var next = classTypes[n]; - if (next === b) { - return true; - } - if (next !== SP) { - break; - } - } - } - if (prev !== SP) { - break; - } - } - } - return false; - }; - var previousNonSpaceClassType = function (currentIndex, classTypes) { - var i = currentIndex; - while (i >= 0) { - var type = classTypes[i]; - if (type === SP) { - i--; - } - else { - return type; - } - } - return 0; - }; - var _lineBreakAtIndex = function (codePoints, classTypes, indicies, index, forbiddenBreaks) { - if (indicies[index] === 0) { - return BREAK_NOT_ALLOWED$1; - } - var currentIndex = index - 1; - if (Array.isArray(forbiddenBreaks) && forbiddenBreaks[currentIndex] === true) { - return BREAK_NOT_ALLOWED$1; - } - var beforeIndex = currentIndex - 1; - var afterIndex = currentIndex + 1; - var current = classTypes[currentIndex]; - // LB4 Always break after hard line breaks. - // LB5 Treat CR followed by LF, as well as CR, LF, and NL as hard line breaks. - var before = beforeIndex >= 0 ? classTypes[beforeIndex] : 0; - var next = classTypes[afterIndex]; - if (current === CR$1 && next === LF$1) { - return BREAK_NOT_ALLOWED$1; - } - if (HARD_LINE_BREAKS.indexOf(current) !== -1) { - return BREAK_MANDATORY; - } - // LB6 Do not break before hard line breaks. - if (HARD_LINE_BREAKS.indexOf(next) !== -1) { - return BREAK_NOT_ALLOWED$1; - } - // LB7 Do not break before spaces or zero width space. - if (SPACE$1.indexOf(next) !== -1) { - return BREAK_NOT_ALLOWED$1; - } - // LB8 Break before any character following a zero-width space, even if one or more spaces intervene. - if (previousNonSpaceClassType(currentIndex, classTypes) === ZW) { - return BREAK_ALLOWED$1; - } - // LB8a Do not break after a zero width joiner. - if (UnicodeTrie$1.get(codePoints[currentIndex]) === ZWJ$1) { - return BREAK_NOT_ALLOWED$1; - } - // zwj emojis - if ((current === EB || current === EM) && UnicodeTrie$1.get(codePoints[afterIndex]) === ZWJ$1) { - return BREAK_NOT_ALLOWED$1; - } - // LB11 Do not break before or after Word joiner and related characters. - if (current === WJ || next === WJ) { - return BREAK_NOT_ALLOWED$1; - } - // LB12 Do not break after NBSP and related characters. - if (current === GL) { - return BREAK_NOT_ALLOWED$1; - } - // LB12a Do not break before NBSP and related characters, except after spaces and hyphens. - if ([SP, BA, HY].indexOf(current) === -1 && next === GL) { - return BREAK_NOT_ALLOWED$1; - } - // LB13 Do not break before ‘]’ or ‘!’ or ‘;’ or ‘/’, even after spaces. - if ([CL, CP, EX, IS, SY].indexOf(next) !== -1) { - return BREAK_NOT_ALLOWED$1; - } - // LB14 Do not break after ‘[’, even after spaces. - if (previousNonSpaceClassType(currentIndex, classTypes) === OP) { - return BREAK_NOT_ALLOWED$1; - } - // LB15 Do not break within ‘”[’, even with intervening spaces. - if (isAdjacentWithSpaceIgnored(QU, OP, currentIndex, classTypes)) { - return BREAK_NOT_ALLOWED$1; - } - // LB16 Do not break between closing punctuation and a nonstarter (lb=NS), even with intervening spaces. - if (isAdjacentWithSpaceIgnored([CL, CP], NS, currentIndex, classTypes)) { - return BREAK_NOT_ALLOWED$1; - } - // LB17 Do not break within ‘——’, even with intervening spaces. - if (isAdjacentWithSpaceIgnored(B2, B2, currentIndex, classTypes)) { - return BREAK_NOT_ALLOWED$1; - } - // LB18 Break after spaces. - if (current === SP) { - return BREAK_ALLOWED$1; - } - // LB19 Do not break before or after quotation marks, such as ‘ ” ’. - if (current === QU || next === QU) { - return BREAK_NOT_ALLOWED$1; - } - // LB20 Break before and after unresolved CB. - if (next === CB || current === CB) { - return BREAK_ALLOWED$1; - } - // LB21 Do not break before hyphen-minus, other hyphens, fixed-width spaces, small kana, and other non-starters, or after acute accents. - if ([BA, HY, NS].indexOf(next) !== -1 || current === BB) { - return BREAK_NOT_ALLOWED$1; - } - // LB21a Don't break after Hebrew + Hyphen. - if (before === HL && HYPHEN.indexOf(current) !== -1) { - return BREAK_NOT_ALLOWED$1; - } - // LB21b Don’t break between Solidus and Hebrew letters. - if (current === SY && next === HL) { - return BREAK_NOT_ALLOWED$1; - } - // LB22 Do not break before ellipsis. - if (next === IN) { - return BREAK_NOT_ALLOWED$1; - } - // LB23 Do not break between digits and letters. - if ((ALPHABETICS.indexOf(next) !== -1 && current === NU) || (ALPHABETICS.indexOf(current) !== -1 && next === NU)) { - return BREAK_NOT_ALLOWED$1; - } - // LB23a Do not break between numeric prefixes and ideographs, or between ideographs and numeric postfixes. - if ((current === PR && [ID, EB, EM].indexOf(next) !== -1) || - ([ID, EB, EM].indexOf(current) !== -1 && next === PO)) { - return BREAK_NOT_ALLOWED$1; - } - // LB24 Do not break between numeric prefix/postfix and letters, or between letters and prefix/postfix. - if ((ALPHABETICS.indexOf(current) !== -1 && PREFIX_POSTFIX.indexOf(next) !== -1) || - (PREFIX_POSTFIX.indexOf(current) !== -1 && ALPHABETICS.indexOf(next) !== -1)) { - return BREAK_NOT_ALLOWED$1; - } - // LB25 Do not break between the following pairs of classes relevant to numbers: - if ( - // (PR | PO) × ( OP | HY )? NU - ([PR, PO].indexOf(current) !== -1 && - (next === NU || ([OP, HY].indexOf(next) !== -1 && classTypes[afterIndex + 1] === NU))) || - // ( OP | HY ) × NU - ([OP, HY].indexOf(current) !== -1 && next === NU) || - // NU × (NU | SY | IS) - (current === NU && [NU, SY, IS].indexOf(next) !== -1)) { - return BREAK_NOT_ALLOWED$1; - } - // NU (NU | SY | IS)* × (NU | SY | IS | CL | CP) - if ([NU, SY, IS, CL, CP].indexOf(next) !== -1) { - var prevIndex = currentIndex; - while (prevIndex >= 0) { - var type = classTypes[prevIndex]; - if (type === NU) { - return BREAK_NOT_ALLOWED$1; - } - else if ([SY, IS].indexOf(type) !== -1) { - prevIndex--; - } - else { - break; - } - } - } - // NU (NU | SY | IS)* (CL | CP)? × (PO | PR)) - if ([PR, PO].indexOf(next) !== -1) { - var prevIndex = [CL, CP].indexOf(current) !== -1 ? beforeIndex : currentIndex; - while (prevIndex >= 0) { - var type = classTypes[prevIndex]; - if (type === NU) { - return BREAK_NOT_ALLOWED$1; - } - else if ([SY, IS].indexOf(type) !== -1) { - prevIndex--; - } - else { - break; - } - } - } - // LB26 Do not break a Korean syllable. - if ((JL === current && [JL, JV, H2, H3].indexOf(next) !== -1) || - ([JV, H2].indexOf(current) !== -1 && [JV, JT].indexOf(next) !== -1) || - ([JT, H3].indexOf(current) !== -1 && next === JT)) { - return BREAK_NOT_ALLOWED$1; - } - // LB27 Treat a Korean Syllable Block the same as ID. - if ((KOREAN_SYLLABLE_BLOCK.indexOf(current) !== -1 && [IN, PO].indexOf(next) !== -1) || - (KOREAN_SYLLABLE_BLOCK.indexOf(next) !== -1 && current === PR)) { - return BREAK_NOT_ALLOWED$1; - } - // LB28 Do not break between alphabetics (“at”). - if (ALPHABETICS.indexOf(current) !== -1 && ALPHABETICS.indexOf(next) !== -1) { - return BREAK_NOT_ALLOWED$1; - } - // LB29 Do not break between numeric punctuation and alphabetics (“e.g.”). - if (current === IS && ALPHABETICS.indexOf(next) !== -1) { - return BREAK_NOT_ALLOWED$1; - } - // LB30 Do not break between letters, numbers, or ordinary symbols and opening or closing parentheses. - if ((ALPHABETICS.concat(NU).indexOf(current) !== -1 && - next === OP && - ea_OP.indexOf(codePoints[afterIndex]) === -1) || - (ALPHABETICS.concat(NU).indexOf(next) !== -1 && current === CP)) { - return BREAK_NOT_ALLOWED$1; - } - // LB30a Break between two regional indicator symbols if and only if there are an even number of regional - // indicators preceding the position of the break. - if (current === RI$1 && next === RI$1) { - var i = indicies[currentIndex]; - var count = 1; - while (i > 0) { - i--; - if (classTypes[i] === RI$1) { - count++; - } - else { - break; - } - } - if (count % 2 !== 0) { - return BREAK_NOT_ALLOWED$1; - } - } - // LB30b Do not break between an emoji base and an emoji modifier. - if (current === EB && next === EM) { - return BREAK_NOT_ALLOWED$1; - } - return BREAK_ALLOWED$1; - }; - var cssFormattedClasses = function (codePoints, options) { - if (!options) { - options = { lineBreak: 'normal', wordBreak: 'normal' }; - } - var _a = codePointsToCharacterClasses(codePoints, options.lineBreak), indicies = _a[0], classTypes = _a[1], isLetterNumber = _a[2]; - if (options.wordBreak === 'break-all' || options.wordBreak === 'break-word') { - classTypes = classTypes.map(function (type) { return ([NU, AL, SA].indexOf(type) !== -1 ? ID : type); }); - } - var forbiddenBreakpoints = options.wordBreak === 'keep-all' - ? isLetterNumber.map(function (letterNumber, i) { - return letterNumber && codePoints[i] >= 0x4e00 && codePoints[i] <= 0x9fff; - }) - : undefined; - return [indicies, classTypes, forbiddenBreakpoints]; - }; - var Break = /** @class */ (function () { - function Break(codePoints, lineBreak, start, end) { - this.codePoints = codePoints; - this.required = lineBreak === BREAK_MANDATORY; - this.start = start; - this.end = end; - } - Break.prototype.slice = function () { - return fromCodePoint$1.apply(void 0, this.codePoints.slice(this.start, this.end)); - }; - return Break; - }()); - var LineBreaker = function (str, options) { - var codePoints = toCodePoints$1(str); - var _a = cssFormattedClasses(codePoints, options), indicies = _a[0], classTypes = _a[1], forbiddenBreakpoints = _a[2]; - var length = codePoints.length; - var lastEnd = 0; - var nextIndex = 0; - return { - next: function () { - if (nextIndex >= length) { - return { done: true, value: null }; - } - var lineBreak = BREAK_NOT_ALLOWED$1; - while (nextIndex < length && - (lineBreak = _lineBreakAtIndex(codePoints, classTypes, indicies, ++nextIndex, forbiddenBreakpoints)) === - BREAK_NOT_ALLOWED$1) { } - if (lineBreak !== BREAK_NOT_ALLOWED$1 || nextIndex === length) { - var value = new Break(codePoints, lineBreak, lastEnd, nextIndex); - lastEnd = nextIndex; - return { value: value, done: false }; - } - return { done: true, value: null }; - }, - }; - }; - - // https://www.w3.org/TR/css-syntax-3 - var FLAG_UNRESTRICTED = 1 << 0; - var FLAG_ID = 1 << 1; - var FLAG_INTEGER = 1 << 2; - var FLAG_NUMBER = 1 << 3; - var LINE_FEED = 0x000a; - var SOLIDUS = 0x002f; - var REVERSE_SOLIDUS = 0x005c; - var CHARACTER_TABULATION = 0x0009; - var SPACE = 0x0020; - var QUOTATION_MARK = 0x0022; - var EQUALS_SIGN = 0x003d; - var NUMBER_SIGN = 0x0023; - var DOLLAR_SIGN = 0x0024; - var PERCENTAGE_SIGN = 0x0025; - var APOSTROPHE = 0x0027; - var LEFT_PARENTHESIS = 0x0028; - var RIGHT_PARENTHESIS = 0x0029; - var LOW_LINE = 0x005f; - var HYPHEN_MINUS = 0x002d; - var EXCLAMATION_MARK = 0x0021; - var LESS_THAN_SIGN = 0x003c; - var GREATER_THAN_SIGN = 0x003e; - var COMMERCIAL_AT = 0x0040; - var LEFT_SQUARE_BRACKET = 0x005b; - var RIGHT_SQUARE_BRACKET = 0x005d; - var CIRCUMFLEX_ACCENT = 0x003d; - var LEFT_CURLY_BRACKET = 0x007b; - var QUESTION_MARK = 0x003f; - var RIGHT_CURLY_BRACKET = 0x007d; - var VERTICAL_LINE = 0x007c; - var TILDE = 0x007e; - var CONTROL = 0x0080; - var REPLACEMENT_CHARACTER = 0xfffd; - var ASTERISK = 0x002a; - var PLUS_SIGN = 0x002b; - var COMMA = 0x002c; - var COLON = 0x003a; - var SEMICOLON = 0x003b; - var FULL_STOP = 0x002e; - var NULL = 0x0000; - var BACKSPACE = 0x0008; - var LINE_TABULATION = 0x000b; - var SHIFT_OUT = 0x000e; - var INFORMATION_SEPARATOR_ONE = 0x001f; - var DELETE = 0x007f; - var EOF = -1; - var ZERO = 0x0030; - var a = 0x0061; - var e = 0x0065; - var f = 0x0066; - var u = 0x0075; - var z = 0x007a; - var A = 0x0041; - var E = 0x0045; - var F = 0x0046; - var U = 0x0055; - var Z = 0x005a; - var isDigit = function (codePoint) { return codePoint >= ZERO && codePoint <= 0x0039; }; - var isSurrogateCodePoint = function (codePoint) { return codePoint >= 0xd800 && codePoint <= 0xdfff; }; - var isHex = function (codePoint) { - return isDigit(codePoint) || (codePoint >= A && codePoint <= F) || (codePoint >= a && codePoint <= f); - }; - var isLowerCaseLetter = function (codePoint) { return codePoint >= a && codePoint <= z; }; - var isUpperCaseLetter = function (codePoint) { return codePoint >= A && codePoint <= Z; }; - var isLetter = function (codePoint) { return isLowerCaseLetter(codePoint) || isUpperCaseLetter(codePoint); }; - var isNonASCIICodePoint = function (codePoint) { return codePoint >= CONTROL; }; - var isWhiteSpace = function (codePoint) { - return codePoint === LINE_FEED || codePoint === CHARACTER_TABULATION || codePoint === SPACE; - }; - var isNameStartCodePoint = function (codePoint) { - return isLetter(codePoint) || isNonASCIICodePoint(codePoint) || codePoint === LOW_LINE; - }; - var isNameCodePoint = function (codePoint) { - return isNameStartCodePoint(codePoint) || isDigit(codePoint) || codePoint === HYPHEN_MINUS; - }; - var isNonPrintableCodePoint = function (codePoint) { - return ((codePoint >= NULL && codePoint <= BACKSPACE) || - codePoint === LINE_TABULATION || - (codePoint >= SHIFT_OUT && codePoint <= INFORMATION_SEPARATOR_ONE) || - codePoint === DELETE); - }; - var isValidEscape = function (c1, c2) { - if (c1 !== REVERSE_SOLIDUS) { - return false; - } - return c2 !== LINE_FEED; - }; - var isIdentifierStart = function (c1, c2, c3) { - if (c1 === HYPHEN_MINUS) { - return isNameStartCodePoint(c2) || isValidEscape(c2, c3); - } - else if (isNameStartCodePoint(c1)) { - return true; - } - else if (c1 === REVERSE_SOLIDUS && isValidEscape(c1, c2)) { - return true; - } - return false; - }; - var isNumberStart = function (c1, c2, c3) { - if (c1 === PLUS_SIGN || c1 === HYPHEN_MINUS) { - if (isDigit(c2)) { - return true; - } - return c2 === FULL_STOP && isDigit(c3); - } - if (c1 === FULL_STOP) { - return isDigit(c2); - } - return isDigit(c1); - }; - var stringToNumber = function (codePoints) { - var c = 0; - var sign = 1; - if (codePoints[c] === PLUS_SIGN || codePoints[c] === HYPHEN_MINUS) { - if (codePoints[c] === HYPHEN_MINUS) { - sign = -1; - } - c++; - } - var integers = []; - while (isDigit(codePoints[c])) { - integers.push(codePoints[c++]); - } - var int = integers.length ? parseInt(fromCodePoint$1.apply(void 0, integers), 10) : 0; - if (codePoints[c] === FULL_STOP) { - c++; - } - var fraction = []; - while (isDigit(codePoints[c])) { - fraction.push(codePoints[c++]); - } - var fracd = fraction.length; - var frac = fracd ? parseInt(fromCodePoint$1.apply(void 0, fraction), 10) : 0; - if (codePoints[c] === E || codePoints[c] === e) { - c++; - } - var expsign = 1; - if (codePoints[c] === PLUS_SIGN || codePoints[c] === HYPHEN_MINUS) { - if (codePoints[c] === HYPHEN_MINUS) { - expsign = -1; - } - c++; - } - var exponent = []; - while (isDigit(codePoints[c])) { - exponent.push(codePoints[c++]); - } - var exp = exponent.length ? parseInt(fromCodePoint$1.apply(void 0, exponent), 10) : 0; - return sign * (int + frac * Math.pow(10, -fracd)) * Math.pow(10, expsign * exp); - }; - var LEFT_PARENTHESIS_TOKEN = { - type: 2 /* LEFT_PARENTHESIS_TOKEN */ - }; - var RIGHT_PARENTHESIS_TOKEN = { - type: 3 /* RIGHT_PARENTHESIS_TOKEN */ - }; - var COMMA_TOKEN = { type: 4 /* COMMA_TOKEN */ }; - var SUFFIX_MATCH_TOKEN = { type: 13 /* SUFFIX_MATCH_TOKEN */ }; - var PREFIX_MATCH_TOKEN = { type: 8 /* PREFIX_MATCH_TOKEN */ }; - var COLUMN_TOKEN = { type: 21 /* COLUMN_TOKEN */ }; - var DASH_MATCH_TOKEN = { type: 9 /* DASH_MATCH_TOKEN */ }; - var INCLUDE_MATCH_TOKEN = { type: 10 /* INCLUDE_MATCH_TOKEN */ }; - var LEFT_CURLY_BRACKET_TOKEN = { - type: 11 /* LEFT_CURLY_BRACKET_TOKEN */ - }; - var RIGHT_CURLY_BRACKET_TOKEN = { - type: 12 /* RIGHT_CURLY_BRACKET_TOKEN */ - }; - var SUBSTRING_MATCH_TOKEN = { type: 14 /* SUBSTRING_MATCH_TOKEN */ }; - var BAD_URL_TOKEN = { type: 23 /* BAD_URL_TOKEN */ }; - var BAD_STRING_TOKEN = { type: 1 /* BAD_STRING_TOKEN */ }; - var CDO_TOKEN = { type: 25 /* CDO_TOKEN */ }; - var CDC_TOKEN = { type: 24 /* CDC_TOKEN */ }; - var COLON_TOKEN = { type: 26 /* COLON_TOKEN */ }; - var SEMICOLON_TOKEN = { type: 27 /* SEMICOLON_TOKEN */ }; - var LEFT_SQUARE_BRACKET_TOKEN = { - type: 28 /* LEFT_SQUARE_BRACKET_TOKEN */ - }; - var RIGHT_SQUARE_BRACKET_TOKEN = { - type: 29 /* RIGHT_SQUARE_BRACKET_TOKEN */ - }; - var WHITESPACE_TOKEN = { type: 31 /* WHITESPACE_TOKEN */ }; - var EOF_TOKEN = { type: 32 /* EOF_TOKEN */ }; - var Tokenizer = /** @class */ (function () { - function Tokenizer() { - this._value = []; - } - Tokenizer.prototype.write = function (chunk) { - this._value = this._value.concat(toCodePoints$1(chunk)); - }; - Tokenizer.prototype.read = function () { - var tokens = []; - var token = this.consumeToken(); - while (token !== EOF_TOKEN) { - tokens.push(token); - token = this.consumeToken(); - } - return tokens; - }; - Tokenizer.prototype.consumeToken = function () { - var codePoint = this.consumeCodePoint(); - switch (codePoint) { - case QUOTATION_MARK: - return this.consumeStringToken(QUOTATION_MARK); - case NUMBER_SIGN: - var c1 = this.peekCodePoint(0); - var c2 = this.peekCodePoint(1); - var c3 = this.peekCodePoint(2); - if (isNameCodePoint(c1) || isValidEscape(c2, c3)) { - var flags = isIdentifierStart(c1, c2, c3) ? FLAG_ID : FLAG_UNRESTRICTED; - var value = this.consumeName(); - return { type: 5 /* HASH_TOKEN */, value: value, flags: flags }; - } - break; - case DOLLAR_SIGN: - if (this.peekCodePoint(0) === EQUALS_SIGN) { - this.consumeCodePoint(); - return SUFFIX_MATCH_TOKEN; - } - break; - case APOSTROPHE: - return this.consumeStringToken(APOSTROPHE); - case LEFT_PARENTHESIS: - return LEFT_PARENTHESIS_TOKEN; - case RIGHT_PARENTHESIS: - return RIGHT_PARENTHESIS_TOKEN; - case ASTERISK: - if (this.peekCodePoint(0) === EQUALS_SIGN) { - this.consumeCodePoint(); - return SUBSTRING_MATCH_TOKEN; - } - break; - case PLUS_SIGN: - if (isNumberStart(codePoint, this.peekCodePoint(0), this.peekCodePoint(1))) { - this.reconsumeCodePoint(codePoint); - return this.consumeNumericToken(); - } - break; - case COMMA: - return COMMA_TOKEN; - case HYPHEN_MINUS: - var e1 = codePoint; - var e2 = this.peekCodePoint(0); - var e3 = this.peekCodePoint(1); - if (isNumberStart(e1, e2, e3)) { - this.reconsumeCodePoint(codePoint); - return this.consumeNumericToken(); - } - if (isIdentifierStart(e1, e2, e3)) { - this.reconsumeCodePoint(codePoint); - return this.consumeIdentLikeToken(); - } - if (e2 === HYPHEN_MINUS && e3 === GREATER_THAN_SIGN) { - this.consumeCodePoint(); - this.consumeCodePoint(); - return CDC_TOKEN; - } - break; - case FULL_STOP: - if (isNumberStart(codePoint, this.peekCodePoint(0), this.peekCodePoint(1))) { - this.reconsumeCodePoint(codePoint); - return this.consumeNumericToken(); - } - break; - case SOLIDUS: - if (this.peekCodePoint(0) === ASTERISK) { - this.consumeCodePoint(); - while (true) { - var c = this.consumeCodePoint(); - if (c === ASTERISK) { - c = this.consumeCodePoint(); - if (c === SOLIDUS) { - return this.consumeToken(); - } - } - if (c === EOF) { - return this.consumeToken(); - } - } - } - break; - case COLON: - return COLON_TOKEN; - case SEMICOLON: - return SEMICOLON_TOKEN; - case LESS_THAN_SIGN: - if (this.peekCodePoint(0) === EXCLAMATION_MARK && - this.peekCodePoint(1) === HYPHEN_MINUS && - this.peekCodePoint(2) === HYPHEN_MINUS) { - this.consumeCodePoint(); - this.consumeCodePoint(); - return CDO_TOKEN; - } - break; - case COMMERCIAL_AT: - var a1 = this.peekCodePoint(0); - var a2 = this.peekCodePoint(1); - var a3 = this.peekCodePoint(2); - if (isIdentifierStart(a1, a2, a3)) { - var value = this.consumeName(); - return { type: 7 /* AT_KEYWORD_TOKEN */, value: value }; - } - break; - case LEFT_SQUARE_BRACKET: - return LEFT_SQUARE_BRACKET_TOKEN; - case REVERSE_SOLIDUS: - if (isValidEscape(codePoint, this.peekCodePoint(0))) { - this.reconsumeCodePoint(codePoint); - return this.consumeIdentLikeToken(); - } - break; - case RIGHT_SQUARE_BRACKET: - return RIGHT_SQUARE_BRACKET_TOKEN; - case CIRCUMFLEX_ACCENT: - if (this.peekCodePoint(0) === EQUALS_SIGN) { - this.consumeCodePoint(); - return PREFIX_MATCH_TOKEN; - } - break; - case LEFT_CURLY_BRACKET: - return LEFT_CURLY_BRACKET_TOKEN; - case RIGHT_CURLY_BRACKET: - return RIGHT_CURLY_BRACKET_TOKEN; - case u: - case U: - var u1 = this.peekCodePoint(0); - var u2 = this.peekCodePoint(1); - if (u1 === PLUS_SIGN && (isHex(u2) || u2 === QUESTION_MARK)) { - this.consumeCodePoint(); - this.consumeUnicodeRangeToken(); - } - this.reconsumeCodePoint(codePoint); - return this.consumeIdentLikeToken(); - case VERTICAL_LINE: - if (this.peekCodePoint(0) === EQUALS_SIGN) { - this.consumeCodePoint(); - return DASH_MATCH_TOKEN; - } - if (this.peekCodePoint(0) === VERTICAL_LINE) { - this.consumeCodePoint(); - return COLUMN_TOKEN; - } - break; - case TILDE: - if (this.peekCodePoint(0) === EQUALS_SIGN) { - this.consumeCodePoint(); - return INCLUDE_MATCH_TOKEN; - } - break; - case EOF: - return EOF_TOKEN; - } - if (isWhiteSpace(codePoint)) { - this.consumeWhiteSpace(); - return WHITESPACE_TOKEN; - } - if (isDigit(codePoint)) { - this.reconsumeCodePoint(codePoint); - return this.consumeNumericToken(); - } - if (isNameStartCodePoint(codePoint)) { - this.reconsumeCodePoint(codePoint); - return this.consumeIdentLikeToken(); - } - return { type: 6 /* DELIM_TOKEN */, value: fromCodePoint$1(codePoint) }; - }; - Tokenizer.prototype.consumeCodePoint = function () { - var value = this._value.shift(); - return typeof value === 'undefined' ? -1 : value; - }; - Tokenizer.prototype.reconsumeCodePoint = function (codePoint) { - this._value.unshift(codePoint); - }; - Tokenizer.prototype.peekCodePoint = function (delta) { - if (delta >= this._value.length) { - return -1; - } - return this._value[delta]; - }; - Tokenizer.prototype.consumeUnicodeRangeToken = function () { - var digits = []; - var codePoint = this.consumeCodePoint(); - while (isHex(codePoint) && digits.length < 6) { - digits.push(codePoint); - codePoint = this.consumeCodePoint(); - } - var questionMarks = false; - while (codePoint === QUESTION_MARK && digits.length < 6) { - digits.push(codePoint); - codePoint = this.consumeCodePoint(); - questionMarks = true; - } - if (questionMarks) { - var start_1 = parseInt(fromCodePoint$1.apply(void 0, digits.map(function (digit) { return (digit === QUESTION_MARK ? ZERO : digit); })), 16); - var end = parseInt(fromCodePoint$1.apply(void 0, digits.map(function (digit) { return (digit === QUESTION_MARK ? F : digit); })), 16); - return { type: 30 /* UNICODE_RANGE_TOKEN */, start: start_1, end: end }; - } - var start = parseInt(fromCodePoint$1.apply(void 0, digits), 16); - if (this.peekCodePoint(0) === HYPHEN_MINUS && isHex(this.peekCodePoint(1))) { - this.consumeCodePoint(); - codePoint = this.consumeCodePoint(); - var endDigits = []; - while (isHex(codePoint) && endDigits.length < 6) { - endDigits.push(codePoint); - codePoint = this.consumeCodePoint(); - } - var end = parseInt(fromCodePoint$1.apply(void 0, endDigits), 16); - return { type: 30 /* UNICODE_RANGE_TOKEN */, start: start, end: end }; - } - else { - return { type: 30 /* UNICODE_RANGE_TOKEN */, start: start, end: start }; - } - }; - Tokenizer.prototype.consumeIdentLikeToken = function () { - var value = this.consumeName(); - if (value.toLowerCase() === 'url' && this.peekCodePoint(0) === LEFT_PARENTHESIS) { - this.consumeCodePoint(); - return this.consumeUrlToken(); - } - else if (this.peekCodePoint(0) === LEFT_PARENTHESIS) { - this.consumeCodePoint(); - return { type: 19 /* FUNCTION_TOKEN */, value: value }; - } - return { type: 20 /* IDENT_TOKEN */, value: value }; - }; - Tokenizer.prototype.consumeUrlToken = function () { - var value = []; - this.consumeWhiteSpace(); - if (this.peekCodePoint(0) === EOF) { - return { type: 22 /* URL_TOKEN */, value: '' }; - } - var next = this.peekCodePoint(0); - if (next === APOSTROPHE || next === QUOTATION_MARK) { - var stringToken = this.consumeStringToken(this.consumeCodePoint()); - if (stringToken.type === 0 /* STRING_TOKEN */) { - this.consumeWhiteSpace(); - if (this.peekCodePoint(0) === EOF || this.peekCodePoint(0) === RIGHT_PARENTHESIS) { - this.consumeCodePoint(); - return { type: 22 /* URL_TOKEN */, value: stringToken.value }; - } - } - this.consumeBadUrlRemnants(); - return BAD_URL_TOKEN; - } - while (true) { - var codePoint = this.consumeCodePoint(); - if (codePoint === EOF || codePoint === RIGHT_PARENTHESIS) { - return { type: 22 /* URL_TOKEN */, value: fromCodePoint$1.apply(void 0, value) }; - } - else if (isWhiteSpace(codePoint)) { - this.consumeWhiteSpace(); - if (this.peekCodePoint(0) === EOF || this.peekCodePoint(0) === RIGHT_PARENTHESIS) { - this.consumeCodePoint(); - return { type: 22 /* URL_TOKEN */, value: fromCodePoint$1.apply(void 0, value) }; - } - this.consumeBadUrlRemnants(); - return BAD_URL_TOKEN; - } - else if (codePoint === QUOTATION_MARK || - codePoint === APOSTROPHE || - codePoint === LEFT_PARENTHESIS || - isNonPrintableCodePoint(codePoint)) { - this.consumeBadUrlRemnants(); - return BAD_URL_TOKEN; - } - else if (codePoint === REVERSE_SOLIDUS) { - if (isValidEscape(codePoint, this.peekCodePoint(0))) { - value.push(this.consumeEscapedCodePoint()); - } - else { - this.consumeBadUrlRemnants(); - return BAD_URL_TOKEN; - } - } - else { - value.push(codePoint); - } - } - }; - Tokenizer.prototype.consumeWhiteSpace = function () { - while (isWhiteSpace(this.peekCodePoint(0))) { - this.consumeCodePoint(); - } - }; - Tokenizer.prototype.consumeBadUrlRemnants = function () { - while (true) { - var codePoint = this.consumeCodePoint(); - if (codePoint === RIGHT_PARENTHESIS || codePoint === EOF) { - return; - } - if (isValidEscape(codePoint, this.peekCodePoint(0))) { - this.consumeEscapedCodePoint(); - } - } - }; - Tokenizer.prototype.consumeStringSlice = function (count) { - var SLICE_STACK_SIZE = 50000; - var value = ''; - while (count > 0) { - var amount = Math.min(SLICE_STACK_SIZE, count); - value += fromCodePoint$1.apply(void 0, this._value.splice(0, amount)); - count -= amount; - } - this._value.shift(); - return value; - }; - Tokenizer.prototype.consumeStringToken = function (endingCodePoint) { - var value = ''; - var i = 0; - do { - var codePoint = this._value[i]; - if (codePoint === EOF || codePoint === undefined || codePoint === endingCodePoint) { - value += this.consumeStringSlice(i); - return { type: 0 /* STRING_TOKEN */, value: value }; - } - if (codePoint === LINE_FEED) { - this._value.splice(0, i); - return BAD_STRING_TOKEN; - } - if (codePoint === REVERSE_SOLIDUS) { - var next = this._value[i + 1]; - if (next !== EOF && next !== undefined) { - if (next === LINE_FEED) { - value += this.consumeStringSlice(i); - i = -1; - this._value.shift(); - } - else if (isValidEscape(codePoint, next)) { - value += this.consumeStringSlice(i); - value += fromCodePoint$1(this.consumeEscapedCodePoint()); - i = -1; - } - } - } - i++; - } while (true); - }; - Tokenizer.prototype.consumeNumber = function () { - var repr = []; - var type = FLAG_INTEGER; - var c1 = this.peekCodePoint(0); - if (c1 === PLUS_SIGN || c1 === HYPHEN_MINUS) { - repr.push(this.consumeCodePoint()); - } - while (isDigit(this.peekCodePoint(0))) { - repr.push(this.consumeCodePoint()); - } - c1 = this.peekCodePoint(0); - var c2 = this.peekCodePoint(1); - if (c1 === FULL_STOP && isDigit(c2)) { - repr.push(this.consumeCodePoint(), this.consumeCodePoint()); - type = FLAG_NUMBER; - while (isDigit(this.peekCodePoint(0))) { - repr.push(this.consumeCodePoint()); - } - } - c1 = this.peekCodePoint(0); - c2 = this.peekCodePoint(1); - var c3 = this.peekCodePoint(2); - if ((c1 === E || c1 === e) && (((c2 === PLUS_SIGN || c2 === HYPHEN_MINUS) && isDigit(c3)) || isDigit(c2))) { - repr.push(this.consumeCodePoint(), this.consumeCodePoint()); - type = FLAG_NUMBER; - while (isDigit(this.peekCodePoint(0))) { - repr.push(this.consumeCodePoint()); - } - } - return [stringToNumber(repr), type]; - }; - Tokenizer.prototype.consumeNumericToken = function () { - var _a = this.consumeNumber(), number = _a[0], flags = _a[1]; - var c1 = this.peekCodePoint(0); - var c2 = this.peekCodePoint(1); - var c3 = this.peekCodePoint(2); - if (isIdentifierStart(c1, c2, c3)) { - var unit = this.consumeName(); - return { type: 15 /* DIMENSION_TOKEN */, number: number, flags: flags, unit: unit }; - } - if (c1 === PERCENTAGE_SIGN) { - this.consumeCodePoint(); - return { type: 16 /* PERCENTAGE_TOKEN */, number: number, flags: flags }; - } - return { type: 17 /* NUMBER_TOKEN */, number: number, flags: flags }; - }; - Tokenizer.prototype.consumeEscapedCodePoint = function () { - var codePoint = this.consumeCodePoint(); - if (isHex(codePoint)) { - var hex = fromCodePoint$1(codePoint); - while (isHex(this.peekCodePoint(0)) && hex.length < 6) { - hex += fromCodePoint$1(this.consumeCodePoint()); - } - if (isWhiteSpace(this.peekCodePoint(0))) { - this.consumeCodePoint(); - } - var hexCodePoint = parseInt(hex, 16); - if (hexCodePoint === 0 || isSurrogateCodePoint(hexCodePoint) || hexCodePoint > 0x10ffff) { - return REPLACEMENT_CHARACTER; - } - return hexCodePoint; - } - if (codePoint === EOF) { - return REPLACEMENT_CHARACTER; - } - return codePoint; - }; - Tokenizer.prototype.consumeName = function () { - var result = ''; - while (true) { - var codePoint = this.consumeCodePoint(); - if (isNameCodePoint(codePoint)) { - result += fromCodePoint$1(codePoint); - } - else if (isValidEscape(codePoint, this.peekCodePoint(0))) { - result += fromCodePoint$1(this.consumeEscapedCodePoint()); - } - else { - this.reconsumeCodePoint(codePoint); - return result; - } - } - }; - return Tokenizer; - }()); - - var Parser = /** @class */ (function () { - function Parser(tokens) { - this._tokens = tokens; - } - Parser.create = function (value) { - var tokenizer = new Tokenizer(); - tokenizer.write(value); - return new Parser(tokenizer.read()); - }; - Parser.parseValue = function (value) { - return Parser.create(value).parseComponentValue(); - }; - Parser.parseValues = function (value) { - return Parser.create(value).parseComponentValues(); - }; - Parser.prototype.parseComponentValue = function () { - var token = this.consumeToken(); - while (token.type === 31 /* WHITESPACE_TOKEN */) { - token = this.consumeToken(); - } - if (token.type === 32 /* EOF_TOKEN */) { - throw new SyntaxError("Error parsing CSS component value, unexpected EOF"); - } - this.reconsumeToken(token); - var value = this.consumeComponentValue(); - do { - token = this.consumeToken(); - } while (token.type === 31 /* WHITESPACE_TOKEN */); - if (token.type === 32 /* EOF_TOKEN */) { - return value; - } - throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one"); - }; - Parser.prototype.parseComponentValues = function () { - var values = []; - while (true) { - var value = this.consumeComponentValue(); - if (value.type === 32 /* EOF_TOKEN */) { - return values; - } - values.push(value); - values.push(); - } - }; - Parser.prototype.consumeComponentValue = function () { - var token = this.consumeToken(); - switch (token.type) { - case 11 /* LEFT_CURLY_BRACKET_TOKEN */: - case 28 /* LEFT_SQUARE_BRACKET_TOKEN */: - case 2 /* LEFT_PARENTHESIS_TOKEN */: - return this.consumeSimpleBlock(token.type); - case 19 /* FUNCTION_TOKEN */: - return this.consumeFunction(token); - } - return token; - }; - Parser.prototype.consumeSimpleBlock = function (type) { - var block = { type: type, values: [] }; - var token = this.consumeToken(); - while (true) { - if (token.type === 32 /* EOF_TOKEN */ || isEndingTokenFor(token, type)) { - return block; - } - this.reconsumeToken(token); - block.values.push(this.consumeComponentValue()); - token = this.consumeToken(); - } - }; - Parser.prototype.consumeFunction = function (functionToken) { - var cssFunction = { - name: functionToken.value, - values: [], - type: 18 /* FUNCTION */ - }; - while (true) { - var token = this.consumeToken(); - if (token.type === 32 /* EOF_TOKEN */ || token.type === 3 /* RIGHT_PARENTHESIS_TOKEN */) { - return cssFunction; - } - this.reconsumeToken(token); - cssFunction.values.push(this.consumeComponentValue()); - } - }; - Parser.prototype.consumeToken = function () { - var token = this._tokens.shift(); - return typeof token === 'undefined' ? EOF_TOKEN : token; - }; - Parser.prototype.reconsumeToken = function (token) { - this._tokens.unshift(token); - }; - return Parser; - }()); - var isDimensionToken = function (token) { return token.type === 15 /* DIMENSION_TOKEN */; }; - var isNumberToken = function (token) { return token.type === 17 /* NUMBER_TOKEN */; }; - var isIdentToken = function (token) { return token.type === 20 /* IDENT_TOKEN */; }; - var isStringToken = function (token) { return token.type === 0 /* STRING_TOKEN */; }; - var isIdentWithValue = function (token, value) { - return isIdentToken(token) && token.value === value; - }; - var nonWhiteSpace = function (token) { return token.type !== 31 /* WHITESPACE_TOKEN */; }; - var nonFunctionArgSeparator = function (token) { - return token.type !== 31 /* WHITESPACE_TOKEN */ && token.type !== 4 /* COMMA_TOKEN */; - }; - var parseFunctionArgs = function (tokens) { - var args = []; - var arg = []; - tokens.forEach(function (token) { - if (token.type === 4 /* COMMA_TOKEN */) { - if (arg.length === 0) { - throw new Error("Error parsing function args, zero tokens for arg"); - } - args.push(arg); - arg = []; - return; - } - if (token.type !== 31 /* WHITESPACE_TOKEN */) { - arg.push(token); - } - }); - if (arg.length) { - args.push(arg); - } - return args; - }; - var isEndingTokenFor = function (token, type) { - if (type === 11 /* LEFT_CURLY_BRACKET_TOKEN */ && token.type === 12 /* RIGHT_CURLY_BRACKET_TOKEN */) { - return true; - } - if (type === 28 /* LEFT_SQUARE_BRACKET_TOKEN */ && token.type === 29 /* RIGHT_SQUARE_BRACKET_TOKEN */) { - return true; - } - return type === 2 /* LEFT_PARENTHESIS_TOKEN */ && token.type === 3 /* RIGHT_PARENTHESIS_TOKEN */; - }; - - var isLength = function (token) { - return token.type === 17 /* NUMBER_TOKEN */ || token.type === 15 /* DIMENSION_TOKEN */; - }; - - var isLengthPercentage = function (token) { - return token.type === 16 /* PERCENTAGE_TOKEN */ || isLength(token); - }; - var parseLengthPercentageTuple = function (tokens) { - return tokens.length > 1 ? [tokens[0], tokens[1]] : [tokens[0]]; - }; - var ZERO_LENGTH = { - type: 17 /* NUMBER_TOKEN */, - number: 0, - flags: FLAG_INTEGER - }; - var FIFTY_PERCENT = { - type: 16 /* PERCENTAGE_TOKEN */, - number: 50, - flags: FLAG_INTEGER - }; - var HUNDRED_PERCENT = { - type: 16 /* PERCENTAGE_TOKEN */, - number: 100, - flags: FLAG_INTEGER - }; - var getAbsoluteValueForTuple = function (tuple, width, height) { - var x = tuple[0], y = tuple[1]; - return [getAbsoluteValue(x, width), getAbsoluteValue(typeof y !== 'undefined' ? y : x, height)]; - }; - var getAbsoluteValue = function (token, parent) { - if (token.type === 16 /* PERCENTAGE_TOKEN */) { - return (token.number / 100) * parent; - } - if (isDimensionToken(token)) { - switch (token.unit) { - case 'rem': - case 'em': - return 16 * token.number; // TODO use correct font-size - case 'px': - default: - return token.number; - } - } - return token.number; - }; - - var DEG = 'deg'; - var GRAD = 'grad'; - var RAD = 'rad'; - var TURN = 'turn'; - var angle = { - name: 'angle', - parse: function (_context, value) { - if (value.type === 15 /* DIMENSION_TOKEN */) { - switch (value.unit) { - case DEG: - return (Math.PI * value.number) / 180; - case GRAD: - return (Math.PI / 200) * value.number; - case RAD: - return value.number; - case TURN: - return Math.PI * 2 * value.number; - } - } - throw new Error("Unsupported angle type"); - } - }; - var isAngle = function (value) { - if (value.type === 15 /* DIMENSION_TOKEN */) { - if (value.unit === DEG || value.unit === GRAD || value.unit === RAD || value.unit === TURN) { - return true; - } - } - return false; - }; - var parseNamedSide = function (tokens) { - var sideOrCorner = tokens - .filter(isIdentToken) - .map(function (ident) { return ident.value; }) - .join(' '); - switch (sideOrCorner) { - case 'to bottom right': - case 'to right bottom': - case 'left top': - case 'top left': - return [ZERO_LENGTH, ZERO_LENGTH]; - case 'to top': - case 'bottom': - return deg(0); - case 'to bottom left': - case 'to left bottom': - case 'right top': - case 'top right': - return [ZERO_LENGTH, HUNDRED_PERCENT]; - case 'to right': - case 'left': - return deg(90); - case 'to top left': - case 'to left top': - case 'right bottom': - case 'bottom right': - return [HUNDRED_PERCENT, HUNDRED_PERCENT]; - case 'to bottom': - case 'top': - return deg(180); - case 'to top right': - case 'to right top': - case 'left bottom': - case 'bottom left': - return [HUNDRED_PERCENT, ZERO_LENGTH]; - case 'to left': - case 'right': - return deg(270); - } - return 0; - }; - var deg = function (deg) { return (Math.PI * deg) / 180; }; - - var color$1 = { - name: 'color', - parse: function (context, value) { - if (value.type === 18 /* FUNCTION */) { - var colorFunction = SUPPORTED_COLOR_FUNCTIONS[value.name]; - if (typeof colorFunction === 'undefined') { - throw new Error("Attempting to parse an unsupported color function \"" + value.name + "\""); - } - return colorFunction(context, value.values); - } - if (value.type === 5 /* HASH_TOKEN */) { - if (value.value.length === 3) { - var r = value.value.substring(0, 1); - var g = value.value.substring(1, 2); - var b = value.value.substring(2, 3); - return pack(parseInt(r + r, 16), parseInt(g + g, 16), parseInt(b + b, 16), 1); - } - if (value.value.length === 4) { - var r = value.value.substring(0, 1); - var g = value.value.substring(1, 2); - var b = value.value.substring(2, 3); - var a = value.value.substring(3, 4); - return pack(parseInt(r + r, 16), parseInt(g + g, 16), parseInt(b + b, 16), parseInt(a + a, 16) / 255); - } - if (value.value.length === 6) { - var r = value.value.substring(0, 2); - var g = value.value.substring(2, 4); - var b = value.value.substring(4, 6); - return pack(parseInt(r, 16), parseInt(g, 16), parseInt(b, 16), 1); - } - if (value.value.length === 8) { - var r = value.value.substring(0, 2); - var g = value.value.substring(2, 4); - var b = value.value.substring(4, 6); - var a = value.value.substring(6, 8); - return pack(parseInt(r, 16), parseInt(g, 16), parseInt(b, 16), parseInt(a, 16) / 255); - } - } - if (value.type === 20 /* IDENT_TOKEN */) { - var namedColor = COLORS[value.value.toUpperCase()]; - if (typeof namedColor !== 'undefined') { - return namedColor; - } - } - return COLORS.TRANSPARENT; - } - }; - var isTransparent = function (color) { return (0xff & color) === 0; }; - var asString = function (color) { - var alpha = 0xff & color; - var blue = 0xff & (color >> 8); - var green = 0xff & (color >> 16); - var red = 0xff & (color >> 24); - return alpha < 255 ? "rgba(" + red + "," + green + "," + blue + "," + alpha / 255 + ")" : "rgb(" + red + "," + green + "," + blue + ")"; - }; - var pack = function (r, g, b, a) { - return ((r << 24) | (g << 16) | (b << 8) | (Math.round(a * 255) << 0)) >>> 0; - }; - var getTokenColorValue = function (token, i) { - if (token.type === 17 /* NUMBER_TOKEN */) { - return token.number; - } - if (token.type === 16 /* PERCENTAGE_TOKEN */) { - var max = i === 3 ? 1 : 255; - return i === 3 ? (token.number / 100) * max : Math.round((token.number / 100) * max); - } - return 0; - }; - var rgb = function (_context, args) { - var tokens = args.filter(nonFunctionArgSeparator); - if (tokens.length === 3) { - var _a = tokens.map(getTokenColorValue), r = _a[0], g = _a[1], b = _a[2]; - return pack(r, g, b, 1); - } - if (tokens.length === 4) { - var _b = tokens.map(getTokenColorValue), r = _b[0], g = _b[1], b = _b[2], a = _b[3]; - return pack(r, g, b, a); - } - return 0; - }; - function hue2rgb(t1, t2, hue) { - if (hue < 0) { - hue += 1; - } - if (hue >= 1) { - hue -= 1; - } - if (hue < 1 / 6) { - return (t2 - t1) * hue * 6 + t1; - } - else if (hue < 1 / 2) { - return t2; - } - else if (hue < 2 / 3) { - return (t2 - t1) * 6 * (2 / 3 - hue) + t1; - } - else { - return t1; - } - } - var hsl = function (context, args) { - var tokens = args.filter(nonFunctionArgSeparator); - var hue = tokens[0], saturation = tokens[1], lightness = tokens[2], alpha = tokens[3]; - var h = (hue.type === 17 /* NUMBER_TOKEN */ ? deg(hue.number) : angle.parse(context, hue)) / (Math.PI * 2); - var s = isLengthPercentage(saturation) ? saturation.number / 100 : 0; - var l = isLengthPercentage(lightness) ? lightness.number / 100 : 0; - var a = typeof alpha !== 'undefined' && isLengthPercentage(alpha) ? getAbsoluteValue(alpha, 1) : 1; - if (s === 0) { - return pack(l * 255, l * 255, l * 255, 1); - } - var t2 = l <= 0.5 ? l * (s + 1) : l + s - l * s; - var t1 = l * 2 - t2; - var r = hue2rgb(t1, t2, h + 1 / 3); - var g = hue2rgb(t1, t2, h); - var b = hue2rgb(t1, t2, h - 1 / 3); - return pack(r * 255, g * 255, b * 255, a); - }; - var SUPPORTED_COLOR_FUNCTIONS = { - hsl: hsl, - hsla: hsl, - rgb: rgb, - rgba: rgb - }; - var parseColor = function (context, value) { - return color$1.parse(context, Parser.create(value).parseComponentValue()); - }; - var COLORS = { - ALICEBLUE: 0xf0f8ffff, - ANTIQUEWHITE: 0xfaebd7ff, - AQUA: 0x00ffffff, - AQUAMARINE: 0x7fffd4ff, - AZURE: 0xf0ffffff, - BEIGE: 0xf5f5dcff, - BISQUE: 0xffe4c4ff, - BLACK: 0x000000ff, - BLANCHEDALMOND: 0xffebcdff, - BLUE: 0x0000ffff, - BLUEVIOLET: 0x8a2be2ff, - BROWN: 0xa52a2aff, - BURLYWOOD: 0xdeb887ff, - CADETBLUE: 0x5f9ea0ff, - CHARTREUSE: 0x7fff00ff, - CHOCOLATE: 0xd2691eff, - CORAL: 0xff7f50ff, - CORNFLOWERBLUE: 0x6495edff, - CORNSILK: 0xfff8dcff, - CRIMSON: 0xdc143cff, - CYAN: 0x00ffffff, - DARKBLUE: 0x00008bff, - DARKCYAN: 0x008b8bff, - DARKGOLDENROD: 0xb886bbff, - DARKGRAY: 0xa9a9a9ff, - DARKGREEN: 0x006400ff, - DARKGREY: 0xa9a9a9ff, - DARKKHAKI: 0xbdb76bff, - DARKMAGENTA: 0x8b008bff, - DARKOLIVEGREEN: 0x556b2fff, - DARKORANGE: 0xff8c00ff, - DARKORCHID: 0x9932ccff, - DARKRED: 0x8b0000ff, - DARKSALMON: 0xe9967aff, - DARKSEAGREEN: 0x8fbc8fff, - DARKSLATEBLUE: 0x483d8bff, - DARKSLATEGRAY: 0x2f4f4fff, - DARKSLATEGREY: 0x2f4f4fff, - DARKTURQUOISE: 0x00ced1ff, - DARKVIOLET: 0x9400d3ff, - DEEPPINK: 0xff1493ff, - DEEPSKYBLUE: 0x00bfffff, - DIMGRAY: 0x696969ff, - DIMGREY: 0x696969ff, - DODGERBLUE: 0x1e90ffff, - FIREBRICK: 0xb22222ff, - FLORALWHITE: 0xfffaf0ff, - FORESTGREEN: 0x228b22ff, - FUCHSIA: 0xff00ffff, - GAINSBORO: 0xdcdcdcff, - GHOSTWHITE: 0xf8f8ffff, - GOLD: 0xffd700ff, - GOLDENROD: 0xdaa520ff, - GRAY: 0x808080ff, - GREEN: 0x008000ff, - GREENYELLOW: 0xadff2fff, - GREY: 0x808080ff, - HONEYDEW: 0xf0fff0ff, - HOTPINK: 0xff69b4ff, - INDIANRED: 0xcd5c5cff, - INDIGO: 0x4b0082ff, - IVORY: 0xfffff0ff, - KHAKI: 0xf0e68cff, - LAVENDER: 0xe6e6faff, - LAVENDERBLUSH: 0xfff0f5ff, - LAWNGREEN: 0x7cfc00ff, - LEMONCHIFFON: 0xfffacdff, - LIGHTBLUE: 0xadd8e6ff, - LIGHTCORAL: 0xf08080ff, - LIGHTCYAN: 0xe0ffffff, - LIGHTGOLDENRODYELLOW: 0xfafad2ff, - LIGHTGRAY: 0xd3d3d3ff, - LIGHTGREEN: 0x90ee90ff, - LIGHTGREY: 0xd3d3d3ff, - LIGHTPINK: 0xffb6c1ff, - LIGHTSALMON: 0xffa07aff, - LIGHTSEAGREEN: 0x20b2aaff, - LIGHTSKYBLUE: 0x87cefaff, - LIGHTSLATEGRAY: 0x778899ff, - LIGHTSLATEGREY: 0x778899ff, - LIGHTSTEELBLUE: 0xb0c4deff, - LIGHTYELLOW: 0xffffe0ff, - LIME: 0x00ff00ff, - LIMEGREEN: 0x32cd32ff, - LINEN: 0xfaf0e6ff, - MAGENTA: 0xff00ffff, - MAROON: 0x800000ff, - MEDIUMAQUAMARINE: 0x66cdaaff, - MEDIUMBLUE: 0x0000cdff, - MEDIUMORCHID: 0xba55d3ff, - MEDIUMPURPLE: 0x9370dbff, - MEDIUMSEAGREEN: 0x3cb371ff, - MEDIUMSLATEBLUE: 0x7b68eeff, - MEDIUMSPRINGGREEN: 0x00fa9aff, - MEDIUMTURQUOISE: 0x48d1ccff, - MEDIUMVIOLETRED: 0xc71585ff, - MIDNIGHTBLUE: 0x191970ff, - MINTCREAM: 0xf5fffaff, - MISTYROSE: 0xffe4e1ff, - MOCCASIN: 0xffe4b5ff, - NAVAJOWHITE: 0xffdeadff, - NAVY: 0x000080ff, - OLDLACE: 0xfdf5e6ff, - OLIVE: 0x808000ff, - OLIVEDRAB: 0x6b8e23ff, - ORANGE: 0xffa500ff, - ORANGERED: 0xff4500ff, - ORCHID: 0xda70d6ff, - PALEGOLDENROD: 0xeee8aaff, - PALEGREEN: 0x98fb98ff, - PALETURQUOISE: 0xafeeeeff, - PALEVIOLETRED: 0xdb7093ff, - PAPAYAWHIP: 0xffefd5ff, - PEACHPUFF: 0xffdab9ff, - PERU: 0xcd853fff, - PINK: 0xffc0cbff, - PLUM: 0xdda0ddff, - POWDERBLUE: 0xb0e0e6ff, - PURPLE: 0x800080ff, - REBECCAPURPLE: 0x663399ff, - RED: 0xff0000ff, - ROSYBROWN: 0xbc8f8fff, - ROYALBLUE: 0x4169e1ff, - SADDLEBROWN: 0x8b4513ff, - SALMON: 0xfa8072ff, - SANDYBROWN: 0xf4a460ff, - SEAGREEN: 0x2e8b57ff, - SEASHELL: 0xfff5eeff, - SIENNA: 0xa0522dff, - SILVER: 0xc0c0c0ff, - SKYBLUE: 0x87ceebff, - SLATEBLUE: 0x6a5acdff, - SLATEGRAY: 0x708090ff, - SLATEGREY: 0x708090ff, - SNOW: 0xfffafaff, - SPRINGGREEN: 0x00ff7fff, - STEELBLUE: 0x4682b4ff, - TAN: 0xd2b48cff, - TEAL: 0x008080ff, - THISTLE: 0xd8bfd8ff, - TOMATO: 0xff6347ff, - TRANSPARENT: 0x00000000, - TURQUOISE: 0x40e0d0ff, - VIOLET: 0xee82eeff, - WHEAT: 0xf5deb3ff, - WHITE: 0xffffffff, - WHITESMOKE: 0xf5f5f5ff, - YELLOW: 0xffff00ff, - YELLOWGREEN: 0x9acd32ff - }; - - var backgroundClip = { - name: 'background-clip', - initialValue: 'border-box', - prefix: false, - type: 1 /* LIST */, - parse: function (_context, tokens) { - return tokens.map(function (token) { - if (isIdentToken(token)) { - switch (token.value) { - case 'padding-box': - return 1 /* PADDING_BOX */; - case 'content-box': - return 2 /* CONTENT_BOX */; - } - } - return 0 /* BORDER_BOX */; - }); - } - }; - - var backgroundColor = { - name: "background-color", - initialValue: 'transparent', - prefix: false, - type: 3 /* TYPE_VALUE */, - format: 'color' - }; - - var parseColorStop = function (context, args) { - var color = color$1.parse(context, args[0]); - var stop = args[1]; - return stop && isLengthPercentage(stop) ? { color: color, stop: stop } : { color: color, stop: null }; - }; - var processColorStops = function (stops, lineLength) { - var first = stops[0]; - var last = stops[stops.length - 1]; - if (first.stop === null) { - first.stop = ZERO_LENGTH; - } - if (last.stop === null) { - last.stop = HUNDRED_PERCENT; - } - var processStops = []; - var previous = 0; - for (var i = 0; i < stops.length; i++) { - var stop_1 = stops[i].stop; - if (stop_1 !== null) { - var absoluteValue = getAbsoluteValue(stop_1, lineLength); - if (absoluteValue > previous) { - processStops.push(absoluteValue); - } - else { - processStops.push(previous); - } - previous = absoluteValue; - } - else { - processStops.push(null); - } - } - var gapBegin = null; - for (var i = 0; i < processStops.length; i++) { - var stop_2 = processStops[i]; - if (stop_2 === null) { - if (gapBegin === null) { - gapBegin = i; - } - } - else if (gapBegin !== null) { - var gapLength = i - gapBegin; - var beforeGap = processStops[gapBegin - 1]; - var gapValue = (stop_2 - beforeGap) / (gapLength + 1); - for (var g = 1; g <= gapLength; g++) { - processStops[gapBegin + g - 1] = gapValue * g; - } - gapBegin = null; - } - } - return stops.map(function (_a, i) { - var color = _a.color; - return { color: color, stop: Math.max(Math.min(1, processStops[i] / lineLength), 0) }; - }); - }; - var getAngleFromCorner = function (corner, width, height) { - var centerX = width / 2; - var centerY = height / 2; - var x = getAbsoluteValue(corner[0], width) - centerX; - var y = centerY - getAbsoluteValue(corner[1], height); - return (Math.atan2(y, x) + Math.PI * 2) % (Math.PI * 2); - }; - var calculateGradientDirection = function (angle, width, height) { - var radian = typeof angle === 'number' ? angle : getAngleFromCorner(angle, width, height); - var lineLength = Math.abs(width * Math.sin(radian)) + Math.abs(height * Math.cos(radian)); - var halfWidth = width / 2; - var halfHeight = height / 2; - var halfLineLength = lineLength / 2; - var yDiff = Math.sin(radian - Math.PI / 2) * halfLineLength; - var xDiff = Math.cos(radian - Math.PI / 2) * halfLineLength; - return [lineLength, halfWidth - xDiff, halfWidth + xDiff, halfHeight - yDiff, halfHeight + yDiff]; - }; - var distance = function (a, b) { return Math.sqrt(a * a + b * b); }; - var findCorner = function (width, height, x, y, closest) { - var corners = [ - [0, 0], - [0, height], - [width, 0], - [width, height] - ]; - return corners.reduce(function (stat, corner) { - var cx = corner[0], cy = corner[1]; - var d = distance(x - cx, y - cy); - if (closest ? d < stat.optimumDistance : d > stat.optimumDistance) { - return { - optimumCorner: corner, - optimumDistance: d - }; - } - return stat; - }, { - optimumDistance: closest ? Infinity : -Infinity, - optimumCorner: null - }).optimumCorner; - }; - var calculateRadius = function (gradient, x, y, width, height) { - var rx = 0; - var ry = 0; - switch (gradient.size) { - case 0 /* CLOSEST_SIDE */: - // The ending shape is sized so that that it exactly meets the side of the gradient box closest to the gradient’s center. - // If the shape is an ellipse, it exactly meets the closest side in each dimension. - if (gradient.shape === 0 /* CIRCLE */) { - rx = ry = Math.min(Math.abs(x), Math.abs(x - width), Math.abs(y), Math.abs(y - height)); - } - else if (gradient.shape === 1 /* ELLIPSE */) { - rx = Math.min(Math.abs(x), Math.abs(x - width)); - ry = Math.min(Math.abs(y), Math.abs(y - height)); - } - break; - case 2 /* CLOSEST_CORNER */: - // The ending shape is sized so that that it passes through the corner of the gradient box closest to the gradient’s center. - // If the shape is an ellipse, the ending shape is given the same aspect-ratio it would have if closest-side were specified. - if (gradient.shape === 0 /* CIRCLE */) { - rx = ry = Math.min(distance(x, y), distance(x, y - height), distance(x - width, y), distance(x - width, y - height)); - } - else if (gradient.shape === 1 /* ELLIPSE */) { - // Compute the ratio ry/rx (which is to be the same as for "closest-side") - var c = Math.min(Math.abs(y), Math.abs(y - height)) / Math.min(Math.abs(x), Math.abs(x - width)); - var _a = findCorner(width, height, x, y, true), cx = _a[0], cy = _a[1]; - rx = distance(cx - x, (cy - y) / c); - ry = c * rx; - } - break; - case 1 /* FARTHEST_SIDE */: - // Same as closest-side, except the ending shape is sized based on the farthest side(s) - if (gradient.shape === 0 /* CIRCLE */) { - rx = ry = Math.max(Math.abs(x), Math.abs(x - width), Math.abs(y), Math.abs(y - height)); - } - else if (gradient.shape === 1 /* ELLIPSE */) { - rx = Math.max(Math.abs(x), Math.abs(x - width)); - ry = Math.max(Math.abs(y), Math.abs(y - height)); - } - break; - case 3 /* FARTHEST_CORNER */: - // Same as closest-corner, except the ending shape is sized based on the farthest corner. - // If the shape is an ellipse, the ending shape is given the same aspect ratio it would have if farthest-side were specified. - if (gradient.shape === 0 /* CIRCLE */) { - rx = ry = Math.max(distance(x, y), distance(x, y - height), distance(x - width, y), distance(x - width, y - height)); - } - else if (gradient.shape === 1 /* ELLIPSE */) { - // Compute the ratio ry/rx (which is to be the same as for "farthest-side") - var c = Math.max(Math.abs(y), Math.abs(y - height)) / Math.max(Math.abs(x), Math.abs(x - width)); - var _b = findCorner(width, height, x, y, false), cx = _b[0], cy = _b[1]; - rx = distance(cx - x, (cy - y) / c); - ry = c * rx; - } - break; - } - if (Array.isArray(gradient.size)) { - rx = getAbsoluteValue(gradient.size[0], width); - ry = gradient.size.length === 2 ? getAbsoluteValue(gradient.size[1], height) : rx; - } - return [rx, ry]; - }; - - var linearGradient = function (context, tokens) { - var angle$1 = deg(180); - var stops = []; - parseFunctionArgs(tokens).forEach(function (arg, i) { - if (i === 0) { - var firstToken = arg[0]; - if (firstToken.type === 20 /* IDENT_TOKEN */ && firstToken.value === 'to') { - angle$1 = parseNamedSide(arg); - return; - } - else if (isAngle(firstToken)) { - angle$1 = angle.parse(context, firstToken); - return; - } - } - var colorStop = parseColorStop(context, arg); - stops.push(colorStop); - }); - return { angle: angle$1, stops: stops, type: 1 /* LINEAR_GRADIENT */ }; - }; - - var prefixLinearGradient = function (context, tokens) { - var angle$1 = deg(180); - var stops = []; - parseFunctionArgs(tokens).forEach(function (arg, i) { - if (i === 0) { - var firstToken = arg[0]; - if (firstToken.type === 20 /* IDENT_TOKEN */ && - ['top', 'left', 'right', 'bottom'].indexOf(firstToken.value) !== -1) { - angle$1 = parseNamedSide(arg); - return; - } - else if (isAngle(firstToken)) { - angle$1 = (angle.parse(context, firstToken) + deg(270)) % deg(360); - return; - } - } - var colorStop = parseColorStop(context, arg); - stops.push(colorStop); - }); - return { - angle: angle$1, - stops: stops, - type: 1 /* LINEAR_GRADIENT */ - }; - }; - - var webkitGradient = function (context, tokens) { - var angle = deg(180); - var stops = []; - var type = 1 /* LINEAR_GRADIENT */; - var shape = 0 /* CIRCLE */; - var size = 3 /* FARTHEST_CORNER */; - var position = []; - parseFunctionArgs(tokens).forEach(function (arg, i) { - var firstToken = arg[0]; - if (i === 0) { - if (isIdentToken(firstToken) && firstToken.value === 'linear') { - type = 1 /* LINEAR_GRADIENT */; - return; - } - else if (isIdentToken(firstToken) && firstToken.value === 'radial') { - type = 2 /* RADIAL_GRADIENT */; - return; - } - } - if (firstToken.type === 18 /* FUNCTION */) { - if (firstToken.name === 'from') { - var color = color$1.parse(context, firstToken.values[0]); - stops.push({ stop: ZERO_LENGTH, color: color }); - } - else if (firstToken.name === 'to') { - var color = color$1.parse(context, firstToken.values[0]); - stops.push({ stop: HUNDRED_PERCENT, color: color }); - } - else if (firstToken.name === 'color-stop') { - var values = firstToken.values.filter(nonFunctionArgSeparator); - if (values.length === 2) { - var color = color$1.parse(context, values[1]); - var stop_1 = values[0]; - if (isNumberToken(stop_1)) { - stops.push({ - stop: { type: 16 /* PERCENTAGE_TOKEN */, number: stop_1.number * 100, flags: stop_1.flags }, - color: color - }); - } - } - } - } - }); - return type === 1 /* LINEAR_GRADIENT */ - ? { - angle: (angle + deg(180)) % deg(360), - stops: stops, - type: type - } - : { size: size, shape: shape, stops: stops, position: position, type: type }; - }; - - var CLOSEST_SIDE = 'closest-side'; - var FARTHEST_SIDE = 'farthest-side'; - var CLOSEST_CORNER = 'closest-corner'; - var FARTHEST_CORNER = 'farthest-corner'; - var CIRCLE = 'circle'; - var ELLIPSE = 'ellipse'; - var COVER = 'cover'; - var CONTAIN = 'contain'; - var radialGradient = function (context, tokens) { - var shape = 0 /* CIRCLE */; - var size = 3 /* FARTHEST_CORNER */; - var stops = []; - var position = []; - parseFunctionArgs(tokens).forEach(function (arg, i) { - var isColorStop = true; - if (i === 0) { - var isAtPosition_1 = false; - isColorStop = arg.reduce(function (acc, token) { - if (isAtPosition_1) { - if (isIdentToken(token)) { - switch (token.value) { - case 'center': - position.push(FIFTY_PERCENT); - return acc; - case 'top': - case 'left': - position.push(ZERO_LENGTH); - return acc; - case 'right': - case 'bottom': - position.push(HUNDRED_PERCENT); - return acc; - } - } - else if (isLengthPercentage(token) || isLength(token)) { - position.push(token); - } - } - else if (isIdentToken(token)) { - switch (token.value) { - case CIRCLE: - shape = 0 /* CIRCLE */; - return false; - case ELLIPSE: - shape = 1 /* ELLIPSE */; - return false; - case 'at': - isAtPosition_1 = true; - return false; - case CLOSEST_SIDE: - size = 0 /* CLOSEST_SIDE */; - return false; - case COVER: - case FARTHEST_SIDE: - size = 1 /* FARTHEST_SIDE */; - return false; - case CONTAIN: - case CLOSEST_CORNER: - size = 2 /* CLOSEST_CORNER */; - return false; - case FARTHEST_CORNER: - size = 3 /* FARTHEST_CORNER */; - return false; - } - } - else if (isLength(token) || isLengthPercentage(token)) { - if (!Array.isArray(size)) { - size = []; - } - size.push(token); - return false; - } - return acc; - }, isColorStop); - } - if (isColorStop) { - var colorStop = parseColorStop(context, arg); - stops.push(colorStop); - } - }); - return { size: size, shape: shape, stops: stops, position: position, type: 2 /* RADIAL_GRADIENT */ }; - }; - - var prefixRadialGradient = function (context, tokens) { - var shape = 0 /* CIRCLE */; - var size = 3 /* FARTHEST_CORNER */; - var stops = []; - var position = []; - parseFunctionArgs(tokens).forEach(function (arg, i) { - var isColorStop = true; - if (i === 0) { - isColorStop = arg.reduce(function (acc, token) { - if (isIdentToken(token)) { - switch (token.value) { - case 'center': - position.push(FIFTY_PERCENT); - return false; - case 'top': - case 'left': - position.push(ZERO_LENGTH); - return false; - case 'right': - case 'bottom': - position.push(HUNDRED_PERCENT); - return false; - } - } - else if (isLengthPercentage(token) || isLength(token)) { - position.push(token); - return false; - } - return acc; - }, isColorStop); - } - else if (i === 1) { - isColorStop = arg.reduce(function (acc, token) { - if (isIdentToken(token)) { - switch (token.value) { - case CIRCLE: - shape = 0 /* CIRCLE */; - return false; - case ELLIPSE: - shape = 1 /* ELLIPSE */; - return false; - case CONTAIN: - case CLOSEST_SIDE: - size = 0 /* CLOSEST_SIDE */; - return false; - case FARTHEST_SIDE: - size = 1 /* FARTHEST_SIDE */; - return false; - case CLOSEST_CORNER: - size = 2 /* CLOSEST_CORNER */; - return false; - case COVER: - case FARTHEST_CORNER: - size = 3 /* FARTHEST_CORNER */; - return false; - } - } - else if (isLength(token) || isLengthPercentage(token)) { - if (!Array.isArray(size)) { - size = []; - } - size.push(token); - return false; - } - return acc; - }, isColorStop); - } - if (isColorStop) { - var colorStop = parseColorStop(context, arg); - stops.push(colorStop); - } - }); - return { size: size, shape: shape, stops: stops, position: position, type: 2 /* RADIAL_GRADIENT */ }; - }; - - var isLinearGradient = function (background) { - return background.type === 1 /* LINEAR_GRADIENT */; - }; - var isRadialGradient = function (background) { - return background.type === 2 /* RADIAL_GRADIENT */; - }; - var image = { - name: 'image', - parse: function (context, value) { - if (value.type === 22 /* URL_TOKEN */) { - var image_1 = { url: value.value, type: 0 /* URL */ }; - context.cache.addImage(value.value); - return image_1; - } - if (value.type === 18 /* FUNCTION */) { - var imageFunction = SUPPORTED_IMAGE_FUNCTIONS[value.name]; - if (typeof imageFunction === 'undefined') { - throw new Error("Attempting to parse an unsupported image function \"" + value.name + "\""); - } - return imageFunction(context, value.values); - } - throw new Error("Unsupported image type " + value.type); - } - }; - function isSupportedImage(value) { - return (!(value.type === 20 /* IDENT_TOKEN */ && value.value === 'none') && - (value.type !== 18 /* FUNCTION */ || !!SUPPORTED_IMAGE_FUNCTIONS[value.name])); - } - var SUPPORTED_IMAGE_FUNCTIONS = { - 'linear-gradient': linearGradient, - '-moz-linear-gradient': prefixLinearGradient, - '-ms-linear-gradient': prefixLinearGradient, - '-o-linear-gradient': prefixLinearGradient, - '-webkit-linear-gradient': prefixLinearGradient, - 'radial-gradient': radialGradient, - '-moz-radial-gradient': prefixRadialGradient, - '-ms-radial-gradient': prefixRadialGradient, - '-o-radial-gradient': prefixRadialGradient, - '-webkit-radial-gradient': prefixRadialGradient, - '-webkit-gradient': webkitGradient - }; - - var backgroundImage = { - name: 'background-image', - initialValue: 'none', - type: 1 /* LIST */, - prefix: false, - parse: function (context, tokens) { - if (tokens.length === 0) { - return []; - } - var first = tokens[0]; - if (first.type === 20 /* IDENT_TOKEN */ && first.value === 'none') { - return []; - } - return tokens - .filter(function (value) { return nonFunctionArgSeparator(value) && isSupportedImage(value); }) - .map(function (value) { return image.parse(context, value); }); - } - }; - - var backgroundOrigin = { - name: 'background-origin', - initialValue: 'border-box', - prefix: false, - type: 1 /* LIST */, - parse: function (_context, tokens) { - return tokens.map(function (token) { - if (isIdentToken(token)) { - switch (token.value) { - case 'padding-box': - return 1 /* PADDING_BOX */; - case 'content-box': - return 2 /* CONTENT_BOX */; - } - } - return 0 /* BORDER_BOX */; - }); - } - }; - - var backgroundPosition = { - name: 'background-position', - initialValue: '0% 0%', - type: 1 /* LIST */, - prefix: false, - parse: function (_context, tokens) { - return parseFunctionArgs(tokens) - .map(function (values) { return values.filter(isLengthPercentage); }) - .map(parseLengthPercentageTuple); - } - }; - - var backgroundRepeat = { - name: 'background-repeat', - initialValue: 'repeat', - prefix: false, - type: 1 /* LIST */, - parse: function (_context, tokens) { - return parseFunctionArgs(tokens) - .map(function (values) { - return values - .filter(isIdentToken) - .map(function (token) { return token.value; }) - .join(' '); - }) - .map(parseBackgroundRepeat); - } - }; - var parseBackgroundRepeat = function (value) { - switch (value) { - case 'no-repeat': - return 1 /* NO_REPEAT */; - case 'repeat-x': - case 'repeat no-repeat': - return 2 /* REPEAT_X */; - case 'repeat-y': - case 'no-repeat repeat': - return 3 /* REPEAT_Y */; - case 'repeat': - default: - return 0 /* REPEAT */; - } - }; - - var BACKGROUND_SIZE; - (function (BACKGROUND_SIZE) { - BACKGROUND_SIZE["AUTO"] = "auto"; - BACKGROUND_SIZE["CONTAIN"] = "contain"; - BACKGROUND_SIZE["COVER"] = "cover"; - })(BACKGROUND_SIZE || (BACKGROUND_SIZE = {})); - var backgroundSize = { - name: 'background-size', - initialValue: '0', - prefix: false, - type: 1 /* LIST */, - parse: function (_context, tokens) { - return parseFunctionArgs(tokens).map(function (values) { return values.filter(isBackgroundSizeInfoToken); }); - } - }; - var isBackgroundSizeInfoToken = function (value) { - return isIdentToken(value) || isLengthPercentage(value); - }; - - var borderColorForSide = function (side) { return ({ - name: "border-" + side + "-color", - initialValue: 'transparent', - prefix: false, - type: 3 /* TYPE_VALUE */, - format: 'color' - }); }; - var borderTopColor = borderColorForSide('top'); - var borderRightColor = borderColorForSide('right'); - var borderBottomColor = borderColorForSide('bottom'); - var borderLeftColor = borderColorForSide('left'); - - var borderRadiusForSide = function (side) { return ({ - name: "border-radius-" + side, - initialValue: '0 0', - prefix: false, - type: 1 /* LIST */, - parse: function (_context, tokens) { - return parseLengthPercentageTuple(tokens.filter(isLengthPercentage)); - } - }); }; - var borderTopLeftRadius = borderRadiusForSide('top-left'); - var borderTopRightRadius = borderRadiusForSide('top-right'); - var borderBottomRightRadius = borderRadiusForSide('bottom-right'); - var borderBottomLeftRadius = borderRadiusForSide('bottom-left'); - - var borderStyleForSide = function (side) { return ({ - name: "border-" + side + "-style", - initialValue: 'solid', - prefix: false, - type: 2 /* IDENT_VALUE */, - parse: function (_context, style) { - switch (style) { - case 'none': - return 0 /* NONE */; - case 'dashed': - return 2 /* DASHED */; - case 'dotted': - return 3 /* DOTTED */; - case 'double': - return 4 /* DOUBLE */; - } - return 1 /* SOLID */; - } - }); }; - var borderTopStyle = borderStyleForSide('top'); - var borderRightStyle = borderStyleForSide('right'); - var borderBottomStyle = borderStyleForSide('bottom'); - var borderLeftStyle = borderStyleForSide('left'); - - var borderWidthForSide = function (side) { return ({ - name: "border-" + side + "-width", - initialValue: '0', - type: 0 /* VALUE */, - prefix: false, - parse: function (_context, token) { - if (isDimensionToken(token)) { - return token.number; - } - return 0; - } - }); }; - var borderTopWidth = borderWidthForSide('top'); - var borderRightWidth = borderWidthForSide('right'); - var borderBottomWidth = borderWidthForSide('bottom'); - var borderLeftWidth = borderWidthForSide('left'); - - var color = { - name: "color", - initialValue: 'transparent', - prefix: false, - type: 3 /* TYPE_VALUE */, - format: 'color' - }; - - var direction = { - name: 'direction', - initialValue: 'ltr', - prefix: false, - type: 2 /* IDENT_VALUE */, - parse: function (_context, direction) { - switch (direction) { - case 'rtl': - return 1 /* RTL */; - case 'ltr': - default: - return 0 /* LTR */; - } - } - }; - - var display = { - name: 'display', - initialValue: 'inline-block', - prefix: false, - type: 1 /* LIST */, - parse: function (_context, tokens) { - return tokens.filter(isIdentToken).reduce(function (bit, token) { - return bit | parseDisplayValue(token.value); - }, 0 /* NONE */); - } - }; - var parseDisplayValue = function (display) { - switch (display) { - case 'block': - case '-webkit-box': - return 2 /* BLOCK */; - case 'inline': - return 4 /* INLINE */; - case 'run-in': - return 8 /* RUN_IN */; - case 'flow': - return 16 /* FLOW */; - case 'flow-root': - return 32 /* FLOW_ROOT */; - case 'table': - return 64 /* TABLE */; - case 'flex': - case '-webkit-flex': - return 128 /* FLEX */; - case 'grid': - case '-ms-grid': - return 256 /* GRID */; - case 'ruby': - return 512 /* RUBY */; - case 'subgrid': - return 1024 /* SUBGRID */; - case 'list-item': - return 2048 /* LIST_ITEM */; - case 'table-row-group': - return 4096 /* TABLE_ROW_GROUP */; - case 'table-header-group': - return 8192 /* TABLE_HEADER_GROUP */; - case 'table-footer-group': - return 16384 /* TABLE_FOOTER_GROUP */; - case 'table-row': - return 32768 /* TABLE_ROW */; - case 'table-cell': - return 65536 /* TABLE_CELL */; - case 'table-column-group': - return 131072 /* TABLE_COLUMN_GROUP */; - case 'table-column': - return 262144 /* TABLE_COLUMN */; - case 'table-caption': - return 524288 /* TABLE_CAPTION */; - case 'ruby-base': - return 1048576 /* RUBY_BASE */; - case 'ruby-text': - return 2097152 /* RUBY_TEXT */; - case 'ruby-base-container': - return 4194304 /* RUBY_BASE_CONTAINER */; - case 'ruby-text-container': - return 8388608 /* RUBY_TEXT_CONTAINER */; - case 'contents': - return 16777216 /* CONTENTS */; - case 'inline-block': - return 33554432 /* INLINE_BLOCK */; - case 'inline-list-item': - return 67108864 /* INLINE_LIST_ITEM */; - case 'inline-table': - return 134217728 /* INLINE_TABLE */; - case 'inline-flex': - return 268435456 /* INLINE_FLEX */; - case 'inline-grid': - return 536870912 /* INLINE_GRID */; - } - return 0 /* NONE */; - }; - - var float = { - name: 'float', - initialValue: 'none', - prefix: false, - type: 2 /* IDENT_VALUE */, - parse: function (_context, float) { - switch (float) { - case 'left': - return 1 /* LEFT */; - case 'right': - return 2 /* RIGHT */; - case 'inline-start': - return 3 /* INLINE_START */; - case 'inline-end': - return 4 /* INLINE_END */; - } - return 0 /* NONE */; - } - }; - - var letterSpacing = { - name: 'letter-spacing', - initialValue: '0', - prefix: false, - type: 0 /* VALUE */, - parse: function (_context, token) { - if (token.type === 20 /* IDENT_TOKEN */ && token.value === 'normal') { - return 0; - } - if (token.type === 17 /* NUMBER_TOKEN */) { - return token.number; - } - if (token.type === 15 /* DIMENSION_TOKEN */) { - return token.number; - } - return 0; - } - }; - - var LINE_BREAK; - (function (LINE_BREAK) { - LINE_BREAK["NORMAL"] = "normal"; - LINE_BREAK["STRICT"] = "strict"; - })(LINE_BREAK || (LINE_BREAK = {})); - var lineBreak = { - name: 'line-break', - initialValue: 'normal', - prefix: false, - type: 2 /* IDENT_VALUE */, - parse: function (_context, lineBreak) { - switch (lineBreak) { - case 'strict': - return LINE_BREAK.STRICT; - case 'normal': - default: - return LINE_BREAK.NORMAL; - } - } - }; - - var lineHeight = { - name: 'line-height', - initialValue: 'normal', - prefix: false, - type: 4 /* TOKEN_VALUE */ - }; - var computeLineHeight = function (token, fontSize) { - if (isIdentToken(token) && token.value === 'normal') { - return 1.2 * fontSize; - } - else if (token.type === 17 /* NUMBER_TOKEN */) { - return fontSize * token.number; - } - else if (isLengthPercentage(token)) { - return getAbsoluteValue(token, fontSize); - } - return fontSize; - }; - - var listStyleImage = { - name: 'list-style-image', - initialValue: 'none', - type: 0 /* VALUE */, - prefix: false, - parse: function (context, token) { - if (token.type === 20 /* IDENT_TOKEN */ && token.value === 'none') { - return null; - } - return image.parse(context, token); - } - }; - - var listStylePosition = { - name: 'list-style-position', - initialValue: 'outside', - prefix: false, - type: 2 /* IDENT_VALUE */, - parse: function (_context, position) { - switch (position) { - case 'inside': - return 0 /* INSIDE */; - case 'outside': - default: - return 1 /* OUTSIDE */; - } - } - }; - - var listStyleType = { - name: 'list-style-type', - initialValue: 'none', - prefix: false, - type: 2 /* IDENT_VALUE */, - parse: function (_context, type) { - switch (type) { - case 'disc': - return 0 /* DISC */; - case 'circle': - return 1 /* CIRCLE */; - case 'square': - return 2 /* SQUARE */; - case 'decimal': - return 3 /* DECIMAL */; - case 'cjk-decimal': - return 4 /* CJK_DECIMAL */; - case 'decimal-leading-zero': - return 5 /* DECIMAL_LEADING_ZERO */; - case 'lower-roman': - return 6 /* LOWER_ROMAN */; - case 'upper-roman': - return 7 /* UPPER_ROMAN */; - case 'lower-greek': - return 8 /* LOWER_GREEK */; - case 'lower-alpha': - return 9 /* LOWER_ALPHA */; - case 'upper-alpha': - return 10 /* UPPER_ALPHA */; - case 'arabic-indic': - return 11 /* ARABIC_INDIC */; - case 'armenian': - return 12 /* ARMENIAN */; - case 'bengali': - return 13 /* BENGALI */; - case 'cambodian': - return 14 /* CAMBODIAN */; - case 'cjk-earthly-branch': - return 15 /* CJK_EARTHLY_BRANCH */; - case 'cjk-heavenly-stem': - return 16 /* CJK_HEAVENLY_STEM */; - case 'cjk-ideographic': - return 17 /* CJK_IDEOGRAPHIC */; - case 'devanagari': - return 18 /* DEVANAGARI */; - case 'ethiopic-numeric': - return 19 /* ETHIOPIC_NUMERIC */; - case 'georgian': - return 20 /* GEORGIAN */; - case 'gujarati': - return 21 /* GUJARATI */; - case 'gurmukhi': - return 22 /* GURMUKHI */; - case 'hebrew': - return 22 /* HEBREW */; - case 'hiragana': - return 23 /* HIRAGANA */; - case 'hiragana-iroha': - return 24 /* HIRAGANA_IROHA */; - case 'japanese-formal': - return 25 /* JAPANESE_FORMAL */; - case 'japanese-informal': - return 26 /* JAPANESE_INFORMAL */; - case 'kannada': - return 27 /* KANNADA */; - case 'katakana': - return 28 /* KATAKANA */; - case 'katakana-iroha': - return 29 /* KATAKANA_IROHA */; - case 'khmer': - return 30 /* KHMER */; - case 'korean-hangul-formal': - return 31 /* KOREAN_HANGUL_FORMAL */; - case 'korean-hanja-formal': - return 32 /* KOREAN_HANJA_FORMAL */; - case 'korean-hanja-informal': - return 33 /* KOREAN_HANJA_INFORMAL */; - case 'lao': - return 34 /* LAO */; - case 'lower-armenian': - return 35 /* LOWER_ARMENIAN */; - case 'malayalam': - return 36 /* MALAYALAM */; - case 'mongolian': - return 37 /* MONGOLIAN */; - case 'myanmar': - return 38 /* MYANMAR */; - case 'oriya': - return 39 /* ORIYA */; - case 'persian': - return 40 /* PERSIAN */; - case 'simp-chinese-formal': - return 41 /* SIMP_CHINESE_FORMAL */; - case 'simp-chinese-informal': - return 42 /* SIMP_CHINESE_INFORMAL */; - case 'tamil': - return 43 /* TAMIL */; - case 'telugu': - return 44 /* TELUGU */; - case 'thai': - return 45 /* THAI */; - case 'tibetan': - return 46 /* TIBETAN */; - case 'trad-chinese-formal': - return 47 /* TRAD_CHINESE_FORMAL */; - case 'trad-chinese-informal': - return 48 /* TRAD_CHINESE_INFORMAL */; - case 'upper-armenian': - return 49 /* UPPER_ARMENIAN */; - case 'disclosure-open': - return 50 /* DISCLOSURE_OPEN */; - case 'disclosure-closed': - return 51 /* DISCLOSURE_CLOSED */; - case 'none': - default: - return -1 /* NONE */; - } - } - }; - - var marginForSide = function (side) { return ({ - name: "margin-" + side, - initialValue: '0', - prefix: false, - type: 4 /* TOKEN_VALUE */ - }); }; - var marginTop = marginForSide('top'); - var marginRight = marginForSide('right'); - var marginBottom = marginForSide('bottom'); - var marginLeft = marginForSide('left'); - - var overflow = { - name: 'overflow', - initialValue: 'visible', - prefix: false, - type: 1 /* LIST */, - parse: function (_context, tokens) { - return tokens.filter(isIdentToken).map(function (overflow) { - switch (overflow.value) { - case 'hidden': - return 1 /* HIDDEN */; - case 'scroll': - return 2 /* SCROLL */; - case 'clip': - return 3 /* CLIP */; - case 'auto': - return 4 /* AUTO */; - case 'visible': - default: - return 0 /* VISIBLE */; - } - }); - } - }; - - var overflowWrap = { - name: 'overflow-wrap', - initialValue: 'normal', - prefix: false, - type: 2 /* IDENT_VALUE */, - parse: function (_context, overflow) { - switch (overflow) { - case 'break-word': - return "break-word" /* BREAK_WORD */; - case 'normal': - default: - return "normal" /* NORMAL */; - } - } - }; - - var paddingForSide = function (side) { return ({ - name: "padding-" + side, - initialValue: '0', - prefix: false, - type: 3 /* TYPE_VALUE */, - format: 'length-percentage' - }); }; - var paddingTop = paddingForSide('top'); - var paddingRight = paddingForSide('right'); - var paddingBottom = paddingForSide('bottom'); - var paddingLeft = paddingForSide('left'); - - var textAlign = { - name: 'text-align', - initialValue: 'left', - prefix: false, - type: 2 /* IDENT_VALUE */, - parse: function (_context, textAlign) { - switch (textAlign) { - case 'right': - return 2 /* RIGHT */; - case 'center': - case 'justify': - return 1 /* CENTER */; - case 'left': - default: - return 0 /* LEFT */; - } - } - }; - - var position = { - name: 'position', - initialValue: 'static', - prefix: false, - type: 2 /* IDENT_VALUE */, - parse: function (_context, position) { - switch (position) { - case 'relative': - return 1 /* RELATIVE */; - case 'absolute': - return 2 /* ABSOLUTE */; - case 'fixed': - return 3 /* FIXED */; - case 'sticky': - return 4 /* STICKY */; - } - return 0 /* STATIC */; - } - }; - - var textShadow = { - name: 'text-shadow', - initialValue: 'none', - type: 1 /* LIST */, - prefix: false, - parse: function (context, tokens) { - if (tokens.length === 1 && isIdentWithValue(tokens[0], 'none')) { - return []; - } - return parseFunctionArgs(tokens).map(function (values) { - var shadow = { - color: COLORS.TRANSPARENT, - offsetX: ZERO_LENGTH, - offsetY: ZERO_LENGTH, - blur: ZERO_LENGTH - }; - var c = 0; - for (var i = 0; i < values.length; i++) { - var token = values[i]; - if (isLength(token)) { - if (c === 0) { - shadow.offsetX = token; - } - else if (c === 1) { - shadow.offsetY = token; - } - else { - shadow.blur = token; - } - c++; - } - else { - shadow.color = color$1.parse(context, token); - } - } - return shadow; - }); - } - }; - - var textTransform = { - name: 'text-transform', - initialValue: 'none', - prefix: false, - type: 2 /* IDENT_VALUE */, - parse: function (_context, textTransform) { - switch (textTransform) { - case 'uppercase': - return 2 /* UPPERCASE */; - case 'lowercase': - return 1 /* LOWERCASE */; - case 'capitalize': - return 3 /* CAPITALIZE */; - } - return 0 /* NONE */; - } - }; - - var transform$1 = { - name: 'transform', - initialValue: 'none', - prefix: true, - type: 0 /* VALUE */, - parse: function (_context, token) { - if (token.type === 20 /* IDENT_TOKEN */ && token.value === 'none') { - return null; - } - if (token.type === 18 /* FUNCTION */) { - var transformFunction = SUPPORTED_TRANSFORM_FUNCTIONS[token.name]; - if (typeof transformFunction === 'undefined') { - throw new Error("Attempting to parse an unsupported transform function \"" + token.name + "\""); - } - return transformFunction(token.values); - } - return null; - } - }; - var matrix = function (args) { - var values = args.filter(function (arg) { return arg.type === 17 /* NUMBER_TOKEN */; }).map(function (arg) { return arg.number; }); - return values.length === 6 ? values : null; - }; - // doesn't support 3D transforms at the moment - var matrix3d = function (args) { - var values = args.filter(function (arg) { return arg.type === 17 /* NUMBER_TOKEN */; }).map(function (arg) { return arg.number; }); - var a1 = values[0], b1 = values[1]; values[2]; values[3]; var a2 = values[4], b2 = values[5]; values[6]; values[7]; values[8]; values[9]; values[10]; values[11]; var a4 = values[12], b4 = values[13]; values[14]; values[15]; - return values.length === 16 ? [a1, b1, a2, b2, a4, b4] : null; - }; - var SUPPORTED_TRANSFORM_FUNCTIONS = { - matrix: matrix, - matrix3d: matrix3d - }; - - var DEFAULT_VALUE = { - type: 16 /* PERCENTAGE_TOKEN */, - number: 50, - flags: FLAG_INTEGER - }; - var DEFAULT = [DEFAULT_VALUE, DEFAULT_VALUE]; - var transformOrigin = { - name: 'transform-origin', - initialValue: '50% 50%', - prefix: true, - type: 1 /* LIST */, - parse: function (_context, tokens) { - var origins = tokens.filter(isLengthPercentage); - if (origins.length !== 2) { - return DEFAULT; - } - return [origins[0], origins[1]]; - } - }; - - var visibility = { - name: 'visible', - initialValue: 'none', - prefix: false, - type: 2 /* IDENT_VALUE */, - parse: function (_context, visibility) { - switch (visibility) { - case 'hidden': - return 1 /* HIDDEN */; - case 'collapse': - return 2 /* COLLAPSE */; - case 'visible': - default: - return 0 /* VISIBLE */; - } - } - }; - - var WORD_BREAK; - (function (WORD_BREAK) { - WORD_BREAK["NORMAL"] = "normal"; - WORD_BREAK["BREAK_ALL"] = "break-all"; - WORD_BREAK["KEEP_ALL"] = "keep-all"; - })(WORD_BREAK || (WORD_BREAK = {})); - var wordBreak = { - name: 'word-break', - initialValue: 'normal', - prefix: false, - type: 2 /* IDENT_VALUE */, - parse: function (_context, wordBreak) { - switch (wordBreak) { - case 'break-all': - return WORD_BREAK.BREAK_ALL; - case 'keep-all': - return WORD_BREAK.KEEP_ALL; - case 'normal': - default: - return WORD_BREAK.NORMAL; - } - } - }; - - var zIndex = { - name: 'z-index', - initialValue: 'auto', - prefix: false, - type: 0 /* VALUE */, - parse: function (_context, token) { - if (token.type === 20 /* IDENT_TOKEN */) { - return { auto: true, order: 0 }; - } - if (isNumberToken(token)) { - return { auto: false, order: token.number }; - } - throw new Error("Invalid z-index number parsed"); - } - }; - - var time = { - name: 'time', - parse: function (_context, value) { - if (value.type === 15 /* DIMENSION_TOKEN */) { - switch (value.unit.toLowerCase()) { - case 's': - return 1000 * value.number; - case 'ms': - return value.number; - } - } - throw new Error("Unsupported time type"); - } - }; - - var opacity = { - name: 'opacity', - initialValue: '1', - type: 0 /* VALUE */, - prefix: false, - parse: function (_context, token) { - if (isNumberToken(token)) { - return token.number; - } - return 1; - } - }; - - var textDecorationColor = { - name: "text-decoration-color", - initialValue: 'transparent', - prefix: false, - type: 3 /* TYPE_VALUE */, - format: 'color' - }; - - var textDecorationLine = { - name: 'text-decoration-line', - initialValue: 'none', - prefix: false, - type: 1 /* LIST */, - parse: function (_context, tokens) { - return tokens - .filter(isIdentToken) - .map(function (token) { - switch (token.value) { - case 'underline': - return 1 /* UNDERLINE */; - case 'overline': - return 2 /* OVERLINE */; - case 'line-through': - return 3 /* LINE_THROUGH */; - case 'none': - return 4 /* BLINK */; - } - return 0 /* NONE */; - }) - .filter(function (line) { return line !== 0 /* NONE */; }); - } - }; - - var fontFamily = { - name: "font-family", - initialValue: '', - prefix: false, - type: 1 /* LIST */, - parse: function (_context, tokens) { - var accumulator = []; - var results = []; - tokens.forEach(function (token) { - switch (token.type) { - case 20 /* IDENT_TOKEN */: - case 0 /* STRING_TOKEN */: - accumulator.push(token.value); - break; - case 17 /* NUMBER_TOKEN */: - accumulator.push(token.number.toString()); - break; - case 4 /* COMMA_TOKEN */: - results.push(accumulator.join(' ')); - accumulator.length = 0; - break; - } - }); - if (accumulator.length) { - results.push(accumulator.join(' ')); - } - return results.map(function (result) { return (result.indexOf(' ') === -1 ? result : "'" + result + "'"); }); - } - }; - - var fontSize = { - name: "font-size", - initialValue: '0', - prefix: false, - type: 3 /* TYPE_VALUE */, - format: 'length' - }; - - var fontWeight = { - name: 'font-weight', - initialValue: 'normal', - type: 0 /* VALUE */, - prefix: false, - parse: function (_context, token) { - if (isNumberToken(token)) { - return token.number; - } - if (isIdentToken(token)) { - switch (token.value) { - case 'bold': - return 700; - case 'normal': - default: - return 400; - } - } - return 400; - } - }; - - var fontVariant = { - name: 'font-variant', - initialValue: 'none', - type: 1 /* LIST */, - prefix: false, - parse: function (_context, tokens) { - return tokens.filter(isIdentToken).map(function (token) { return token.value; }); - } - }; - - var fontStyle = { - name: 'font-style', - initialValue: 'normal', - prefix: false, - type: 2 /* IDENT_VALUE */, - parse: function (_context, overflow) { - switch (overflow) { - case 'oblique': - return "oblique" /* OBLIQUE */; - case 'italic': - return "italic" /* ITALIC */; - case 'normal': - default: - return "normal" /* NORMAL */; - } - } - }; - - var contains = function (bit, value) { return (bit & value) !== 0; }; - - var content = { - name: 'content', - initialValue: 'none', - type: 1 /* LIST */, - prefix: false, - parse: function (_context, tokens) { - if (tokens.length === 0) { - return []; - } - var first = tokens[0]; - if (first.type === 20 /* IDENT_TOKEN */ && first.value === 'none') { - return []; - } - return tokens; - } - }; - - var counterIncrement = { - name: 'counter-increment', - initialValue: 'none', - prefix: true, - type: 1 /* LIST */, - parse: function (_context, tokens) { - if (tokens.length === 0) { - return null; - } - var first = tokens[0]; - if (first.type === 20 /* IDENT_TOKEN */ && first.value === 'none') { - return null; - } - var increments = []; - var filtered = tokens.filter(nonWhiteSpace); - for (var i = 0; i < filtered.length; i++) { - var counter = filtered[i]; - var next = filtered[i + 1]; - if (counter.type === 20 /* IDENT_TOKEN */) { - var increment = next && isNumberToken(next) ? next.number : 1; - increments.push({ counter: counter.value, increment: increment }); - } - } - return increments; - } - }; - - var counterReset = { - name: 'counter-reset', - initialValue: 'none', - prefix: true, - type: 1 /* LIST */, - parse: function (_context, tokens) { - if (tokens.length === 0) { - return []; - } - var resets = []; - var filtered = tokens.filter(nonWhiteSpace); - for (var i = 0; i < filtered.length; i++) { - var counter = filtered[i]; - var next = filtered[i + 1]; - if (isIdentToken(counter) && counter.value !== 'none') { - var reset = next && isNumberToken(next) ? next.number : 0; - resets.push({ counter: counter.value, reset: reset }); - } - } - return resets; - } - }; - - var duration = { - name: 'duration', - initialValue: '0s', - prefix: false, - type: 1 /* LIST */, - parse: function (context, tokens) { - return tokens.filter(isDimensionToken).map(function (token) { return time.parse(context, token); }); - } - }; - - var quotes = { - name: 'quotes', - initialValue: 'none', - prefix: true, - type: 1 /* LIST */, - parse: function (_context, tokens) { - if (tokens.length === 0) { - return null; - } - var first = tokens[0]; - if (first.type === 20 /* IDENT_TOKEN */ && first.value === 'none') { - return null; - } - var quotes = []; - var filtered = tokens.filter(isStringToken); - if (filtered.length % 2 !== 0) { - return null; - } - for (var i = 0; i < filtered.length; i += 2) { - var open_1 = filtered[i].value; - var close_1 = filtered[i + 1].value; - quotes.push({ open: open_1, close: close_1 }); - } - return quotes; - } - }; - var getQuote = function (quotes, depth, open) { - if (!quotes) { - return ''; - } - var quote = quotes[Math.min(depth, quotes.length - 1)]; - if (!quote) { - return ''; - } - return open ? quote.open : quote.close; - }; - - var paintOrder = { - name: 'paint-order', - initialValue: 'normal', - prefix: false, - type: 1 /* LIST */, - parse: function (_context, tokens) { - var DEFAULT_VALUE = [0 /* FILL */, 1 /* STROKE */, 2 /* MARKERS */]; - var layers = []; - tokens.filter(isIdentToken).forEach(function (token) { - switch (token.value) { - case 'stroke': - layers.push(1 /* STROKE */); - break; - case 'fill': - layers.push(0 /* FILL */); - break; - case 'markers': - layers.push(2 /* MARKERS */); - break; - } - }); - DEFAULT_VALUE.forEach(function (value) { - if (layers.indexOf(value) === -1) { - layers.push(value); - } - }); - return layers; - } - }; - - var webkitTextStrokeColor = { - name: "-webkit-text-stroke-color", - initialValue: 'currentcolor', - prefix: false, - type: 3 /* TYPE_VALUE */, - format: 'color' - }; - - var webkitTextStrokeWidth = { - name: "-webkit-text-stroke-width", - initialValue: '0', - type: 0 /* VALUE */, - prefix: false, - parse: function (_context, token) { - if (isDimensionToken(token)) { - return token.number; - } - return 0; - } - }; - - var CSSParsedDeclaration = /** @class */ (function () { - function CSSParsedDeclaration(context, declaration) { - var _a, _b; - this.animationDuration = parse(context, duration, declaration.animationDuration); - this.backgroundClip = parse(context, backgroundClip, declaration.backgroundClip); - this.backgroundColor = parse(context, backgroundColor, declaration.backgroundColor); - this.backgroundImage = parse(context, backgroundImage, declaration.backgroundImage); - this.backgroundOrigin = parse(context, backgroundOrigin, declaration.backgroundOrigin); - this.backgroundPosition = parse(context, backgroundPosition, declaration.backgroundPosition); - this.backgroundRepeat = parse(context, backgroundRepeat, declaration.backgroundRepeat); - this.backgroundSize = parse(context, backgroundSize, declaration.backgroundSize); - this.borderTopColor = parse(context, borderTopColor, declaration.borderTopColor); - this.borderRightColor = parse(context, borderRightColor, declaration.borderRightColor); - this.borderBottomColor = parse(context, borderBottomColor, declaration.borderBottomColor); - this.borderLeftColor = parse(context, borderLeftColor, declaration.borderLeftColor); - this.borderTopLeftRadius = parse(context, borderTopLeftRadius, declaration.borderTopLeftRadius); - this.borderTopRightRadius = parse(context, borderTopRightRadius, declaration.borderTopRightRadius); - this.borderBottomRightRadius = parse(context, borderBottomRightRadius, declaration.borderBottomRightRadius); - this.borderBottomLeftRadius = parse(context, borderBottomLeftRadius, declaration.borderBottomLeftRadius); - this.borderTopStyle = parse(context, borderTopStyle, declaration.borderTopStyle); - this.borderRightStyle = parse(context, borderRightStyle, declaration.borderRightStyle); - this.borderBottomStyle = parse(context, borderBottomStyle, declaration.borderBottomStyle); - this.borderLeftStyle = parse(context, borderLeftStyle, declaration.borderLeftStyle); - this.borderTopWidth = parse(context, borderTopWidth, declaration.borderTopWidth); - this.borderRightWidth = parse(context, borderRightWidth, declaration.borderRightWidth); - this.borderBottomWidth = parse(context, borderBottomWidth, declaration.borderBottomWidth); - this.borderLeftWidth = parse(context, borderLeftWidth, declaration.borderLeftWidth); - this.color = parse(context, color, declaration.color); - this.direction = parse(context, direction, declaration.direction); - this.display = parse(context, display, declaration.display); - this.float = parse(context, float, declaration.cssFloat); - this.fontFamily = parse(context, fontFamily, declaration.fontFamily); - this.fontSize = parse(context, fontSize, declaration.fontSize); - this.fontStyle = parse(context, fontStyle, declaration.fontStyle); - this.fontVariant = parse(context, fontVariant, declaration.fontVariant); - this.fontWeight = parse(context, fontWeight, declaration.fontWeight); - this.letterSpacing = parse(context, letterSpacing, declaration.letterSpacing); - this.lineBreak = parse(context, lineBreak, declaration.lineBreak); - this.lineHeight = parse(context, lineHeight, declaration.lineHeight); - this.listStyleImage = parse(context, listStyleImage, declaration.listStyleImage); - this.listStylePosition = parse(context, listStylePosition, declaration.listStylePosition); - this.listStyleType = parse(context, listStyleType, declaration.listStyleType); - this.marginTop = parse(context, marginTop, declaration.marginTop); - this.marginRight = parse(context, marginRight, declaration.marginRight); - this.marginBottom = parse(context, marginBottom, declaration.marginBottom); - this.marginLeft = parse(context, marginLeft, declaration.marginLeft); - this.opacity = parse(context, opacity, declaration.opacity); - var overflowTuple = parse(context, overflow, declaration.overflow); - this.overflowX = overflowTuple[0]; - this.overflowY = overflowTuple[overflowTuple.length > 1 ? 1 : 0]; - this.overflowWrap = parse(context, overflowWrap, declaration.overflowWrap); - this.paddingTop = parse(context, paddingTop, declaration.paddingTop); - this.paddingRight = parse(context, paddingRight, declaration.paddingRight); - this.paddingBottom = parse(context, paddingBottom, declaration.paddingBottom); - this.paddingLeft = parse(context, paddingLeft, declaration.paddingLeft); - this.paintOrder = parse(context, paintOrder, declaration.paintOrder); - this.position = parse(context, position, declaration.position); - this.textAlign = parse(context, textAlign, declaration.textAlign); - this.textDecorationColor = parse(context, textDecorationColor, (_a = declaration.textDecorationColor) !== null && _a !== void 0 ? _a : declaration.color); - this.textDecorationLine = parse(context, textDecorationLine, (_b = declaration.textDecorationLine) !== null && _b !== void 0 ? _b : declaration.textDecoration); - this.textShadow = parse(context, textShadow, declaration.textShadow); - this.textTransform = parse(context, textTransform, declaration.textTransform); - this.transform = parse(context, transform$1, declaration.transform); - this.transformOrigin = parse(context, transformOrigin, declaration.transformOrigin); - this.visibility = parse(context, visibility, declaration.visibility); - this.webkitTextStrokeColor = parse(context, webkitTextStrokeColor, declaration.webkitTextStrokeColor); - this.webkitTextStrokeWidth = parse(context, webkitTextStrokeWidth, declaration.webkitTextStrokeWidth); - this.wordBreak = parse(context, wordBreak, declaration.wordBreak); - this.zIndex = parse(context, zIndex, declaration.zIndex); - } - CSSParsedDeclaration.prototype.isVisible = function () { - return this.display > 0 && this.opacity > 0 && this.visibility === 0 /* VISIBLE */; - }; - CSSParsedDeclaration.prototype.isTransparent = function () { - return isTransparent(this.backgroundColor); - }; - CSSParsedDeclaration.prototype.isTransformed = function () { - return this.transform !== null; - }; - CSSParsedDeclaration.prototype.isPositioned = function () { - return this.position !== 0 /* STATIC */; - }; - CSSParsedDeclaration.prototype.isPositionedWithZIndex = function () { - return this.isPositioned() && !this.zIndex.auto; - }; - CSSParsedDeclaration.prototype.isFloating = function () { - return this.float !== 0 /* NONE */; - }; - CSSParsedDeclaration.prototype.isInlineLevel = function () { - return (contains(this.display, 4 /* INLINE */) || - contains(this.display, 33554432 /* INLINE_BLOCK */) || - contains(this.display, 268435456 /* INLINE_FLEX */) || - contains(this.display, 536870912 /* INLINE_GRID */) || - contains(this.display, 67108864 /* INLINE_LIST_ITEM */) || - contains(this.display, 134217728 /* INLINE_TABLE */)); - }; - return CSSParsedDeclaration; - }()); - var CSSParsedPseudoDeclaration = /** @class */ (function () { - function CSSParsedPseudoDeclaration(context, declaration) { - this.content = parse(context, content, declaration.content); - this.quotes = parse(context, quotes, declaration.quotes); - } - return CSSParsedPseudoDeclaration; - }()); - var CSSParsedCounterDeclaration = /** @class */ (function () { - function CSSParsedCounterDeclaration(context, declaration) { - this.counterIncrement = parse(context, counterIncrement, declaration.counterIncrement); - this.counterReset = parse(context, counterReset, declaration.counterReset); - } - return CSSParsedCounterDeclaration; - }()); - // eslint-disable-next-line @typescript-eslint/no-explicit-any - var parse = function (context, descriptor, style) { - var tokenizer = new Tokenizer(); - var value = style !== null && typeof style !== 'undefined' ? style.toString() : descriptor.initialValue; - tokenizer.write(value); - var parser = new Parser(tokenizer.read()); - switch (descriptor.type) { - case 2 /* IDENT_VALUE */: - var token = parser.parseComponentValue(); - return descriptor.parse(context, isIdentToken(token) ? token.value : descriptor.initialValue); - case 0 /* VALUE */: - return descriptor.parse(context, parser.parseComponentValue()); - case 1 /* LIST */: - return descriptor.parse(context, parser.parseComponentValues()); - case 4 /* TOKEN_VALUE */: - return parser.parseComponentValue(); - case 3 /* TYPE_VALUE */: - switch (descriptor.format) { - case 'angle': - return angle.parse(context, parser.parseComponentValue()); - case 'color': - return color$1.parse(context, parser.parseComponentValue()); - case 'image': - return image.parse(context, parser.parseComponentValue()); - case 'length': - var length_1 = parser.parseComponentValue(); - return isLength(length_1) ? length_1 : ZERO_LENGTH; - case 'length-percentage': - var value_1 = parser.parseComponentValue(); - return isLengthPercentage(value_1) ? value_1 : ZERO_LENGTH; - case 'time': - return time.parse(context, parser.parseComponentValue()); - } - break; - } - }; - - var elementDebuggerAttribute = 'data-html2canvas-debug'; - var getElementDebugType = function (element) { - var attribute = element.getAttribute(elementDebuggerAttribute); - switch (attribute) { - case 'all': - return 1 /* ALL */; - case 'clone': - return 2 /* CLONE */; - case 'parse': - return 3 /* PARSE */; - case 'render': - return 4 /* RENDER */; - default: - return 0 /* NONE */; - } - }; - var isDebugging = function (element, type) { - var elementType = getElementDebugType(element); - return elementType === 1 /* ALL */ || type === elementType; - }; - - var ElementContainer = /** @class */ (function () { - function ElementContainer(context, element) { - this.context = context; - this.textNodes = []; - this.elements = []; - this.flags = 0; - if (isDebugging(element, 3 /* PARSE */)) { - debugger; - } - this.styles = new CSSParsedDeclaration(context, window.getComputedStyle(element, null)); - if (isHTMLElementNode(element)) { - if (this.styles.animationDuration.some(function (duration) { return duration > 0; })) { - element.style.animationDuration = '0s'; - } - if (this.styles.transform !== null) { - // getBoundingClientRect takes transforms into account - element.style.transform = 'none'; - } - } - this.bounds = parseBounds(this.context, element); - if (isDebugging(element, 4 /* RENDER */)) { - this.flags |= 16 /* DEBUG_RENDER */; - } - } - return ElementContainer; - }()); - - /* - * text-segmentation 1.0.3 - * Copyright (c) 2022 Niklas von Hertzen - * Released under MIT License - */ - var base64 = 'AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA='; - - /* - * utrie 1.0.2 - * Copyright (c) 2022 Niklas von Hertzen - * Released under MIT License - */ - var chars$1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; - // Use a lookup table to find the index. - var lookup$1 = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256); - for (var i$1 = 0; i$1 < chars$1.length; i$1++) { - lookup$1[chars$1.charCodeAt(i$1)] = i$1; - } - var decode = function (base64) { - var bufferLength = base64.length * 0.75, len = base64.length, i, p = 0, encoded1, encoded2, encoded3, encoded4; - if (base64[base64.length - 1] === '=') { - bufferLength--; - if (base64[base64.length - 2] === '=') { - bufferLength--; - } - } - var buffer = typeof ArrayBuffer !== 'undefined' && - typeof Uint8Array !== 'undefined' && - typeof Uint8Array.prototype.slice !== 'undefined' - ? new ArrayBuffer(bufferLength) - : new Array(bufferLength); - var bytes = Array.isArray(buffer) ? buffer : new Uint8Array(buffer); - for (i = 0; i < len; i += 4) { - encoded1 = lookup$1[base64.charCodeAt(i)]; - encoded2 = lookup$1[base64.charCodeAt(i + 1)]; - encoded3 = lookup$1[base64.charCodeAt(i + 2)]; - encoded4 = lookup$1[base64.charCodeAt(i + 3)]; - bytes[p++] = (encoded1 << 2) | (encoded2 >> 4); - bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2); - bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63); - } - return buffer; - }; - var polyUint16Array = function (buffer) { - var length = buffer.length; - var bytes = []; - for (var i = 0; i < length; i += 2) { - bytes.push((buffer[i + 1] << 8) | buffer[i]); - } - return bytes; - }; - var polyUint32Array = function (buffer) { - var length = buffer.length; - var bytes = []; - for (var i = 0; i < length; i += 4) { - bytes.push((buffer[i + 3] << 24) | (buffer[i + 2] << 16) | (buffer[i + 1] << 8) | buffer[i]); - } - return bytes; - }; - - /** Shift size for getting the index-2 table offset. */ - var UTRIE2_SHIFT_2 = 5; - /** Shift size for getting the index-1 table offset. */ - var UTRIE2_SHIFT_1 = 6 + 5; - /** - * Shift size for shifting left the index array values. - * Increases possible data size with 16-bit index values at the cost - * of compactability. - * This requires data blocks to be aligned by UTRIE2_DATA_GRANULARITY. - */ - var UTRIE2_INDEX_SHIFT = 2; - /** - * Difference between the two shift sizes, - * for getting an index-1 offset from an index-2 offset. 6=11-5 - */ - var UTRIE2_SHIFT_1_2 = UTRIE2_SHIFT_1 - UTRIE2_SHIFT_2; - /** - * The part of the index-2 table for U+D800..U+DBFF stores values for - * lead surrogate code _units_ not code _points_. - * Values for lead surrogate code _points_ are indexed with this portion of the table. - * Length=32=0x20=0x400>>UTRIE2_SHIFT_2. (There are 1024=0x400 lead surrogates.) - */ - var UTRIE2_LSCP_INDEX_2_OFFSET = 0x10000 >> UTRIE2_SHIFT_2; - /** Number of entries in a data block. 32=0x20 */ - var UTRIE2_DATA_BLOCK_LENGTH = 1 << UTRIE2_SHIFT_2; - /** Mask for getting the lower bits for the in-data-block offset. */ - var UTRIE2_DATA_MASK = UTRIE2_DATA_BLOCK_LENGTH - 1; - var UTRIE2_LSCP_INDEX_2_LENGTH = 0x400 >> UTRIE2_SHIFT_2; - /** Count the lengths of both BMP pieces. 2080=0x820 */ - var UTRIE2_INDEX_2_BMP_LENGTH = UTRIE2_LSCP_INDEX_2_OFFSET + UTRIE2_LSCP_INDEX_2_LENGTH; - /** - * The 2-byte UTF-8 version of the index-2 table follows at offset 2080=0x820. - * Length 32=0x20 for lead bytes C0..DF, regardless of UTRIE2_SHIFT_2. - */ - var UTRIE2_UTF8_2B_INDEX_2_OFFSET = UTRIE2_INDEX_2_BMP_LENGTH; - var UTRIE2_UTF8_2B_INDEX_2_LENGTH = 0x800 >> 6; /* U+0800 is the first code point after 2-byte UTF-8 */ - /** - * The index-1 table, only used for supplementary code points, at offset 2112=0x840. - * Variable length, for code points up to highStart, where the last single-value range starts. - * Maximum length 512=0x200=0x100000>>UTRIE2_SHIFT_1. - * (For 0x100000 supplementary code points U+10000..U+10ffff.) - * - * The part of the index-2 table for supplementary code points starts - * after this index-1 table. - * - * Both the index-1 table and the following part of the index-2 table - * are omitted completely if there is only BMP data. - */ - var UTRIE2_INDEX_1_OFFSET = UTRIE2_UTF8_2B_INDEX_2_OFFSET + UTRIE2_UTF8_2B_INDEX_2_LENGTH; - /** - * Number of index-1 entries for the BMP. 32=0x20 - * This part of the index-1 table is omitted from the serialized form. - */ - var UTRIE2_OMITTED_BMP_INDEX_1_LENGTH = 0x10000 >> UTRIE2_SHIFT_1; - /** Number of entries in an index-2 block. 64=0x40 */ - var UTRIE2_INDEX_2_BLOCK_LENGTH = 1 << UTRIE2_SHIFT_1_2; - /** Mask for getting the lower bits for the in-index-2-block offset. */ - var UTRIE2_INDEX_2_MASK = UTRIE2_INDEX_2_BLOCK_LENGTH - 1; - var slice16 = function (view, start, end) { - if (view.slice) { - return view.slice(start, end); - } - return new Uint16Array(Array.prototype.slice.call(view, start, end)); - }; - var slice32 = function (view, start, end) { - if (view.slice) { - return view.slice(start, end); - } - return new Uint32Array(Array.prototype.slice.call(view, start, end)); - }; - var createTrieFromBase64 = function (base64, _byteLength) { - var buffer = decode(base64); - var view32 = Array.isArray(buffer) ? polyUint32Array(buffer) : new Uint32Array(buffer); - var view16 = Array.isArray(buffer) ? polyUint16Array(buffer) : new Uint16Array(buffer); - var headerLength = 24; - var index = slice16(view16, headerLength / 2, view32[4] / 2); - var data = view32[5] === 2 - ? slice16(view16, (headerLength + view32[4]) / 2) - : slice32(view32, Math.ceil((headerLength + view32[4]) / 4)); - return new Trie(view32[0], view32[1], view32[2], view32[3], index, data); - }; - var Trie = /** @class */ (function () { - function Trie(initialValue, errorValue, highStart, highValueIndex, index, data) { - this.initialValue = initialValue; - this.errorValue = errorValue; - this.highStart = highStart; - this.highValueIndex = highValueIndex; - this.index = index; - this.data = data; - } - /** - * Get the value for a code point as stored in the Trie. - * - * @param codePoint the code point - * @return the value - */ - Trie.prototype.get = function (codePoint) { - var ix; - if (codePoint >= 0) { - if (codePoint < 0x0d800 || (codePoint > 0x0dbff && codePoint <= 0x0ffff)) { - // Ordinary BMP code point, excluding leading surrogates. - // BMP uses a single level lookup. BMP index starts at offset 0 in the Trie2 index. - // 16 bit data is stored in the index array itself. - ix = this.index[codePoint >> UTRIE2_SHIFT_2]; - ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK); - return this.data[ix]; - } - if (codePoint <= 0xffff) { - // Lead Surrogate Code Point. A Separate index section is stored for - // lead surrogate code units and code points. - // The main index has the code unit data. - // For this function, we need the code point data. - // Note: this expression could be refactored for slightly improved efficiency, but - // surrogate code points will be so rare in practice that it's not worth it. - ix = this.index[UTRIE2_LSCP_INDEX_2_OFFSET + ((codePoint - 0xd800) >> UTRIE2_SHIFT_2)]; - ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK); - return this.data[ix]; - } - if (codePoint < this.highStart) { - // Supplemental code point, use two-level lookup. - ix = UTRIE2_INDEX_1_OFFSET - UTRIE2_OMITTED_BMP_INDEX_1_LENGTH + (codePoint >> UTRIE2_SHIFT_1); - ix = this.index[ix]; - ix += (codePoint >> UTRIE2_SHIFT_2) & UTRIE2_INDEX_2_MASK; - ix = this.index[ix]; - ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK); - return this.data[ix]; - } - if (codePoint <= 0x10ffff) { - return this.data[this.highValueIndex]; - } - } - // Fall through. The code point is outside of the legal range of 0..0x10ffff. - return this.errorValue; - }; - return Trie; - }()); - - /* - * base64-arraybuffer 1.0.2 - * Copyright (c) 2022 Niklas von Hertzen - * Released under MIT License - */ - var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; - // Use a lookup table to find the index. - var lookup = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256); - for (var i = 0; i < chars.length; i++) { - lookup[chars.charCodeAt(i)] = i; - } - - var Prepend = 1; - var CR = 2; - var LF = 3; - var Control = 4; - var Extend = 5; - var SpacingMark = 7; - var L = 8; - var V = 9; - var T = 10; - var LV = 11; - var LVT = 12; - var ZWJ = 13; - var Extended_Pictographic = 14; - var RI = 15; - var toCodePoints = function (str) { - var codePoints = []; - var i = 0; - var length = str.length; - while (i < length) { - var value = str.charCodeAt(i++); - if (value >= 0xd800 && value <= 0xdbff && i < length) { - var extra = str.charCodeAt(i++); - if ((extra & 0xfc00) === 0xdc00) { - codePoints.push(((value & 0x3ff) << 10) + (extra & 0x3ff) + 0x10000); - } - else { - codePoints.push(value); - i--; - } - } - else { - codePoints.push(value); - } - } - return codePoints; - }; - var fromCodePoint = function () { - var codePoints = []; - for (var _i = 0; _i < arguments.length; _i++) { - codePoints[_i] = arguments[_i]; - } - if (String.fromCodePoint) { - return String.fromCodePoint.apply(String, codePoints); - } - var length = codePoints.length; - if (!length) { - return ''; - } - var codeUnits = []; - var index = -1; - var result = ''; - while (++index < length) { - var codePoint = codePoints[index]; - if (codePoint <= 0xffff) { - codeUnits.push(codePoint); - } - else { - codePoint -= 0x10000; - codeUnits.push((codePoint >> 10) + 0xd800, (codePoint % 0x400) + 0xdc00); - } - if (index + 1 === length || codeUnits.length > 0x4000) { - result += String.fromCharCode.apply(String, codeUnits); - codeUnits.length = 0; - } - } - return result; - }; - var UnicodeTrie = createTrieFromBase64(base64); - var BREAK_NOT_ALLOWED = '×'; - var BREAK_ALLOWED = '÷'; - var codePointToClass = function (codePoint) { return UnicodeTrie.get(codePoint); }; - var _graphemeBreakAtIndex = function (_codePoints, classTypes, index) { - var prevIndex = index - 2; - var prev = classTypes[prevIndex]; - var current = classTypes[index - 1]; - var next = classTypes[index]; - // GB3 Do not break between a CR and LF - if (current === CR && next === LF) { - return BREAK_NOT_ALLOWED; - } - // GB4 Otherwise, break before and after controls. - if (current === CR || current === LF || current === Control) { - return BREAK_ALLOWED; - } - // GB5 - if (next === CR || next === LF || next === Control) { - return BREAK_ALLOWED; - } - // Do not break Hangul syllable sequences. - // GB6 - if (current === L && [L, V, LV, LVT].indexOf(next) !== -1) { - return BREAK_NOT_ALLOWED; - } - // GB7 - if ((current === LV || current === V) && (next === V || next === T)) { - return BREAK_NOT_ALLOWED; - } - // GB8 - if ((current === LVT || current === T) && next === T) { - return BREAK_NOT_ALLOWED; - } - // GB9 Do not break before extending characters or ZWJ. - if (next === ZWJ || next === Extend) { - return BREAK_NOT_ALLOWED; - } - // Do not break before SpacingMarks, or after Prepend characters. - // GB9a - if (next === SpacingMark) { - return BREAK_NOT_ALLOWED; - } - // GB9a - if (current === Prepend) { - return BREAK_NOT_ALLOWED; - } - // GB11 Do not break within emoji modifier sequences or emoji zwj sequences. - if (current === ZWJ && next === Extended_Pictographic) { - while (prev === Extend) { - prev = classTypes[--prevIndex]; - } - if (prev === Extended_Pictographic) { - return BREAK_NOT_ALLOWED; - } - } - // GB12 Do not break within emoji flag sequences. - // That is, do not break between regional indicator (RI) symbols - // if there is an odd number of RI characters before the break point. - if (current === RI && next === RI) { - var countRI = 0; - while (prev === RI) { - countRI++; - prev = classTypes[--prevIndex]; - } - if (countRI % 2 === 0) { - return BREAK_NOT_ALLOWED; - } - } - return BREAK_ALLOWED; - }; - var GraphemeBreaker = function (str) { - var codePoints = toCodePoints(str); - var length = codePoints.length; - var index = 0; - var lastEnd = 0; - var classTypes = codePoints.map(codePointToClass); - return { - next: function () { - if (index >= length) { - return { done: true, value: null }; - } - var graphemeBreak = BREAK_NOT_ALLOWED; - while (index < length && - (graphemeBreak = _graphemeBreakAtIndex(codePoints, classTypes, ++index)) === BREAK_NOT_ALLOWED) { } - if (graphemeBreak !== BREAK_NOT_ALLOWED || index === length) { - var value = fromCodePoint.apply(null, codePoints.slice(lastEnd, index)); - lastEnd = index; - return { value: value, done: false }; - } - return { done: true, value: null }; - }, - }; - }; - var splitGraphemes = function (str) { - var breaker = GraphemeBreaker(str); - var graphemes = []; - var bk; - while (!(bk = breaker.next()).done) { - if (bk.value) { - graphemes.push(bk.value.slice()); - } - } - return graphemes; - }; - - var testRangeBounds = function (document) { - var TEST_HEIGHT = 123; - if (document.createRange) { - var range = document.createRange(); - if (range.getBoundingClientRect) { - var testElement = document.createElement('boundtest'); - testElement.style.height = TEST_HEIGHT + "px"; - testElement.style.display = 'block'; - document.body.appendChild(testElement); - range.selectNode(testElement); - var rangeBounds = range.getBoundingClientRect(); - var rangeHeight = Math.round(rangeBounds.height); - document.body.removeChild(testElement); - if (rangeHeight === TEST_HEIGHT) { - return true; - } - } - } - return false; - }; - var testIOSLineBreak = function (document) { - var testElement = document.createElement('boundtest'); - testElement.style.width = '50px'; - testElement.style.display = 'block'; - testElement.style.fontSize = '12px'; - testElement.style.letterSpacing = '0px'; - testElement.style.wordSpacing = '0px'; - document.body.appendChild(testElement); - var range = document.createRange(); - testElement.innerHTML = typeof ''.repeat === 'function' ? '👨'.repeat(10) : ''; - var node = testElement.firstChild; - var textList = toCodePoints$1(node.data).map(function (i) { return fromCodePoint$1(i); }); - var offset = 0; - var prev = {}; - // ios 13 does not handle range getBoundingClientRect line changes correctly #2177 - var supports = textList.every(function (text, i) { - range.setStart(node, offset); - range.setEnd(node, offset + text.length); - var rect = range.getBoundingClientRect(); - offset += text.length; - var boundAhead = rect.x > prev.x || rect.y > prev.y; - prev = rect; - if (i === 0) { - return true; - } - return boundAhead; - }); - document.body.removeChild(testElement); - return supports; - }; - var testCORS = function () { return typeof new Image().crossOrigin !== 'undefined'; }; - var testResponseType = function () { return typeof new XMLHttpRequest().responseType === 'string'; }; - var testSVG = function (document) { - var img = new Image(); - var canvas = document.createElement('canvas'); - var ctx = canvas.getContext('2d'); - if (!ctx) { - return false; - } - img.src = "data:image/svg+xml,"; - try { - ctx.drawImage(img, 0, 0); - canvas.toDataURL(); - } - catch (e) { - return false; - } - return true; - }; - var isGreenPixel = function (data) { - return data[0] === 0 && data[1] === 255 && data[2] === 0 && data[3] === 255; - }; - var testForeignObject = function (document) { - var canvas = document.createElement('canvas'); - var size = 100; - canvas.width = size; - canvas.height = size; - var ctx = canvas.getContext('2d'); - if (!ctx) { - return Promise.reject(false); - } - ctx.fillStyle = 'rgb(0, 255, 0)'; - ctx.fillRect(0, 0, size, size); - var img = new Image(); - var greenImageSrc = canvas.toDataURL(); - img.src = greenImageSrc; - var svg = createForeignObjectSVG(size, size, 0, 0, img); - ctx.fillStyle = 'red'; - ctx.fillRect(0, 0, size, size); - return loadSerializedSVG$1(svg) - .then(function (img) { - ctx.drawImage(img, 0, 0); - var data = ctx.getImageData(0, 0, size, size).data; - ctx.fillStyle = 'red'; - ctx.fillRect(0, 0, size, size); - var node = document.createElement('div'); - node.style.backgroundImage = "url(" + greenImageSrc + ")"; - node.style.height = size + "px"; - // Firefox 55 does not render inline tags - return isGreenPixel(data) - ? loadSerializedSVG$1(createForeignObjectSVG(size, size, 0, 0, node)) - : Promise.reject(false); - }) - .then(function (img) { - ctx.drawImage(img, 0, 0); - // Edge does not render background-images - return isGreenPixel(ctx.getImageData(0, 0, size, size).data); - }) - .catch(function () { return false; }); - }; - var createForeignObjectSVG = function (width, height, x, y, node) { - var xmlns = 'http://www.w3.org/2000/svg'; - var svg = document.createElementNS(xmlns, 'svg'); - var foreignObject = document.createElementNS(xmlns, 'foreignObject'); - svg.setAttributeNS(null, 'width', width.toString()); - svg.setAttributeNS(null, 'height', height.toString()); - foreignObject.setAttributeNS(null, 'width', '100%'); - foreignObject.setAttributeNS(null, 'height', '100%'); - foreignObject.setAttributeNS(null, 'x', x.toString()); - foreignObject.setAttributeNS(null, 'y', y.toString()); - foreignObject.setAttributeNS(null, 'externalResourcesRequired', 'true'); - svg.appendChild(foreignObject); - foreignObject.appendChild(node); - return svg; - }; - var loadSerializedSVG$1 = function (svg) { - return new Promise(function (resolve, reject) { - var img = new Image(); - img.onload = function () { return resolve(img); }; - img.onerror = reject; - img.src = "data:image/svg+xml;charset=utf-8," + encodeURIComponent(new XMLSerializer().serializeToString(svg)); - }); - }; - var FEATURES = { - get SUPPORT_RANGE_BOUNDS() { - var value = testRangeBounds(document); - Object.defineProperty(FEATURES, 'SUPPORT_RANGE_BOUNDS', { value: value }); - return value; - }, - get SUPPORT_WORD_BREAKING() { - var value = FEATURES.SUPPORT_RANGE_BOUNDS && testIOSLineBreak(document); - Object.defineProperty(FEATURES, 'SUPPORT_WORD_BREAKING', { value: value }); - return value; - }, - get SUPPORT_SVG_DRAWING() { - var value = testSVG(document); - Object.defineProperty(FEATURES, 'SUPPORT_SVG_DRAWING', { value: value }); - return value; - }, - get SUPPORT_FOREIGNOBJECT_DRAWING() { - var value = typeof Array.from === 'function' && typeof window.fetch === 'function' - ? testForeignObject(document) - : Promise.resolve(false); - Object.defineProperty(FEATURES, 'SUPPORT_FOREIGNOBJECT_DRAWING', { value: value }); - return value; - }, - get SUPPORT_CORS_IMAGES() { - var value = testCORS(); - Object.defineProperty(FEATURES, 'SUPPORT_CORS_IMAGES', { value: value }); - return value; - }, - get SUPPORT_RESPONSE_TYPE() { - var value = testResponseType(); - Object.defineProperty(FEATURES, 'SUPPORT_RESPONSE_TYPE', { value: value }); - return value; - }, - get SUPPORT_CORS_XHR() { - var value = 'withCredentials' in new XMLHttpRequest(); - Object.defineProperty(FEATURES, 'SUPPORT_CORS_XHR', { value: value }); - return value; - }, - get SUPPORT_NATIVE_TEXT_SEGMENTATION() { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - var value = !!(typeof Intl !== 'undefined' && Intl.Segmenter); - Object.defineProperty(FEATURES, 'SUPPORT_NATIVE_TEXT_SEGMENTATION', { value: value }); - return value; - } - }; - - var TextBounds = /** @class */ (function () { - function TextBounds(text, bounds) { - this.text = text; - this.bounds = bounds; - } - return TextBounds; - }()); - var parseTextBounds = function (context, value, styles, node) { - var textList = breakText(value, styles); - var textBounds = []; - var offset = 0; - textList.forEach(function (text) { - if (styles.textDecorationLine.length || text.trim().length > 0) { - if (FEATURES.SUPPORT_RANGE_BOUNDS) { - var clientRects = createRange(node, offset, text.length).getClientRects(); - if (clientRects.length > 1) { - var subSegments = segmentGraphemes(text); - var subOffset_1 = 0; - subSegments.forEach(function (subSegment) { - textBounds.push(new TextBounds(subSegment, Bounds.fromDOMRectList(context, createRange(node, subOffset_1 + offset, subSegment.length).getClientRects()))); - subOffset_1 += subSegment.length; - }); - } - else { - textBounds.push(new TextBounds(text, Bounds.fromDOMRectList(context, clientRects))); - } - } - else { - var replacementNode = node.splitText(text.length); - textBounds.push(new TextBounds(text, getWrapperBounds(context, node))); - node = replacementNode; - } - } - else if (!FEATURES.SUPPORT_RANGE_BOUNDS) { - node = node.splitText(text.length); - } - offset += text.length; - }); - return textBounds; - }; - var getWrapperBounds = function (context, node) { - var ownerDocument = node.ownerDocument; - if (ownerDocument) { - var wrapper = ownerDocument.createElement('html2canvaswrapper'); - wrapper.appendChild(node.cloneNode(true)); - var parentNode = node.parentNode; - if (parentNode) { - parentNode.replaceChild(wrapper, node); - var bounds = parseBounds(context, wrapper); - if (wrapper.firstChild) { - parentNode.replaceChild(wrapper.firstChild, wrapper); - } - return bounds; - } - } - return Bounds.EMPTY; - }; - var createRange = function (node, offset, length) { - var ownerDocument = node.ownerDocument; - if (!ownerDocument) { - throw new Error('Node has no owner document'); - } - var range = ownerDocument.createRange(); - range.setStart(node, offset); - range.setEnd(node, offset + length); - return range; - }; - var segmentGraphemes = function (value) { - if (FEATURES.SUPPORT_NATIVE_TEXT_SEGMENTATION) { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - var segmenter = new Intl.Segmenter(void 0, { granularity: 'grapheme' }); - // eslint-disable-next-line @typescript-eslint/no-explicit-any - return Array.from(segmenter.segment(value)).map(function (segment) { return segment.segment; }); - } - return splitGraphemes(value); - }; - var segmentWords = function (value, styles) { - if (FEATURES.SUPPORT_NATIVE_TEXT_SEGMENTATION) { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - var segmenter = new Intl.Segmenter(void 0, { - granularity: 'word' - }); - // eslint-disable-next-line @typescript-eslint/no-explicit-any - return Array.from(segmenter.segment(value)).map(function (segment) { return segment.segment; }); - } - return breakWords(value, styles); - }; - var breakText = function (value, styles) { - return styles.letterSpacing !== 0 ? segmentGraphemes(value) : segmentWords(value, styles); - }; - // https://drafts.csswg.org/css-text/#word-separator - var wordSeparators = [0x0020, 0x00a0, 0x1361, 0x10100, 0x10101, 0x1039, 0x1091]; - var breakWords = function (str, styles) { - var breaker = LineBreaker(str, { - lineBreak: styles.lineBreak, - wordBreak: styles.overflowWrap === "break-word" /* BREAK_WORD */ ? 'break-word' : styles.wordBreak - }); - var words = []; - var bk; - var _loop_1 = function () { - if (bk.value) { - var value = bk.value.slice(); - var codePoints = toCodePoints$1(value); - var word_1 = ''; - codePoints.forEach(function (codePoint) { - if (wordSeparators.indexOf(codePoint) === -1) { - word_1 += fromCodePoint$1(codePoint); - } - else { - if (word_1.length) { - words.push(word_1); - } - words.push(fromCodePoint$1(codePoint)); - word_1 = ''; - } - }); - if (word_1.length) { - words.push(word_1); - } - } - }; - while (!(bk = breaker.next()).done) { - _loop_1(); - } - return words; - }; - - var TextContainer = /** @class */ (function () { - function TextContainer(context, node, styles) { - this.text = transform(node.data, styles.textTransform); - this.textBounds = parseTextBounds(context, this.text, styles, node); - } - return TextContainer; - }()); - var transform = function (text, transform) { - switch (transform) { - case 1 /* LOWERCASE */: - return text.toLowerCase(); - case 3 /* CAPITALIZE */: - return text.replace(CAPITALIZE, capitalize); - case 2 /* UPPERCASE */: - return text.toUpperCase(); - default: - return text; - } - }; - var CAPITALIZE = /(^|\s|:|-|\(|\))([a-z])/g; - var capitalize = function (m, p1, p2) { - if (m.length > 0) { - return p1 + p2.toUpperCase(); - } - return m; - }; - - var ImageElementContainer = /** @class */ (function (_super) { - __extends(ImageElementContainer, _super); - function ImageElementContainer(context, img) { - var _this = _super.call(this, context, img) || this; - _this.src = img.currentSrc || img.src; - _this.intrinsicWidth = img.naturalWidth; - _this.intrinsicHeight = img.naturalHeight; - _this.context.cache.addImage(_this.src); - return _this; - } - return ImageElementContainer; - }(ElementContainer)); - - var CanvasElementContainer = /** @class */ (function (_super) { - __extends(CanvasElementContainer, _super); - function CanvasElementContainer(context, canvas) { - var _this = _super.call(this, context, canvas) || this; - _this.canvas = canvas; - _this.intrinsicWidth = canvas.width; - _this.intrinsicHeight = canvas.height; - return _this; - } - return CanvasElementContainer; - }(ElementContainer)); - - var SVGElementContainer = /** @class */ (function (_super) { - __extends(SVGElementContainer, _super); - function SVGElementContainer(context, img) { - var _this = _super.call(this, context, img) || this; - var s = new XMLSerializer(); - var bounds = parseBounds(context, img); - img.setAttribute('width', bounds.width + "px"); - img.setAttribute('height', bounds.height + "px"); - _this.svg = "data:image/svg+xml," + encodeURIComponent(s.serializeToString(img)); - _this.intrinsicWidth = img.width.baseVal.value; - _this.intrinsicHeight = img.height.baseVal.value; - _this.context.cache.addImage(_this.svg); - return _this; - } - return SVGElementContainer; - }(ElementContainer)); - - var LIElementContainer = /** @class */ (function (_super) { - __extends(LIElementContainer, _super); - function LIElementContainer(context, element) { - var _this = _super.call(this, context, element) || this; - _this.value = element.value; - return _this; - } - return LIElementContainer; - }(ElementContainer)); - - var OLElementContainer = /** @class */ (function (_super) { - __extends(OLElementContainer, _super); - function OLElementContainer(context, element) { - var _this = _super.call(this, context, element) || this; - _this.start = element.start; - _this.reversed = typeof element.reversed === 'boolean' && element.reversed === true; - return _this; - } - return OLElementContainer; - }(ElementContainer)); - - var CHECKBOX_BORDER_RADIUS = [ - { - type: 15 /* DIMENSION_TOKEN */, - flags: 0, - unit: 'px', - number: 3 - } - ]; - var RADIO_BORDER_RADIUS = [ - { - type: 16 /* PERCENTAGE_TOKEN */, - flags: 0, - number: 50 - } - ]; - var reformatInputBounds = function (bounds) { - if (bounds.width > bounds.height) { - return new Bounds(bounds.left + (bounds.width - bounds.height) / 2, bounds.top, bounds.height, bounds.height); - } - else if (bounds.width < bounds.height) { - return new Bounds(bounds.left, bounds.top + (bounds.height - bounds.width) / 2, bounds.width, bounds.width); - } - return bounds; - }; - var getInputValue = function (node) { - var value = node.type === PASSWORD ? new Array(node.value.length + 1).join('\u2022') : node.value; - return value.length === 0 ? node.placeholder || '' : value; - }; - var CHECKBOX = 'checkbox'; - var RADIO = 'radio'; - var PASSWORD = 'password'; - var INPUT_COLOR = 0x2a2a2aff; - var InputElementContainer = /** @class */ (function (_super) { - __extends(InputElementContainer, _super); - function InputElementContainer(context, input) { - var _this = _super.call(this, context, input) || this; - _this.type = input.type.toLowerCase(); - _this.checked = input.checked; - _this.value = getInputValue(input); - if (_this.type === CHECKBOX || _this.type === RADIO) { - _this.styles.backgroundColor = 0xdededeff; - _this.styles.borderTopColor = - _this.styles.borderRightColor = - _this.styles.borderBottomColor = - _this.styles.borderLeftColor = - 0xa5a5a5ff; - _this.styles.borderTopWidth = - _this.styles.borderRightWidth = - _this.styles.borderBottomWidth = - _this.styles.borderLeftWidth = - 1; - _this.styles.borderTopStyle = - _this.styles.borderRightStyle = - _this.styles.borderBottomStyle = - _this.styles.borderLeftStyle = - 1 /* SOLID */; - _this.styles.backgroundClip = [0 /* BORDER_BOX */]; - _this.styles.backgroundOrigin = [0 /* BORDER_BOX */]; - _this.bounds = reformatInputBounds(_this.bounds); - } - switch (_this.type) { - case CHECKBOX: - _this.styles.borderTopRightRadius = - _this.styles.borderTopLeftRadius = - _this.styles.borderBottomRightRadius = - _this.styles.borderBottomLeftRadius = - CHECKBOX_BORDER_RADIUS; - break; - case RADIO: - _this.styles.borderTopRightRadius = - _this.styles.borderTopLeftRadius = - _this.styles.borderBottomRightRadius = - _this.styles.borderBottomLeftRadius = - RADIO_BORDER_RADIUS; - break; - } - return _this; - } - return InputElementContainer; - }(ElementContainer)); - - var SelectElementContainer = /** @class */ (function (_super) { - __extends(SelectElementContainer, _super); - function SelectElementContainer(context, element) { - var _this = _super.call(this, context, element) || this; - var option = element.options[element.selectedIndex || 0]; - _this.value = option ? option.text || '' : ''; - return _this; - } - return SelectElementContainer; - }(ElementContainer)); - - var TextareaElementContainer = /** @class */ (function (_super) { - __extends(TextareaElementContainer, _super); - function TextareaElementContainer(context, element) { - var _this = _super.call(this, context, element) || this; - _this.value = element.value; - return _this; - } - return TextareaElementContainer; - }(ElementContainer)); - - var IFrameElementContainer = /** @class */ (function (_super) { - __extends(IFrameElementContainer, _super); - function IFrameElementContainer(context, iframe) { - var _this = _super.call(this, context, iframe) || this; - _this.src = iframe.src; - _this.width = parseInt(iframe.width, 10) || 0; - _this.height = parseInt(iframe.height, 10) || 0; - _this.backgroundColor = _this.styles.backgroundColor; - try { - if (iframe.contentWindow && - iframe.contentWindow.document && - iframe.contentWindow.document.documentElement) { - _this.tree = parseTree(context, iframe.contentWindow.document.documentElement); - // http://www.w3.org/TR/css3-background/#special-backgrounds - var documentBackgroundColor = iframe.contentWindow.document.documentElement - ? parseColor(context, getComputedStyle(iframe.contentWindow.document.documentElement).backgroundColor) - : COLORS.TRANSPARENT; - var bodyBackgroundColor = iframe.contentWindow.document.body - ? parseColor(context, getComputedStyle(iframe.contentWindow.document.body).backgroundColor) - : COLORS.TRANSPARENT; - _this.backgroundColor = isTransparent(documentBackgroundColor) - ? isTransparent(bodyBackgroundColor) - ? _this.styles.backgroundColor - : bodyBackgroundColor - : documentBackgroundColor; - } - } - catch (e) { } - return _this; - } - return IFrameElementContainer; - }(ElementContainer)); - - var LIST_OWNERS = ['OL', 'UL', 'MENU']; - var parseNodeTree = function (context, node, parent, root) { - for (var childNode = node.firstChild, nextNode = void 0; childNode; childNode = nextNode) { - nextNode = childNode.nextSibling; - if (isTextNode(childNode) && childNode.data.trim().length > 0) { - parent.textNodes.push(new TextContainer(context, childNode, parent.styles)); - } - else if (isElementNode(childNode)) { - if (isSlotElement(childNode) && childNode.assignedNodes) { - childNode.assignedNodes().forEach(function (childNode) { return parseNodeTree(context, childNode, parent, root); }); - } - else { - var container = createContainer(context, childNode); - if (container.styles.isVisible()) { - if (createsRealStackingContext(childNode, container, root)) { - container.flags |= 4 /* CREATES_REAL_STACKING_CONTEXT */; - } - else if (createsStackingContext(container.styles)) { - container.flags |= 2 /* CREATES_STACKING_CONTEXT */; - } - if (LIST_OWNERS.indexOf(childNode.tagName) !== -1) { - container.flags |= 8 /* IS_LIST_OWNER */; - } - parent.elements.push(container); - childNode.slot; - if (childNode.shadowRoot) { - parseNodeTree(context, childNode.shadowRoot, container, root); - } - else if (!isTextareaElement(childNode) && - !isSVGElement(childNode) && - !isSelectElement(childNode)) { - parseNodeTree(context, childNode, container, root); - } - } - } - } - } - }; - var createContainer = function (context, element) { - if (isImageElement(element)) { - return new ImageElementContainer(context, element); - } - if (isCanvasElement(element)) { - return new CanvasElementContainer(context, element); - } - if (isSVGElement(element)) { - return new SVGElementContainer(context, element); - } - if (isLIElement(element)) { - return new LIElementContainer(context, element); - } - if (isOLElement(element)) { - return new OLElementContainer(context, element); - } - if (isInputElement(element)) { - return new InputElementContainer(context, element); - } - if (isSelectElement(element)) { - return new SelectElementContainer(context, element); - } - if (isTextareaElement(element)) { - return new TextareaElementContainer(context, element); - } - if (isIFrameElement(element)) { - return new IFrameElementContainer(context, element); - } - return new ElementContainer(context, element); - }; - var parseTree = function (context, element) { - var container = createContainer(context, element); - container.flags |= 4 /* CREATES_REAL_STACKING_CONTEXT */; - parseNodeTree(context, element, container, container); - return container; - }; - var createsRealStackingContext = function (node, container, root) { - return (container.styles.isPositionedWithZIndex() || - container.styles.opacity < 1 || - container.styles.isTransformed() || - (isBodyElement(node) && root.styles.isTransparent())); - }; - var createsStackingContext = function (styles) { return styles.isPositioned() || styles.isFloating(); }; - var isTextNode = function (node) { return node.nodeType === Node.TEXT_NODE; }; - var isElementNode = function (node) { return node.nodeType === Node.ELEMENT_NODE; }; - var isHTMLElementNode = function (node) { - return isElementNode(node) && typeof node.style !== 'undefined' && !isSVGElementNode(node); - }; - var isSVGElementNode = function (element) { - return typeof element.className === 'object'; - }; - var isLIElement = function (node) { return node.tagName === 'LI'; }; - var isOLElement = function (node) { return node.tagName === 'OL'; }; - var isInputElement = function (node) { return node.tagName === 'INPUT'; }; - var isHTMLElement = function (node) { return node.tagName === 'HTML'; }; - var isSVGElement = function (node) { return node.tagName === 'svg'; }; - var isBodyElement = function (node) { return node.tagName === 'BODY'; }; - var isCanvasElement = function (node) { return node.tagName === 'CANVAS'; }; - var isVideoElement = function (node) { return node.tagName === 'VIDEO'; }; - var isImageElement = function (node) { return node.tagName === 'IMG'; }; - var isIFrameElement = function (node) { return node.tagName === 'IFRAME'; }; - var isStyleElement = function (node) { return node.tagName === 'STYLE'; }; - var isScriptElement = function (node) { return node.tagName === 'SCRIPT'; }; - var isTextareaElement = function (node) { return node.tagName === 'TEXTAREA'; }; - var isSelectElement = function (node) { return node.tagName === 'SELECT'; }; - var isSlotElement = function (node) { return node.tagName === 'SLOT'; }; - // https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name - var isCustomElement = function (node) { return node.tagName.indexOf('-') > 0; }; - - var CounterState = /** @class */ (function () { - function CounterState() { - this.counters = {}; - } - CounterState.prototype.getCounterValue = function (name) { - var counter = this.counters[name]; - if (counter && counter.length) { - return counter[counter.length - 1]; - } - return 1; - }; - CounterState.prototype.getCounterValues = function (name) { - var counter = this.counters[name]; - return counter ? counter : []; - }; - CounterState.prototype.pop = function (counters) { - var _this = this; - counters.forEach(function (counter) { return _this.counters[counter].pop(); }); - }; - CounterState.prototype.parse = function (style) { - var _this = this; - var counterIncrement = style.counterIncrement; - var counterReset = style.counterReset; - var canReset = true; - if (counterIncrement !== null) { - counterIncrement.forEach(function (entry) { - var counter = _this.counters[entry.counter]; - if (counter && entry.increment !== 0) { - canReset = false; - if (!counter.length) { - counter.push(1); - } - counter[Math.max(0, counter.length - 1)] += entry.increment; - } - }); - } - var counterNames = []; - if (canReset) { - counterReset.forEach(function (entry) { - var counter = _this.counters[entry.counter]; - counterNames.push(entry.counter); - if (!counter) { - counter = _this.counters[entry.counter] = []; - } - counter.push(entry.reset); - }); - } - return counterNames; - }; - return CounterState; - }()); - var ROMAN_UPPER = { - integers: [1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1], - values: ['M', 'CM', 'D', 'CD', 'C', 'XC', 'L', 'XL', 'X', 'IX', 'V', 'IV', 'I'] - }; - var ARMENIAN = { - integers: [ - 9000, 8000, 7000, 6000, 5000, 4000, 3000, 2000, 1000, 900, 800, 700, 600, 500, 400, 300, 200, 100, 90, 80, 70, - 60, 50, 40, 30, 20, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 - ], - values: [ - 'Ք', - 'Փ', - 'Ւ', - 'Ց', - 'Ր', - 'Տ', - 'Վ', - 'Ս', - 'Ռ', - 'Ջ', - 'Պ', - 'Չ', - 'Ո', - 'Շ', - 'Ն', - 'Յ', - 'Մ', - 'Ճ', - 'Ղ', - 'Ձ', - 'Հ', - 'Կ', - 'Ծ', - 'Խ', - 'Լ', - 'Ի', - 'Ժ', - 'Թ', - 'Ը', - 'Է', - 'Զ', - 'Ե', - 'Դ', - 'Գ', - 'Բ', - 'Ա' - ] - }; - var HEBREW = { - integers: [ - 10000, 9000, 8000, 7000, 6000, 5000, 4000, 3000, 2000, 1000, 400, 300, 200, 100, 90, 80, 70, 60, 50, 40, 30, 20, - 19, 18, 17, 16, 15, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 - ], - values: [ - 'י׳', - 'ט׳', - 'ח׳', - 'ז׳', - 'ו׳', - 'ה׳', - 'ד׳', - 'ג׳', - 'ב׳', - 'א׳', - 'ת', - 'ש', - 'ר', - 'ק', - 'צ', - 'פ', - 'ע', - 'ס', - 'נ', - 'מ', - 'ל', - 'כ', - 'יט', - 'יח', - 'יז', - 'טז', - 'טו', - 'י', - 'ט', - 'ח', - 'ז', - 'ו', - 'ה', - 'ד', - 'ג', - 'ב', - 'א' - ] - }; - var GEORGIAN = { - integers: [ - 10000, 9000, 8000, 7000, 6000, 5000, 4000, 3000, 2000, 1000, 900, 800, 700, 600, 500, 400, 300, 200, 100, 90, - 80, 70, 60, 50, 40, 30, 20, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 - ], - values: [ - 'ჵ', - 'ჰ', - 'ჯ', - 'ჴ', - 'ხ', - 'ჭ', - 'წ', - 'ძ', - 'ც', - 'ჩ', - 'შ', - 'ყ', - 'ღ', - 'ქ', - 'ფ', - 'ჳ', - 'ტ', - 'ს', - 'რ', - 'ჟ', - 'პ', - 'ო', - 'ჲ', - 'ნ', - 'მ', - 'ლ', - 'კ', - 'ი', - 'თ', - 'ჱ', - 'ზ', - 'ვ', - 'ე', - 'დ', - 'გ', - 'ბ', - 'ა' - ] - }; - var createAdditiveCounter = function (value, min, max, symbols, fallback, suffix) { - if (value < min || value > max) { - return createCounterText(value, fallback, suffix.length > 0); - } - return (symbols.integers.reduce(function (string, integer, index) { - while (value >= integer) { - value -= integer; - string += symbols.values[index]; - } - return string; - }, '') + suffix); - }; - var createCounterStyleWithSymbolResolver = function (value, codePointRangeLength, isNumeric, resolver) { - var string = ''; - do { - if (!isNumeric) { - value--; - } - string = resolver(value) + string; - value /= codePointRangeLength; - } while (value * codePointRangeLength >= codePointRangeLength); - return string; - }; - var createCounterStyleFromRange = function (value, codePointRangeStart, codePointRangeEnd, isNumeric, suffix) { - var codePointRangeLength = codePointRangeEnd - codePointRangeStart + 1; - return ((value < 0 ? '-' : '') + - (createCounterStyleWithSymbolResolver(Math.abs(value), codePointRangeLength, isNumeric, function (codePoint) { - return fromCodePoint$1(Math.floor(codePoint % codePointRangeLength) + codePointRangeStart); - }) + - suffix)); - }; - var createCounterStyleFromSymbols = function (value, symbols, suffix) { - if (suffix === void 0) { suffix = '. '; } - var codePointRangeLength = symbols.length; - return (createCounterStyleWithSymbolResolver(Math.abs(value), codePointRangeLength, false, function (codePoint) { return symbols[Math.floor(codePoint % codePointRangeLength)]; }) + suffix); - }; - var CJK_ZEROS = 1 << 0; - var CJK_TEN_COEFFICIENTS = 1 << 1; - var CJK_TEN_HIGH_COEFFICIENTS = 1 << 2; - var CJK_HUNDRED_COEFFICIENTS = 1 << 3; - var createCJKCounter = function (value, numbers, multipliers, negativeSign, suffix, flags) { - if (value < -9999 || value > 9999) { - return createCounterText(value, 4 /* CJK_DECIMAL */, suffix.length > 0); - } - var tmp = Math.abs(value); - var string = suffix; - if (tmp === 0) { - return numbers[0] + string; - } - for (var digit = 0; tmp > 0 && digit <= 4; digit++) { - var coefficient = tmp % 10; - if (coefficient === 0 && contains(flags, CJK_ZEROS) && string !== '') { - string = numbers[coefficient] + string; - } - else if (coefficient > 1 || - (coefficient === 1 && digit === 0) || - (coefficient === 1 && digit === 1 && contains(flags, CJK_TEN_COEFFICIENTS)) || - (coefficient === 1 && digit === 1 && contains(flags, CJK_TEN_HIGH_COEFFICIENTS) && value > 100) || - (coefficient === 1 && digit > 1 && contains(flags, CJK_HUNDRED_COEFFICIENTS))) { - string = numbers[coefficient] + (digit > 0 ? multipliers[digit - 1] : '') + string; - } - else if (coefficient === 1 && digit > 0) { - string = multipliers[digit - 1] + string; - } - tmp = Math.floor(tmp / 10); - } - return (value < 0 ? negativeSign : '') + string; - }; - var CHINESE_INFORMAL_MULTIPLIERS = '十百千萬'; - var CHINESE_FORMAL_MULTIPLIERS = '拾佰仟萬'; - var JAPANESE_NEGATIVE = 'マイナス'; - var KOREAN_NEGATIVE = '마이너스'; - var createCounterText = function (value, type, appendSuffix) { - var defaultSuffix = appendSuffix ? '. ' : ''; - var cjkSuffix = appendSuffix ? '、' : ''; - var koreanSuffix = appendSuffix ? ', ' : ''; - var spaceSuffix = appendSuffix ? ' ' : ''; - switch (type) { - case 0 /* DISC */: - return '•' + spaceSuffix; - case 1 /* CIRCLE */: - return '◦' + spaceSuffix; - case 2 /* SQUARE */: - return '◾' + spaceSuffix; - case 5 /* DECIMAL_LEADING_ZERO */: - var string = createCounterStyleFromRange(value, 48, 57, true, defaultSuffix); - return string.length < 4 ? "0" + string : string; - case 4 /* CJK_DECIMAL */: - return createCounterStyleFromSymbols(value, '〇一二三四五六七八九', cjkSuffix); - case 6 /* LOWER_ROMAN */: - return createAdditiveCounter(value, 1, 3999, ROMAN_UPPER, 3 /* DECIMAL */, defaultSuffix).toLowerCase(); - case 7 /* UPPER_ROMAN */: - return createAdditiveCounter(value, 1, 3999, ROMAN_UPPER, 3 /* DECIMAL */, defaultSuffix); - case 8 /* LOWER_GREEK */: - return createCounterStyleFromRange(value, 945, 969, false, defaultSuffix); - case 9 /* LOWER_ALPHA */: - return createCounterStyleFromRange(value, 97, 122, false, defaultSuffix); - case 10 /* UPPER_ALPHA */: - return createCounterStyleFromRange(value, 65, 90, false, defaultSuffix); - case 11 /* ARABIC_INDIC */: - return createCounterStyleFromRange(value, 1632, 1641, true, defaultSuffix); - case 12 /* ARMENIAN */: - case 49 /* UPPER_ARMENIAN */: - return createAdditiveCounter(value, 1, 9999, ARMENIAN, 3 /* DECIMAL */, defaultSuffix); - case 35 /* LOWER_ARMENIAN */: - return createAdditiveCounter(value, 1, 9999, ARMENIAN, 3 /* DECIMAL */, defaultSuffix).toLowerCase(); - case 13 /* BENGALI */: - return createCounterStyleFromRange(value, 2534, 2543, true, defaultSuffix); - case 14 /* CAMBODIAN */: - case 30 /* KHMER */: - return createCounterStyleFromRange(value, 6112, 6121, true, defaultSuffix); - case 15 /* CJK_EARTHLY_BRANCH */: - return createCounterStyleFromSymbols(value, '子丑寅卯辰巳午未申酉戌亥', cjkSuffix); - case 16 /* CJK_HEAVENLY_STEM */: - return createCounterStyleFromSymbols(value, '甲乙丙丁戊己庚辛壬癸', cjkSuffix); - case 17 /* CJK_IDEOGRAPHIC */: - case 48 /* TRAD_CHINESE_INFORMAL */: - return createCJKCounter(value, '零一二三四五六七八九', CHINESE_INFORMAL_MULTIPLIERS, '負', cjkSuffix, CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS | CJK_HUNDRED_COEFFICIENTS); - case 47 /* TRAD_CHINESE_FORMAL */: - return createCJKCounter(value, '零壹貳參肆伍陸柒捌玖', CHINESE_FORMAL_MULTIPLIERS, '負', cjkSuffix, CJK_ZEROS | CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS | CJK_HUNDRED_COEFFICIENTS); - case 42 /* SIMP_CHINESE_INFORMAL */: - return createCJKCounter(value, '零一二三四五六七八九', CHINESE_INFORMAL_MULTIPLIERS, '负', cjkSuffix, CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS | CJK_HUNDRED_COEFFICIENTS); - case 41 /* SIMP_CHINESE_FORMAL */: - return createCJKCounter(value, '零壹贰叁肆伍陆柒捌玖', CHINESE_FORMAL_MULTIPLIERS, '负', cjkSuffix, CJK_ZEROS | CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS | CJK_HUNDRED_COEFFICIENTS); - case 26 /* JAPANESE_INFORMAL */: - return createCJKCounter(value, '〇一二三四五六七八九', '十百千万', JAPANESE_NEGATIVE, cjkSuffix, 0); - case 25 /* JAPANESE_FORMAL */: - return createCJKCounter(value, '零壱弐参四伍六七八九', '拾百千万', JAPANESE_NEGATIVE, cjkSuffix, CJK_ZEROS | CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS); - case 31 /* KOREAN_HANGUL_FORMAL */: - return createCJKCounter(value, '영일이삼사오육칠팔구', '십백천만', KOREAN_NEGATIVE, koreanSuffix, CJK_ZEROS | CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS); - case 33 /* KOREAN_HANJA_INFORMAL */: - return createCJKCounter(value, '零一二三四五六七八九', '十百千萬', KOREAN_NEGATIVE, koreanSuffix, 0); - case 32 /* KOREAN_HANJA_FORMAL */: - return createCJKCounter(value, '零壹貳參四五六七八九', '拾百千', KOREAN_NEGATIVE, koreanSuffix, CJK_ZEROS | CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS); - case 18 /* DEVANAGARI */: - return createCounterStyleFromRange(value, 0x966, 0x96f, true, defaultSuffix); - case 20 /* GEORGIAN */: - return createAdditiveCounter(value, 1, 19999, GEORGIAN, 3 /* DECIMAL */, defaultSuffix); - case 21 /* GUJARATI */: - return createCounterStyleFromRange(value, 0xae6, 0xaef, true, defaultSuffix); - case 22 /* GURMUKHI */: - return createCounterStyleFromRange(value, 0xa66, 0xa6f, true, defaultSuffix); - case 22 /* HEBREW */: - return createAdditiveCounter(value, 1, 10999, HEBREW, 3 /* DECIMAL */, defaultSuffix); - case 23 /* HIRAGANA */: - return createCounterStyleFromSymbols(value, 'あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん'); - case 24 /* HIRAGANA_IROHA */: - return createCounterStyleFromSymbols(value, 'いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす'); - case 27 /* KANNADA */: - return createCounterStyleFromRange(value, 0xce6, 0xcef, true, defaultSuffix); - case 28 /* KATAKANA */: - return createCounterStyleFromSymbols(value, 'アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン', cjkSuffix); - case 29 /* KATAKANA_IROHA */: - return createCounterStyleFromSymbols(value, 'イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス', cjkSuffix); - case 34 /* LAO */: - return createCounterStyleFromRange(value, 0xed0, 0xed9, true, defaultSuffix); - case 37 /* MONGOLIAN */: - return createCounterStyleFromRange(value, 0x1810, 0x1819, true, defaultSuffix); - case 38 /* MYANMAR */: - return createCounterStyleFromRange(value, 0x1040, 0x1049, true, defaultSuffix); - case 39 /* ORIYA */: - return createCounterStyleFromRange(value, 0xb66, 0xb6f, true, defaultSuffix); - case 40 /* PERSIAN */: - return createCounterStyleFromRange(value, 0x6f0, 0x6f9, true, defaultSuffix); - case 43 /* TAMIL */: - return createCounterStyleFromRange(value, 0xbe6, 0xbef, true, defaultSuffix); - case 44 /* TELUGU */: - return createCounterStyleFromRange(value, 0xc66, 0xc6f, true, defaultSuffix); - case 45 /* THAI */: - return createCounterStyleFromRange(value, 0xe50, 0xe59, true, defaultSuffix); - case 46 /* TIBETAN */: - return createCounterStyleFromRange(value, 0xf20, 0xf29, true, defaultSuffix); - case 3 /* DECIMAL */: - default: - return createCounterStyleFromRange(value, 48, 57, true, defaultSuffix); - } - }; - - var IGNORE_ATTRIBUTE = 'data-html2canvas-ignore'; - var DocumentCloner = /** @class */ (function () { - function DocumentCloner(context, element, options) { - this.context = context; - this.options = options; - this.scrolledElements = []; - this.referenceElement = element; - this.counters = new CounterState(); - this.quoteDepth = 0; - if (!element.ownerDocument) { - throw new Error('Cloned element does not have an owner document'); - } - this.documentElement = this.cloneNode(element.ownerDocument.documentElement, false); - } - DocumentCloner.prototype.toIFrame = function (ownerDocument, windowSize) { - var _this = this; - var iframe = createIFrameContainer(ownerDocument, windowSize); - if (!iframe.contentWindow) { - return Promise.reject("Unable to find iframe window"); - } - var scrollX = ownerDocument.defaultView.pageXOffset; - var scrollY = ownerDocument.defaultView.pageYOffset; - var cloneWindow = iframe.contentWindow; - var documentClone = cloneWindow.document; - /* Chrome doesn't detect relative background-images assigned in inline - - - -
        - -
        - - - \ No newline at end of file diff --git a/spaces/omdenatopekachapter/left_ejection_fraction/home_page.py b/spaces/omdenatopekachapter/left_ejection_fraction/home_page.py deleted file mode 100644 index aeb776068d720b70dcd86621211438ad0820c143..0000000000000000000000000000000000000000 --- a/spaces/omdenatopekachapter/left_ejection_fraction/home_page.py +++ /dev/null @@ -1,79 +0,0 @@ -import streamlit as st - -def home_page(): - - #st.set_page_config(page_title="Home Page", page_icon=":heart:") - - - st.markdown( - f""" - - """, - unsafe_allow_html=True, - ) - - st.write(""" -
        -

        Welcome to LVEF Assessment App

        -

        This app is designed to help medical professionals assess left ventricular ejection fraction (LVEF), which is a measure of how well the heart is functioning. The app takes in data on a patient's echocardiogram and uses it to calculate LVEF. This can help doctors make more accurate diagnoses and better treatment plans.

        -
        - """, - unsafe_allow_html=True) - - # Add the image below the text - #st.image("https://www.usbiotek.com/hubfs/heart%20health.jpg", width=400, use_column_width=True) - - # Add a continue button to navigate to Page 2 - #st.markdown( - # """ - #
        - # - #
        - #""", - #unsafe_allow_html=True, - #) - - st.markdown( - """ - - """, - unsafe_allow_html=True, - ) diff --git a/spaces/omlab/vlchecklist_demo/models/vilt/datasets/vqav2_dataset.py b/spaces/omlab/vlchecklist_demo/models/vilt/datasets/vqav2_dataset.py deleted file mode 100644 index f802deadb3e274d2255aaa71b323476585f3c7bc..0000000000000000000000000000000000000000 --- a/spaces/omlab/vlchecklist_demo/models/vilt/datasets/vqav2_dataset.py +++ /dev/null @@ -1,47 +0,0 @@ -from .base_dataset import BaseDataset - - -class VQAv2Dataset(BaseDataset): - def __init__(self, *args, split="", **kwargs): - assert split in ["train", "val", "test"] - self.split = split - - if split == "train": - names = ["vqav2_train", "vqav2_trainable_val"] - elif split == "val": - names = ["vqav2_rest_val"] - elif split == "test": - names = ["vqav2_test"] # vqav2_test-dev for test-dev - - super().__init__( - *args, - **kwargs, - names=names, - text_column_name="questions", - remove_duplicate=False, - ) - - def __getitem__(self, index): - image_tensor = self.get_image(index)["image"] - text = self.get_text(index)["text"] - - index, question_index = self.index_mapper[index] - qid = self.table["question_id"][index][question_index].as_py() - - if self.split != "test": - answers = self.table["answers"][index][question_index].as_py() - labels = self.table["answer_labels"][index][question_index].as_py() - scores = self.table["answer_scores"][index][question_index].as_py() - else: - answers = list() - labels = list() - scores = list() - - return { - "image": image_tensor, - "text": text, - "vqa_answer": answers, - "vqa_labels": labels, - "vqa_scores": scores, - "qid": qid, - } diff --git a/spaces/onereal/rvc-models-convertvoice/config.py b/spaces/onereal/rvc-models-convertvoice/config.py deleted file mode 100644 index 26e5c63e0ea863a89453424ab8fc3190151b79a7..0000000000000000000000000000000000000000 --- a/spaces/onereal/rvc-models-convertvoice/config.py +++ /dev/null @@ -1,120 +0,0 @@ -import argparse -import torch -from multiprocessing import cpu_count - - -class Config: - def __init__(self): - self.device = "cuda:0" - self.is_half = True - self.n_cpu = 0 - self.gpu_name = None - self.gpu_mem = None - ( - self.python_cmd, - self.listen_port, - self.colab, - self.noparallel, - self.noautoopen, - self.api - ) = self.arg_parse() - self.x_pad, self.x_query, self.x_center, self.x_max = self.device_config() - - @staticmethod - def arg_parse() -> tuple: - parser = argparse.ArgumentParser() - parser.add_argument("--port", type=int, default=7865, help="Listen port") - parser.add_argument( - "--pycmd", type=str, default="python", help="Python command" - ) - parser.add_argument("--colab", action="store_true", help="Launch in colab") - parser.add_argument( - "--noparallel", action="store_true", help="Disable parallel processing" - ) - parser.add_argument( - "--noautoopen", - action="store_true", - help="Do not open in browser automatically", - ) - parser.add_argument('--api', action="store_true", default=False) - cmd_opts = parser.parse_args() - - cmd_opts.port = cmd_opts.port if 0 <= cmd_opts.port <= 65535 else 7865 - - return ( - cmd_opts.pycmd, - cmd_opts.port, - cmd_opts.colab, - cmd_opts.noparallel, - cmd_opts.noautoopen, - cmd_opts.api, - ) - - def device_config(self) -> tuple: - if torch.cuda.is_available(): - i_device = int(self.device.split(":")[-1]) - self.gpu_name = torch.cuda.get_device_name(i_device) - if ( - ("16" in self.gpu_name and "V100" not in self.gpu_name.upper()) - or "P40" in self.gpu_name.upper() - or "1060" in self.gpu_name - or "1070" in self.gpu_name - or "1080" in self.gpu_name - ): - print("16系/10系显卡和P40强制单精度") - self.is_half = False - for config_file in ["32k.json", "40k.json", "48k.json"]: - with open(f"configs/{config_file}", "r") as f: - strr = f.read().replace("true", "false") - with open(f"configs/{config_file}", "w") as f: - f.write(strr) - with open("trainset_preprocess_pipeline_print.py", "r") as f: - strr = f.read().replace("3.7", "3.0") - with open("trainset_preprocess_pipeline_print.py", "w") as f: - f.write(strr) - else: - self.gpu_name = None - self.gpu_mem = int( - torch.cuda.get_device_properties(i_device).total_memory - / 1024 - / 1024 - / 1024 - + 0.4 - ) - if self.gpu_mem <= 4: - with open("trainset_preprocess_pipeline_print.py", "r") as f: - strr = f.read().replace("3.7", "3.0") - with open("trainset_preprocess_pipeline_print.py", "w") as f: - f.write(strr) - elif torch.backends.mps.is_available(): - print("没有发现支持的N卡, 使用MPS进行推理") - self.device = "mps" - self.is_half = False - else: - print("没有发现支持的N卡, 使用CPU进行推理") - self.device = "cpu" - self.is_half = False - - if self.n_cpu == 0: - self.n_cpu = cpu_count() - - if self.is_half: - # 6G显存配置 - x_pad = 3 - x_query = 10 - x_center = 60 - x_max = 65 - else: - # 5G显存配置 - x_pad = 1 - x_query = 6 - x_center = 38 - x_max = 41 - - if self.gpu_mem != None and self.gpu_mem <= 4: - x_pad = 1 - x_query = 5 - x_center = 30 - x_max = 32 - - return x_pad, x_query, x_center, x_max \ No newline at end of file diff --git a/spaces/openMUSE/MUSE-vs-SD.1.5/README.md b/spaces/openMUSE/MUSE-vs-SD.1.5/README.md deleted file mode 100644 index 1cbce0776b8a9e07b181f3a150267bd45a209c2f..0000000000000000000000000000000000000000 --- a/spaces/openMUSE/MUSE-vs-SD.1.5/README.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -title: MUSE Compare -emoji: 📊 -colorFrom: gray -colorTo: red -sdk: gradio -sdk_version: 3.44.0 -app_file: app.py -pinned: false ---- - -Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference diff --git a/spaces/osanseviero/hugging-pic/README.md b/spaces/osanseviero/hugging-pic/README.md deleted file mode 100644 index 009b1a90c5056e0694ae9331c10c812bd8dbecc2..0000000000000000000000000000000000000000 --- a/spaces/osanseviero/hugging-pic/README.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -title: Hugging Pic -emoji: 📊 -colorFrom: blue -colorTo: gray -sdk: gradio -app_file: app.py -pinned: false ---- - -# Configuration - -`title`: _string_ -Display title for the Space - -`emoji`: _string_ -Space emoji (emoji-only character allowed) - -`colorFrom`: _string_ -Color for Thumbnail gradient (red, yellow, green, blue, indigo, purple, pink, gray) - -`colorTo`: _string_ -Color for Thumbnail gradient (red, yellow, green, blue, indigo, purple, pink, gray) - -`sdk`: _string_ -Can be either `gradio` or `streamlit` - -`sdk_version` : _string_ -Only applicable for `streamlit` SDK. -See [doc](https://hf.co/docs/hub/spaces) for more info on supported versions. - -`app_file`: _string_ -Path to your main application file (which contains either `gradio` or `streamlit` Python code). -Path is relative to the root of the repository. - -`pinned`: _boolean_ -Whether the Space stays on top of your list. diff --git a/spaces/pablodawson/ldm3d-inpainting/diffuserslocal/docs/source/en/api/models/autoencoder_tiny.md b/spaces/pablodawson/ldm3d-inpainting/diffuserslocal/docs/source/en/api/models/autoencoder_tiny.md deleted file mode 100644 index 9b97b6e8e999d2a0c932a06390e48e07dbff65d2..0000000000000000000000000000000000000000 --- a/spaces/pablodawson/ldm3d-inpainting/diffuserslocal/docs/source/en/api/models/autoencoder_tiny.md +++ /dev/null @@ -1,45 +0,0 @@ -# Tiny AutoEncoder - -Tiny AutoEncoder for Stable Diffusion (TAESD) was introduced in [madebyollin/taesd](https://github.com/madebyollin/taesd) by Ollin Boer Bohan. It is a tiny distilled version of Stable Diffusion's VAE that can quickly decode the latents in a [`StableDiffusionPipeline`] or [`StableDiffusionXLPipeline`] almost instantly. - -To use with Stable Diffusion v-2.1: - -```python -import torch -from diffusers import DiffusionPipeline, AutoencoderTiny - -pipe = DiffusionPipeline.from_pretrained( - "stabilityai/stable-diffusion-2-1-base", torch_dtype=torch.float16 -) -pipe.vae = AutoencoderTiny.from_pretrained("madebyollin/taesd", torch_dtype=torch.float16) -pipe = pipe.to("cuda") - -prompt = "slice of delicious New York-style berry cheesecake" -image = pipe(prompt, num_inference_steps=25).images[0] -image.save("cheesecake.png") -``` - -To use with Stable Diffusion XL 1.0 - -```python -import torch -from diffusers import DiffusionPipeline, AutoencoderTiny - -pipe = DiffusionPipeline.from_pretrained( - "stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16 -) -pipe.vae = AutoencoderTiny.from_pretrained("madebyollin/taesdxl", torch_dtype=torch.float16) -pipe = pipe.to("cuda") - -prompt = "slice of delicious New York-style berry cheesecake" -image = pipe(prompt, num_inference_steps=25).images[0] -image.save("cheesecake_sdxl.png") -``` - -## AutoencoderTiny - -[[autodoc]] AutoencoderTiny - -## AutoencoderTinyOutput - -[[autodoc]] models.autoencoder_tiny.AutoencoderTinyOutput \ No newline at end of file diff --git a/spaces/pablodawson/ldm3d-inpainting/diffuserslocal/docs/source/ko/training/unconditional_training.md b/spaces/pablodawson/ldm3d-inpainting/diffuserslocal/docs/source/ko/training/unconditional_training.md deleted file mode 100644 index 62c846311114a08d15b05994a6694ad44d16542e..0000000000000000000000000000000000000000 --- a/spaces/pablodawson/ldm3d-inpainting/diffuserslocal/docs/source/ko/training/unconditional_training.md +++ /dev/null @@ -1,144 +0,0 @@ - - -# Unconditional 이미지 생성 - -unconditional 이미지 생성은 text-to-image 또는 image-to-image 모델과 달리 텍스트나 이미지에 대한 조건이 없이 학습 데이터 분포와 유사한 이미지만을 생성합니다. - - - - -이 가이드에서는 기존에 존재하던 데이터셋과 자신만의 커스텀 데이터셋에 대해 unconditional image generation 모델을 훈련하는 방법을 설명합니다. 훈련 세부 사항에 대해 더 자세히 알고 싶다면 unconditional image generation을 위한 모든 학습 스크립트를 [여기](https://github.com/huggingface/diffusers/tree/main/examples/unconditional_image_generation)에서 확인할 수 있습니다. - -스크립트를 실행하기 전, 먼저 의존성 라이브러리들을 설치해야 합니다. - -```bash -pip install diffusers[training] accelerate datasets -``` - -그 다음 🤗 [Accelerate](https://github.com/huggingface/accelerate/) 환경을 초기화합니다. - -```bash -accelerate config -``` - -별도의 설정 없이 기본 설정으로 🤗 [Accelerate](https://github.com/huggingface/accelerate/) 환경을 초기화해봅시다. - -```bash -accelerate config default -``` - -노트북과 같은 대화형 쉘을 지원하지 않는 환경의 경우, 다음과 같이 사용해볼 수도 있습니다. - -```py -from accelerate.utils import write_basic_config - -write_basic_config() -``` - -## 모델을 허브에 업로드하기 - -학습 스크립트에 다음 인자를 추가하여 허브에 모델을 업로드할 수 있습니다. - -```bash ---push_to_hub -``` - -## 체크포인트 저장하고 불러오기 - -훈련 중 문제가 발생할 경우를 대비하여 체크포인트를 정기적으로 저장하는 것이 좋습니다. 체크포인트를 저장하려면 학습 스크립트에 다음 인자를 전달합니다: - -```bash ---checkpointing_steps=500 -``` - -전체 훈련 상태는 500스텝마다 `output_dir`의 하위 폴더에 저장되며, 학습 스크립트에 `--resume_from_checkpoint` 인자를 전달함으로써 체크포인트를 불러오고 훈련을 재개할 수 있습니다. - -```bash ---resume_from_checkpoint="checkpoint-1500" -``` - -## 파인튜닝 - -이제 학습 스크립트를 시작할 준비가 되었습니다! `--dataset_name` 인자에 파인튜닝할 데이터셋 이름을 지정한 다음, `--output_dir` 인자에 지정된 경로로 저장합니다. 본인만의 데이터셋를 사용하려면, [학습용 데이터셋 만들기](create_dataset) 가이드를 참조하세요. - -학습 스크립트는 `diffusion_pytorch_model.bin` 파일을 생성하고, 그것을 당신의 리포지토리에 저장합니다. - - - -💡 전체 학습은 V100 GPU 4개를 사용할 경우, 2시간이 소요됩니다. - - - -예를 들어, [Oxford Flowers](https://huggingface.co/datasets/huggan/flowers-102-categories) 데이터셋을 사용해 파인튜닝할 경우: - -```bash -accelerate launch train_unconditional.py \ - --dataset_name="huggan/flowers-102-categories" \ - --resolution=64 \ - --output_dir="ddpm-ema-flowers-64" \ - --train_batch_size=16 \ - --num_epochs=100 \ - --gradient_accumulation_steps=1 \ - --learning_rate=1e-4 \ - --lr_warmup_steps=500 \ - --mixed_precision=no \ - --push_to_hub -``` - -
        - -
        -[Pokemon](https://huggingface.co/datasets/huggan/pokemon) 데이터셋을 사용할 경우: - -```bash -accelerate launch train_unconditional.py \ - --dataset_name="huggan/pokemon" \ - --resolution=64 \ - --output_dir="ddpm-ema-pokemon-64" \ - --train_batch_size=16 \ - --num_epochs=100 \ - --gradient_accumulation_steps=1 \ - --learning_rate=1e-4 \ - --lr_warmup_steps=500 \ - --mixed_precision=no \ - --push_to_hub -``` - -
        - -
        - -### 여러개의 GPU로 훈련하기 - -`accelerate`을 사용하면 원활한 다중 GPU 훈련이 가능합니다. `accelerate`을 사용하여 분산 훈련을 실행하려면 [여기](https://huggingface.co/docs/accelerate/basic_tutorials/launch) 지침을 따르세요. 다음은 명령어 예제입니다. - -```bash -accelerate launch --mixed_precision="fp16" --multi_gpu train_unconditional.py \ - --dataset_name="huggan/pokemon" \ - --resolution=64 --center_crop --random_flip \ - --output_dir="ddpm-ema-pokemon-64" \ - --train_batch_size=16 \ - --num_epochs=100 \ - --gradient_accumulation_steps=1 \ - --use_ema \ - --learning_rate=1e-4 \ - --lr_warmup_steps=500 \ - --mixed_precision="fp16" \ - --logger="wandb" \ - --push_to_hub -``` diff --git a/spaces/pablodawson/ldm3d-inpainting/diffuserslocal/midas/midas/vit.py b/spaces/pablodawson/ldm3d-inpainting/diffuserslocal/midas/midas/vit.py deleted file mode 100644 index ea46b1be88b261b0dec04f3da0256f5f66f88a74..0000000000000000000000000000000000000000 --- a/spaces/pablodawson/ldm3d-inpainting/diffuserslocal/midas/midas/vit.py +++ /dev/null @@ -1,491 +0,0 @@ -import torch -import torch.nn as nn -import timm -import types -import math -import torch.nn.functional as F - - -class Slice(nn.Module): - def __init__(self, start_index=1): - super(Slice, self).__init__() - self.start_index = start_index - - def forward(self, x): - return x[:, self.start_index :] - - -class AddReadout(nn.Module): - def __init__(self, start_index=1): - super(AddReadout, self).__init__() - self.start_index = start_index - - def forward(self, x): - if self.start_index == 2: - readout = (x[:, 0] + x[:, 1]) / 2 - else: - readout = x[:, 0] - return x[:, self.start_index :] + readout.unsqueeze(1) - - -class ProjectReadout(nn.Module): - def __init__(self, in_features, start_index=1): - super(ProjectReadout, self).__init__() - self.start_index = start_index - - self.project = nn.Sequential(nn.Linear(2 * in_features, in_features), nn.GELU()) - - def forward(self, x): - readout = x[:, 0].unsqueeze(1).expand_as(x[:, self.start_index :]) - features = torch.cat((x[:, self.start_index :], readout), -1) - - return self.project(features) - - -class Transpose(nn.Module): - def __init__(self, dim0, dim1): - super(Transpose, self).__init__() - self.dim0 = dim0 - self.dim1 = dim1 - - def forward(self, x): - x = x.transpose(self.dim0, self.dim1) - return x - - -def forward_vit(pretrained, x): - b, c, h, w = x.shape - - glob = pretrained.model.forward_flex(x) - - layer_1 = pretrained.activations["1"] - layer_2 = pretrained.activations["2"] - layer_3 = pretrained.activations["3"] - layer_4 = pretrained.activations["4"] - - layer_1 = pretrained.act_postprocess1[0:2](layer_1) - layer_2 = pretrained.act_postprocess2[0:2](layer_2) - layer_3 = pretrained.act_postprocess3[0:2](layer_3) - layer_4 = pretrained.act_postprocess4[0:2](layer_4) - - unflatten = nn.Sequential( - nn.Unflatten( - 2, - torch.Size( - [ - h // pretrained.model.patch_size[1], - w // pretrained.model.patch_size[0], - ] - ), - ) - ) - - if layer_1.ndim == 3: - layer_1 = unflatten(layer_1) - if layer_2.ndim == 3: - layer_2 = unflatten(layer_2) - if layer_3.ndim == 3: - layer_3 = unflatten(layer_3) - if layer_4.ndim == 3: - layer_4 = unflatten(layer_4) - - layer_1 = pretrained.act_postprocess1[3 : len(pretrained.act_postprocess1)](layer_1) - layer_2 = pretrained.act_postprocess2[3 : len(pretrained.act_postprocess2)](layer_2) - layer_3 = pretrained.act_postprocess3[3 : len(pretrained.act_postprocess3)](layer_3) - layer_4 = pretrained.act_postprocess4[3 : len(pretrained.act_postprocess4)](layer_4) - - return layer_1, layer_2, layer_3, layer_4 - - -def _resize_pos_embed(self, posemb, gs_h, gs_w): - posemb_tok, posemb_grid = ( - posemb[:, : self.start_index], - posemb[0, self.start_index :], - ) - - gs_old = int(math.sqrt(len(posemb_grid))) - - posemb_grid = posemb_grid.reshape(1, gs_old, gs_old, -1).permute(0, 3, 1, 2) - posemb_grid = F.interpolate(posemb_grid, size=(gs_h, gs_w), mode="bilinear") - posemb_grid = posemb_grid.permute(0, 2, 3, 1).reshape(1, gs_h * gs_w, -1) - - posemb = torch.cat([posemb_tok, posemb_grid], dim=1) - - return posemb - - -def forward_flex(self, x): - b, c, h, w = x.shape - - pos_embed = self._resize_pos_embed( - self.pos_embed, h // self.patch_size[1], w // self.patch_size[0] - ) - - B = x.shape[0] - - if hasattr(self.patch_embed, "backbone"): - x = self.patch_embed.backbone(x) - if isinstance(x, (list, tuple)): - x = x[-1] # last feature if backbone outputs list/tuple of features - - x = self.patch_embed.proj(x).flatten(2).transpose(1, 2) - - if getattr(self, "dist_token", None) is not None: - cls_tokens = self.cls_token.expand( - B, -1, -1 - ) # stole cls_tokens impl from Phil Wang, thanks - dist_token = self.dist_token.expand(B, -1, -1) - x = torch.cat((cls_tokens, dist_token, x), dim=1) - else: - cls_tokens = self.cls_token.expand( - B, -1, -1 - ) # stole cls_tokens impl from Phil Wang, thanks - x = torch.cat((cls_tokens, x), dim=1) - - x = x + pos_embed - x = self.pos_drop(x) - - for blk in self.blocks: - x = blk(x) - - x = self.norm(x) - - return x - - -activations = {} - - -def get_activation(name): - def hook(model, input, output): - activations[name] = output - - return hook - - -def get_readout_oper(vit_features, features, use_readout, start_index=1): - if use_readout == "ignore": - readout_oper = [Slice(start_index)] * len(features) - elif use_readout == "add": - readout_oper = [AddReadout(start_index)] * len(features) - elif use_readout == "project": - readout_oper = [ - ProjectReadout(vit_features, start_index) for out_feat in features - ] - else: - assert ( - False - ), "wrong operation for readout token, use_readout can be 'ignore', 'add', or 'project'" - - return readout_oper - - -def _make_vit_b16_backbone( - model, - features=[96, 192, 384, 768], - size=[384, 384], - hooks=[2, 5, 8, 11], - vit_features=768, - use_readout="ignore", - start_index=1, -): - pretrained = nn.Module() - - pretrained.model = model - pretrained.model.blocks[hooks[0]].register_forward_hook(get_activation("1")) - pretrained.model.blocks[hooks[1]].register_forward_hook(get_activation("2")) - pretrained.model.blocks[hooks[2]].register_forward_hook(get_activation("3")) - pretrained.model.blocks[hooks[3]].register_forward_hook(get_activation("4")) - - pretrained.activations = activations - - readout_oper = get_readout_oper(vit_features, features, use_readout, start_index) - - # 32, 48, 136, 384 - pretrained.act_postprocess1 = nn.Sequential( - readout_oper[0], - Transpose(1, 2), - nn.Unflatten(2, torch.Size([size[0] // 16, size[1] // 16])), - nn.Conv2d( - in_channels=vit_features, - out_channels=features[0], - kernel_size=1, - stride=1, - padding=0, - ), - nn.ConvTranspose2d( - in_channels=features[0], - out_channels=features[0], - kernel_size=4, - stride=4, - padding=0, - bias=True, - dilation=1, - groups=1, - ), - ) - - pretrained.act_postprocess2 = nn.Sequential( - readout_oper[1], - Transpose(1, 2), - nn.Unflatten(2, torch.Size([size[0] // 16, size[1] // 16])), - nn.Conv2d( - in_channels=vit_features, - out_channels=features[1], - kernel_size=1, - stride=1, - padding=0, - ), - nn.ConvTranspose2d( - in_channels=features[1], - out_channels=features[1], - kernel_size=2, - stride=2, - padding=0, - bias=True, - dilation=1, - groups=1, - ), - ) - - pretrained.act_postprocess3 = nn.Sequential( - readout_oper[2], - Transpose(1, 2), - nn.Unflatten(2, torch.Size([size[0] // 16, size[1] // 16])), - nn.Conv2d( - in_channels=vit_features, - out_channels=features[2], - kernel_size=1, - stride=1, - padding=0, - ), - ) - - pretrained.act_postprocess4 = nn.Sequential( - readout_oper[3], - Transpose(1, 2), - nn.Unflatten(2, torch.Size([size[0] // 16, size[1] // 16])), - nn.Conv2d( - in_channels=vit_features, - out_channels=features[3], - kernel_size=1, - stride=1, - padding=0, - ), - nn.Conv2d( - in_channels=features[3], - out_channels=features[3], - kernel_size=3, - stride=2, - padding=1, - ), - ) - - pretrained.model.start_index = start_index - pretrained.model.patch_size = [16, 16] - - # We inject this function into the VisionTransformer instances so that - # we can use it with interpolated position embeddings without modifying the library source. - pretrained.model.forward_flex = types.MethodType(forward_flex, pretrained.model) - pretrained.model._resize_pos_embed = types.MethodType( - _resize_pos_embed, pretrained.model - ) - - return pretrained - - -def _make_pretrained_vitl16_384(pretrained, use_readout="ignore", hooks=None): - model = timm.create_model("vit_large_patch16_384", pretrained=pretrained) - - hooks = [5, 11, 17, 23] if hooks == None else hooks - return _make_vit_b16_backbone( - model, - features=[256, 512, 1024, 1024], - hooks=hooks, - vit_features=1024, - use_readout=use_readout, - ) - - -def _make_pretrained_vitb16_384(pretrained, use_readout="ignore", hooks=None): - model = timm.create_model("vit_base_patch16_384", pretrained=pretrained) - - hooks = [2, 5, 8, 11] if hooks == None else hooks - return _make_vit_b16_backbone( - model, features=[96, 192, 384, 768], hooks=hooks, use_readout=use_readout - ) - - -def _make_pretrained_deitb16_384(pretrained, use_readout="ignore", hooks=None): - model = timm.create_model("vit_deit_base_patch16_384", pretrained=pretrained) - - hooks = [2, 5, 8, 11] if hooks == None else hooks - return _make_vit_b16_backbone( - model, features=[96, 192, 384, 768], hooks=hooks, use_readout=use_readout - ) - - -def _make_pretrained_deitb16_distil_384(pretrained, use_readout="ignore", hooks=None): - model = timm.create_model( - "vit_deit_base_distilled_patch16_384", pretrained=pretrained - ) - - hooks = [2, 5, 8, 11] if hooks == None else hooks - return _make_vit_b16_backbone( - model, - features=[96, 192, 384, 768], - hooks=hooks, - use_readout=use_readout, - start_index=2, - ) - - -def _make_vit_b_rn50_backbone( - model, - features=[256, 512, 768, 768], - size=[384, 384], - hooks=[0, 1, 8, 11], - vit_features=768, - use_vit_only=False, - use_readout="ignore", - start_index=1, -): - pretrained = nn.Module() - - pretrained.model = model - - if use_vit_only == True: - pretrained.model.blocks[hooks[0]].register_forward_hook(get_activation("1")) - pretrained.model.blocks[hooks[1]].register_forward_hook(get_activation("2")) - else: - pretrained.model.patch_embed.backbone.stages[0].register_forward_hook( - get_activation("1") - ) - pretrained.model.patch_embed.backbone.stages[1].register_forward_hook( - get_activation("2") - ) - - pretrained.model.blocks[hooks[2]].register_forward_hook(get_activation("3")) - pretrained.model.blocks[hooks[3]].register_forward_hook(get_activation("4")) - - pretrained.activations = activations - - readout_oper = get_readout_oper(vit_features, features, use_readout, start_index) - - if use_vit_only == True: - pretrained.act_postprocess1 = nn.Sequential( - readout_oper[0], - Transpose(1, 2), - nn.Unflatten(2, torch.Size([size[0] // 16, size[1] // 16])), - nn.Conv2d( - in_channels=vit_features, - out_channels=features[0], - kernel_size=1, - stride=1, - padding=0, - ), - nn.ConvTranspose2d( - in_channels=features[0], - out_channels=features[0], - kernel_size=4, - stride=4, - padding=0, - bias=True, - dilation=1, - groups=1, - ), - ) - - pretrained.act_postprocess2 = nn.Sequential( - readout_oper[1], - Transpose(1, 2), - nn.Unflatten(2, torch.Size([size[0] // 16, size[1] // 16])), - nn.Conv2d( - in_channels=vit_features, - out_channels=features[1], - kernel_size=1, - stride=1, - padding=0, - ), - nn.ConvTranspose2d( - in_channels=features[1], - out_channels=features[1], - kernel_size=2, - stride=2, - padding=0, - bias=True, - dilation=1, - groups=1, - ), - ) - else: - pretrained.act_postprocess1 = nn.Sequential( - nn.Identity(), nn.Identity(), nn.Identity() - ) - pretrained.act_postprocess2 = nn.Sequential( - nn.Identity(), nn.Identity(), nn.Identity() - ) - - pretrained.act_postprocess3 = nn.Sequential( - readout_oper[2], - Transpose(1, 2), - nn.Unflatten(2, torch.Size([size[0] // 16, size[1] // 16])), - nn.Conv2d( - in_channels=vit_features, - out_channels=features[2], - kernel_size=1, - stride=1, - padding=0, - ), - ) - - pretrained.act_postprocess4 = nn.Sequential( - readout_oper[3], - Transpose(1, 2), - nn.Unflatten(2, torch.Size([size[0] // 16, size[1] // 16])), - nn.Conv2d( - in_channels=vit_features, - out_channels=features[3], - kernel_size=1, - stride=1, - padding=0, - ), - nn.Conv2d( - in_channels=features[3], - out_channels=features[3], - kernel_size=3, - stride=2, - padding=1, - ), - ) - - pretrained.model.start_index = start_index - pretrained.model.patch_size = [16, 16] - - # We inject this function into the VisionTransformer instances so that - # we can use it with interpolated position embeddings without modifying the library source. - pretrained.model.forward_flex = types.MethodType(forward_flex, pretrained.model) - - # We inject this function into the VisionTransformer instances so that - # we can use it with interpolated position embeddings without modifying the library source. - pretrained.model._resize_pos_embed = types.MethodType( - _resize_pos_embed, pretrained.model - ) - - return pretrained - - -def _make_pretrained_vitb_rn50_384( - pretrained, use_readout="ignore", hooks=None, use_vit_only=False -): - model = timm.create_model("vit_base_resnet50_384", pretrained=pretrained) - - hooks = [0, 1, 8, 11] if hooks == None else hooks - return _make_vit_b_rn50_backbone( - model, - features=[256, 512, 768, 768], - size=[384, 384], - hooks=hooks, - use_vit_only=use_vit_only, - use_readout=use_readout, - ) diff --git a/spaces/pablovela5620/grounding-sam/app.py b/spaces/pablovela5620/grounding-sam/app.py deleted file mode 100644 index e70912be60c132d78424628accfffafcd96a037e..0000000000000000000000000000000000000000 --- a/spaces/pablovela5620/grounding-sam/app.py +++ /dev/null @@ -1,5 +0,0 @@ -from os import system - -system("git submodule update --init --recursive") -system("cd GroundingDINO && pip install -e .") -system("python gradio_demo.py") diff --git a/spaces/pknez/face-swap-docker/mynewshinyroop/Lib/site-packages/setuptools/msvc.py b/spaces/pknez/face-swap-docker/mynewshinyroop/Lib/site-packages/setuptools/msvc.py deleted file mode 100644 index 4a08dffe36eea0f1fbb9bad2fa9a106a6e13adc9..0000000000000000000000000000000000000000 --- a/spaces/pknez/face-swap-docker/mynewshinyroop/Lib/site-packages/setuptools/msvc.py +++ /dev/null @@ -1,1690 +0,0 @@ -""" -Improved support for Microsoft Visual C++ compilers. - -Known supported compilers: --------------------------- -Microsoft Visual C++ 14.X: - Microsoft Visual C++ Build Tools 2015 (x86, x64, arm) - Microsoft Visual Studio Build Tools 2017 (x86, x64, arm, arm64) - Microsoft Visual Studio Build Tools 2019 (x86, x64, arm, arm64) - -This may also support compilers shipped with compatible Visual Studio versions. -""" - -import json -from io import open -from os import listdir, pathsep -from os.path import join, isfile, isdir, dirname -from subprocess import CalledProcessError -import contextlib -import platform -import itertools -import subprocess -import distutils.errors -from setuptools.extern.more_itertools import unique_everseen - -if platform.system() == 'Windows': - import winreg - from os import environ -else: - # Mock winreg and environ so the module can be imported on this platform. - - class winreg: - HKEY_USERS = None - HKEY_CURRENT_USER = None - HKEY_LOCAL_MACHINE = None - HKEY_CLASSES_ROOT = None - - environ = dict() - - -def _msvc14_find_vc2015(): - """Python 3.8 "distutils/_msvccompiler.py" backport""" - try: - key = winreg.OpenKey( - winreg.HKEY_LOCAL_MACHINE, - r"Software\Microsoft\VisualStudio\SxS\VC7", - 0, - winreg.KEY_READ | winreg.KEY_WOW64_32KEY - ) - except OSError: - return None, None - - best_version = 0 - best_dir = None - with key: - for i in itertools.count(): - try: - v, vc_dir, vt = winreg.EnumValue(key, i) - except OSError: - break - if v and vt == winreg.REG_SZ and isdir(vc_dir): - try: - version = int(float(v)) - except (ValueError, TypeError): - continue - if version >= 14 and version > best_version: - best_version, best_dir = version, vc_dir - return best_version, best_dir - - -def _msvc14_find_vc2017(): - """Python 3.8 "distutils/_msvccompiler.py" backport - - Returns "15, path" based on the result of invoking vswhere.exe - If no install is found, returns "None, None" - - The version is returned to avoid unnecessarily changing the function - result. It may be ignored when the path is not None. - - If vswhere.exe is not available, by definition, VS 2017 is not - installed. - """ - root = environ.get("ProgramFiles(x86)") or environ.get("ProgramFiles") - if not root: - return None, None - - suitable_components = ( - "Microsoft.VisualStudio.Component.VC.Tools.x86.x64", - "Microsoft.VisualStudio.Workload.WDExpress", - ) - - for component in suitable_components: - # Workaround for `-requiresAny` (only available on VS 2017 > 15.6) - with contextlib.suppress(CalledProcessError, OSError, UnicodeDecodeError): - path = subprocess.check_output([ - join(root, "Microsoft Visual Studio", "Installer", "vswhere.exe"), - "-latest", - "-prerelease", - "-requires", component, - "-property", "installationPath", - "-products", "*", - ]).decode(encoding="mbcs", errors="strict").strip() - - path = join(path, "VC", "Auxiliary", "Build") - if isdir(path): - return 15, path - - return None, None # no suitable component found - - -PLAT_SPEC_TO_RUNTIME = { - 'x86': 'x86', - 'x86_amd64': 'x64', - 'x86_arm': 'arm', - 'x86_arm64': 'arm64' -} - - -def _msvc14_find_vcvarsall(plat_spec): - """Python 3.8 "distutils/_msvccompiler.py" backport""" - _, best_dir = _msvc14_find_vc2017() - vcruntime = None - - if plat_spec in PLAT_SPEC_TO_RUNTIME: - vcruntime_plat = PLAT_SPEC_TO_RUNTIME[plat_spec] - else: - vcruntime_plat = 'x64' if 'amd64' in plat_spec else 'x86' - - if best_dir: - vcredist = join(best_dir, "..", "..", "redist", "MSVC", "**", - vcruntime_plat, "Microsoft.VC14*.CRT", - "vcruntime140.dll") - try: - import glob - vcruntime = glob.glob(vcredist, recursive=True)[-1] - except (ImportError, OSError, LookupError): - vcruntime = None - - if not best_dir: - best_version, best_dir = _msvc14_find_vc2015() - if best_version: - vcruntime = join(best_dir, 'redist', vcruntime_plat, - "Microsoft.VC140.CRT", "vcruntime140.dll") - - if not best_dir: - return None, None - - vcvarsall = join(best_dir, "vcvarsall.bat") - if not isfile(vcvarsall): - return None, None - - if not vcruntime or not isfile(vcruntime): - vcruntime = None - - return vcvarsall, vcruntime - - -def _msvc14_get_vc_env(plat_spec): - """Python 3.8 "distutils/_msvccompiler.py" backport""" - if "DISTUTILS_USE_SDK" in environ: - return { - key.lower(): value - for key, value in environ.items() - } - - vcvarsall, vcruntime = _msvc14_find_vcvarsall(plat_spec) - if not vcvarsall: - raise distutils.errors.DistutilsPlatformError( - "Unable to find vcvarsall.bat" - ) - - try: - out = subprocess.check_output( - 'cmd /u /c "{}" {} && set'.format(vcvarsall, plat_spec), - stderr=subprocess.STDOUT, - ).decode('utf-16le', errors='replace') - except subprocess.CalledProcessError as exc: - raise distutils.errors.DistutilsPlatformError( - "Error executing {}".format(exc.cmd) - ) from exc - - env = { - key.lower(): value - for key, _, value in - (line.partition('=') for line in out.splitlines()) - if key and value - } - - if vcruntime: - env['py_vcruntime_redist'] = vcruntime - return env - - -def msvc14_get_vc_env(plat_spec): - """ - Patched "distutils._msvccompiler._get_vc_env" for support extra - Microsoft Visual C++ 14.X compilers. - - Set environment without use of "vcvarsall.bat". - - Parameters - ---------- - plat_spec: str - Target architecture. - - Return - ------ - dict - environment - """ - - # Always use backport from CPython 3.8 - try: - return _msvc14_get_vc_env(plat_spec) - except distutils.errors.DistutilsPlatformError as exc: - _augment_exception(exc, 14.0) - raise - - -def _augment_exception(exc, version, arch=''): - """ - Add details to the exception message to help guide the user - as to what action will resolve it. - """ - # Error if MSVC++ directory not found or environment not set - message = exc.args[0] - - if "vcvarsall" in message.lower() or "visual c" in message.lower(): - # Special error message if MSVC++ not installed - tmpl = 'Microsoft Visual C++ {version:0.1f} or greater is required.' - message = tmpl.format(**locals()) - msdownload = 'www.microsoft.com/download/details.aspx?id=%d' - if version == 9.0: - if arch.lower().find('ia64') > -1: - # For VC++ 9.0, if IA64 support is needed, redirect user - # to Windows SDK 7.0. - # Note: No download link available from Microsoft. - message += ' Get it with "Microsoft Windows SDK 7.0"' - else: - # For VC++ 9.0 redirect user to Vc++ for Python 2.7 : - # This redirection link is maintained by Microsoft. - # Contact vspython@microsoft.com if it needs updating. - message += ' Get it from http://aka.ms/vcpython27' - elif version == 10.0: - # For VC++ 10.0 Redirect user to Windows SDK 7.1 - message += ' Get it with "Microsoft Windows SDK 7.1": ' - message += msdownload % 8279 - elif version >= 14.0: - # For VC++ 14.X Redirect user to latest Visual C++ Build Tools - message += (' Get it with "Microsoft C++ Build Tools": ' - r'https://visualstudio.microsoft.com' - r'/visual-cpp-build-tools/') - - exc.args = (message, ) - - -class PlatformInfo: - """ - Current and Target Architectures information. - - Parameters - ---------- - arch: str - Target architecture. - """ - current_cpu = environ.get('processor_architecture', '').lower() - - def __init__(self, arch): - self.arch = arch.lower().replace('x64', 'amd64') - - @property - def target_cpu(self): - """ - Return Target CPU architecture. - - Return - ------ - str - Target CPU - """ - return self.arch[self.arch.find('_') + 1:] - - def target_is_x86(self): - """ - Return True if target CPU is x86 32 bits.. - - Return - ------ - bool - CPU is x86 32 bits - """ - return self.target_cpu == 'x86' - - def current_is_x86(self): - """ - Return True if current CPU is x86 32 bits.. - - Return - ------ - bool - CPU is x86 32 bits - """ - return self.current_cpu == 'x86' - - def current_dir(self, hidex86=False, x64=False): - """ - Current platform specific subfolder. - - Parameters - ---------- - hidex86: bool - return '' and not '\x86' if architecture is x86. - x64: bool - return '\x64' and not '\amd64' if architecture is amd64. - - Return - ------ - str - subfolder: '\target', or '' (see hidex86 parameter) - """ - return ( - '' if (self.current_cpu == 'x86' and hidex86) else - r'\x64' if (self.current_cpu == 'amd64' and x64) else - r'\%s' % self.current_cpu - ) - - def target_dir(self, hidex86=False, x64=False): - r""" - Target platform specific subfolder. - - Parameters - ---------- - hidex86: bool - return '' and not '\x86' if architecture is x86. - x64: bool - return '\x64' and not '\amd64' if architecture is amd64. - - Return - ------ - str - subfolder: '\current', or '' (see hidex86 parameter) - """ - return ( - '' if (self.target_cpu == 'x86' and hidex86) else - r'\x64' if (self.target_cpu == 'amd64' and x64) else - r'\%s' % self.target_cpu - ) - - def cross_dir(self, forcex86=False): - r""" - Cross platform specific subfolder. - - Parameters - ---------- - forcex86: bool - Use 'x86' as current architecture even if current architecture is - not x86. - - Return - ------ - str - subfolder: '' if target architecture is current architecture, - '\current_target' if not. - """ - current = 'x86' if forcex86 else self.current_cpu - return ( - '' if self.target_cpu == current else - self.target_dir().replace('\\', '\\%s_' % current) - ) - - -class RegistryInfo: - """ - Microsoft Visual Studio related registry information. - - Parameters - ---------- - platform_info: PlatformInfo - "PlatformInfo" instance. - """ - HKEYS = (winreg.HKEY_USERS, - winreg.HKEY_CURRENT_USER, - winreg.HKEY_LOCAL_MACHINE, - winreg.HKEY_CLASSES_ROOT) - - def __init__(self, platform_info): - self.pi = platform_info - - @property - def visualstudio(self): - """ - Microsoft Visual Studio root registry key. - - Return - ------ - str - Registry key - """ - return 'VisualStudio' - - @property - def sxs(self): - """ - Microsoft Visual Studio SxS registry key. - - Return - ------ - str - Registry key - """ - return join(self.visualstudio, 'SxS') - - @property - def vc(self): - """ - Microsoft Visual C++ VC7 registry key. - - Return - ------ - str - Registry key - """ - return join(self.sxs, 'VC7') - - @property - def vs(self): - """ - Microsoft Visual Studio VS7 registry key. - - Return - ------ - str - Registry key - """ - return join(self.sxs, 'VS7') - - @property - def vc_for_python(self): - """ - Microsoft Visual C++ for Python registry key. - - Return - ------ - str - Registry key - """ - return r'DevDiv\VCForPython' - - @property - def microsoft_sdk(self): - """ - Microsoft SDK registry key. - - Return - ------ - str - Registry key - """ - return 'Microsoft SDKs' - - @property - def windows_sdk(self): - """ - Microsoft Windows/Platform SDK registry key. - - Return - ------ - str - Registry key - """ - return join(self.microsoft_sdk, 'Windows') - - @property - def netfx_sdk(self): - """ - Microsoft .NET Framework SDK registry key. - - Return - ------ - str - Registry key - """ - return join(self.microsoft_sdk, 'NETFXSDK') - - @property - def windows_kits_roots(self): - """ - Microsoft Windows Kits Roots registry key. - - Return - ------ - str - Registry key - """ - return r'Windows Kits\Installed Roots' - - def microsoft(self, key, x86=False): - """ - Return key in Microsoft software registry. - - Parameters - ---------- - key: str - Registry key path where look. - x86: str - Force x86 software registry. - - Return - ------ - str - Registry key - """ - node64 = '' if self.pi.current_is_x86() or x86 else 'Wow6432Node' - return join('Software', node64, 'Microsoft', key) - - def lookup(self, key, name): - """ - Look for values in registry in Microsoft software registry. - - Parameters - ---------- - key: str - Registry key path where look. - name: str - Value name to find. - - Return - ------ - str - value - """ - key_read = winreg.KEY_READ - openkey = winreg.OpenKey - closekey = winreg.CloseKey - ms = self.microsoft - for hkey in self.HKEYS: - bkey = None - try: - bkey = openkey(hkey, ms(key), 0, key_read) - except (OSError, IOError): - if not self.pi.current_is_x86(): - try: - bkey = openkey(hkey, ms(key, True), 0, key_read) - except (OSError, IOError): - continue - else: - continue - try: - return winreg.QueryValueEx(bkey, name)[0] - except (OSError, IOError): - pass - finally: - if bkey: - closekey(bkey) - - -class SystemInfo: - """ - Microsoft Windows and Visual Studio related system information. - - Parameters - ---------- - registry_info: RegistryInfo - "RegistryInfo" instance. - vc_ver: float - Required Microsoft Visual C++ version. - """ - - # Variables and properties in this class use originals CamelCase variables - # names from Microsoft source files for more easy comparison. - WinDir = environ.get('WinDir', '') - ProgramFiles = environ.get('ProgramFiles', '') - ProgramFilesx86 = environ.get('ProgramFiles(x86)', ProgramFiles) - - def __init__(self, registry_info, vc_ver=None): - self.ri = registry_info - self.pi = self.ri.pi - - self.known_vs_paths = self.find_programdata_vs_vers() - - # Except for VS15+, VC version is aligned with VS version - self.vs_ver = self.vc_ver = ( - vc_ver or self._find_latest_available_vs_ver()) - - def _find_latest_available_vs_ver(self): - """ - Find the latest VC version - - Return - ------ - float - version - """ - reg_vc_vers = self.find_reg_vs_vers() - - if not (reg_vc_vers or self.known_vs_paths): - raise distutils.errors.DistutilsPlatformError( - 'No Microsoft Visual C++ version found') - - vc_vers = set(reg_vc_vers) - vc_vers.update(self.known_vs_paths) - return sorted(vc_vers)[-1] - - def find_reg_vs_vers(self): - """ - Find Microsoft Visual Studio versions available in registry. - - Return - ------ - list of float - Versions - """ - ms = self.ri.microsoft - vckeys = (self.ri.vc, self.ri.vc_for_python, self.ri.vs) - vs_vers = [] - for hkey, key in itertools.product(self.ri.HKEYS, vckeys): - try: - bkey = winreg.OpenKey(hkey, ms(key), 0, winreg.KEY_READ) - except (OSError, IOError): - continue - with bkey: - subkeys, values, _ = winreg.QueryInfoKey(bkey) - for i in range(values): - with contextlib.suppress(ValueError): - ver = float(winreg.EnumValue(bkey, i)[0]) - if ver not in vs_vers: - vs_vers.append(ver) - for i in range(subkeys): - with contextlib.suppress(ValueError): - ver = float(winreg.EnumKey(bkey, i)) - if ver not in vs_vers: - vs_vers.append(ver) - return sorted(vs_vers) - - def find_programdata_vs_vers(self): - r""" - Find Visual studio 2017+ versions from information in - "C:\ProgramData\Microsoft\VisualStudio\Packages\_Instances". - - Return - ------ - dict - float version as key, path as value. - """ - vs_versions = {} - instances_dir = \ - r'C:\ProgramData\Microsoft\VisualStudio\Packages\_Instances' - - try: - hashed_names = listdir(instances_dir) - - except (OSError, IOError): - # Directory not exists with all Visual Studio versions - return vs_versions - - for name in hashed_names: - try: - # Get VS installation path from "state.json" file - state_path = join(instances_dir, name, 'state.json') - with open(state_path, 'rt', encoding='utf-8') as state_file: - state = json.load(state_file) - vs_path = state['installationPath'] - - # Raises OSError if this VS installation does not contain VC - listdir(join(vs_path, r'VC\Tools\MSVC')) - - # Store version and path - vs_versions[self._as_float_version( - state['installationVersion'])] = vs_path - - except (OSError, IOError, KeyError): - # Skip if "state.json" file is missing or bad format - continue - - return vs_versions - - @staticmethod - def _as_float_version(version): - """ - Return a string version as a simplified float version (major.minor) - - Parameters - ---------- - version: str - Version. - - Return - ------ - float - version - """ - return float('.'.join(version.split('.')[:2])) - - @property - def VSInstallDir(self): - """ - Microsoft Visual Studio directory. - - Return - ------ - str - path - """ - # Default path - default = join(self.ProgramFilesx86, - 'Microsoft Visual Studio %0.1f' % self.vs_ver) - - # Try to get path from registry, if fail use default path - return self.ri.lookup(self.ri.vs, '%0.1f' % self.vs_ver) or default - - @property - def VCInstallDir(self): - """ - Microsoft Visual C++ directory. - - Return - ------ - str - path - """ - path = self._guess_vc() or self._guess_vc_legacy() - - if not isdir(path): - msg = 'Microsoft Visual C++ directory not found' - raise distutils.errors.DistutilsPlatformError(msg) - - return path - - def _guess_vc(self): - """ - Locate Visual C++ for VS2017+. - - Return - ------ - str - path - """ - if self.vs_ver <= 14.0: - return '' - - try: - # First search in known VS paths - vs_dir = self.known_vs_paths[self.vs_ver] - except KeyError: - # Else, search with path from registry - vs_dir = self.VSInstallDir - - guess_vc = join(vs_dir, r'VC\Tools\MSVC') - - # Subdir with VC exact version as name - try: - # Update the VC version with real one instead of VS version - vc_ver = listdir(guess_vc)[-1] - self.vc_ver = self._as_float_version(vc_ver) - return join(guess_vc, vc_ver) - except (OSError, IOError, IndexError): - return '' - - def _guess_vc_legacy(self): - """ - Locate Visual C++ for versions prior to 2017. - - Return - ------ - str - path - """ - default = join(self.ProgramFilesx86, - r'Microsoft Visual Studio %0.1f\VC' % self.vs_ver) - - # Try to get "VC++ for Python" path from registry as default path - reg_path = join(self.ri.vc_for_python, '%0.1f' % self.vs_ver) - python_vc = self.ri.lookup(reg_path, 'installdir') - default_vc = join(python_vc, 'VC') if python_vc else default - - # Try to get path from registry, if fail use default path - return self.ri.lookup(self.ri.vc, '%0.1f' % self.vs_ver) or default_vc - - @property - def WindowsSdkVersion(self): - """ - Microsoft Windows SDK versions for specified MSVC++ version. - - Return - ------ - tuple of str - versions - """ - if self.vs_ver <= 9.0: - return '7.0', '6.1', '6.0a' - elif self.vs_ver == 10.0: - return '7.1', '7.0a' - elif self.vs_ver == 11.0: - return '8.0', '8.0a' - elif self.vs_ver == 12.0: - return '8.1', '8.1a' - elif self.vs_ver >= 14.0: - return '10.0', '8.1' - - @property - def WindowsSdkLastVersion(self): - """ - Microsoft Windows SDK last version. - - Return - ------ - str - version - """ - return self._use_last_dir_name(join(self.WindowsSdkDir, 'lib')) - - @property # noqa: C901 - def WindowsSdkDir(self): # noqa: C901 # is too complex (12) # FIXME - """ - Microsoft Windows SDK directory. - - Return - ------ - str - path - """ - sdkdir = '' - for ver in self.WindowsSdkVersion: - # Try to get it from registry - loc = join(self.ri.windows_sdk, 'v%s' % ver) - sdkdir = self.ri.lookup(loc, 'installationfolder') - if sdkdir: - break - if not sdkdir or not isdir(sdkdir): - # Try to get "VC++ for Python" version from registry - path = join(self.ri.vc_for_python, '%0.1f' % self.vc_ver) - install_base = self.ri.lookup(path, 'installdir') - if install_base: - sdkdir = join(install_base, 'WinSDK') - if not sdkdir or not isdir(sdkdir): - # If fail, use default new path - for ver in self.WindowsSdkVersion: - intver = ver[:ver.rfind('.')] - path = r'Microsoft SDKs\Windows Kits\%s' % intver - d = join(self.ProgramFiles, path) - if isdir(d): - sdkdir = d - if not sdkdir or not isdir(sdkdir): - # If fail, use default old path - for ver in self.WindowsSdkVersion: - path = r'Microsoft SDKs\Windows\v%s' % ver - d = join(self.ProgramFiles, path) - if isdir(d): - sdkdir = d - if not sdkdir: - # If fail, use Platform SDK - sdkdir = join(self.VCInstallDir, 'PlatformSDK') - return sdkdir - - @property - def WindowsSDKExecutablePath(self): - """ - Microsoft Windows SDK executable directory. - - Return - ------ - str - path - """ - # Find WinSDK NetFx Tools registry dir name - if self.vs_ver <= 11.0: - netfxver = 35 - arch = '' - else: - netfxver = 40 - hidex86 = True if self.vs_ver <= 12.0 else False - arch = self.pi.current_dir(x64=True, hidex86=hidex86) - fx = 'WinSDK-NetFx%dTools%s' % (netfxver, arch.replace('\\', '-')) - - # list all possibles registry paths - regpaths = [] - if self.vs_ver >= 14.0: - for ver in self.NetFxSdkVersion: - regpaths += [join(self.ri.netfx_sdk, ver, fx)] - - for ver in self.WindowsSdkVersion: - regpaths += [join(self.ri.windows_sdk, 'v%sA' % ver, fx)] - - # Return installation folder from the more recent path - for path in regpaths: - execpath = self.ri.lookup(path, 'installationfolder') - if execpath: - return execpath - - @property - def FSharpInstallDir(self): - """ - Microsoft Visual F# directory. - - Return - ------ - str - path - """ - path = join(self.ri.visualstudio, r'%0.1f\Setup\F#' % self.vs_ver) - return self.ri.lookup(path, 'productdir') or '' - - @property - def UniversalCRTSdkDir(self): - """ - Microsoft Universal CRT SDK directory. - - Return - ------ - str - path - """ - # Set Kit Roots versions for specified MSVC++ version - vers = ('10', '81') if self.vs_ver >= 14.0 else () - - # Find path of the more recent Kit - for ver in vers: - sdkdir = self.ri.lookup(self.ri.windows_kits_roots, - 'kitsroot%s' % ver) - if sdkdir: - return sdkdir or '' - - @property - def UniversalCRTSdkLastVersion(self): - """ - Microsoft Universal C Runtime SDK last version. - - Return - ------ - str - version - """ - return self._use_last_dir_name(join(self.UniversalCRTSdkDir, 'lib')) - - @property - def NetFxSdkVersion(self): - """ - Microsoft .NET Framework SDK versions. - - Return - ------ - tuple of str - versions - """ - # Set FxSdk versions for specified VS version - return (('4.7.2', '4.7.1', '4.7', - '4.6.2', '4.6.1', '4.6', - '4.5.2', '4.5.1', '4.5') - if self.vs_ver >= 14.0 else ()) - - @property - def NetFxSdkDir(self): - """ - Microsoft .NET Framework SDK directory. - - Return - ------ - str - path - """ - sdkdir = '' - for ver in self.NetFxSdkVersion: - loc = join(self.ri.netfx_sdk, ver) - sdkdir = self.ri.lookup(loc, 'kitsinstallationfolder') - if sdkdir: - break - return sdkdir - - @property - def FrameworkDir32(self): - """ - Microsoft .NET Framework 32bit directory. - - Return - ------ - str - path - """ - # Default path - guess_fw = join(self.WinDir, r'Microsoft.NET\Framework') - - # Try to get path from registry, if fail use default path - return self.ri.lookup(self.ri.vc, 'frameworkdir32') or guess_fw - - @property - def FrameworkDir64(self): - """ - Microsoft .NET Framework 64bit directory. - - Return - ------ - str - path - """ - # Default path - guess_fw = join(self.WinDir, r'Microsoft.NET\Framework64') - - # Try to get path from registry, if fail use default path - return self.ri.lookup(self.ri.vc, 'frameworkdir64') or guess_fw - - @property - def FrameworkVersion32(self): - """ - Microsoft .NET Framework 32bit versions. - - Return - ------ - tuple of str - versions - """ - return self._find_dot_net_versions(32) - - @property - def FrameworkVersion64(self): - """ - Microsoft .NET Framework 64bit versions. - - Return - ------ - tuple of str - versions - """ - return self._find_dot_net_versions(64) - - def _find_dot_net_versions(self, bits): - """ - Find Microsoft .NET Framework versions. - - Parameters - ---------- - bits: int - Platform number of bits: 32 or 64. - - Return - ------ - tuple of str - versions - """ - # Find actual .NET version in registry - reg_ver = self.ri.lookup(self.ri.vc, 'frameworkver%d' % bits) - dot_net_dir = getattr(self, 'FrameworkDir%d' % bits) - ver = reg_ver or self._use_last_dir_name(dot_net_dir, 'v') or '' - - # Set .NET versions for specified MSVC++ version - if self.vs_ver >= 12.0: - return ver, 'v4.0' - elif self.vs_ver >= 10.0: - return 'v4.0.30319' if ver.lower()[:2] != 'v4' else ver, 'v3.5' - elif self.vs_ver == 9.0: - return 'v3.5', 'v2.0.50727' - elif self.vs_ver == 8.0: - return 'v3.0', 'v2.0.50727' - - @staticmethod - def _use_last_dir_name(path, prefix=''): - """ - Return name of the last dir in path or '' if no dir found. - - Parameters - ---------- - path: str - Use dirs in this path - prefix: str - Use only dirs starting by this prefix - - Return - ------ - str - name - """ - matching_dirs = ( - dir_name - for dir_name in reversed(listdir(path)) - if isdir(join(path, dir_name)) and - dir_name.startswith(prefix) - ) - return next(matching_dirs, None) or '' - - -class EnvironmentInfo: - """ - Return environment variables for specified Microsoft Visual C++ version - and platform : Lib, Include, Path and libpath. - - This function is compatible with Microsoft Visual C++ 9.0 to 14.X. - - Script created by analysing Microsoft environment configuration files like - "vcvars[...].bat", "SetEnv.Cmd", "vcbuildtools.bat", ... - - Parameters - ---------- - arch: str - Target architecture. - vc_ver: float - Required Microsoft Visual C++ version. If not set, autodetect the last - version. - vc_min_ver: float - Minimum Microsoft Visual C++ version. - """ - - # Variables and properties in this class use originals CamelCase variables - # names from Microsoft source files for more easy comparison. - - def __init__(self, arch, vc_ver=None, vc_min_ver=0): - self.pi = PlatformInfo(arch) - self.ri = RegistryInfo(self.pi) - self.si = SystemInfo(self.ri, vc_ver) - - if self.vc_ver < vc_min_ver: - err = 'No suitable Microsoft Visual C++ version found' - raise distutils.errors.DistutilsPlatformError(err) - - @property - def vs_ver(self): - """ - Microsoft Visual Studio. - - Return - ------ - float - version - """ - return self.si.vs_ver - - @property - def vc_ver(self): - """ - Microsoft Visual C++ version. - - Return - ------ - float - version - """ - return self.si.vc_ver - - @property - def VSTools(self): - """ - Microsoft Visual Studio Tools. - - Return - ------ - list of str - paths - """ - paths = [r'Common7\IDE', r'Common7\Tools'] - - if self.vs_ver >= 14.0: - arch_subdir = self.pi.current_dir(hidex86=True, x64=True) - paths += [r'Common7\IDE\CommonExtensions\Microsoft\TestWindow'] - paths += [r'Team Tools\Performance Tools'] - paths += [r'Team Tools\Performance Tools%s' % arch_subdir] - - return [join(self.si.VSInstallDir, path) for path in paths] - - @property - def VCIncludes(self): - """ - Microsoft Visual C++ & Microsoft Foundation Class Includes. - - Return - ------ - list of str - paths - """ - return [join(self.si.VCInstallDir, 'Include'), - join(self.si.VCInstallDir, r'ATLMFC\Include')] - - @property - def VCLibraries(self): - """ - Microsoft Visual C++ & Microsoft Foundation Class Libraries. - - Return - ------ - list of str - paths - """ - if self.vs_ver >= 15.0: - arch_subdir = self.pi.target_dir(x64=True) - else: - arch_subdir = self.pi.target_dir(hidex86=True) - paths = ['Lib%s' % arch_subdir, r'ATLMFC\Lib%s' % arch_subdir] - - if self.vs_ver >= 14.0: - paths += [r'Lib\store%s' % arch_subdir] - - return [join(self.si.VCInstallDir, path) for path in paths] - - @property - def VCStoreRefs(self): - """ - Microsoft Visual C++ store references Libraries. - - Return - ------ - list of str - paths - """ - if self.vs_ver < 14.0: - return [] - return [join(self.si.VCInstallDir, r'Lib\store\references')] - - @property - def VCTools(self): - """ - Microsoft Visual C++ Tools. - - Return - ------ - list of str - paths - """ - si = self.si - tools = [join(si.VCInstallDir, 'VCPackages')] - - forcex86 = True if self.vs_ver <= 10.0 else False - arch_subdir = self.pi.cross_dir(forcex86) - if arch_subdir: - tools += [join(si.VCInstallDir, 'Bin%s' % arch_subdir)] - - if self.vs_ver == 14.0: - path = 'Bin%s' % self.pi.current_dir(hidex86=True) - tools += [join(si.VCInstallDir, path)] - - elif self.vs_ver >= 15.0: - host_dir = (r'bin\HostX86%s' if self.pi.current_is_x86() else - r'bin\HostX64%s') - tools += [join( - si.VCInstallDir, host_dir % self.pi.target_dir(x64=True))] - - if self.pi.current_cpu != self.pi.target_cpu: - tools += [join( - si.VCInstallDir, host_dir % self.pi.current_dir(x64=True))] - - else: - tools += [join(si.VCInstallDir, 'Bin')] - - return tools - - @property - def OSLibraries(self): - """ - Microsoft Windows SDK Libraries. - - Return - ------ - list of str - paths - """ - if self.vs_ver <= 10.0: - arch_subdir = self.pi.target_dir(hidex86=True, x64=True) - return [join(self.si.WindowsSdkDir, 'Lib%s' % arch_subdir)] - - else: - arch_subdir = self.pi.target_dir(x64=True) - lib = join(self.si.WindowsSdkDir, 'lib') - libver = self._sdk_subdir - return [join(lib, '%sum%s' % (libver, arch_subdir))] - - @property - def OSIncludes(self): - """ - Microsoft Windows SDK Include. - - Return - ------ - list of str - paths - """ - include = join(self.si.WindowsSdkDir, 'include') - - if self.vs_ver <= 10.0: - return [include, join(include, 'gl')] - - else: - if self.vs_ver >= 14.0: - sdkver = self._sdk_subdir - else: - sdkver = '' - return [join(include, '%sshared' % sdkver), - join(include, '%sum' % sdkver), - join(include, '%swinrt' % sdkver)] - - @property - def OSLibpath(self): - """ - Microsoft Windows SDK Libraries Paths. - - Return - ------ - list of str - paths - """ - ref = join(self.si.WindowsSdkDir, 'References') - libpath = [] - - if self.vs_ver <= 9.0: - libpath += self.OSLibraries - - if self.vs_ver >= 11.0: - libpath += [join(ref, r'CommonConfiguration\Neutral')] - - if self.vs_ver >= 14.0: - libpath += [ - ref, - join(self.si.WindowsSdkDir, 'UnionMetadata'), - join( - ref, 'Windows.Foundation.UniversalApiContract', '1.0.0.0'), - join(ref, 'Windows.Foundation.FoundationContract', '1.0.0.0'), - join( - ref, 'Windows.Networking.Connectivity.WwanContract', - '1.0.0.0'), - join( - self.si.WindowsSdkDir, 'ExtensionSDKs', 'Microsoft.VCLibs', - '%0.1f' % self.vs_ver, 'References', 'CommonConfiguration', - 'neutral'), - ] - return libpath - - @property - def SdkTools(self): - """ - Microsoft Windows SDK Tools. - - Return - ------ - list of str - paths - """ - return list(self._sdk_tools()) - - def _sdk_tools(self): - """ - Microsoft Windows SDK Tools paths generator. - - Return - ------ - generator of str - paths - """ - if self.vs_ver < 15.0: - bin_dir = 'Bin' if self.vs_ver <= 11.0 else r'Bin\x86' - yield join(self.si.WindowsSdkDir, bin_dir) - - if not self.pi.current_is_x86(): - arch_subdir = self.pi.current_dir(x64=True) - path = 'Bin%s' % arch_subdir - yield join(self.si.WindowsSdkDir, path) - - if self.vs_ver in (10.0, 11.0): - if self.pi.target_is_x86(): - arch_subdir = '' - else: - arch_subdir = self.pi.current_dir(hidex86=True, x64=True) - path = r'Bin\NETFX 4.0 Tools%s' % arch_subdir - yield join(self.si.WindowsSdkDir, path) - - elif self.vs_ver >= 15.0: - path = join(self.si.WindowsSdkDir, 'Bin') - arch_subdir = self.pi.current_dir(x64=True) - sdkver = self.si.WindowsSdkLastVersion - yield join(path, '%s%s' % (sdkver, arch_subdir)) - - if self.si.WindowsSDKExecutablePath: - yield self.si.WindowsSDKExecutablePath - - @property - def _sdk_subdir(self): - """ - Microsoft Windows SDK version subdir. - - Return - ------ - str - subdir - """ - ucrtver = self.si.WindowsSdkLastVersion - return ('%s\\' % ucrtver) if ucrtver else '' - - @property - def SdkSetup(self): - """ - Microsoft Windows SDK Setup. - - Return - ------ - list of str - paths - """ - if self.vs_ver > 9.0: - return [] - - return [join(self.si.WindowsSdkDir, 'Setup')] - - @property - def FxTools(self): - """ - Microsoft .NET Framework Tools. - - Return - ------ - list of str - paths - """ - pi = self.pi - si = self.si - - if self.vs_ver <= 10.0: - include32 = True - include64 = not pi.target_is_x86() and not pi.current_is_x86() - else: - include32 = pi.target_is_x86() or pi.current_is_x86() - include64 = pi.current_cpu == 'amd64' or pi.target_cpu == 'amd64' - - tools = [] - if include32: - tools += [join(si.FrameworkDir32, ver) - for ver in si.FrameworkVersion32] - if include64: - tools += [join(si.FrameworkDir64, ver) - for ver in si.FrameworkVersion64] - return tools - - @property - def NetFxSDKLibraries(self): - """ - Microsoft .Net Framework SDK Libraries. - - Return - ------ - list of str - paths - """ - if self.vs_ver < 14.0 or not self.si.NetFxSdkDir: - return [] - - arch_subdir = self.pi.target_dir(x64=True) - return [join(self.si.NetFxSdkDir, r'lib\um%s' % arch_subdir)] - - @property - def NetFxSDKIncludes(self): - """ - Microsoft .Net Framework SDK Includes. - - Return - ------ - list of str - paths - """ - if self.vs_ver < 14.0 or not self.si.NetFxSdkDir: - return [] - - return [join(self.si.NetFxSdkDir, r'include\um')] - - @property - def VsTDb(self): - """ - Microsoft Visual Studio Team System Database. - - Return - ------ - list of str - paths - """ - return [join(self.si.VSInstallDir, r'VSTSDB\Deploy')] - - @property - def MSBuild(self): - """ - Microsoft Build Engine. - - Return - ------ - list of str - paths - """ - if self.vs_ver < 12.0: - return [] - elif self.vs_ver < 15.0: - base_path = self.si.ProgramFilesx86 - arch_subdir = self.pi.current_dir(hidex86=True) - else: - base_path = self.si.VSInstallDir - arch_subdir = '' - - path = r'MSBuild\%0.1f\bin%s' % (self.vs_ver, arch_subdir) - build = [join(base_path, path)] - - if self.vs_ver >= 15.0: - # Add Roslyn C# & Visual Basic Compiler - build += [join(base_path, path, 'Roslyn')] - - return build - - @property - def HTMLHelpWorkshop(self): - """ - Microsoft HTML Help Workshop. - - Return - ------ - list of str - paths - """ - if self.vs_ver < 11.0: - return [] - - return [join(self.si.ProgramFilesx86, 'HTML Help Workshop')] - - @property - def UCRTLibraries(self): - """ - Microsoft Universal C Runtime SDK Libraries. - - Return - ------ - list of str - paths - """ - if self.vs_ver < 14.0: - return [] - - arch_subdir = self.pi.target_dir(x64=True) - lib = join(self.si.UniversalCRTSdkDir, 'lib') - ucrtver = self._ucrt_subdir - return [join(lib, '%sucrt%s' % (ucrtver, arch_subdir))] - - @property - def UCRTIncludes(self): - """ - Microsoft Universal C Runtime SDK Include. - - Return - ------ - list of str - paths - """ - if self.vs_ver < 14.0: - return [] - - include = join(self.si.UniversalCRTSdkDir, 'include') - return [join(include, '%sucrt' % self._ucrt_subdir)] - - @property - def _ucrt_subdir(self): - """ - Microsoft Universal C Runtime SDK version subdir. - - Return - ------ - str - subdir - """ - ucrtver = self.si.UniversalCRTSdkLastVersion - return ('%s\\' % ucrtver) if ucrtver else '' - - @property - def FSharp(self): - """ - Microsoft Visual F#. - - Return - ------ - list of str - paths - """ - if 11.0 > self.vs_ver > 12.0: - return [] - - return [self.si.FSharpInstallDir] - - @property - def VCRuntimeRedist(self): - """ - Microsoft Visual C++ runtime redistributable dll. - - Return - ------ - str - path - """ - vcruntime = 'vcruntime%d0.dll' % self.vc_ver - arch_subdir = self.pi.target_dir(x64=True).strip('\\') - - # Installation prefixes candidates - prefixes = [] - tools_path = self.si.VCInstallDir - redist_path = dirname(tools_path.replace(r'\Tools', r'\Redist')) - if isdir(redist_path): - # Redist version may not be exactly the same as tools - redist_path = join(redist_path, listdir(redist_path)[-1]) - prefixes += [redist_path, join(redist_path, 'onecore')] - - prefixes += [join(tools_path, 'redist')] # VS14 legacy path - - # CRT directory - crt_dirs = ('Microsoft.VC%d.CRT' % (self.vc_ver * 10), - # Sometime store in directory with VS version instead of VC - 'Microsoft.VC%d.CRT' % (int(self.vs_ver) * 10)) - - # vcruntime path - for prefix, crt_dir in itertools.product(prefixes, crt_dirs): - path = join(prefix, arch_subdir, crt_dir, vcruntime) - if isfile(path): - return path - - def return_env(self, exists=True): - """ - Return environment dict. - - Parameters - ---------- - exists: bool - It True, only return existing paths. - - Return - ------ - dict - environment - """ - env = dict( - include=self._build_paths('include', - [self.VCIncludes, - self.OSIncludes, - self.UCRTIncludes, - self.NetFxSDKIncludes], - exists), - lib=self._build_paths('lib', - [self.VCLibraries, - self.OSLibraries, - self.FxTools, - self.UCRTLibraries, - self.NetFxSDKLibraries], - exists), - libpath=self._build_paths('libpath', - [self.VCLibraries, - self.FxTools, - self.VCStoreRefs, - self.OSLibpath], - exists), - path=self._build_paths('path', - [self.VCTools, - self.VSTools, - self.VsTDb, - self.SdkTools, - self.SdkSetup, - self.FxTools, - self.MSBuild, - self.HTMLHelpWorkshop, - self.FSharp], - exists), - ) - if self.vs_ver >= 14 and isfile(self.VCRuntimeRedist): - env['py_vcruntime_redist'] = self.VCRuntimeRedist - return env - - def _build_paths(self, name, spec_path_lists, exists): - """ - Given an environment variable name and specified paths, - return a pathsep-separated string of paths containing - unique, extant, directories from those paths and from - the environment variable. Raise an error if no paths - are resolved. - - Parameters - ---------- - name: str - Environment variable name - spec_path_lists: list of str - Paths - exists: bool - It True, only return existing paths. - - Return - ------ - str - Pathsep-separated paths - """ - # flatten spec_path_lists - spec_paths = itertools.chain.from_iterable(spec_path_lists) - env_paths = environ.get(name, '').split(pathsep) - paths = itertools.chain(spec_paths, env_paths) - extant_paths = list(filter(isdir, paths)) if exists else paths - if not extant_paths: - msg = "%s environment variable is empty" % name.upper() - raise distutils.errors.DistutilsPlatformError(msg) - unique_paths = unique_everseen(extant_paths) - return pathsep.join(unique_paths) diff --git a/spaces/pknez/face-swap-docker/run.py b/spaces/pknez/face-swap-docker/run.py deleted file mode 100644 index b52e5cc4a8ea9ce5cadd4e7111fb15531f380314..0000000000000000000000000000000000000000 --- a/spaces/pknez/face-swap-docker/run.py +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env python3 - -from roop import core - -if __name__ == '__main__': - core.run() diff --git a/spaces/plzdontcry/dakubettergpt/src/components/Chat/ChatContent/Message/View/Button/DownButton.tsx b/spaces/plzdontcry/dakubettergpt/src/components/Chat/ChatContent/Message/View/Button/DownButton.tsx deleted file mode 100644 index b42d836d425a70e63112fe9f7826397be5d6065e..0000000000000000000000000000000000000000 --- a/spaces/plzdontcry/dakubettergpt/src/components/Chat/ChatContent/Message/View/Button/DownButton.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import React from 'react'; - -import DownChevronArrow from '@icon/DownChevronArrow'; - -import BaseButton from './BaseButton'; - -const DownButton = ({ - onClick, -}: { - onClick: React.MouseEventHandler; -}) => { - return ( - } - buttonProps={{ 'aria-label': 'shift message down' }} - onClick={onClick} - /> - ); -}; - -export default DownButton; diff --git a/spaces/plzdontcry/dakubettergpt/src/components/ImportExportChat/ImportChatOpenAI.tsx b/spaces/plzdontcry/dakubettergpt/src/components/ImportExportChat/ImportChatOpenAI.tsx deleted file mode 100644 index b3022dcd4d6e553b49fd9aca777f820b11f01260..0000000000000000000000000000000000000000 --- a/spaces/plzdontcry/dakubettergpt/src/components/ImportExportChat/ImportChatOpenAI.tsx +++ /dev/null @@ -1,79 +0,0 @@ -import React, { useRef } from 'react'; -import { useTranslation } from 'react-i18next'; - -import useStore from '@store/store'; - -import { importOpenAIChatExport } from '@utils/import'; - -import { ChatInterface } from '@type/chat'; - -const ImportChatOpenAI = ({ - setIsModalOpen, -}: { - setIsModalOpen: React.Dispatch>; -}) => { - const { t } = useTranslation(); - - const inputRef = useRef(null); - - const setToastStatus = useStore((state) => state.setToastStatus); - const setToastMessage = useStore((state) => state.setToastMessage); - const setToastShow = useStore((state) => state.setToastShow); - const setChats = useStore.getState().setChats; - - const handleFileUpload = () => { - if (!inputRef || !inputRef.current) return; - const file = inputRef.current.files?.[0]; - if (!file) return; - - const reader = new FileReader(); - - reader.onload = (event) => { - const data = event.target?.result as string; - - try { - const parsedData = JSON.parse(data); - const chats = importOpenAIChatExport(parsedData); - const prevChats: ChatInterface[] = JSON.parse( - JSON.stringify(useStore.getState().chats) - ); - setChats(chats.concat(prevChats)); - - setToastStatus('success'); - setToastMessage('Imported successfully!'); - setIsModalOpen(false); - } catch (error: unknown) { - setToastStatus('error'); - setToastMessage(`Invalid format! ${(error as Error).message}`); - } - setToastShow(true); - }; - - reader.readAsText(file); - }; - - return ( - <> -
        - {t('import')} OpenAI ChatGPT {t('export')} -
        - - - - - ); -}; - -export default ImportChatOpenAI; diff --git a/spaces/power2/JoJoGan-powerhow2/e4e/criteria/id_loss.py b/spaces/power2/JoJoGan-powerhow2/e4e/criteria/id_loss.py deleted file mode 100644 index bab806172eff18c0630536ae96817508c3197b8b..0000000000000000000000000000000000000000 --- a/spaces/power2/JoJoGan-powerhow2/e4e/criteria/id_loss.py +++ /dev/null @@ -1,47 +0,0 @@ -import torch -from torch import nn -from configs.paths_config import model_paths -from models.encoders.model_irse import Backbone - - -class IDLoss(nn.Module): - def __init__(self): - super(IDLoss, self).__init__() - print('Loading ResNet ArcFace') - self.facenet = Backbone(input_size=112, num_layers=50, drop_ratio=0.6, mode='ir_se') - self.facenet.load_state_dict(torch.load(model_paths['ir_se50'])) - self.face_pool = torch.nn.AdaptiveAvgPool2d((112, 112)) - self.facenet.eval() - for module in [self.facenet, self.face_pool]: - for param in module.parameters(): - param.requires_grad = False - - def extract_feats(self, x): - x = x[:, :, 35:223, 32:220] # Crop interesting region - x = self.face_pool(x) - x_feats = self.facenet(x) - return x_feats - - def forward(self, y_hat, y, x): - n_samples = x.shape[0] - x_feats = self.extract_feats(x) - y_feats = self.extract_feats(y) # Otherwise use the feature from there - y_hat_feats = self.extract_feats(y_hat) - y_feats = y_feats.detach() - loss = 0 - sim_improvement = 0 - id_logs = [] - count = 0 - for i in range(n_samples): - diff_target = y_hat_feats[i].dot(y_feats[i]) - diff_input = y_hat_feats[i].dot(x_feats[i]) - diff_views = y_feats[i].dot(x_feats[i]) - id_logs.append({'diff_target': float(diff_target), - 'diff_input': float(diff_input), - 'diff_views': float(diff_views)}) - loss += 1 - diff_target - id_diff = float(diff_target) - float(diff_views) - sim_improvement += id_diff - count += 1 - - return loss / count, sim_improvement / count, id_logs diff --git a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/PIL/SpiderImagePlugin.py b/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/PIL/SpiderImagePlugin.py deleted file mode 100644 index 408b982b515e7a120faa173295c628e0d7ba0265..0000000000000000000000000000000000000000 --- a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/PIL/SpiderImagePlugin.py +++ /dev/null @@ -1,318 +0,0 @@ -# -# The Python Imaging Library. -# -# SPIDER image file handling -# -# History: -# 2004-08-02 Created BB -# 2006-03-02 added save method -# 2006-03-13 added support for stack images -# -# Copyright (c) 2004 by Health Research Inc. (HRI) RENSSELAER, NY 12144. -# Copyright (c) 2004 by William Baxter. -# Copyright (c) 2004 by Secret Labs AB. -# Copyright (c) 2004 by Fredrik Lundh. -# - -## -# Image plugin for the Spider image format. This format is used -# by the SPIDER software, in processing image data from electron -# microscopy and tomography. -## - -# -# SpiderImagePlugin.py -# -# The Spider image format is used by SPIDER software, in processing -# image data from electron microscopy and tomography. -# -# Spider home page: -# https://spider.wadsworth.org/spider_doc/spider/docs/spider.html -# -# Details about the Spider image format: -# https://spider.wadsworth.org/spider_doc/spider/docs/image_doc.html -# -import os -import struct -import sys - -from . import Image, ImageFile - - -def isInt(f): - try: - i = int(f) - if f - i == 0: - return 1 - else: - return 0 - except (ValueError, OverflowError): - return 0 - - -iforms = [1, 3, -11, -12, -21, -22] - - -# There is no magic number to identify Spider files, so just check a -# series of header locations to see if they have reasonable values. -# Returns no. of bytes in the header, if it is a valid Spider header, -# otherwise returns 0 - - -def isSpiderHeader(t): - h = (99,) + t # add 1 value so can use spider header index start=1 - # header values 1,2,5,12,13,22,23 should be integers - for i in [1, 2, 5, 12, 13, 22, 23]: - if not isInt(h[i]): - return 0 - # check iform - iform = int(h[5]) - if iform not in iforms: - return 0 - # check other header values - labrec = int(h[13]) # no. records in file header - labbyt = int(h[22]) # total no. of bytes in header - lenbyt = int(h[23]) # record length in bytes - if labbyt != (labrec * lenbyt): - return 0 - # looks like a valid header - return labbyt - - -def isSpiderImage(filename): - with open(filename, "rb") as fp: - f = fp.read(92) # read 23 * 4 bytes - t = struct.unpack(">23f", f) # try big-endian first - hdrlen = isSpiderHeader(t) - if hdrlen == 0: - t = struct.unpack("<23f", f) # little-endian - hdrlen = isSpiderHeader(t) - return hdrlen - - -class SpiderImageFile(ImageFile.ImageFile): - format = "SPIDER" - format_description = "Spider 2D image" - _close_exclusive_fp_after_loading = False - - def _open(self): - # check header - n = 27 * 4 # read 27 float values - f = self.fp.read(n) - - try: - self.bigendian = 1 - t = struct.unpack(">27f", f) # try big-endian first - hdrlen = isSpiderHeader(t) - if hdrlen == 0: - self.bigendian = 0 - t = struct.unpack("<27f", f) # little-endian - hdrlen = isSpiderHeader(t) - if hdrlen == 0: - msg = "not a valid Spider file" - raise SyntaxError(msg) - except struct.error as e: - msg = "not a valid Spider file" - raise SyntaxError(msg) from e - - h = (99,) + t # add 1 value : spider header index starts at 1 - iform = int(h[5]) - if iform != 1: - msg = "not a Spider 2D image" - raise SyntaxError(msg) - - self._size = int(h[12]), int(h[2]) # size in pixels (width, height) - self.istack = int(h[24]) - self.imgnumber = int(h[27]) - - if self.istack == 0 and self.imgnumber == 0: - # stk=0, img=0: a regular 2D image - offset = hdrlen - self._nimages = 1 - elif self.istack > 0 and self.imgnumber == 0: - # stk>0, img=0: Opening the stack for the first time - self.imgbytes = int(h[12]) * int(h[2]) * 4 - self.hdrlen = hdrlen - self._nimages = int(h[26]) - # Point to the first image in the stack - offset = hdrlen * 2 - self.imgnumber = 1 - elif self.istack == 0 and self.imgnumber > 0: - # stk=0, img>0: an image within the stack - offset = hdrlen + self.stkoffset - self.istack = 2 # So Image knows it's still a stack - else: - msg = "inconsistent stack header values" - raise SyntaxError(msg) - - if self.bigendian: - self.rawmode = "F;32BF" - else: - self.rawmode = "F;32F" - self._mode = "F" - - self.tile = [("raw", (0, 0) + self.size, offset, (self.rawmode, 0, 1))] - self._fp = self.fp # FIXME: hack - - @property - def n_frames(self): - return self._nimages - - @property - def is_animated(self): - return self._nimages > 1 - - # 1st image index is zero (although SPIDER imgnumber starts at 1) - def tell(self): - if self.imgnumber < 1: - return 0 - else: - return self.imgnumber - 1 - - def seek(self, frame): - if self.istack == 0: - msg = "attempt to seek in a non-stack file" - raise EOFError(msg) - if not self._seek_check(frame): - return - self.stkoffset = self.hdrlen + frame * (self.hdrlen + self.imgbytes) - self.fp = self._fp - self.fp.seek(self.stkoffset) - self._open() - - # returns a byte image after rescaling to 0..255 - def convert2byte(self, depth=255): - (minimum, maximum) = self.getextrema() - m = 1 - if maximum != minimum: - m = depth / (maximum - minimum) - b = -m * minimum - return self.point(lambda i, m=m, b=b: i * m + b).convert("L") - - # returns a ImageTk.PhotoImage object, after rescaling to 0..255 - def tkPhotoImage(self): - from . import ImageTk - - return ImageTk.PhotoImage(self.convert2byte(), palette=256) - - -# -------------------------------------------------------------------- -# Image series - - -# given a list of filenames, return a list of images -def loadImageSeries(filelist=None): - """create a list of :py:class:`~PIL.Image.Image` objects for use in a montage""" - if filelist is None or len(filelist) < 1: - return - - imglist = [] - for img in filelist: - if not os.path.exists(img): - print(f"unable to find {img}") - continue - try: - with Image.open(img) as im: - im = im.convert2byte() - except Exception: - if not isSpiderImage(img): - print(img + " is not a Spider image file") - continue - im.info["filename"] = img - imglist.append(im) - return imglist - - -# -------------------------------------------------------------------- -# For saving images in Spider format - - -def makeSpiderHeader(im): - nsam, nrow = im.size - lenbyt = nsam * 4 # There are labrec records in the header - labrec = int(1024 / lenbyt) - if 1024 % lenbyt != 0: - labrec += 1 - labbyt = labrec * lenbyt - nvalues = int(labbyt / 4) - if nvalues < 23: - return [] - - hdr = [] - for i in range(nvalues): - hdr.append(0.0) - - # NB these are Fortran indices - hdr[1] = 1.0 # nslice (=1 for an image) - hdr[2] = float(nrow) # number of rows per slice - hdr[3] = float(nrow) # number of records in the image - hdr[5] = 1.0 # iform for 2D image - hdr[12] = float(nsam) # number of pixels per line - hdr[13] = float(labrec) # number of records in file header - hdr[22] = float(labbyt) # total number of bytes in header - hdr[23] = float(lenbyt) # record length in bytes - - # adjust for Fortran indexing - hdr = hdr[1:] - hdr.append(0.0) - # pack binary data into a string - return [struct.pack("f", v) for v in hdr] - - -def _save(im, fp, filename): - if im.mode[0] != "F": - im = im.convert("F") - - hdr = makeSpiderHeader(im) - if len(hdr) < 256: - msg = "Error creating Spider header" - raise OSError(msg) - - # write the SPIDER header - fp.writelines(hdr) - - rawmode = "F;32NF" # 32-bit native floating point - ImageFile._save(im, fp, [("raw", (0, 0) + im.size, 0, (rawmode, 0, 1))]) - - -def _save_spider(im, fp, filename): - # get the filename extension and register it with Image - ext = os.path.splitext(filename)[1] - Image.register_extension(SpiderImageFile.format, ext) - _save(im, fp, filename) - - -# -------------------------------------------------------------------- - - -Image.register_open(SpiderImageFile.format, SpiderImageFile) -Image.register_save(SpiderImageFile.format, _save_spider) - -if __name__ == "__main__": - if len(sys.argv) < 2: - print("Syntax: python3 SpiderImagePlugin.py [infile] [outfile]") - sys.exit() - - filename = sys.argv[1] - if not isSpiderImage(filename): - print("input image must be in Spider format") - sys.exit() - - with Image.open(filename) as im: - print("image: " + str(im)) - print("format: " + str(im.format)) - print("size: " + str(im.size)) - print("mode: " + str(im.mode)) - print("max, min: ", end=" ") - print(im.getextrema()) - - if len(sys.argv) > 2: - outfile = sys.argv[2] - - # perform some image operation - im = im.transpose(Image.Transpose.FLIP_LEFT_RIGHT) - print( - f"saving a flipped version of {os.path.basename(filename)} " - f"as {outfile} " - ) - im.save(outfile, SpiderImageFile.format) diff --git a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/dateutil/tz/_common.py b/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/dateutil/tz/_common.py deleted file mode 100644 index e6ac11831522b266114d5b68ee1da298e3aeb14a..0000000000000000000000000000000000000000 --- a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/dateutil/tz/_common.py +++ /dev/null @@ -1,419 +0,0 @@ -from six import PY2 - -from functools import wraps - -from datetime import datetime, timedelta, tzinfo - - -ZERO = timedelta(0) - -__all__ = ['tzname_in_python2', 'enfold'] - - -def tzname_in_python2(namefunc): - """Change unicode output into bytestrings in Python 2 - - tzname() API changed in Python 3. It used to return bytes, but was changed - to unicode strings - """ - if PY2: - @wraps(namefunc) - def adjust_encoding(*args, **kwargs): - name = namefunc(*args, **kwargs) - if name is not None: - name = name.encode() - - return name - - return adjust_encoding - else: - return namefunc - - -# The following is adapted from Alexander Belopolsky's tz library -# https://github.com/abalkin/tz -if hasattr(datetime, 'fold'): - # This is the pre-python 3.6 fold situation - def enfold(dt, fold=1): - """ - Provides a unified interface for assigning the ``fold`` attribute to - datetimes both before and after the implementation of PEP-495. - - :param fold: - The value for the ``fold`` attribute in the returned datetime. This - should be either 0 or 1. - - :return: - Returns an object for which ``getattr(dt, 'fold', 0)`` returns - ``fold`` for all versions of Python. In versions prior to - Python 3.6, this is a ``_DatetimeWithFold`` object, which is a - subclass of :py:class:`datetime.datetime` with the ``fold`` - attribute added, if ``fold`` is 1. - - .. versionadded:: 2.6.0 - """ - return dt.replace(fold=fold) - -else: - class _DatetimeWithFold(datetime): - """ - This is a class designed to provide a PEP 495-compliant interface for - Python versions before 3.6. It is used only for dates in a fold, so - the ``fold`` attribute is fixed at ``1``. - - .. versionadded:: 2.6.0 - """ - __slots__ = () - - def replace(self, *args, **kwargs): - """ - Return a datetime with the same attributes, except for those - attributes given new values by whichever keyword arguments are - specified. Note that tzinfo=None can be specified to create a naive - datetime from an aware datetime with no conversion of date and time - data. - - This is reimplemented in ``_DatetimeWithFold`` because pypy3 will - return a ``datetime.datetime`` even if ``fold`` is unchanged. - """ - argnames = ( - 'year', 'month', 'day', 'hour', 'minute', 'second', - 'microsecond', 'tzinfo' - ) - - for arg, argname in zip(args, argnames): - if argname in kwargs: - raise TypeError('Duplicate argument: {}'.format(argname)) - - kwargs[argname] = arg - - for argname in argnames: - if argname not in kwargs: - kwargs[argname] = getattr(self, argname) - - dt_class = self.__class__ if kwargs.get('fold', 1) else datetime - - return dt_class(**kwargs) - - @property - def fold(self): - return 1 - - def enfold(dt, fold=1): - """ - Provides a unified interface for assigning the ``fold`` attribute to - datetimes both before and after the implementation of PEP-495. - - :param fold: - The value for the ``fold`` attribute in the returned datetime. This - should be either 0 or 1. - - :return: - Returns an object for which ``getattr(dt, 'fold', 0)`` returns - ``fold`` for all versions of Python. In versions prior to - Python 3.6, this is a ``_DatetimeWithFold`` object, which is a - subclass of :py:class:`datetime.datetime` with the ``fold`` - attribute added, if ``fold`` is 1. - - .. versionadded:: 2.6.0 - """ - if getattr(dt, 'fold', 0) == fold: - return dt - - args = dt.timetuple()[:6] - args += (dt.microsecond, dt.tzinfo) - - if fold: - return _DatetimeWithFold(*args) - else: - return datetime(*args) - - -def _validate_fromutc_inputs(f): - """ - The CPython version of ``fromutc`` checks that the input is a ``datetime`` - object and that ``self`` is attached as its ``tzinfo``. - """ - @wraps(f) - def fromutc(self, dt): - if not isinstance(dt, datetime): - raise TypeError("fromutc() requires a datetime argument") - if dt.tzinfo is not self: - raise ValueError("dt.tzinfo is not self") - - return f(self, dt) - - return fromutc - - -class _tzinfo(tzinfo): - """ - Base class for all ``dateutil`` ``tzinfo`` objects. - """ - - def is_ambiguous(self, dt): - """ - Whether or not the "wall time" of a given datetime is ambiguous in this - zone. - - :param dt: - A :py:class:`datetime.datetime`, naive or time zone aware. - - - :return: - Returns ``True`` if ambiguous, ``False`` otherwise. - - .. versionadded:: 2.6.0 - """ - - dt = dt.replace(tzinfo=self) - - wall_0 = enfold(dt, fold=0) - wall_1 = enfold(dt, fold=1) - - same_offset = wall_0.utcoffset() == wall_1.utcoffset() - same_dt = wall_0.replace(tzinfo=None) == wall_1.replace(tzinfo=None) - - return same_dt and not same_offset - - def _fold_status(self, dt_utc, dt_wall): - """ - Determine the fold status of a "wall" datetime, given a representation - of the same datetime as a (naive) UTC datetime. This is calculated based - on the assumption that ``dt.utcoffset() - dt.dst()`` is constant for all - datetimes, and that this offset is the actual number of hours separating - ``dt_utc`` and ``dt_wall``. - - :param dt_utc: - Representation of the datetime as UTC - - :param dt_wall: - Representation of the datetime as "wall time". This parameter must - either have a `fold` attribute or have a fold-naive - :class:`datetime.tzinfo` attached, otherwise the calculation may - fail. - """ - if self.is_ambiguous(dt_wall): - delta_wall = dt_wall - dt_utc - _fold = int(delta_wall == (dt_utc.utcoffset() - dt_utc.dst())) - else: - _fold = 0 - - return _fold - - def _fold(self, dt): - return getattr(dt, 'fold', 0) - - def _fromutc(self, dt): - """ - Given a timezone-aware datetime in a given timezone, calculates a - timezone-aware datetime in a new timezone. - - Since this is the one time that we *know* we have an unambiguous - datetime object, we take this opportunity to determine whether the - datetime is ambiguous and in a "fold" state (e.g. if it's the first - occurrence, chronologically, of the ambiguous datetime). - - :param dt: - A timezone-aware :class:`datetime.datetime` object. - """ - - # Re-implement the algorithm from Python's datetime.py - dtoff = dt.utcoffset() - if dtoff is None: - raise ValueError("fromutc() requires a non-None utcoffset() " - "result") - - # The original datetime.py code assumes that `dst()` defaults to - # zero during ambiguous times. PEP 495 inverts this presumption, so - # for pre-PEP 495 versions of python, we need to tweak the algorithm. - dtdst = dt.dst() - if dtdst is None: - raise ValueError("fromutc() requires a non-None dst() result") - delta = dtoff - dtdst - - dt += delta - # Set fold=1 so we can default to being in the fold for - # ambiguous dates. - dtdst = enfold(dt, fold=1).dst() - if dtdst is None: - raise ValueError("fromutc(): dt.dst gave inconsistent " - "results; cannot convert") - return dt + dtdst - - @_validate_fromutc_inputs - def fromutc(self, dt): - """ - Given a timezone-aware datetime in a given timezone, calculates a - timezone-aware datetime in a new timezone. - - Since this is the one time that we *know* we have an unambiguous - datetime object, we take this opportunity to determine whether the - datetime is ambiguous and in a "fold" state (e.g. if it's the first - occurrence, chronologically, of the ambiguous datetime). - - :param dt: - A timezone-aware :class:`datetime.datetime` object. - """ - dt_wall = self._fromutc(dt) - - # Calculate the fold status given the two datetimes. - _fold = self._fold_status(dt, dt_wall) - - # Set the default fold value for ambiguous dates - return enfold(dt_wall, fold=_fold) - - -class tzrangebase(_tzinfo): - """ - This is an abstract base class for time zones represented by an annual - transition into and out of DST. Child classes should implement the following - methods: - - * ``__init__(self, *args, **kwargs)`` - * ``transitions(self, year)`` - this is expected to return a tuple of - datetimes representing the DST on and off transitions in standard - time. - - A fully initialized ``tzrangebase`` subclass should also provide the - following attributes: - * ``hasdst``: Boolean whether or not the zone uses DST. - * ``_dst_offset`` / ``_std_offset``: :class:`datetime.timedelta` objects - representing the respective UTC offsets. - * ``_dst_abbr`` / ``_std_abbr``: Strings representing the timezone short - abbreviations in DST and STD, respectively. - * ``_hasdst``: Whether or not the zone has DST. - - .. versionadded:: 2.6.0 - """ - def __init__(self): - raise NotImplementedError('tzrangebase is an abstract base class') - - def utcoffset(self, dt): - isdst = self._isdst(dt) - - if isdst is None: - return None - elif isdst: - return self._dst_offset - else: - return self._std_offset - - def dst(self, dt): - isdst = self._isdst(dt) - - if isdst is None: - return None - elif isdst: - return self._dst_base_offset - else: - return ZERO - - @tzname_in_python2 - def tzname(self, dt): - if self._isdst(dt): - return self._dst_abbr - else: - return self._std_abbr - - def fromutc(self, dt): - """ Given a datetime in UTC, return local time """ - if not isinstance(dt, datetime): - raise TypeError("fromutc() requires a datetime argument") - - if dt.tzinfo is not self: - raise ValueError("dt.tzinfo is not self") - - # Get transitions - if there are none, fixed offset - transitions = self.transitions(dt.year) - if transitions is None: - return dt + self.utcoffset(dt) - - # Get the transition times in UTC - dston, dstoff = transitions - - dston -= self._std_offset - dstoff -= self._std_offset - - utc_transitions = (dston, dstoff) - dt_utc = dt.replace(tzinfo=None) - - isdst = self._naive_isdst(dt_utc, utc_transitions) - - if isdst: - dt_wall = dt + self._dst_offset - else: - dt_wall = dt + self._std_offset - - _fold = int(not isdst and self.is_ambiguous(dt_wall)) - - return enfold(dt_wall, fold=_fold) - - def is_ambiguous(self, dt): - """ - Whether or not the "wall time" of a given datetime is ambiguous in this - zone. - - :param dt: - A :py:class:`datetime.datetime`, naive or time zone aware. - - - :return: - Returns ``True`` if ambiguous, ``False`` otherwise. - - .. versionadded:: 2.6.0 - """ - if not self.hasdst: - return False - - start, end = self.transitions(dt.year) - - dt = dt.replace(tzinfo=None) - return (end <= dt < end + self._dst_base_offset) - - def _isdst(self, dt): - if not self.hasdst: - return False - elif dt is None: - return None - - transitions = self.transitions(dt.year) - - if transitions is None: - return False - - dt = dt.replace(tzinfo=None) - - isdst = self._naive_isdst(dt, transitions) - - # Handle ambiguous dates - if not isdst and self.is_ambiguous(dt): - return not self._fold(dt) - else: - return isdst - - def _naive_isdst(self, dt, transitions): - dston, dstoff = transitions - - dt = dt.replace(tzinfo=None) - - if dston < dstoff: - isdst = dston <= dt < dstoff - else: - isdst = not dstoff <= dt < dston - - return isdst - - @property - def _dst_base_offset(self): - return self._dst_offset - self._std_offset - - __hash__ = None - - def __ne__(self, other): - return not (self == other) - - def __repr__(self): - return "%s(...)" % self.__class__.__name__ - - __reduce__ = object.__reduce__ diff --git a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/dateutil/tz/tz.py b/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/dateutil/tz/tz.py deleted file mode 100644 index c67f56d4659f17aab4540dfd42511bb850871a77..0000000000000000000000000000000000000000 --- a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/dateutil/tz/tz.py +++ /dev/null @@ -1,1849 +0,0 @@ -# -*- coding: utf-8 -*- -""" -This module offers timezone implementations subclassing the abstract -:py:class:`datetime.tzinfo` type. There are classes to handle tzfile format -files (usually are in :file:`/etc/localtime`, :file:`/usr/share/zoneinfo`, -etc), TZ environment string (in all known formats), given ranges (with help -from relative deltas), local machine timezone, fixed offset timezone, and UTC -timezone. -""" -import datetime -import struct -import time -import sys -import os -import bisect -import weakref -from collections import OrderedDict - -import six -from six import string_types -from six.moves import _thread -from ._common import tzname_in_python2, _tzinfo -from ._common import tzrangebase, enfold -from ._common import _validate_fromutc_inputs - -from ._factories import _TzSingleton, _TzOffsetFactory -from ._factories import _TzStrFactory -try: - from .win import tzwin, tzwinlocal -except ImportError: - tzwin = tzwinlocal = None - -# For warning about rounding tzinfo -from warnings import warn - -ZERO = datetime.timedelta(0) -EPOCH = datetime.datetime.utcfromtimestamp(0) -EPOCHORDINAL = EPOCH.toordinal() - - -@six.add_metaclass(_TzSingleton) -class tzutc(datetime.tzinfo): - """ - This is a tzinfo object that represents the UTC time zone. - - **Examples:** - - .. doctest:: - - >>> from datetime import * - >>> from dateutil.tz import * - - >>> datetime.now() - datetime.datetime(2003, 9, 27, 9, 40, 1, 521290) - - >>> datetime.now(tzutc()) - datetime.datetime(2003, 9, 27, 12, 40, 12, 156379, tzinfo=tzutc()) - - >>> datetime.now(tzutc()).tzname() - 'UTC' - - .. versionchanged:: 2.7.0 - ``tzutc()`` is now a singleton, so the result of ``tzutc()`` will - always return the same object. - - .. doctest:: - - >>> from dateutil.tz import tzutc, UTC - >>> tzutc() is tzutc() - True - >>> tzutc() is UTC - True - """ - def utcoffset(self, dt): - return ZERO - - def dst(self, dt): - return ZERO - - @tzname_in_python2 - def tzname(self, dt): - return "UTC" - - def is_ambiguous(self, dt): - """ - Whether or not the "wall time" of a given datetime is ambiguous in this - zone. - - :param dt: - A :py:class:`datetime.datetime`, naive or time zone aware. - - - :return: - Returns ``True`` if ambiguous, ``False`` otherwise. - - .. versionadded:: 2.6.0 - """ - return False - - @_validate_fromutc_inputs - def fromutc(self, dt): - """ - Fast track version of fromutc() returns the original ``dt`` object for - any valid :py:class:`datetime.datetime` object. - """ - return dt - - def __eq__(self, other): - if not isinstance(other, (tzutc, tzoffset)): - return NotImplemented - - return (isinstance(other, tzutc) or - (isinstance(other, tzoffset) and other._offset == ZERO)) - - __hash__ = None - - def __ne__(self, other): - return not (self == other) - - def __repr__(self): - return "%s()" % self.__class__.__name__ - - __reduce__ = object.__reduce__ - - -#: Convenience constant providing a :class:`tzutc()` instance -#: -#: .. versionadded:: 2.7.0 -UTC = tzutc() - - -@six.add_metaclass(_TzOffsetFactory) -class tzoffset(datetime.tzinfo): - """ - A simple class for representing a fixed offset from UTC. - - :param name: - The timezone name, to be returned when ``tzname()`` is called. - :param offset: - The time zone offset in seconds, or (since version 2.6.0, represented - as a :py:class:`datetime.timedelta` object). - """ - def __init__(self, name, offset): - self._name = name - - try: - # Allow a timedelta - offset = offset.total_seconds() - except (TypeError, AttributeError): - pass - - self._offset = datetime.timedelta(seconds=_get_supported_offset(offset)) - - def utcoffset(self, dt): - return self._offset - - def dst(self, dt): - return ZERO - - @tzname_in_python2 - def tzname(self, dt): - return self._name - - @_validate_fromutc_inputs - def fromutc(self, dt): - return dt + self._offset - - def is_ambiguous(self, dt): - """ - Whether or not the "wall time" of a given datetime is ambiguous in this - zone. - - :param dt: - A :py:class:`datetime.datetime`, naive or time zone aware. - :return: - Returns ``True`` if ambiguous, ``False`` otherwise. - - .. versionadded:: 2.6.0 - """ - return False - - def __eq__(self, other): - if not isinstance(other, tzoffset): - return NotImplemented - - return self._offset == other._offset - - __hash__ = None - - def __ne__(self, other): - return not (self == other) - - def __repr__(self): - return "%s(%s, %s)" % (self.__class__.__name__, - repr(self._name), - int(self._offset.total_seconds())) - - __reduce__ = object.__reduce__ - - -class tzlocal(_tzinfo): - """ - A :class:`tzinfo` subclass built around the ``time`` timezone functions. - """ - def __init__(self): - super(tzlocal, self).__init__() - - self._std_offset = datetime.timedelta(seconds=-time.timezone) - if time.daylight: - self._dst_offset = datetime.timedelta(seconds=-time.altzone) - else: - self._dst_offset = self._std_offset - - self._dst_saved = self._dst_offset - self._std_offset - self._hasdst = bool(self._dst_saved) - self._tznames = tuple(time.tzname) - - def utcoffset(self, dt): - if dt is None and self._hasdst: - return None - - if self._isdst(dt): - return self._dst_offset - else: - return self._std_offset - - def dst(self, dt): - if dt is None and self._hasdst: - return None - - if self._isdst(dt): - return self._dst_offset - self._std_offset - else: - return ZERO - - @tzname_in_python2 - def tzname(self, dt): - return self._tznames[self._isdst(dt)] - - def is_ambiguous(self, dt): - """ - Whether or not the "wall time" of a given datetime is ambiguous in this - zone. - - :param dt: - A :py:class:`datetime.datetime`, naive or time zone aware. - - - :return: - Returns ``True`` if ambiguous, ``False`` otherwise. - - .. versionadded:: 2.6.0 - """ - naive_dst = self._naive_is_dst(dt) - return (not naive_dst and - (naive_dst != self._naive_is_dst(dt - self._dst_saved))) - - def _naive_is_dst(self, dt): - timestamp = _datetime_to_timestamp(dt) - return time.localtime(timestamp + time.timezone).tm_isdst - - def _isdst(self, dt, fold_naive=True): - # We can't use mktime here. It is unstable when deciding if - # the hour near to a change is DST or not. - # - # timestamp = time.mktime((dt.year, dt.month, dt.day, dt.hour, - # dt.minute, dt.second, dt.weekday(), 0, -1)) - # return time.localtime(timestamp).tm_isdst - # - # The code above yields the following result: - # - # >>> import tz, datetime - # >>> t = tz.tzlocal() - # >>> datetime.datetime(2003,2,15,23,tzinfo=t).tzname() - # 'BRDT' - # >>> datetime.datetime(2003,2,16,0,tzinfo=t).tzname() - # 'BRST' - # >>> datetime.datetime(2003,2,15,23,tzinfo=t).tzname() - # 'BRST' - # >>> datetime.datetime(2003,2,15,22,tzinfo=t).tzname() - # 'BRDT' - # >>> datetime.datetime(2003,2,15,23,tzinfo=t).tzname() - # 'BRDT' - # - # Here is a more stable implementation: - # - if not self._hasdst: - return False - - # Check for ambiguous times: - dstval = self._naive_is_dst(dt) - fold = getattr(dt, 'fold', None) - - if self.is_ambiguous(dt): - if fold is not None: - return not self._fold(dt) - else: - return True - - return dstval - - def __eq__(self, other): - if isinstance(other, tzlocal): - return (self._std_offset == other._std_offset and - self._dst_offset == other._dst_offset) - elif isinstance(other, tzutc): - return (not self._hasdst and - self._tznames[0] in {'UTC', 'GMT'} and - self._std_offset == ZERO) - elif isinstance(other, tzoffset): - return (not self._hasdst and - self._tznames[0] == other._name and - self._std_offset == other._offset) - else: - return NotImplemented - - __hash__ = None - - def __ne__(self, other): - return not (self == other) - - def __repr__(self): - return "%s()" % self.__class__.__name__ - - __reduce__ = object.__reduce__ - - -class _ttinfo(object): - __slots__ = ["offset", "delta", "isdst", "abbr", - "isstd", "isgmt", "dstoffset"] - - def __init__(self): - for attr in self.__slots__: - setattr(self, attr, None) - - def __repr__(self): - l = [] - for attr in self.__slots__: - value = getattr(self, attr) - if value is not None: - l.append("%s=%s" % (attr, repr(value))) - return "%s(%s)" % (self.__class__.__name__, ", ".join(l)) - - def __eq__(self, other): - if not isinstance(other, _ttinfo): - return NotImplemented - - return (self.offset == other.offset and - self.delta == other.delta and - self.isdst == other.isdst and - self.abbr == other.abbr and - self.isstd == other.isstd and - self.isgmt == other.isgmt and - self.dstoffset == other.dstoffset) - - __hash__ = None - - def __ne__(self, other): - return not (self == other) - - def __getstate__(self): - state = {} - for name in self.__slots__: - state[name] = getattr(self, name, None) - return state - - def __setstate__(self, state): - for name in self.__slots__: - if name in state: - setattr(self, name, state[name]) - - -class _tzfile(object): - """ - Lightweight class for holding the relevant transition and time zone - information read from binary tzfiles. - """ - attrs = ['trans_list', 'trans_list_utc', 'trans_idx', 'ttinfo_list', - 'ttinfo_std', 'ttinfo_dst', 'ttinfo_before', 'ttinfo_first'] - - def __init__(self, **kwargs): - for attr in self.attrs: - setattr(self, attr, kwargs.get(attr, None)) - - -class tzfile(_tzinfo): - """ - This is a ``tzinfo`` subclass that allows one to use the ``tzfile(5)`` - format timezone files to extract current and historical zone information. - - :param fileobj: - This can be an opened file stream or a file name that the time zone - information can be read from. - - :param filename: - This is an optional parameter specifying the source of the time zone - information in the event that ``fileobj`` is a file object. If omitted - and ``fileobj`` is a file stream, this parameter will be set either to - ``fileobj``'s ``name`` attribute or to ``repr(fileobj)``. - - See `Sources for Time Zone and Daylight Saving Time Data - `_ for more information. - Time zone files can be compiled from the `IANA Time Zone database files - `_ with the `zic time zone compiler - `_ - - .. note:: - - Only construct a ``tzfile`` directly if you have a specific timezone - file on disk that you want to read into a Python ``tzinfo`` object. - If you want to get a ``tzfile`` representing a specific IANA zone, - (e.g. ``'America/New_York'``), you should call - :func:`dateutil.tz.gettz` with the zone identifier. - - - **Examples:** - - Using the US Eastern time zone as an example, we can see that a ``tzfile`` - provides time zone information for the standard Daylight Saving offsets: - - .. testsetup:: tzfile - - from dateutil.tz import gettz - from datetime import datetime - - .. doctest:: tzfile - - >>> NYC = gettz('America/New_York') - >>> NYC - tzfile('/usr/share/zoneinfo/America/New_York') - - >>> print(datetime(2016, 1, 3, tzinfo=NYC)) # EST - 2016-01-03 00:00:00-05:00 - - >>> print(datetime(2016, 7, 7, tzinfo=NYC)) # EDT - 2016-07-07 00:00:00-04:00 - - - The ``tzfile`` structure contains a fully history of the time zone, - so historical dates will also have the right offsets. For example, before - the adoption of the UTC standards, New York used local solar mean time: - - .. doctest:: tzfile - - >>> print(datetime(1901, 4, 12, tzinfo=NYC)) # LMT - 1901-04-12 00:00:00-04:56 - - And during World War II, New York was on "Eastern War Time", which was a - state of permanent daylight saving time: - - .. doctest:: tzfile - - >>> print(datetime(1944, 2, 7, tzinfo=NYC)) # EWT - 1944-02-07 00:00:00-04:00 - - """ - - def __init__(self, fileobj, filename=None): - super(tzfile, self).__init__() - - file_opened_here = False - if isinstance(fileobj, string_types): - self._filename = fileobj - fileobj = open(fileobj, 'rb') - file_opened_here = True - elif filename is not None: - self._filename = filename - elif hasattr(fileobj, "name"): - self._filename = fileobj.name - else: - self._filename = repr(fileobj) - - if fileobj is not None: - if not file_opened_here: - fileobj = _nullcontext(fileobj) - - with fileobj as file_stream: - tzobj = self._read_tzfile(file_stream) - - self._set_tzdata(tzobj) - - def _set_tzdata(self, tzobj): - """ Set the time zone data of this object from a _tzfile object """ - # Copy the relevant attributes over as private attributes - for attr in _tzfile.attrs: - setattr(self, '_' + attr, getattr(tzobj, attr)) - - def _read_tzfile(self, fileobj): - out = _tzfile() - - # From tzfile(5): - # - # The time zone information files used by tzset(3) - # begin with the magic characters "TZif" to identify - # them as time zone information files, followed by - # sixteen bytes reserved for future use, followed by - # six four-byte values of type long, written in a - # ``standard'' byte order (the high-order byte - # of the value is written first). - if fileobj.read(4).decode() != "TZif": - raise ValueError("magic not found") - - fileobj.read(16) - - ( - # The number of UTC/local indicators stored in the file. - ttisgmtcnt, - - # The number of standard/wall indicators stored in the file. - ttisstdcnt, - - # The number of leap seconds for which data is - # stored in the file. - leapcnt, - - # The number of "transition times" for which data - # is stored in the file. - timecnt, - - # The number of "local time types" for which data - # is stored in the file (must not be zero). - typecnt, - - # The number of characters of "time zone - # abbreviation strings" stored in the file. - charcnt, - - ) = struct.unpack(">6l", fileobj.read(24)) - - # The above header is followed by tzh_timecnt four-byte - # values of type long, sorted in ascending order. - # These values are written in ``standard'' byte order. - # Each is used as a transition time (as returned by - # time(2)) at which the rules for computing local time - # change. - - if timecnt: - out.trans_list_utc = list(struct.unpack(">%dl" % timecnt, - fileobj.read(timecnt*4))) - else: - out.trans_list_utc = [] - - # Next come tzh_timecnt one-byte values of type unsigned - # char; each one tells which of the different types of - # ``local time'' types described in the file is associated - # with the same-indexed transition time. These values - # serve as indices into an array of ttinfo structures that - # appears next in the file. - - if timecnt: - out.trans_idx = struct.unpack(">%dB" % timecnt, - fileobj.read(timecnt)) - else: - out.trans_idx = [] - - # Each ttinfo structure is written as a four-byte value - # for tt_gmtoff of type long, in a standard byte - # order, followed by a one-byte value for tt_isdst - # and a one-byte value for tt_abbrind. In each - # structure, tt_gmtoff gives the number of - # seconds to be added to UTC, tt_isdst tells whether - # tm_isdst should be set by localtime(3), and - # tt_abbrind serves as an index into the array of - # time zone abbreviation characters that follow the - # ttinfo structure(s) in the file. - - ttinfo = [] - - for i in range(typecnt): - ttinfo.append(struct.unpack(">lbb", fileobj.read(6))) - - abbr = fileobj.read(charcnt).decode() - - # Then there are tzh_leapcnt pairs of four-byte - # values, written in standard byte order; the - # first value of each pair gives the time (as - # returned by time(2)) at which a leap second - # occurs; the second gives the total number of - # leap seconds to be applied after the given time. - # The pairs of values are sorted in ascending order - # by time. - - # Not used, for now (but seek for correct file position) - if leapcnt: - fileobj.seek(leapcnt * 8, os.SEEK_CUR) - - # Then there are tzh_ttisstdcnt standard/wall - # indicators, each stored as a one-byte value; - # they tell whether the transition times associated - # with local time types were specified as standard - # time or wall clock time, and are used when - # a time zone file is used in handling POSIX-style - # time zone environment variables. - - if ttisstdcnt: - isstd = struct.unpack(">%db" % ttisstdcnt, - fileobj.read(ttisstdcnt)) - - # Finally, there are tzh_ttisgmtcnt UTC/local - # indicators, each stored as a one-byte value; - # they tell whether the transition times associated - # with local time types were specified as UTC or - # local time, and are used when a time zone file - # is used in handling POSIX-style time zone envi- - # ronment variables. - - if ttisgmtcnt: - isgmt = struct.unpack(">%db" % ttisgmtcnt, - fileobj.read(ttisgmtcnt)) - - # Build ttinfo list - out.ttinfo_list = [] - for i in range(typecnt): - gmtoff, isdst, abbrind = ttinfo[i] - gmtoff = _get_supported_offset(gmtoff) - tti = _ttinfo() - tti.offset = gmtoff - tti.dstoffset = datetime.timedelta(0) - tti.delta = datetime.timedelta(seconds=gmtoff) - tti.isdst = isdst - tti.abbr = abbr[abbrind:abbr.find('\x00', abbrind)] - tti.isstd = (ttisstdcnt > i and isstd[i] != 0) - tti.isgmt = (ttisgmtcnt > i and isgmt[i] != 0) - out.ttinfo_list.append(tti) - - # Replace ttinfo indexes for ttinfo objects. - out.trans_idx = [out.ttinfo_list[idx] for idx in out.trans_idx] - - # Set standard, dst, and before ttinfos. before will be - # used when a given time is before any transitions, - # and will be set to the first non-dst ttinfo, or to - # the first dst, if all of them are dst. - out.ttinfo_std = None - out.ttinfo_dst = None - out.ttinfo_before = None - if out.ttinfo_list: - if not out.trans_list_utc: - out.ttinfo_std = out.ttinfo_first = out.ttinfo_list[0] - else: - for i in range(timecnt-1, -1, -1): - tti = out.trans_idx[i] - if not out.ttinfo_std and not tti.isdst: - out.ttinfo_std = tti - elif not out.ttinfo_dst and tti.isdst: - out.ttinfo_dst = tti - - if out.ttinfo_std and out.ttinfo_dst: - break - else: - if out.ttinfo_dst and not out.ttinfo_std: - out.ttinfo_std = out.ttinfo_dst - - for tti in out.ttinfo_list: - if not tti.isdst: - out.ttinfo_before = tti - break - else: - out.ttinfo_before = out.ttinfo_list[0] - - # Now fix transition times to become relative to wall time. - # - # I'm not sure about this. In my tests, the tz source file - # is setup to wall time, and in the binary file isstd and - # isgmt are off, so it should be in wall time. OTOH, it's - # always in gmt time. Let me know if you have comments - # about this. - lastdst = None - lastoffset = None - lastdstoffset = None - lastbaseoffset = None - out.trans_list = [] - - for i, tti in enumerate(out.trans_idx): - offset = tti.offset - dstoffset = 0 - - if lastdst is not None: - if tti.isdst: - if not lastdst: - dstoffset = offset - lastoffset - - if not dstoffset and lastdstoffset: - dstoffset = lastdstoffset - - tti.dstoffset = datetime.timedelta(seconds=dstoffset) - lastdstoffset = dstoffset - - # If a time zone changes its base offset during a DST transition, - # then you need to adjust by the previous base offset to get the - # transition time in local time. Otherwise you use the current - # base offset. Ideally, I would have some mathematical proof of - # why this is true, but I haven't really thought about it enough. - baseoffset = offset - dstoffset - adjustment = baseoffset - if (lastbaseoffset is not None and baseoffset != lastbaseoffset - and tti.isdst != lastdst): - # The base DST has changed - adjustment = lastbaseoffset - - lastdst = tti.isdst - lastoffset = offset - lastbaseoffset = baseoffset - - out.trans_list.append(out.trans_list_utc[i] + adjustment) - - out.trans_idx = tuple(out.trans_idx) - out.trans_list = tuple(out.trans_list) - out.trans_list_utc = tuple(out.trans_list_utc) - - return out - - def _find_last_transition(self, dt, in_utc=False): - # If there's no list, there are no transitions to find - if not self._trans_list: - return None - - timestamp = _datetime_to_timestamp(dt) - - # Find where the timestamp fits in the transition list - if the - # timestamp is a transition time, it's part of the "after" period. - trans_list = self._trans_list_utc if in_utc else self._trans_list - idx = bisect.bisect_right(trans_list, timestamp) - - # We want to know when the previous transition was, so subtract off 1 - return idx - 1 - - def _get_ttinfo(self, idx): - # For no list or after the last transition, default to _ttinfo_std - if idx is None or (idx + 1) >= len(self._trans_list): - return self._ttinfo_std - - # If there is a list and the time is before it, return _ttinfo_before - if idx < 0: - return self._ttinfo_before - - return self._trans_idx[idx] - - def _find_ttinfo(self, dt): - idx = self._resolve_ambiguous_time(dt) - - return self._get_ttinfo(idx) - - def fromutc(self, dt): - """ - The ``tzfile`` implementation of :py:func:`datetime.tzinfo.fromutc`. - - :param dt: - A :py:class:`datetime.datetime` object. - - :raises TypeError: - Raised if ``dt`` is not a :py:class:`datetime.datetime` object. - - :raises ValueError: - Raised if this is called with a ``dt`` which does not have this - ``tzinfo`` attached. - - :return: - Returns a :py:class:`datetime.datetime` object representing the - wall time in ``self``'s time zone. - """ - # These isinstance checks are in datetime.tzinfo, so we'll preserve - # them, even if we don't care about duck typing. - if not isinstance(dt, datetime.datetime): - raise TypeError("fromutc() requires a datetime argument") - - if dt.tzinfo is not self: - raise ValueError("dt.tzinfo is not self") - - # First treat UTC as wall time and get the transition we're in. - idx = self._find_last_transition(dt, in_utc=True) - tti = self._get_ttinfo(idx) - - dt_out = dt + datetime.timedelta(seconds=tti.offset) - - fold = self.is_ambiguous(dt_out, idx=idx) - - return enfold(dt_out, fold=int(fold)) - - def is_ambiguous(self, dt, idx=None): - """ - Whether or not the "wall time" of a given datetime is ambiguous in this - zone. - - :param dt: - A :py:class:`datetime.datetime`, naive or time zone aware. - - - :return: - Returns ``True`` if ambiguous, ``False`` otherwise. - - .. versionadded:: 2.6.0 - """ - if idx is None: - idx = self._find_last_transition(dt) - - # Calculate the difference in offsets from current to previous - timestamp = _datetime_to_timestamp(dt) - tti = self._get_ttinfo(idx) - - if idx is None or idx <= 0: - return False - - od = self._get_ttinfo(idx - 1).offset - tti.offset - tt = self._trans_list[idx] # Transition time - - return timestamp < tt + od - - def _resolve_ambiguous_time(self, dt): - idx = self._find_last_transition(dt) - - # If we have no transitions, return the index - _fold = self._fold(dt) - if idx is None or idx == 0: - return idx - - # If it's ambiguous and we're in a fold, shift to a different index. - idx_offset = int(not _fold and self.is_ambiguous(dt, idx)) - - return idx - idx_offset - - def utcoffset(self, dt): - if dt is None: - return None - - if not self._ttinfo_std: - return ZERO - - return self._find_ttinfo(dt).delta - - def dst(self, dt): - if dt is None: - return None - - if not self._ttinfo_dst: - return ZERO - - tti = self._find_ttinfo(dt) - - if not tti.isdst: - return ZERO - - # The documentation says that utcoffset()-dst() must - # be constant for every dt. - return tti.dstoffset - - @tzname_in_python2 - def tzname(self, dt): - if not self._ttinfo_std or dt is None: - return None - return self._find_ttinfo(dt).abbr - - def __eq__(self, other): - if not isinstance(other, tzfile): - return NotImplemented - return (self._trans_list == other._trans_list and - self._trans_idx == other._trans_idx and - self._ttinfo_list == other._ttinfo_list) - - __hash__ = None - - def __ne__(self, other): - return not (self == other) - - def __repr__(self): - return "%s(%s)" % (self.__class__.__name__, repr(self._filename)) - - def __reduce__(self): - return self.__reduce_ex__(None) - - def __reduce_ex__(self, protocol): - return (self.__class__, (None, self._filename), self.__dict__) - - -class tzrange(tzrangebase): - """ - The ``tzrange`` object is a time zone specified by a set of offsets and - abbreviations, equivalent to the way the ``TZ`` variable can be specified - in POSIX-like systems, but using Python delta objects to specify DST - start, end and offsets. - - :param stdabbr: - The abbreviation for standard time (e.g. ``'EST'``). - - :param stdoffset: - An integer or :class:`datetime.timedelta` object or equivalent - specifying the base offset from UTC. - - If unspecified, +00:00 is used. - - :param dstabbr: - The abbreviation for DST / "Summer" time (e.g. ``'EDT'``). - - If specified, with no other DST information, DST is assumed to occur - and the default behavior or ``dstoffset``, ``start`` and ``end`` is - used. If unspecified and no other DST information is specified, it - is assumed that this zone has no DST. - - If this is unspecified and other DST information is *is* specified, - DST occurs in the zone but the time zone abbreviation is left - unchanged. - - :param dstoffset: - A an integer or :class:`datetime.timedelta` object or equivalent - specifying the UTC offset during DST. If unspecified and any other DST - information is specified, it is assumed to be the STD offset +1 hour. - - :param start: - A :class:`relativedelta.relativedelta` object or equivalent specifying - the time and time of year that daylight savings time starts. To - specify, for example, that DST starts at 2AM on the 2nd Sunday in - March, pass: - - ``relativedelta(hours=2, month=3, day=1, weekday=SU(+2))`` - - If unspecified and any other DST information is specified, the default - value is 2 AM on the first Sunday in April. - - :param end: - A :class:`relativedelta.relativedelta` object or equivalent - representing the time and time of year that daylight savings time - ends, with the same specification method as in ``start``. One note is - that this should point to the first time in the *standard* zone, so if - a transition occurs at 2AM in the DST zone and the clocks are set back - 1 hour to 1AM, set the ``hours`` parameter to +1. - - - **Examples:** - - .. testsetup:: tzrange - - from dateutil.tz import tzrange, tzstr - - .. doctest:: tzrange - - >>> tzstr('EST5EDT') == tzrange("EST", -18000, "EDT") - True - - >>> from dateutil.relativedelta import * - >>> range1 = tzrange("EST", -18000, "EDT") - >>> range2 = tzrange("EST", -18000, "EDT", -14400, - ... relativedelta(hours=+2, month=4, day=1, - ... weekday=SU(+1)), - ... relativedelta(hours=+1, month=10, day=31, - ... weekday=SU(-1))) - >>> tzstr('EST5EDT') == range1 == range2 - True - - """ - def __init__(self, stdabbr, stdoffset=None, - dstabbr=None, dstoffset=None, - start=None, end=None): - - global relativedelta - from dateutil import relativedelta - - self._std_abbr = stdabbr - self._dst_abbr = dstabbr - - try: - stdoffset = stdoffset.total_seconds() - except (TypeError, AttributeError): - pass - - try: - dstoffset = dstoffset.total_seconds() - except (TypeError, AttributeError): - pass - - if stdoffset is not None: - self._std_offset = datetime.timedelta(seconds=stdoffset) - else: - self._std_offset = ZERO - - if dstoffset is not None: - self._dst_offset = datetime.timedelta(seconds=dstoffset) - elif dstabbr and stdoffset is not None: - self._dst_offset = self._std_offset + datetime.timedelta(hours=+1) - else: - self._dst_offset = ZERO - - if dstabbr and start is None: - self._start_delta = relativedelta.relativedelta( - hours=+2, month=4, day=1, weekday=relativedelta.SU(+1)) - else: - self._start_delta = start - - if dstabbr and end is None: - self._end_delta = relativedelta.relativedelta( - hours=+1, month=10, day=31, weekday=relativedelta.SU(-1)) - else: - self._end_delta = end - - self._dst_base_offset_ = self._dst_offset - self._std_offset - self.hasdst = bool(self._start_delta) - - def transitions(self, year): - """ - For a given year, get the DST on and off transition times, expressed - always on the standard time side. For zones with no transitions, this - function returns ``None``. - - :param year: - The year whose transitions you would like to query. - - :return: - Returns a :class:`tuple` of :class:`datetime.datetime` objects, - ``(dston, dstoff)`` for zones with an annual DST transition, or - ``None`` for fixed offset zones. - """ - if not self.hasdst: - return None - - base_year = datetime.datetime(year, 1, 1) - - start = base_year + self._start_delta - end = base_year + self._end_delta - - return (start, end) - - def __eq__(self, other): - if not isinstance(other, tzrange): - return NotImplemented - - return (self._std_abbr == other._std_abbr and - self._dst_abbr == other._dst_abbr and - self._std_offset == other._std_offset and - self._dst_offset == other._dst_offset and - self._start_delta == other._start_delta and - self._end_delta == other._end_delta) - - @property - def _dst_base_offset(self): - return self._dst_base_offset_ - - -@six.add_metaclass(_TzStrFactory) -class tzstr(tzrange): - """ - ``tzstr`` objects are time zone objects specified by a time-zone string as - it would be passed to a ``TZ`` variable on POSIX-style systems (see - the `GNU C Library: TZ Variable`_ for more details). - - There is one notable exception, which is that POSIX-style time zones use an - inverted offset format, so normally ``GMT+3`` would be parsed as an offset - 3 hours *behind* GMT. The ``tzstr`` time zone object will parse this as an - offset 3 hours *ahead* of GMT. If you would like to maintain the POSIX - behavior, pass a ``True`` value to ``posix_offset``. - - The :class:`tzrange` object provides the same functionality, but is - specified using :class:`relativedelta.relativedelta` objects. rather than - strings. - - :param s: - A time zone string in ``TZ`` variable format. This can be a - :class:`bytes` (2.x: :class:`str`), :class:`str` (2.x: - :class:`unicode`) or a stream emitting unicode characters - (e.g. :class:`StringIO`). - - :param posix_offset: - Optional. If set to ``True``, interpret strings such as ``GMT+3`` or - ``UTC+3`` as being 3 hours *behind* UTC rather than ahead, per the - POSIX standard. - - .. caution:: - - Prior to version 2.7.0, this function also supported time zones - in the format: - - * ``EST5EDT,4,0,6,7200,10,0,26,7200,3600`` - * ``EST5EDT,4,1,0,7200,10,-1,0,7200,3600`` - - This format is non-standard and has been deprecated; this function - will raise a :class:`DeprecatedTZFormatWarning` until - support is removed in a future version. - - .. _`GNU C Library: TZ Variable`: - https://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html - """ - def __init__(self, s, posix_offset=False): - global parser - from dateutil.parser import _parser as parser - - self._s = s - - res = parser._parsetz(s) - if res is None or res.any_unused_tokens: - raise ValueError("unknown string format") - - # Here we break the compatibility with the TZ variable handling. - # GMT-3 actually *means* the timezone -3. - if res.stdabbr in ("GMT", "UTC") and not posix_offset: - res.stdoffset *= -1 - - # We must initialize it first, since _delta() needs - # _std_offset and _dst_offset set. Use False in start/end - # to avoid building it two times. - tzrange.__init__(self, res.stdabbr, res.stdoffset, - res.dstabbr, res.dstoffset, - start=False, end=False) - - if not res.dstabbr: - self._start_delta = None - self._end_delta = None - else: - self._start_delta = self._delta(res.start) - if self._start_delta: - self._end_delta = self._delta(res.end, isend=1) - - self.hasdst = bool(self._start_delta) - - def _delta(self, x, isend=0): - from dateutil import relativedelta - kwargs = {} - if x.month is not None: - kwargs["month"] = x.month - if x.weekday is not None: - kwargs["weekday"] = relativedelta.weekday(x.weekday, x.week) - if x.week > 0: - kwargs["day"] = 1 - else: - kwargs["day"] = 31 - elif x.day: - kwargs["day"] = x.day - elif x.yday is not None: - kwargs["yearday"] = x.yday - elif x.jyday is not None: - kwargs["nlyearday"] = x.jyday - if not kwargs: - # Default is to start on first sunday of april, and end - # on last sunday of october. - if not isend: - kwargs["month"] = 4 - kwargs["day"] = 1 - kwargs["weekday"] = relativedelta.SU(+1) - else: - kwargs["month"] = 10 - kwargs["day"] = 31 - kwargs["weekday"] = relativedelta.SU(-1) - if x.time is not None: - kwargs["seconds"] = x.time - else: - # Default is 2AM. - kwargs["seconds"] = 7200 - if isend: - # Convert to standard time, to follow the documented way - # of working with the extra hour. See the documentation - # of the tzinfo class. - delta = self._dst_offset - self._std_offset - kwargs["seconds"] -= delta.seconds + delta.days * 86400 - return relativedelta.relativedelta(**kwargs) - - def __repr__(self): - return "%s(%s)" % (self.__class__.__name__, repr(self._s)) - - -class _tzicalvtzcomp(object): - def __init__(self, tzoffsetfrom, tzoffsetto, isdst, - tzname=None, rrule=None): - self.tzoffsetfrom = datetime.timedelta(seconds=tzoffsetfrom) - self.tzoffsetto = datetime.timedelta(seconds=tzoffsetto) - self.tzoffsetdiff = self.tzoffsetto - self.tzoffsetfrom - self.isdst = isdst - self.tzname = tzname - self.rrule = rrule - - -class _tzicalvtz(_tzinfo): - def __init__(self, tzid, comps=[]): - super(_tzicalvtz, self).__init__() - - self._tzid = tzid - self._comps = comps - self._cachedate = [] - self._cachecomp = [] - self._cache_lock = _thread.allocate_lock() - - def _find_comp(self, dt): - if len(self._comps) == 1: - return self._comps[0] - - dt = dt.replace(tzinfo=None) - - try: - with self._cache_lock: - return self._cachecomp[self._cachedate.index( - (dt, self._fold(dt)))] - except ValueError: - pass - - lastcompdt = None - lastcomp = None - - for comp in self._comps: - compdt = self._find_compdt(comp, dt) - - if compdt and (not lastcompdt or lastcompdt < compdt): - lastcompdt = compdt - lastcomp = comp - - if not lastcomp: - # RFC says nothing about what to do when a given - # time is before the first onset date. We'll look for the - # first standard component, or the first component, if - # none is found. - for comp in self._comps: - if not comp.isdst: - lastcomp = comp - break - else: - lastcomp = comp[0] - - with self._cache_lock: - self._cachedate.insert(0, (dt, self._fold(dt))) - self._cachecomp.insert(0, lastcomp) - - if len(self._cachedate) > 10: - self._cachedate.pop() - self._cachecomp.pop() - - return lastcomp - - def _find_compdt(self, comp, dt): - if comp.tzoffsetdiff < ZERO and self._fold(dt): - dt -= comp.tzoffsetdiff - - compdt = comp.rrule.before(dt, inc=True) - - return compdt - - def utcoffset(self, dt): - if dt is None: - return None - - return self._find_comp(dt).tzoffsetto - - def dst(self, dt): - comp = self._find_comp(dt) - if comp.isdst: - return comp.tzoffsetdiff - else: - return ZERO - - @tzname_in_python2 - def tzname(self, dt): - return self._find_comp(dt).tzname - - def __repr__(self): - return "" % repr(self._tzid) - - __reduce__ = object.__reduce__ - - -class tzical(object): - """ - This object is designed to parse an iCalendar-style ``VTIMEZONE`` structure - as set out in `RFC 5545`_ Section 4.6.5 into one or more `tzinfo` objects. - - :param `fileobj`: - A file or stream in iCalendar format, which should be UTF-8 encoded - with CRLF endings. - - .. _`RFC 5545`: https://tools.ietf.org/html/rfc5545 - """ - def __init__(self, fileobj): - global rrule - from dateutil import rrule - - if isinstance(fileobj, string_types): - self._s = fileobj - # ical should be encoded in UTF-8 with CRLF - fileobj = open(fileobj, 'r') - else: - self._s = getattr(fileobj, 'name', repr(fileobj)) - fileobj = _nullcontext(fileobj) - - self._vtz = {} - - with fileobj as fobj: - self._parse_rfc(fobj.read()) - - def keys(self): - """ - Retrieves the available time zones as a list. - """ - return list(self._vtz.keys()) - - def get(self, tzid=None): - """ - Retrieve a :py:class:`datetime.tzinfo` object by its ``tzid``. - - :param tzid: - If there is exactly one time zone available, omitting ``tzid`` - or passing :py:const:`None` value returns it. Otherwise a valid - key (which can be retrieved from :func:`keys`) is required. - - :raises ValueError: - Raised if ``tzid`` is not specified but there are either more - or fewer than 1 zone defined. - - :returns: - Returns either a :py:class:`datetime.tzinfo` object representing - the relevant time zone or :py:const:`None` if the ``tzid`` was - not found. - """ - if tzid is None: - if len(self._vtz) == 0: - raise ValueError("no timezones defined") - elif len(self._vtz) > 1: - raise ValueError("more than one timezone available") - tzid = next(iter(self._vtz)) - - return self._vtz.get(tzid) - - def _parse_offset(self, s): - s = s.strip() - if not s: - raise ValueError("empty offset") - if s[0] in ('+', '-'): - signal = (-1, +1)[s[0] == '+'] - s = s[1:] - else: - signal = +1 - if len(s) == 4: - return (int(s[:2]) * 3600 + int(s[2:]) * 60) * signal - elif len(s) == 6: - return (int(s[:2]) * 3600 + int(s[2:4]) * 60 + int(s[4:])) * signal - else: - raise ValueError("invalid offset: " + s) - - def _parse_rfc(self, s): - lines = s.splitlines() - if not lines: - raise ValueError("empty string") - - # Unfold - i = 0 - while i < len(lines): - line = lines[i].rstrip() - if not line: - del lines[i] - elif i > 0 and line[0] == " ": - lines[i-1] += line[1:] - del lines[i] - else: - i += 1 - - tzid = None - comps = [] - invtz = False - comptype = None - for line in lines: - if not line: - continue - name, value = line.split(':', 1) - parms = name.split(';') - if not parms: - raise ValueError("empty property name") - name = parms[0].upper() - parms = parms[1:] - if invtz: - if name == "BEGIN": - if value in ("STANDARD", "DAYLIGHT"): - # Process component - pass - else: - raise ValueError("unknown component: "+value) - comptype = value - founddtstart = False - tzoffsetfrom = None - tzoffsetto = None - rrulelines = [] - tzname = None - elif name == "END": - if value == "VTIMEZONE": - if comptype: - raise ValueError("component not closed: "+comptype) - if not tzid: - raise ValueError("mandatory TZID not found") - if not comps: - raise ValueError( - "at least one component is needed") - # Process vtimezone - self._vtz[tzid] = _tzicalvtz(tzid, comps) - invtz = False - elif value == comptype: - if not founddtstart: - raise ValueError("mandatory DTSTART not found") - if tzoffsetfrom is None: - raise ValueError( - "mandatory TZOFFSETFROM not found") - if tzoffsetto is None: - raise ValueError( - "mandatory TZOFFSETFROM not found") - # Process component - rr = None - if rrulelines: - rr = rrule.rrulestr("\n".join(rrulelines), - compatible=True, - ignoretz=True, - cache=True) - comp = _tzicalvtzcomp(tzoffsetfrom, tzoffsetto, - (comptype == "DAYLIGHT"), - tzname, rr) - comps.append(comp) - comptype = None - else: - raise ValueError("invalid component end: "+value) - elif comptype: - if name == "DTSTART": - # DTSTART in VTIMEZONE takes a subset of valid RRULE - # values under RFC 5545. - for parm in parms: - if parm != 'VALUE=DATE-TIME': - msg = ('Unsupported DTSTART param in ' + - 'VTIMEZONE: ' + parm) - raise ValueError(msg) - rrulelines.append(line) - founddtstart = True - elif name in ("RRULE", "RDATE", "EXRULE", "EXDATE"): - rrulelines.append(line) - elif name == "TZOFFSETFROM": - if parms: - raise ValueError( - "unsupported %s parm: %s " % (name, parms[0])) - tzoffsetfrom = self._parse_offset(value) - elif name == "TZOFFSETTO": - if parms: - raise ValueError( - "unsupported TZOFFSETTO parm: "+parms[0]) - tzoffsetto = self._parse_offset(value) - elif name == "TZNAME": - if parms: - raise ValueError( - "unsupported TZNAME parm: "+parms[0]) - tzname = value - elif name == "COMMENT": - pass - else: - raise ValueError("unsupported property: "+name) - else: - if name == "TZID": - if parms: - raise ValueError( - "unsupported TZID parm: "+parms[0]) - tzid = value - elif name in ("TZURL", "LAST-MODIFIED", "COMMENT"): - pass - else: - raise ValueError("unsupported property: "+name) - elif name == "BEGIN" and value == "VTIMEZONE": - tzid = None - comps = [] - invtz = True - - def __repr__(self): - return "%s(%s)" % (self.__class__.__name__, repr(self._s)) - - -if sys.platform != "win32": - TZFILES = ["/etc/localtime", "localtime"] - TZPATHS = ["/usr/share/zoneinfo", - "/usr/lib/zoneinfo", - "/usr/share/lib/zoneinfo", - "/etc/zoneinfo"] -else: - TZFILES = [] - TZPATHS = [] - - -def __get_gettz(): - tzlocal_classes = (tzlocal,) - if tzwinlocal is not None: - tzlocal_classes += (tzwinlocal,) - - class GettzFunc(object): - """ - Retrieve a time zone object from a string representation - - This function is intended to retrieve the :py:class:`tzinfo` subclass - that best represents the time zone that would be used if a POSIX - `TZ variable`_ were set to the same value. - - If no argument or an empty string is passed to ``gettz``, local time - is returned: - - .. code-block:: python3 - - >>> gettz() - tzfile('/etc/localtime') - - This function is also the preferred way to map IANA tz database keys - to :class:`tzfile` objects: - - .. code-block:: python3 - - >>> gettz('Pacific/Kiritimati') - tzfile('/usr/share/zoneinfo/Pacific/Kiritimati') - - On Windows, the standard is extended to include the Windows-specific - zone names provided by the operating system: - - .. code-block:: python3 - - >>> gettz('Egypt Standard Time') - tzwin('Egypt Standard Time') - - Passing a GNU ``TZ`` style string time zone specification returns a - :class:`tzstr` object: - - .. code-block:: python3 - - >>> gettz('AEST-10AEDT-11,M10.1.0/2,M4.1.0/3') - tzstr('AEST-10AEDT-11,M10.1.0/2,M4.1.0/3') - - :param name: - A time zone name (IANA, or, on Windows, Windows keys), location of - a ``tzfile(5)`` zoneinfo file or ``TZ`` variable style time zone - specifier. An empty string, no argument or ``None`` is interpreted - as local time. - - :return: - Returns an instance of one of ``dateutil``'s :py:class:`tzinfo` - subclasses. - - .. versionchanged:: 2.7.0 - - After version 2.7.0, any two calls to ``gettz`` using the same - input strings will return the same object: - - .. code-block:: python3 - - >>> tz.gettz('America/Chicago') is tz.gettz('America/Chicago') - True - - In addition to improving performance, this ensures that - `"same zone" semantics`_ are used for datetimes in the same zone. - - - .. _`TZ variable`: - https://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html - - .. _`"same zone" semantics`: - https://blog.ganssle.io/articles/2018/02/aware-datetime-arithmetic.html - """ - def __init__(self): - - self.__instances = weakref.WeakValueDictionary() - self.__strong_cache_size = 8 - self.__strong_cache = OrderedDict() - self._cache_lock = _thread.allocate_lock() - - def __call__(self, name=None): - with self._cache_lock: - rv = self.__instances.get(name, None) - - if rv is None: - rv = self.nocache(name=name) - if not (name is None - or isinstance(rv, tzlocal_classes) - or rv is None): - # tzlocal is slightly more complicated than the other - # time zone providers because it depends on environment - # at construction time, so don't cache that. - # - # We also cannot store weak references to None, so we - # will also not store that. - self.__instances[name] = rv - else: - # No need for strong caching, return immediately - return rv - - self.__strong_cache[name] = self.__strong_cache.pop(name, rv) - - if len(self.__strong_cache) > self.__strong_cache_size: - self.__strong_cache.popitem(last=False) - - return rv - - def set_cache_size(self, size): - with self._cache_lock: - self.__strong_cache_size = size - while len(self.__strong_cache) > size: - self.__strong_cache.popitem(last=False) - - def cache_clear(self): - with self._cache_lock: - self.__instances = weakref.WeakValueDictionary() - self.__strong_cache.clear() - - @staticmethod - def nocache(name=None): - """A non-cached version of gettz""" - tz = None - if not name: - try: - name = os.environ["TZ"] - except KeyError: - pass - if name is None or name in ("", ":"): - for filepath in TZFILES: - if not os.path.isabs(filepath): - filename = filepath - for path in TZPATHS: - filepath = os.path.join(path, filename) - if os.path.isfile(filepath): - break - else: - continue - if os.path.isfile(filepath): - try: - tz = tzfile(filepath) - break - except (IOError, OSError, ValueError): - pass - else: - tz = tzlocal() - else: - try: - if name.startswith(":"): - name = name[1:] - except TypeError as e: - if isinstance(name, bytes): - new_msg = "gettz argument should be str, not bytes" - six.raise_from(TypeError(new_msg), e) - else: - raise - if os.path.isabs(name): - if os.path.isfile(name): - tz = tzfile(name) - else: - tz = None - else: - for path in TZPATHS: - filepath = os.path.join(path, name) - if not os.path.isfile(filepath): - filepath = filepath.replace(' ', '_') - if not os.path.isfile(filepath): - continue - try: - tz = tzfile(filepath) - break - except (IOError, OSError, ValueError): - pass - else: - tz = None - if tzwin is not None: - try: - tz = tzwin(name) - except (WindowsError, UnicodeEncodeError): - # UnicodeEncodeError is for Python 2.7 compat - tz = None - - if not tz: - from dateutil.zoneinfo import get_zonefile_instance - tz = get_zonefile_instance().get(name) - - if not tz: - for c in name: - # name is not a tzstr unless it has at least - # one offset. For short values of "name", an - # explicit for loop seems to be the fastest way - # To determine if a string contains a digit - if c in "0123456789": - try: - tz = tzstr(name) - except ValueError: - pass - break - else: - if name in ("GMT", "UTC"): - tz = UTC - elif name in time.tzname: - tz = tzlocal() - return tz - - return GettzFunc() - - -gettz = __get_gettz() -del __get_gettz - - -def datetime_exists(dt, tz=None): - """ - Given a datetime and a time zone, determine whether or not a given datetime - would fall in a gap. - - :param dt: - A :class:`datetime.datetime` (whose time zone will be ignored if ``tz`` - is provided.) - - :param tz: - A :class:`datetime.tzinfo` with support for the ``fold`` attribute. If - ``None`` or not provided, the datetime's own time zone will be used. - - :return: - Returns a boolean value whether or not the "wall time" exists in - ``tz``. - - .. versionadded:: 2.7.0 - """ - if tz is None: - if dt.tzinfo is None: - raise ValueError('Datetime is naive and no time zone provided.') - tz = dt.tzinfo - - dt = dt.replace(tzinfo=None) - - # This is essentially a test of whether or not the datetime can survive - # a round trip to UTC. - dt_rt = dt.replace(tzinfo=tz).astimezone(UTC).astimezone(tz) - dt_rt = dt_rt.replace(tzinfo=None) - - return dt == dt_rt - - -def datetime_ambiguous(dt, tz=None): - """ - Given a datetime and a time zone, determine whether or not a given datetime - is ambiguous (i.e if there are two times differentiated only by their DST - status). - - :param dt: - A :class:`datetime.datetime` (whose time zone will be ignored if ``tz`` - is provided.) - - :param tz: - A :class:`datetime.tzinfo` with support for the ``fold`` attribute. If - ``None`` or not provided, the datetime's own time zone will be used. - - :return: - Returns a boolean value whether or not the "wall time" is ambiguous in - ``tz``. - - .. versionadded:: 2.6.0 - """ - if tz is None: - if dt.tzinfo is None: - raise ValueError('Datetime is naive and no time zone provided.') - - tz = dt.tzinfo - - # If a time zone defines its own "is_ambiguous" function, we'll use that. - is_ambiguous_fn = getattr(tz, 'is_ambiguous', None) - if is_ambiguous_fn is not None: - try: - return tz.is_ambiguous(dt) - except Exception: - pass - - # If it doesn't come out and tell us it's ambiguous, we'll just check if - # the fold attribute has any effect on this particular date and time. - dt = dt.replace(tzinfo=tz) - wall_0 = enfold(dt, fold=0) - wall_1 = enfold(dt, fold=1) - - same_offset = wall_0.utcoffset() == wall_1.utcoffset() - same_dst = wall_0.dst() == wall_1.dst() - - return not (same_offset and same_dst) - - -def resolve_imaginary(dt): - """ - Given a datetime that may be imaginary, return an existing datetime. - - This function assumes that an imaginary datetime represents what the - wall time would be in a zone had the offset transition not occurred, so - it will always fall forward by the transition's change in offset. - - .. doctest:: - - >>> from dateutil import tz - >>> from datetime import datetime - >>> NYC = tz.gettz('America/New_York') - >>> print(tz.resolve_imaginary(datetime(2017, 3, 12, 2, 30, tzinfo=NYC))) - 2017-03-12 03:30:00-04:00 - - >>> KIR = tz.gettz('Pacific/Kiritimati') - >>> print(tz.resolve_imaginary(datetime(1995, 1, 1, 12, 30, tzinfo=KIR))) - 1995-01-02 12:30:00+14:00 - - As a note, :func:`datetime.astimezone` is guaranteed to produce a valid, - existing datetime, so a round-trip to and from UTC is sufficient to get - an extant datetime, however, this generally "falls back" to an earlier time - rather than falling forward to the STD side (though no guarantees are made - about this behavior). - - :param dt: - A :class:`datetime.datetime` which may or may not exist. - - :return: - Returns an existing :class:`datetime.datetime`. If ``dt`` was not - imaginary, the datetime returned is guaranteed to be the same object - passed to the function. - - .. versionadded:: 2.7.0 - """ - if dt.tzinfo is not None and not datetime_exists(dt): - - curr_offset = (dt + datetime.timedelta(hours=24)).utcoffset() - old_offset = (dt - datetime.timedelta(hours=24)).utcoffset() - - dt += curr_offset - old_offset - - return dt - - -def _datetime_to_timestamp(dt): - """ - Convert a :class:`datetime.datetime` object to an epoch timestamp in - seconds since January 1, 1970, ignoring the time zone. - """ - return (dt.replace(tzinfo=None) - EPOCH).total_seconds() - - -if sys.version_info >= (3, 6): - def _get_supported_offset(second_offset): - return second_offset -else: - def _get_supported_offset(second_offset): - # For python pre-3.6, round to full-minutes if that's not the case. - # Python's datetime doesn't accept sub-minute timezones. Check - # http://python.org/sf/1447945 or https://bugs.python.org/issue5288 - # for some information. - old_offset = second_offset - calculated_offset = 60 * ((second_offset + 30) // 60) - return calculated_offset - - -try: - # Python 3.7 feature - from contextlib import nullcontext as _nullcontext -except ImportError: - class _nullcontext(object): - """ - Class for wrapping contexts so that they are passed through in a - with statement. - """ - def __init__(self, context): - self.context = context - - def __enter__(self): - return self.context - - def __exit__(*args, **kwargs): - pass - -# vim:ts=4:sw=4:et diff --git a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/fontTools/merge/__main__.py b/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/fontTools/merge/__main__.py deleted file mode 100644 index ff632d49c54e678623a27998a9d51b7cf84df81f..0000000000000000000000000000000000000000 --- a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/fontTools/merge/__main__.py +++ /dev/null @@ -1,6 +0,0 @@ -import sys -from fontTools.merge import main - - -if __name__ == "__main__": - sys.exit(main()) diff --git a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/gradio/templates/cdn/assets/Example-abf8aa92.css b/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/gradio/templates/cdn/assets/Example-abf8aa92.css deleted file mode 100644 index cda34f5c27ad8cd5d0c5d4744147abaf3d7fdf78..0000000000000000000000000000000000000000 --- a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/gradio/templates/cdn/assets/Example-abf8aa92.css +++ /dev/null @@ -1 +0,0 @@ -@font-face{font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_AMS-Regular-0cdd387c.woff2) format("woff2"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_AMS-Regular-30da91e8.woff) format("woff"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_AMS-Regular-68534840.ttf) format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Caligraphic-Bold-de7701e4.woff2) format("woff2"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Caligraphic-Bold-1ae6bd74.woff) format("woff"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Caligraphic-Bold-07d8e303.ttf) format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Caligraphic-Regular-5d53e70a.woff2) format("woff2"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Caligraphic-Regular-3398dd02.woff) format("woff"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Caligraphic-Regular-ed0b7437.ttf) format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Fraktur-Bold-74444efd.woff2) format("woff2"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Fraktur-Bold-9be7ceb8.woff) format("woff"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Fraktur-Bold-9163df9c.ttf) format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Fraktur-Regular-51814d27.woff2) format("woff2"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Fraktur-Regular-5e28753b.woff) format("woff"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Fraktur-Regular-1e6f9579.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Main-Bold-0f60d1b8.woff2) format("woff2"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Main-Bold-c76c5d69.woff) format("woff"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Main-Bold-138ac28d.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Main-BoldItalic-99cd42a3.woff2) format("woff2"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Main-BoldItalic-a6f7ec0d.woff) format("woff"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Main-BoldItalic-70ee1f64.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Main-Italic-97479ca6.woff2) format("woff2"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Main-Italic-f1d6ef86.woff) format("woff"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Main-Italic-0d85ae7c.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Main-Regular-c2342cd8.woff2) format("woff2"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Main-Regular-c6368d87.woff) format("woff"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Main-Regular-d0332f52.ttf) format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Math-BoldItalic-dc47344d.woff2) format("woff2"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Math-BoldItalic-850c0af5.woff) format("woff"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Math-BoldItalic-f9377ab0.ttf) format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Math-Italic-7af58c5e.woff2) format("woff2"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Math-Italic-8a8d2445.woff) format("woff"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Math-Italic-08ce98e5.ttf) format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:normal;font-weight:700;src:url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_SansSerif-Bold-e99ae511.woff2) format("woff2"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_SansSerif-Bold-ece03cfd.woff) format("woff"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_SansSerif-Bold-1ece03f7.ttf) format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:italic;font-weight:400;src:url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_SansSerif-Italic-00b26ac8.woff2) format("woff2"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_SansSerif-Italic-91ee6750.woff) format("woff"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_SansSerif-Italic-3931dd81.ttf) format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:normal;font-weight:400;src:url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_SansSerif-Regular-68e8c73e.woff2) format("woff2"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_SansSerif-Regular-11e4dc8a.woff) format("woff"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_SansSerif-Regular-f36ea897.ttf) format("truetype")}@font-face{font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Script-Regular-036d4e95.woff2) format("woff2"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Script-Regular-d96cdf2b.woff) format("woff"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Script-Regular-1c67f068.ttf) format("truetype")}@font-face{font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Size1-Regular-6b47c401.woff2) format("woff2"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Size1-Regular-c943cc98.woff) format("woff"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Size1-Regular-95b6d2f1.ttf) format("truetype")}@font-face{font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Size2-Regular-d04c5421.woff2) format("woff2"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Size2-Regular-2014c523.woff) format("woff"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Size2-Regular-a6b2099f.ttf) format("truetype")}@font-face{font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA4oAA4AAAAAHbQAAA3TAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgRQIDgmcDBEICo1oijYBNgIkA14LMgAEIAWJAAeBHAyBHBvbGiMRdnO0IkRRkiYDgr9KsJ1NUAf2kILNxgUmgqIgq1P89vcbIcmsQbRps3vCcXdYOKSWEPEKgZgQkprQQsxIXUgq0DqpGKmIvrgkeVGtEQD9DzAO29fM9jYhxZEsL2FeURH2JN4MIcTdO049NCVdxQ/w9NrSYFEBKTDKpLKfNkCGDc1RwjZLQcm3vqJ2UW9Xfa3tgAHz6ivp6vgC2yD4/6352ndnN0X0TL7seypkjZlMsjmZnf0Mm5Q+JykRWQBKCVCVPbARPXWyQtb5VgLB6Biq7/Uixcj2WGqdI8tGSgkuRG+t910GKP2D7AQH0DB9FMDW/obJZ8giFI3Wg8Cvevz0M+5m0rTh7XDBlvo9Y4vm13EXmfttwI4mBo1EG15fxJhUiCLbiiyCf/ZA6MFAhg3pGIZGdGIVjtPn6UcMk9A/UUr9PhoNsCENw1APAq0gpH73e+M+0ueyHbabc3vkbcdtzcf/fiy+NxQEjf9ud/ELBHAXJ0nk4z+MXH2Ev/kWyV4k7SkvpPc9Qr38F6RPWnM9cN6DJ0AdD1BhtgABtmoRoFCvPsBAumNm6soZG2Gk5GyVTo2sJncSyp0jQTYoR6WDvTwaaEcHsxHfvuWhHA3a6bN7twRKtcGok6NsCi7jYRrM2jExsUFMxMQYuJbMhuWNOumEJy9hi29Dmg5zMp/A5+hhPG19j1vBrq8JTLr8ki5VLPmG/PynJHVul440bxg5xuymHUFPBshC+nA9I1FmwbRBTNHAcik3Oae0cxKoI3MOriM42UrPe51nsaGxJ+WfXubAsP84aabUlQSJ1IiE0iPETLUU4CATgfXSCSpuRFRmCGbO+wSpAnzaeaCYW1VNEysRtuXCEL1kUFUbbtMv3Tilt/1c11jt3Q5bbMa84cpWipp8Elw3MZhOHsOlwwVUQM3lAR35JiFQbaYCRnMF2lxAWoOg2gyoIV4PouX8HytNIfLhqpJtXB4vjiViUI8IJ7bkC4ikkQvKksnOTKICwnqWSZ9YS5f0WCxmpgjbIq7EJcM4aI2nmhLNY2JIUgOjXZFWBHb+x5oh6cwb0Tv1ackHdKi0I9OO2wE9aogIOn540CCCziyhN+IaejtgAONKznHlHyutPrHGwCx9S6B8kfS4Mfi4Eyv7OU730bT1SCBjt834cXsf43zVjPUqqJjgrjeGnBxSG4aYAKFuVbeCfkDIjAqMb6yLNIbCuvXhMH2/+k2vkNpkORhR59N1CkzoOENvneIosjYmuTxlhUzaGEJQ/iWqx4dmwpmKjrwTiTGTCVozNAYqk/zXOndWxuWSmJkQpJw3pK5KX6QrLt5LATMqpmPAQhkhK6PUjzHUn7E0gHE0kPE0iKkolgkUx9SZmVAdDgpffdyJKg3k7VmzYGCwVXGz/tXmkOIp+vcWs+EMuhhvN0h9uhfzWJziBQmCREGSIFmQIkgVpAnSBRmC//6hkLZwaVhwxlrJSOdqlFtOYxlau9F2QN5Y98xmIAsiM1HVp2VFX+DHHGg6Ecjh3vmqtidX3qHI2qycTk/iwxSt5UzTmEP92ZBnEWTk4Mx8Mpl78ZDokxg/KWb+Q0QkvdKVmq3TMW+RXEgrsziSAfNXFMhDc60N5N9jQzjfO0kBKpUZl0ZmwJ41j/B9Hz6wmRaJB84niNmQrzp9eSlQCDDzazGDdVi3P36VZQ+Jy4f9UBNp+3zTjqI4abaFAm+GShVaXlsGdF3FYzZcDI6cori4kMxUECl9IjJZpzkvitAoxKue+90pDMvcKRxLl53TmOKCmV/xRolNKSqqUxc6LStOETmFOiLZZptlZepcKiAzteG8PEdpnQpbOMNcMsR4RR2Bs0cKFEvSmIjAFcnarqwUL4lDhHmnVkwu1IwshbiCcgvOheZuYyOteufZZwlcTlLgnZ3o/WcYdzZHW/WGaqaVfmTZ1aWCceJjkbZqsfbkOtcFlUZM/jy+hXHDbaUobWqqXaeWobbLO99yG5N3U4wxco0rQGGcOLASFMXeJoham8M+/x6O2WywK2l4HGbq1CoUyC/IZikQhdq3SiuNrvAEj0AVu9x2x3lp/xWzahaxidezFVtdcb5uEnzyl0ZmYiuKI0exvCd4Xc9CV1KB0db00z92wDPde0kukbvZIWN6jUWFTmPIC/Y4UPCm8UfDTFZpZNon1qLFTkBhxzB+FjQRA2Q/YRJT8pQigslMaUpFyAG8TMlXigiqmAZX4xgijKjRlGpLE0GdplRfCaJo0JQaSxNBk6ZmMzcya0FmrcisDdn0Q3HI2sWSppYigmlM1XT/kLQZSNpMJG0WkjYbSZuDpM1F0uYhFc1HxU4m1QJjDK6iL0S5uSj5rgXc3RejEigtcRBtqYPQsiTskmO5vosV+q4VGIKbOkDg0jtRrq+Em1YloaTFar3EGr1EUC8R0kus1Uus00usL97ABr2BjXoDm/QGNhuWtMVBKOwg/i78lT7hBsAvDmwHc/ao3vmUbBmhjeYySZNWvGkfZAgISDSaDo1SVpzGDsAEkF8B+gEapViUoZgUWXcRIGFZNm6gWbAKk0bp0k1MHG9fLYtV4iS2SmLEQFARzRcnf9PUS0LVn05/J9MiRRBU3v2IrvW974v4N00L7ZMk0wXP1409CHo/an8zTRHD3eSJ6m8D4YMkZNl3M79sqeuAsr/m3f+8/yl7A50aiAEJgeBeMWzu7ui9UfUBCe2TIqZIoOd/3/udRBOQidQZUERzb2/VwZN1H/Sju82ew2H2Wfr6qvfVf3hqwDvAIpkQVFy4B9Pe9e4/XvPeceu7h3dvO56iJPf0+A6cqA2ip18ER+iFgggiuOkvj24bby0N9j2UHIkgqIt+sVgfodC4YghLSMjSZbH0VR/6dMDrYJeKHilKTemt6v6kvzvn3/RrdWtr0GoN/xL+Sex/cPYLUpepx9cz/D46UPU5KXgAQa+NDps1v6J3xP1i2HtaDB0M9aX2deA7SYff//+gUCovMmIK/qfsFcOk+4Y5ZN97XlG6zebqtMbKgeRFi51vnxTQYBUik2rS/Cn6PC8ADR8FGxsRPB82dzfND90gIcshOcYUkfjherBz53odpm6TP8txlwOZ71xmfHHOvq053qFF/MRlS3jP0ELudrf2OeN8DHvp6ZceLe8qKYvWz/7yp0u4dKPfli3CYq0O13Ih71mylJ80tOi10On8wi+F4+LWgDPeJ30msSQt9/vkmHq9/Lvo2b461mP801v3W4xTcs6CbvF9UDdrSt+A8OUbpSh55qAUFXWznBBfdeJ8a4d7ugT5tvxUza3h9m4H7ptTqiG4z0g5dc0X29OcGlhpGFMpQo9ytTS+NViZpNdvU4kWx+LKxNY10kQ1yqGXrhe4/1nvP7E+nd5A92TtaRplbHSqoIdOqtRWti+fkB5/n1+/VvCmz12pG1kpQWsfi1ftlBobm0bpngs16CHkbIwdLnParxtTV3QYRlfJ0KFskH7pdN/YDn+yRuSd7sNH3aO0DYPggk6uWuXrfOc+fa3VTxFVvKaNxHsiHmsXyCLIE5yuOeN3/Jdf8HBL/5M6shjyhxHx9BjB1O0+4NLOnjLLSxwO7ukN4jMbOIcD879KLSi6Pk61Oqm2377n8079PXEEQ7cy7OKEC9nbpet118fxweTafpt69x/Bt8UqGzNQt7aelpc44dn5cqhwf71+qKp/Zf/+a0zcizOUWpl/iBcSXip0pplkatCchoH5c5aUM8I7/dWxAej8WicPL1URFZ9BDJelUwEwTkGqUhgSlydVes95YdXvhh9Gfz/aeFWvgVb4tuLbcv4+wLdutVZv/cUonwBD/6eDlE0aSiKK/uoH3+J1wDE/jMVqY2ysGufN84oIXB0sPzy8ollX/LegY74DgJXJR57sn+VGza0x3DnuIgABFM15LmajjjsNlYj+JEZGbuRYcAMOWxFkPN2w6Wd46xo4gVWQR/X4lyI/R6K/YK0110GzudPRW7Y+UOBGTfNNzHeYT0fiH0taunBpq9HEW8OKSaBGj21L0MqenEmNRWBAWDWAk4CpNoEZJ2tTaPFgbQYj8HxtFilErs3BTRwT8uO1NXQaWfIotchmPkAF5mMBAliEmZiOGVgCG9LgRzpscMAOOwowlT3JhusdazXGSC/hxR3UlmWVwWHpOIKheqONvjyhSiTHIkVUco5bnji8m//zL7PKaT1Vl5I6UE609f+gkr6MZKVyKc7zJRmCahLsdlyA5fdQkRSan9LgnnLEyGSkaKJCJog0wAgvepWBt80+1yKln1bMVtCljfNWDueKLsWwaEbBSfSPTEmVRsUcYYMnEjcjeyCZzBXK9E9BYBXLKjOSpUDR+nEV3TFSUdQaz+ot98QxgXwx0GQ+EEUAKB2qZPkQQ0GqFD8UPFMqyaCHM24BZmSGic9EYMagKizOw9Hz50DMrDLrqqLkTAhplMictiCAx5S3BIUQdeJeLnBy2CNtMfz6cV4u8XKoFZQesbf9YZiIERiHjaNodDW6LgcirX/mPnJIkBGDUpTBhSa0EIr38D5hCIszhCM8URGBqImoWjpvpt1ebu/v3Gl3qJfMnNM+9V+kiRFyROTPHQWOcs1dNW94/ukKMPZBvDi55i5CttdeJz84DLngLqjcdwEZ87bFFR8CIG35OAkDVN6VRDZ7aq67NteYqZ2lpT8oYB2CytoBd6VuAx4WgiAsnuj3WohG+LugzXiQRDeM3XYXlULv4dp5VFYC) format("woff2"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Size3-Regular-6ab6b62e.woff) format("woff"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Size3-Regular-500e04d5.ttf) format("truetype")}@font-face{font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Size4-Regular-a4af7d41.woff2) format("woff2"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Size4-Regular-99f9c675.woff) format("woff"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Size4-Regular-c647367d.ttf) format("truetype")}@font-face{font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Typewriter-Regular-71d517d6.woff2) format("woff2"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Typewriter-Regular-e14fed02.woff) format("woff"),url(https://gradio.s3-us-west-2.amazonaws.com/4.0.2/assets/KaTeX_Typewriter-Regular-f01f3e87.ttf) format("truetype")}.gradio-container-4-0-2 .katex{text-rendering:auto;font: 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;text-indent:0}.gradio-container-4-0-2 .katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.gradio-container-4-0-2 .katex .katex-version:after{content:"0.16.7"}.gradio-container-4-0-2 .katex .katex-mathml{clip:rect(1px,1px,1px,1px);border:0;height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.gradio-container-4-0-2 .katex .katex-html>.newline{display:block}.gradio-container-4-0-2 .katex .base{position:relative;white-space:nowrap;width:-webkit-min-content;width:-moz-min-content;width:min-content}.gradio-container-4-0-2 .katex .base,.gradio-container-4-0-2 .katex .strut{display:inline-block}.gradio-container-4-0-2 .katex .textbf{font-weight:700}.gradio-container-4-0-2 .katex .textit{font-style:italic}.gradio-container-4-0-2 .katex .textrm{font-family:KaTeX_Main}.gradio-container-4-0-2 .katex .textsf{font-family:KaTeX_SansSerif}.gradio-container-4-0-2 .katex .texttt{font-family:KaTeX_Typewriter}.gradio-container-4-0-2 .katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.gradio-container-4-0-2 .katex .mathit{font-family:KaTeX_Main;font-style:italic}.gradio-container-4-0-2 .katex .mathrm{font-style:normal}.gradio-container-4-0-2 .katex .mathbf{font-family:KaTeX_Main;font-weight:700}.gradio-container-4-0-2 .katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.gradio-container-4-0-2 .katex .amsrm,.gradio-container-4-0-2 .katex .mathbb,.gradio-container-4-0-2 .katex .textbb{font-family:KaTeX_AMS}.gradio-container-4-0-2 .katex .mathcal{font-family:KaTeX_Caligraphic}.gradio-container-4-0-2 .katex .mathfrak,.gradio-container-4-0-2 .katex .textfrak{font-family:KaTeX_Fraktur}.gradio-container-4-0-2 .katex .mathtt{font-family:KaTeX_Typewriter}.gradio-container-4-0-2 .katex .mathscr,.gradio-container-4-0-2 .katex .textscr{font-family:KaTeX_Script}.gradio-container-4-0-2 .katex .mathsf,.gradio-container-4-0-2 .katex .textsf{font-family:KaTeX_SansSerif}.gradio-container-4-0-2 .katex .mathboldsf,.gradio-container-4-0-2 .katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.gradio-container-4-0-2 .katex .mathitsf,.gradio-container-4-0-2 .katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.gradio-container-4-0-2 .katex .mainrm{font-family:KaTeX_Main;font-style:normal}.gradio-container-4-0-2 .katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.gradio-container-4-0-2 .katex .vlist-r{display:table-row}.gradio-container-4-0-2 .katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.gradio-container-4-0-2 .katex .vlist>span{display:block;height:0;position:relative}.gradio-container-4-0-2 .katex .vlist>span>span{display:inline-block}.gradio-container-4-0-2 .katex .vlist>span>.pstrut{overflow:hidden;width:0}.gradio-container-4-0-2 .katex .vlist-t2{margin-right:-2px}.gradio-container-4-0-2 .katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.gradio-container-4-0-2 .katex .vbox{align-items:baseline;display:inline-flex;flex-direction:column}.gradio-container-4-0-2 .katex .hbox{width:100%}.gradio-container-4-0-2 .katex .hbox,.gradio-container-4-0-2 .katex .thinbox{display:inline-flex;flex-direction:row}.gradio-container-4-0-2 .katex .thinbox{max-width:0;width:0}.gradio-container-4-0-2 .katex .msupsub{text-align:left}.gradio-container-4-0-2 .katex .mfrac>span>span{text-align:center}.gradio-container-4-0-2 .katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.gradio-container-4-0-2 .katex .hdashline,.gradio-container-4-0-2 .katex .hline,.gradio-container-4-0-2 .katex .mfrac .frac-line,.gradio-container-4-0-2 .katex .overline .overline-line,.gradio-container-4-0-2 .katex .rule,.gradio-container-4-0-2 .katex .underline .underline-line{min-height:1px}.gradio-container-4-0-2 .katex .mspace{display:inline-block}.gradio-container-4-0-2 .katex .clap,.gradio-container-4-0-2 .katex .llap,.gradio-container-4-0-2 .katex .rlap{position:relative;width:0}.gradio-container-4-0-2 .katex .clap>.inner,.gradio-container-4-0-2 .katex .llap>.inner,.gradio-container-4-0-2 .katex .rlap>.inner{position:absolute}.gradio-container-4-0-2 .katex .clap>.fix,.gradio-container-4-0-2 .katex .llap>.fix,.gradio-container-4-0-2 .katex .rlap>.fix{display:inline-block}.gradio-container-4-0-2 .katex .llap>.inner{right:0}.gradio-container-4-0-2 .katex .clap>.inner,.gradio-container-4-0-2 .katex .rlap>.inner{left:0}.gradio-container-4-0-2 .katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.gradio-container-4-0-2 .katex .rule{border:0 solid;display:inline-block;position:relative}.gradio-container-4-0-2 .katex .hline,.gradio-container-4-0-2 .katex .overline .overline-line,.gradio-container-4-0-2 .katex .underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.gradio-container-4-0-2 .katex .hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.gradio-container-4-0-2 .katex .sqrt>.root{margin-left:.27777778em;margin-right:-.55555556em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size1.size1,.gradio-container-4-0-2 .katex .sizing.reset-size1.size1{font-size:1em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size1.size2,.gradio-container-4-0-2 .katex .sizing.reset-size1.size2{font-size:1.2em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size1.size3,.gradio-container-4-0-2 .katex .sizing.reset-size1.size3{font-size:1.4em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size1.size4,.gradio-container-4-0-2 .katex .sizing.reset-size1.size4{font-size:1.6em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size1.size5,.gradio-container-4-0-2 .katex .sizing.reset-size1.size5{font-size:1.8em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size1.size6,.gradio-container-4-0-2 .katex .sizing.reset-size1.size6{font-size:2em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size1.size7,.gradio-container-4-0-2 .katex .sizing.reset-size1.size7{font-size:2.4em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size1.size8,.gradio-container-4-0-2 .katex .sizing.reset-size1.size8{font-size:2.88em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size1.size9,.gradio-container-4-0-2 .katex .sizing.reset-size1.size9{font-size:3.456em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size1.size10,.gradio-container-4-0-2 .katex .sizing.reset-size1.size10{font-size:4.148em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size1.size11,.gradio-container-4-0-2 .katex .sizing.reset-size1.size11{font-size:4.976em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size2.size1,.gradio-container-4-0-2 .katex .sizing.reset-size2.size1{font-size:.83333333em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size2.size2,.gradio-container-4-0-2 .katex .sizing.reset-size2.size2{font-size:1em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size2.size3,.gradio-container-4-0-2 .katex .sizing.reset-size2.size3{font-size:1.16666667em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size2.size4,.gradio-container-4-0-2 .katex .sizing.reset-size2.size4{font-size:1.33333333em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size2.size5,.gradio-container-4-0-2 .katex .sizing.reset-size2.size5{font-size:1.5em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size2.size6,.gradio-container-4-0-2 .katex .sizing.reset-size2.size6{font-size:1.66666667em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size2.size7,.gradio-container-4-0-2 .katex .sizing.reset-size2.size7{font-size:2em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size2.size8,.gradio-container-4-0-2 .katex .sizing.reset-size2.size8{font-size:2.4em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size2.size9,.gradio-container-4-0-2 .katex .sizing.reset-size2.size9{font-size:2.88em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size2.size10,.gradio-container-4-0-2 .katex .sizing.reset-size2.size10{font-size:3.45666667em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size2.size11,.gradio-container-4-0-2 .katex .sizing.reset-size2.size11{font-size:4.14666667em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size3.size1,.gradio-container-4-0-2 .katex .sizing.reset-size3.size1{font-size:.71428571em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size3.size2,.gradio-container-4-0-2 .katex .sizing.reset-size3.size2{font-size:.85714286em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size3.size3,.gradio-container-4-0-2 .katex .sizing.reset-size3.size3{font-size:1em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size3.size4,.gradio-container-4-0-2 .katex .sizing.reset-size3.size4{font-size:1.14285714em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size3.size5,.gradio-container-4-0-2 .katex .sizing.reset-size3.size5{font-size:1.28571429em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size3.size6,.gradio-container-4-0-2 .katex .sizing.reset-size3.size6{font-size:1.42857143em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size3.size7,.gradio-container-4-0-2 .katex .sizing.reset-size3.size7{font-size:1.71428571em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size3.size8,.gradio-container-4-0-2 .katex .sizing.reset-size3.size8{font-size:2.05714286em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size3.size9,.gradio-container-4-0-2 .katex .sizing.reset-size3.size9{font-size:2.46857143em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size3.size10,.gradio-container-4-0-2 .katex .sizing.reset-size3.size10{font-size:2.96285714em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size3.size11,.gradio-container-4-0-2 .katex .sizing.reset-size3.size11{font-size:3.55428571em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size4.size1,.gradio-container-4-0-2 .katex .sizing.reset-size4.size1{font-size:.625em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size4.size2,.gradio-container-4-0-2 .katex .sizing.reset-size4.size2{font-size:.75em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size4.size3,.gradio-container-4-0-2 .katex .sizing.reset-size4.size3{font-size:.875em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size4.size4,.gradio-container-4-0-2 .katex .sizing.reset-size4.size4{font-size:1em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size4.size5,.gradio-container-4-0-2 .katex .sizing.reset-size4.size5{font-size:1.125em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size4.size6,.gradio-container-4-0-2 .katex .sizing.reset-size4.size6{font-size:1.25em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size4.size7,.gradio-container-4-0-2 .katex .sizing.reset-size4.size7{font-size:1.5em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size4.size8,.gradio-container-4-0-2 .katex .sizing.reset-size4.size8{font-size:1.8em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size4.size9,.gradio-container-4-0-2 .katex .sizing.reset-size4.size9{font-size:2.16em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size4.size10,.gradio-container-4-0-2 .katex .sizing.reset-size4.size10{font-size:2.5925em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size4.size11,.gradio-container-4-0-2 .katex .sizing.reset-size4.size11{font-size:3.11em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size5.size1,.gradio-container-4-0-2 .katex .sizing.reset-size5.size1{font-size:.55555556em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size5.size2,.gradio-container-4-0-2 .katex .sizing.reset-size5.size2{font-size:.66666667em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size5.size3,.gradio-container-4-0-2 .katex .sizing.reset-size5.size3{font-size:.77777778em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size5.size4,.gradio-container-4-0-2 .katex .sizing.reset-size5.size4{font-size:.88888889em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size5.size5,.gradio-container-4-0-2 .katex .sizing.reset-size5.size5{font-size:1em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size5.size6,.gradio-container-4-0-2 .katex .sizing.reset-size5.size6{font-size:1.11111111em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size5.size7,.gradio-container-4-0-2 .katex .sizing.reset-size5.size7{font-size:1.33333333em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size5.size8,.gradio-container-4-0-2 .katex .sizing.reset-size5.size8{font-size:1.6em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size5.size9,.gradio-container-4-0-2 .katex .sizing.reset-size5.size9{font-size:1.92em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size5.size10,.gradio-container-4-0-2 .katex .sizing.reset-size5.size10{font-size:2.30444444em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size5.size11,.gradio-container-4-0-2 .katex .sizing.reset-size5.size11{font-size:2.76444444em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size6.size1,.gradio-container-4-0-2 .katex .sizing.reset-size6.size1{font-size:.5em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size6.size2,.gradio-container-4-0-2 .katex .sizing.reset-size6.size2{font-size:.6em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size6.size3,.gradio-container-4-0-2 .katex .sizing.reset-size6.size3{font-size:.7em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size6.size4,.gradio-container-4-0-2 .katex .sizing.reset-size6.size4{font-size:.8em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size6.size5,.gradio-container-4-0-2 .katex .sizing.reset-size6.size5{font-size:.9em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size6.size6,.gradio-container-4-0-2 .katex .sizing.reset-size6.size6{font-size:1em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size6.size7,.gradio-container-4-0-2 .katex .sizing.reset-size6.size7{font-size:1.2em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size6.size8,.gradio-container-4-0-2 .katex .sizing.reset-size6.size8{font-size:1.44em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size6.size9,.gradio-container-4-0-2 .katex .sizing.reset-size6.size9{font-size:1.728em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size6.size10,.gradio-container-4-0-2 .katex .sizing.reset-size6.size10{font-size:2.074em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size6.size11,.gradio-container-4-0-2 .katex .sizing.reset-size6.size11{font-size:2.488em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size7.size1,.gradio-container-4-0-2 .katex .sizing.reset-size7.size1{font-size:.41666667em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size7.size2,.gradio-container-4-0-2 .katex .sizing.reset-size7.size2{font-size:.5em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size7.size3,.gradio-container-4-0-2 .katex .sizing.reset-size7.size3{font-size:.58333333em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size7.size4,.gradio-container-4-0-2 .katex .sizing.reset-size7.size4{font-size:.66666667em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size7.size5,.gradio-container-4-0-2 .katex .sizing.reset-size7.size5{font-size:.75em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size7.size6,.gradio-container-4-0-2 .katex .sizing.reset-size7.size6{font-size:.83333333em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size7.size7,.gradio-container-4-0-2 .katex .sizing.reset-size7.size7{font-size:1em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size7.size8,.gradio-container-4-0-2 .katex .sizing.reset-size7.size8{font-size:1.2em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size7.size9,.gradio-container-4-0-2 .katex .sizing.reset-size7.size9{font-size:1.44em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size7.size10,.gradio-container-4-0-2 .katex .sizing.reset-size7.size10{font-size:1.72833333em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size7.size11,.gradio-container-4-0-2 .katex .sizing.reset-size7.size11{font-size:2.07333333em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size8.size1,.gradio-container-4-0-2 .katex .sizing.reset-size8.size1{font-size:.34722222em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size8.size2,.gradio-container-4-0-2 .katex .sizing.reset-size8.size2{font-size:.41666667em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size8.size3,.gradio-container-4-0-2 .katex .sizing.reset-size8.size3{font-size:.48611111em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size8.size4,.gradio-container-4-0-2 .katex .sizing.reset-size8.size4{font-size:.55555556em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size8.size5,.gradio-container-4-0-2 .katex .sizing.reset-size8.size5{font-size:.625em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size8.size6,.gradio-container-4-0-2 .katex .sizing.reset-size8.size6{font-size:.69444444em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size8.size7,.gradio-container-4-0-2 .katex .sizing.reset-size8.size7{font-size:.83333333em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size8.size8,.gradio-container-4-0-2 .katex .sizing.reset-size8.size8{font-size:1em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size8.size9,.gradio-container-4-0-2 .katex .sizing.reset-size8.size9{font-size:1.2em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size8.size10,.gradio-container-4-0-2 .katex .sizing.reset-size8.size10{font-size:1.44027778em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size8.size11,.gradio-container-4-0-2 .katex .sizing.reset-size8.size11{font-size:1.72777778em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size9.size1,.gradio-container-4-0-2 .katex .sizing.reset-size9.size1{font-size:.28935185em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size9.size2,.gradio-container-4-0-2 .katex .sizing.reset-size9.size2{font-size:.34722222em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size9.size3,.gradio-container-4-0-2 .katex .sizing.reset-size9.size3{font-size:.40509259em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size9.size4,.gradio-container-4-0-2 .katex .sizing.reset-size9.size4{font-size:.46296296em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size9.size5,.gradio-container-4-0-2 .katex .sizing.reset-size9.size5{font-size:.52083333em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size9.size6,.gradio-container-4-0-2 .katex .sizing.reset-size9.size6{font-size:.5787037em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size9.size7,.gradio-container-4-0-2 .katex .sizing.reset-size9.size7{font-size:.69444444em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size9.size8,.gradio-container-4-0-2 .katex .sizing.reset-size9.size8{font-size:.83333333em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size9.size9,.gradio-container-4-0-2 .katex .sizing.reset-size9.size9{font-size:1em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size9.size10,.gradio-container-4-0-2 .katex .sizing.reset-size9.size10{font-size:1.20023148em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size9.size11,.gradio-container-4-0-2 .katex .sizing.reset-size9.size11{font-size:1.43981481em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size10.size1,.gradio-container-4-0-2 .katex .sizing.reset-size10.size1{font-size:.24108004em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size10.size2,.gradio-container-4-0-2 .katex .sizing.reset-size10.size2{font-size:.28929605em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size10.size3,.gradio-container-4-0-2 .katex .sizing.reset-size10.size3{font-size:.33751205em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size10.size4,.gradio-container-4-0-2 .katex .sizing.reset-size10.size4{font-size:.38572806em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size10.size5,.gradio-container-4-0-2 .katex .sizing.reset-size10.size5{font-size:.43394407em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size10.size6,.gradio-container-4-0-2 .katex .sizing.reset-size10.size6{font-size:.48216008em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size10.size7,.gradio-container-4-0-2 .katex .sizing.reset-size10.size7{font-size:.57859209em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size10.size8,.gradio-container-4-0-2 .katex .sizing.reset-size10.size8{font-size:.69431051em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size10.size9,.gradio-container-4-0-2 .katex .sizing.reset-size10.size9{font-size:.83317261em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size10.size10,.gradio-container-4-0-2 .katex .sizing.reset-size10.size10{font-size:1em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size10.size11,.gradio-container-4-0-2 .katex .sizing.reset-size10.size11{font-size:1.19961427em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size11.size1,.gradio-container-4-0-2 .katex .sizing.reset-size11.size1{font-size:.20096463em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size11.size2,.gradio-container-4-0-2 .katex .sizing.reset-size11.size2{font-size:.24115756em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size11.size3,.gradio-container-4-0-2 .katex .sizing.reset-size11.size3{font-size:.28135048em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size11.size4,.gradio-container-4-0-2 .katex .sizing.reset-size11.size4{font-size:.32154341em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size11.size5,.gradio-container-4-0-2 .katex .sizing.reset-size11.size5{font-size:.36173633em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size11.size6,.gradio-container-4-0-2 .katex .sizing.reset-size11.size6{font-size:.40192926em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size11.size7,.gradio-container-4-0-2 .katex .sizing.reset-size11.size7{font-size:.48231511em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size11.size8,.gradio-container-4-0-2 .katex .sizing.reset-size11.size8{font-size:.57877814em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size11.size9,.gradio-container-4-0-2 .katex .sizing.reset-size11.size9{font-size:.69453376em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size11.size10,.gradio-container-4-0-2 .katex .sizing.reset-size11.size10{font-size:.83360129em}.gradio-container-4-0-2 .katex .fontsize-ensurer.reset-size11.size11,.gradio-container-4-0-2 .katex .sizing.reset-size11.size11{font-size:1em}.gradio-container-4-0-2 .katex .delimsizing.size1{font-family:KaTeX_Size1}.gradio-container-4-0-2 .katex .delimsizing.size2{font-family:KaTeX_Size2}.gradio-container-4-0-2 .katex .delimsizing.size3{font-family:KaTeX_Size3}.gradio-container-4-0-2 .katex .delimsizing.size4{font-family:KaTeX_Size4}.gradio-container-4-0-2 .katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.gradio-container-4-0-2 .katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.gradio-container-4-0-2 .katex .nulldelimiter{display:inline-block;width:.12em}.gradio-container-4-0-2 .katex .delimcenter,.gradio-container-4-0-2 .katex .op-symbol{position:relative}.gradio-container-4-0-2 .katex .op-symbol.small-op{font-family:KaTeX_Size1}.gradio-container-4-0-2 .katex .op-symbol.large-op{font-family:KaTeX_Size2}.gradio-container-4-0-2 .katex .accent>.vlist-t,.gradio-container-4-0-2 .katex .op-limits>.vlist-t{text-align:center}.gradio-container-4-0-2 .katex .accent .accent-body{position:relative}.gradio-container-4-0-2 .katex .accent .accent-body:not(.accent-full){width:0}.gradio-container-4-0-2 .katex .overlay{display:block}.gradio-container-4-0-2 .katex .mtable .vertical-separator{display:inline-block;min-width:1px}.gradio-container-4-0-2 .katex .mtable .arraycolsep{display:inline-block}.gradio-container-4-0-2 .katex .mtable .col-align-c>.vlist-t{text-align:center}.gradio-container-4-0-2 .katex .mtable .col-align-l>.vlist-t{text-align:left}.gradio-container-4-0-2 .katex .mtable .col-align-r>.vlist-t{text-align:right}.gradio-container-4-0-2 .katex .svg-align{text-align:left}.gradio-container-4-0-2 .katex svg{fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:block;height:inherit;position:absolute;width:100%}.gradio-container-4-0-2 .katex svg path{stroke:none}.gradio-container-4-0-2 .katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.gradio-container-4-0-2 .katex .stretchy{display:block;overflow:hidden;position:relative;width:100%}.gradio-container-4-0-2 .katex .stretchy:after,.gradio-container-4-0-2 .katex .stretchy:before{content:""}.gradio-container-4-0-2 .katex .hide-tail{overflow:hidden;position:relative;width:100%}.gradio-container-4-0-2 .katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.gradio-container-4-0-2 .katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.gradio-container-4-0-2 .katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.gradio-container-4-0-2 .katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.gradio-container-4-0-2 .katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.gradio-container-4-0-2 .katex .x-arrow-pad{padding:0 .5em}.gradio-container-4-0-2 .katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.gradio-container-4-0-2 .katex .mover,.gradio-container-4-0-2 .katex .munder,.gradio-container-4-0-2 .katex .x-arrow{text-align:center}.gradio-container-4-0-2 .katex .boxpad{padding:0 .3em}.gradio-container-4-0-2 .katex .fbox,.gradio-container-4-0-2 .katex .fcolorbox{border:.04em solid;box-sizing:border-box}.gradio-container-4-0-2 .katex .cancel-pad{padding:0 .2em}.gradio-container-4-0-2 .katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.gradio-container-4-0-2 .katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.gradio-container-4-0-2 .katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.gradio-container-4-0-2 .katex .anglpad{padding:0 .03889em}.gradio-container-4-0-2 .katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.gradio-container-4-0-2 .katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.gradio-container-4-0-2 .katex .mtr-glue{width:50%}.gradio-container-4-0-2 .katex .cd-vert-arrow{display:inline-block;position:relative}.gradio-container-4-0-2 .katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.gradio-container-4-0-2 .katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.gradio-container-4-0-2 .katex-display{display:block;margin:1em 0;text-align:center}.gradio-container-4-0-2 .katex-display>.katex{display:block;text-align:center;white-space:nowrap}.gradio-container-4-0-2 .katex-display>.katex>.katex-html{display:block;position:relative}.gradio-container-4-0-2 .katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.gradio-container-4-0-2 .katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.gradio-container-4-0-2 .katex-display.fleqn>.katex{padding-left:2em;text-align:left}.gradio-container-4-0-2 body{counter-reset:katexEqnNo mmlEqnNo}.gradio-container-4-0-2 Tables */ table,.gradio-container-4-0-2 tr,.gradio-container-4-0-2 td,.gradio-container-4-0-2 th{margin-top:var(--spacing-sm);margin-bottom:var(--spacing-sm);padding:var(--spacing-xl)}.gradio-container-4-0-2 .md code,.gradio-container-4-0-2 .md pre{background:none;font-family:var(--font-mono);font-size:var(--text-sm);text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;tab-size:2;hyphens:none}.gradio-container-4-0-2 .md pre[class*=language-]::selection,.gradio-container-4-0-2 .md pre[class*=language-] ::selection,.gradio-container-4-0-2 .md code[class*=language-]::selection,.gradio-container-4-0-2 .md code[class*=language-] ::selection{text-shadow:none;background:#b3d4fc}.gradio-container-4-0-2 .md pre{padding:1em;margin:.5em 0;overflow:auto;position:relative;margin-top:var(--spacing-sm);margin-bottom:var(--spacing-sm);box-shadow:none;border:none;border-radius:var(--radius-md);background:var(--code-background-fill);padding:var(--spacing-lg) var(--spacing-xl);font-family:var(--font-mono);text-shadow:none;border-radius:var(--radius-sm);white-space:nowrap;display:block;white-space:pre}.gradio-container-4-0-2 .md :not(pre)>code{padding:.1em;border-radius:var(--radius-xs);white-space:normal;background:var(--code-background-fill);border:1px solid var(--panel-border-color);padding:var(--spacing-xxs) var(--spacing-xs)}.gradio-container-4-0-2 .md .token.comment,.gradio-container-4-0-2 .md .token.prolog,.gradio-container-4-0-2 .md .token.doctype,.gradio-container-4-0-2 .md .token.cdata{color:#708090}.gradio-container-4-0-2 .md .token.punctuation{color:#999}.gradio-container-4-0-2 .md .token.namespace{opacity:.7}.gradio-container-4-0-2 .md .token.property,.gradio-container-4-0-2 .md .token.tag,.gradio-container-4-0-2 .md .token.boolean,.gradio-container-4-0-2 .md .token.number,.gradio-container-4-0-2 .md .token.constant,.gradio-container-4-0-2 .md .token.symbol,.gradio-container-4-0-2 .md .token.deleted{color:#905}.gradio-container-4-0-2 .md .token.selector,.gradio-container-4-0-2 .md .token.attr-name,.gradio-container-4-0-2 .md .token.string,.gradio-container-4-0-2 .md .token.char,.gradio-container-4-0-2 .md .token.builtin,.gradio-container-4-0-2 .md .token.inserted{color:#690}.gradio-container-4-0-2 .md .token.atrule,.gradio-container-4-0-2 .md .token.attr-value,.gradio-container-4-0-2 .md .token.keyword{color:#07a}.gradio-container-4-0-2 .md .token.function,.gradio-container-4-0-2 .md .token.class-name{color:#dd4a68}.gradio-container-4-0-2 .md .token.regex,.gradio-container-4-0-2 .md .token.important,.gradio-container-4-0-2 .md .token.variable{color:#e90}.gradio-container-4-0-2 .md .token.important,.gradio-container-4-0-2 .md .token.bold{font-weight:700}.gradio-container-4-0-2 .md .token.italic{font-style:italic}.gradio-container-4-0-2 .md .token.entity{cursor:help}.dark .md .token.comment,.dark .md .token.prolog,.dark .md .token.cdata{color:#5c6370}.dark .md .token.doctype,.dark .md .token.punctuation,.dark .md .token.entity{color:#abb2bf}.dark .md .token.attr-name,.dark .md .token.class-name,.dark .md .token.boolean,.dark .md .token.constant,.dark .md .token.number,.dark .md .token.atrule{color:#d19a66}.dark .md .token.keyword{color:#c678dd}.dark .md .token.property,.dark .md .token.tag,.dark .md .token.symbol,.dark .md .token.deleted,.dark .md .token.important{color:#e06c75}.dark .md .token.selector,.dark .md .token.string,.dark .md .token.char,.dark .md .token.builtin,.dark .md .token.inserted,.dark .md .token.regex,.dark .md .token.attr-value,.dark .md .token.attr-value>.token.punctuation{color:#98c379}.dark .md .token.variable,.dark .md .token.operator,.dark .md .token.function{color:#61afef}.dark .md .token.url{color:#56b6c2}span.svelte-r3x3aw div[class*=code_wrap]{position:relative}span.svelte-r3x3aw span.katex{font-size:var(--text-lg);direction:ltr}span.svelte-r3x3aw div[class*=code_wrap]>button{position:absolute;top:var(--spacing-sm);right:var(--spacing-sm);z-index:1;cursor:pointer;border-bottom-left-radius:var(--radius-sm);padding:5px;padding:var(--spacing-md);width:25px;height:25px}span.svelte-r3x3aw code>button>span{position:absolute;top:var(--spacing-sm);right:var(--spacing-sm);width:12px;height:12px}span.svelte-r3x3aw .check{position:absolute;top:0;right:0;opacity:0;z-index:var(--layer-top);transition:opacity .2s;background:var(--background-fill-primary);padding:var(--size-1);width:100%;height:100%;color:var(--body-text-color)}span.svelte-r3x3aw pre{position:relative}span.svelte-r3x3aw:not(.chatbot) ul{list-style-position:inside}span.svelte-r3x3aw:not(.chatbot) ol{list-style-position:inside}span.svelte-r3x3aw p:not(:first-child){margin-top:var(--spacing-xxl)}.gallery.svelte-1ayixqk{padding:var(--size-1) var(--size-2)} diff --git a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/gradio/templates/frontend/assets/BlockTitle-7572070c.js b/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/gradio/templates/frontend/assets/BlockTitle-7572070c.js deleted file mode 100644 index d79628ae212a1d90737f01d36e1f11511f64f483..0000000000000000000000000000000000000000 --- a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/gradio/templates/frontend/assets/BlockTitle-7572070c.js +++ /dev/null @@ -1,2 +0,0 @@ -import{I as h}from"./Info-ba93744d.js";import"./Button-8eeccca1.js";const{SvelteComponent:g,attr:d,check_outros:k,create_component:w,create_slot:$,destroy_component:B,detach:c,element:I,empty:j,get_all_dirty_from_scope:q,get_slot_changes:v,group_outros:C,init:N,insert:m,mount_component:S,safe_not_equal:T,set_data:z,space:A,text:D,toggle_class:u,transition_in:r,transition_out:p,update_slot_base:E}=window.__gradio__svelte__internal;function b(f){let e,o;return e=new h({props:{$$slots:{default:[F]},$$scope:{ctx:f}}}),{c(){w(e.$$.fragment)},m(l,s){S(e,l,s),o=!0},p(l,s){const a={};s&10&&(a.$$scope={dirty:s,ctx:l}),e.$set(a)},i(l){o||(r(e.$$.fragment,l),o=!0)},o(l){p(e.$$.fragment,l),o=!1},d(l){B(e,l)}}}function F(f){let e;return{c(){e=D(f[1])},m(o,l){m(o,e,l)},p(o,l){l&2&&z(e,o[1])},d(o){o&&c(e)}}}function G(f){let e,o,l,s;const a=f[2].default,i=$(a,f,f[3],null);let t=f[1]&&b(f);return{c(){e=I("span"),i&&i.c(),o=A(),t&&t.c(),l=j(),d(e,"data-testid","block-info"),d(e,"class","svelte-1gfkn6j"),u(e,"sr-only",!f[0]),u(e,"hide",!f[0]),u(e,"has-info",f[1]!=null)},m(n,_){m(n,e,_),i&&i.m(e,null),m(n,o,_),t&&t.m(n,_),m(n,l,_),s=!0},p(n,[_]){i&&i.p&&(!s||_&8)&&E(i,a,n,n[3],s?v(a,n[3],_,null):q(n[3]),null),(!s||_&1)&&u(e,"sr-only",!n[0]),(!s||_&1)&&u(e,"hide",!n[0]),(!s||_&2)&&u(e,"has-info",n[1]!=null),n[1]?t?(t.p(n,_),_&2&&r(t,1)):(t=b(n),t.c(),r(t,1),t.m(l.parentNode,l)):t&&(C(),p(t,1,1,()=>{t=null}),k())},i(n){s||(r(i,n),r(t),s=!0)},o(n){p(i,n),p(t),s=!1},d(n){n&&(c(e),c(o),c(l)),i&&i.d(n),t&&t.d(n)}}}function H(f,e,o){let{$$slots:l={},$$scope:s}=e,{show_label:a=!0}=e,{info:i=void 0}=e;return f.$$set=t=>{"show_label"in t&&o(0,a=t.show_label),"info"in t&&o(1,i=t.info),"$$scope"in t&&o(3,s=t.$$scope)},[a,i,l,s]}class L extends g{constructor(e){super(),N(this,e,H,G,T,{show_label:0,info:1})}}export{L as B}; -//# sourceMappingURL=BlockTitle-7572070c.js.map diff --git a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/huggingface_hub/utils/_headers.py b/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/huggingface_hub/utils/_headers.py deleted file mode 100644 index 846cca3f1d3c3f000de92840a89fb11e35f2083f..0000000000000000000000000000000000000000 --- a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/huggingface_hub/utils/_headers.py +++ /dev/null @@ -1,234 +0,0 @@ -# coding=utf-8 -# Copyright 2022-present, the HuggingFace Inc. team. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -"""Contains utilities to handle headers to send in calls to Huggingface Hub.""" -from typing import Dict, Optional, Union - -from .. import constants -from ._hf_folder import HfFolder -from ._runtime import ( - get_fastai_version, - get_fastcore_version, - get_hf_hub_version, - get_python_version, - get_tf_version, - get_torch_version, - is_fastai_available, - is_fastcore_available, - is_tf_available, - is_torch_available, -) -from ._validators import validate_hf_hub_args - - -class LocalTokenNotFoundError(EnvironmentError): - """Raised if local token is required but not found.""" - - -@validate_hf_hub_args -def build_hf_headers( - *, - token: Optional[Union[bool, str]] = None, - is_write_action: bool = False, - library_name: Optional[str] = None, - library_version: Optional[str] = None, - user_agent: Union[Dict, str, None] = None, -) -> Dict[str, str]: - """ - Build headers dictionary to send in a HF Hub call. - - By default, authorization token is always provided either from argument (explicit - use) or retrieved from the cache (implicit use). To explicitly avoid sending the - token to the Hub, set `token=False` or set the `HF_HUB_DISABLE_IMPLICIT_TOKEN` - environment variable. - - In case of an API call that requires write access, an error is thrown if token is - `None` or token is an organization token (starting with `"api_org***"`). - - In addition to the auth header, a user-agent is added to provide information about - the installed packages (versions of python, huggingface_hub, torch, tensorflow, - fastai and fastcore). - - Args: - token (`str`, `bool`, *optional*): - The token to be sent in authorization header for the Hub call: - - if a string, it is used as the Hugging Face token - - if `True`, the token is read from the machine (cache or env variable) - - if `False`, authorization header is not set - - if `None`, the token is read from the machine only except if - `HF_HUB_DISABLE_IMPLICIT_TOKEN` env variable is set. - is_write_action (`bool`, default to `False`): - Set to True if the API call requires a write access. If `True`, the token - will be validated (cannot be `None`, cannot start by `"api_org***"`). - library_name (`str`, *optional*): - The name of the library that is making the HTTP request. Will be added to - the user-agent header. - library_version (`str`, *optional*): - The version of the library that is making the HTTP request. Will be added - to the user-agent header. - user_agent (`str`, `dict`, *optional*): - The user agent info in the form of a dictionary or a single string. It will - be completed with information about the installed packages. - - Returns: - A `Dict` of headers to pass in your API call. - - Example: - ```py - >>> build_hf_headers(token="hf_***") # explicit token - {"authorization": "Bearer hf_***", "user-agent": ""} - - >>> build_hf_headers(token=True) # explicitly use cached token - {"authorization": "Bearer hf_***",...} - - >>> build_hf_headers(token=False) # explicitly don't use cached token - {"user-agent": ...} - - >>> build_hf_headers() # implicit use of the cached token - {"authorization": "Bearer hf_***",...} - - # HF_HUB_DISABLE_IMPLICIT_TOKEN=True # to set as env variable - >>> build_hf_headers() # token is not sent - {"user-agent": ...} - - >>> build_hf_headers(token="api_org_***", is_write_action=True) - ValueError: You must use your personal account token for write-access methods. - - >>> build_hf_headers(library_name="transformers", library_version="1.2.3") - {"authorization": ..., "user-agent": "transformers/1.2.3; hf_hub/0.10.2; python/3.10.4; tensorflow/1.55"} - ``` - - Raises: - [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError) - If organization token is passed and "write" access is required. - [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError) - If "write" access is required but token is not passed and not saved locally. - [`EnvironmentError`](https://docs.python.org/3/library/exceptions.html#EnvironmentError) - If `token=True` but token is not saved locally. - """ - # Get auth token to send - token_to_send = get_token_to_send(token) - _validate_token_to_send(token_to_send, is_write_action=is_write_action) - - # Combine headers - headers = { - "user-agent": _http_user_agent( - library_name=library_name, - library_version=library_version, - user_agent=user_agent, - ) - } - if token_to_send is not None: - headers["authorization"] = f"Bearer {token_to_send}" - return headers - - -def get_token_to_send(token: Optional[Union[bool, str]]) -> Optional[str]: - """Select the token to send from either `token` or the cache.""" - # Case token is explicitly provided - if isinstance(token, str): - return token - - # Case token is explicitly forbidden - if token is False: - return None - - # Token is not provided: we get it from local cache - cached_token = HfFolder().get_token() - - # Case token is explicitly required - if token is True: - if cached_token is None: - raise LocalTokenNotFoundError( - "Token is required (`token=True`), but no token found. You" - " need to provide a token or be logged in to Hugging Face with" - " `huggingface-cli login` or `huggingface_hub.login`. See" - " https://huggingface.co/settings/tokens." - ) - return cached_token - - # Case implicit use of the token is forbidden by env variable - if constants.HF_HUB_DISABLE_IMPLICIT_TOKEN: - return None - - # Otherwise: we use the cached token as the user has not explicitly forbidden it - return cached_token - - -def _validate_token_to_send(token: Optional[str], is_write_action: bool) -> None: - if is_write_action: - if token is None: - raise ValueError( - "Token is required (write-access action) but no token found. You need" - " to provide a token or be logged in to Hugging Face with" - " `huggingface-cli login` or `huggingface_hub.login`. See" - " https://huggingface.co/settings/tokens." - ) - if token.startswith("api_org"): - raise ValueError( - "You must use your personal account token for write-access methods. To" - " generate a write-access token, go to" - " https://huggingface.co/settings/tokens" - ) - - -def _http_user_agent( - *, - library_name: Optional[str] = None, - library_version: Optional[str] = None, - user_agent: Union[Dict, str, None] = None, -) -> str: - """Format a user-agent string containing information about the installed packages. - - Args: - library_name (`str`, *optional*): - The name of the library that is making the HTTP request. - library_version (`str`, *optional*): - The version of the library that is making the HTTP request. - user_agent (`str`, `dict`, *optional*): - The user agent info in the form of a dictionary or a single string. - - Returns: - The formatted user-agent string. - """ - if library_name is not None: - ua = f"{library_name}/{library_version}" - else: - ua = "unknown/None" - ua += f"; hf_hub/{get_hf_hub_version()}" - ua += f"; python/{get_python_version()}" - - if not constants.HF_HUB_DISABLE_TELEMETRY: - if is_torch_available(): - ua += f"; torch/{get_torch_version()}" - if is_tf_available(): - ua += f"; tensorflow/{get_tf_version()}" - if is_fastai_available(): - ua += f"; fastai/{get_fastai_version()}" - if is_fastcore_available(): - ua += f"; fastcore/{get_fastcore_version()}" - - if isinstance(user_agent, dict): - ua += "; " + "; ".join(f"{k}/{v}" for k, v in user_agent.items()) - elif isinstance(user_agent, str): - ua += "; " + user_agent - - return _deduplicate_user_agent(ua) - - -def _deduplicate_user_agent(user_agent: str) -> str: - """Deduplicate redundant information in the generated user-agent.""" - # Split around ";" > Strip whitespaces > Store as dict keys (ensure unicity) > format back as string - # Order is implicitly preserved by dictionary structure (see https://stackoverflow.com/a/53657523). - return "; ".join({key.strip(): None for key in user_agent.split(";")}.keys()) diff --git a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/markdown_it/rules_inline/fragments_join.py b/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/markdown_it/rules_inline/fragments_join.py deleted file mode 100644 index f795c1364b8ac098b7a17f34cd31d7070280cf36..0000000000000000000000000000000000000000 --- a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/markdown_it/rules_inline/fragments_join.py +++ /dev/null @@ -1,43 +0,0 @@ -from .state_inline import StateInline - - -def fragments_join(state: StateInline) -> None: - """ - Clean up tokens after emphasis and strikethrough postprocessing: - merge adjacent text nodes into one and re-calculate all token levels - - This is necessary because initially emphasis delimiter markers (``*, _, ~``) - are treated as their own separate text tokens. Then emphasis rule either - leaves them as text (needed to merge with adjacent text) or turns them - into opening/closing tags (which messes up levels inside). - """ - level = 0 - maximum = len(state.tokens) - - curr = last = 0 - while curr < maximum: - # re-calculate levels after emphasis/strikethrough turns some text nodes - # into opening/closing tags - if state.tokens[curr].nesting < 0: - level -= 1 # closing tag - state.tokens[curr].level = level - if state.tokens[curr].nesting > 0: - level += 1 # opening tag - - if ( - state.tokens[curr].type == "text" - and curr + 1 < maximum - and state.tokens[curr + 1].type == "text" - ): - # collapse two adjacent text nodes - state.tokens[curr + 1].content = ( - state.tokens[curr].content + state.tokens[curr + 1].content - ) - else: - if curr != last: - state.tokens[last] = state.tokens[curr] - last += 1 - curr += 1 - - if curr != last: - del state.tokens[last:] diff --git a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/numpy/core/tests/test_simd_module.py b/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/numpy/core/tests/test_simd_module.py deleted file mode 100644 index 4fbaa9f3008b67e18d0bb6e3c87e057addd3ae5e..0000000000000000000000000000000000000000 --- a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/numpy/core/tests/test_simd_module.py +++ /dev/null @@ -1,101 +0,0 @@ -import pytest -from numpy.core._simd import targets -""" -This testing unit only for checking the sanity of common functionality, -therefore all we need is just to take one submodule that represents any -of enabled SIMD extensions to run the test on it and the second submodule -required to run only one check related to the possibility of mixing -the data types among each submodule. -""" -npyvs = [npyv_mod for npyv_mod in targets.values() if npyv_mod and npyv_mod.simd] -npyv, npyv2 = (npyvs + [None, None])[:2] - -unsigned_sfx = ["u8", "u16", "u32", "u64"] -signed_sfx = ["s8", "s16", "s32", "s64"] -fp_sfx = [] -if npyv and npyv.simd_f32: - fp_sfx.append("f32") -if npyv and npyv.simd_f64: - fp_sfx.append("f64") - -int_sfx = unsigned_sfx + signed_sfx -all_sfx = unsigned_sfx + int_sfx - -@pytest.mark.skipif(not npyv, reason="could not find any SIMD extension with NPYV support") -class Test_SIMD_MODULE: - - @pytest.mark.parametrize('sfx', all_sfx) - def test_num_lanes(self, sfx): - nlanes = getattr(npyv, "nlanes_" + sfx) - vector = getattr(npyv, "setall_" + sfx)(1) - assert len(vector) == nlanes - - @pytest.mark.parametrize('sfx', all_sfx) - def test_type_name(self, sfx): - vector = getattr(npyv, "setall_" + sfx)(1) - assert vector.__name__ == "npyv_" + sfx - - def test_raises(self): - a, b = [npyv.setall_u32(1)]*2 - for sfx in all_sfx: - vcb = lambda intrin: getattr(npyv, f"{intrin}_{sfx}") - pytest.raises(TypeError, vcb("add"), a) - pytest.raises(TypeError, vcb("add"), a, b, a) - pytest.raises(TypeError, vcb("setall")) - pytest.raises(TypeError, vcb("setall"), [1]) - pytest.raises(TypeError, vcb("load"), 1) - pytest.raises(ValueError, vcb("load"), [1]) - pytest.raises(ValueError, vcb("store"), [1], getattr(npyv, f"reinterpret_{sfx}_u32")(a)) - - @pytest.mark.skipif(not npyv2, reason=( - "could not find a second SIMD extension with NPYV support" - )) - def test_nomix(self): - # mix among submodules isn't allowed - a = npyv.setall_u32(1) - a2 = npyv2.setall_u32(1) - pytest.raises(TypeError, npyv.add_u32, a2, a2) - pytest.raises(TypeError, npyv2.add_u32, a, a) - - @pytest.mark.parametrize('sfx', unsigned_sfx) - def test_unsigned_overflow(self, sfx): - nlanes = getattr(npyv, "nlanes_" + sfx) - maxu = (1 << int(sfx[1:])) - 1 - maxu_72 = (1 << 72) - 1 - lane = getattr(npyv, "setall_" + sfx)(maxu_72)[0] - assert lane == maxu - lanes = getattr(npyv, "load_" + sfx)([maxu_72] * nlanes) - assert lanes == [maxu] * nlanes - lane = getattr(npyv, "setall_" + sfx)(-1)[0] - assert lane == maxu - lanes = getattr(npyv, "load_" + sfx)([-1] * nlanes) - assert lanes == [maxu] * nlanes - - @pytest.mark.parametrize('sfx', signed_sfx) - def test_signed_overflow(self, sfx): - nlanes = getattr(npyv, "nlanes_" + sfx) - maxs_72 = (1 << 71) - 1 - lane = getattr(npyv, "setall_" + sfx)(maxs_72)[0] - assert lane == -1 - lanes = getattr(npyv, "load_" + sfx)([maxs_72] * nlanes) - assert lanes == [-1] * nlanes - mins_72 = -1 << 71 - lane = getattr(npyv, "setall_" + sfx)(mins_72)[0] - assert lane == 0 - lanes = getattr(npyv, "load_" + sfx)([mins_72] * nlanes) - assert lanes == [0] * nlanes - - def test_truncate_f32(self): - if not npyv.simd_f32: - pytest.skip("F32 isn't support by the SIMD extension") - f32 = npyv.setall_f32(0.1)[0] - assert f32 != 0.1 - assert round(f32, 1) == 0.1 - - def test_compare(self): - data_range = range(0, npyv.nlanes_u32) - vdata = npyv.load_u32(data_range) - assert vdata == list(data_range) - assert vdata == tuple(data_range) - for i in data_range: - assert vdata[i] == data_range[i] diff --git a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/numpy/polynomial/polynomial.py b/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/numpy/polynomial/polynomial.py deleted file mode 100644 index ceadff0bf4ed32f8bbbb9f208bf4d84946efe195..0000000000000000000000000000000000000000 --- a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/numpy/polynomial/polynomial.py +++ /dev/null @@ -1,1542 +0,0 @@ -""" -================================================= -Power Series (:mod:`numpy.polynomial.polynomial`) -================================================= - -This module provides a number of objects (mostly functions) useful for -dealing with polynomials, including a `Polynomial` class that -encapsulates the usual arithmetic operations. (General information -on how this module represents and works with polynomial objects is in -the docstring for its "parent" sub-package, `numpy.polynomial`). - -Classes -------- -.. autosummary:: - :toctree: generated/ - - Polynomial - -Constants ---------- -.. autosummary:: - :toctree: generated/ - - polydomain - polyzero - polyone - polyx - -Arithmetic ----------- -.. autosummary:: - :toctree: generated/ - - polyadd - polysub - polymulx - polymul - polydiv - polypow - polyval - polyval2d - polyval3d - polygrid2d - polygrid3d - -Calculus --------- -.. autosummary:: - :toctree: generated/ - - polyder - polyint - -Misc Functions --------------- -.. autosummary:: - :toctree: generated/ - - polyfromroots - polyroots - polyvalfromroots - polyvander - polyvander2d - polyvander3d - polycompanion - polyfit - polytrim - polyline - -See Also --------- -`numpy.polynomial` - -""" -__all__ = [ - 'polyzero', 'polyone', 'polyx', 'polydomain', 'polyline', 'polyadd', - 'polysub', 'polymulx', 'polymul', 'polydiv', 'polypow', 'polyval', - 'polyvalfromroots', 'polyder', 'polyint', 'polyfromroots', 'polyvander', - 'polyfit', 'polytrim', 'polyroots', 'Polynomial', 'polyval2d', 'polyval3d', - 'polygrid2d', 'polygrid3d', 'polyvander2d', 'polyvander3d'] - -import numpy as np -import numpy.linalg as la -from numpy.core.multiarray import normalize_axis_index - -from . import polyutils as pu -from ._polybase import ABCPolyBase - -polytrim = pu.trimcoef - -# -# These are constant arrays are of integer type so as to be compatible -# with the widest range of other types, such as Decimal. -# - -# Polynomial default domain. -polydomain = np.array([-1, 1]) - -# Polynomial coefficients representing zero. -polyzero = np.array([0]) - -# Polynomial coefficients representing one. -polyone = np.array([1]) - -# Polynomial coefficients representing the identity x. -polyx = np.array([0, 1]) - -# -# Polynomial series functions -# - - -def polyline(off, scl): - """ - Returns an array representing a linear polynomial. - - Parameters - ---------- - off, scl : scalars - The "y-intercept" and "slope" of the line, respectively. - - Returns - ------- - y : ndarray - This module's representation of the linear polynomial ``off + - scl*x``. - - See Also - -------- - numpy.polynomial.chebyshev.chebline - numpy.polynomial.legendre.legline - numpy.polynomial.laguerre.lagline - numpy.polynomial.hermite.hermline - numpy.polynomial.hermite_e.hermeline - - Examples - -------- - >>> from numpy.polynomial import polynomial as P - >>> P.polyline(1,-1) - array([ 1, -1]) - >>> P.polyval(1, P.polyline(1,-1)) # should be 0 - 0.0 - - """ - if scl != 0: - return np.array([off, scl]) - else: - return np.array([off]) - - -def polyfromroots(roots): - """ - Generate a monic polynomial with given roots. - - Return the coefficients of the polynomial - - .. math:: p(x) = (x - r_0) * (x - r_1) * ... * (x - r_n), - - where the ``r_n`` are the roots specified in `roots`. If a zero has - multiplicity n, then it must appear in `roots` n times. For instance, - if 2 is a root of multiplicity three and 3 is a root of multiplicity 2, - then `roots` looks something like [2, 2, 2, 3, 3]. The roots can appear - in any order. - - If the returned coefficients are `c`, then - - .. math:: p(x) = c_0 + c_1 * x + ... + x^n - - The coefficient of the last term is 1 for monic polynomials in this - form. - - Parameters - ---------- - roots : array_like - Sequence containing the roots. - - Returns - ------- - out : ndarray - 1-D array of the polynomial's coefficients If all the roots are - real, then `out` is also real, otherwise it is complex. (see - Examples below). - - See Also - -------- - numpy.polynomial.chebyshev.chebfromroots - numpy.polynomial.legendre.legfromroots - numpy.polynomial.laguerre.lagfromroots - numpy.polynomial.hermite.hermfromroots - numpy.polynomial.hermite_e.hermefromroots - - Notes - ----- - The coefficients are determined by multiplying together linear factors - of the form ``(x - r_i)``, i.e. - - .. math:: p(x) = (x - r_0) (x - r_1) ... (x - r_n) - - where ``n == len(roots) - 1``; note that this implies that ``1`` is always - returned for :math:`a_n`. - - Examples - -------- - >>> from numpy.polynomial import polynomial as P - >>> P.polyfromroots((-1,0,1)) # x(x - 1)(x + 1) = x^3 - x - array([ 0., -1., 0., 1.]) - >>> j = complex(0,1) - >>> P.polyfromroots((-j,j)) # complex returned, though values are real - array([1.+0.j, 0.+0.j, 1.+0.j]) - - """ - return pu._fromroots(polyline, polymul, roots) - - -def polyadd(c1, c2): - """ - Add one polynomial to another. - - Returns the sum of two polynomials `c1` + `c2`. The arguments are - sequences of coefficients from lowest order term to highest, i.e., - [1,2,3] represents the polynomial ``1 + 2*x + 3*x**2``. - - Parameters - ---------- - c1, c2 : array_like - 1-D arrays of polynomial coefficients ordered from low to high. - - Returns - ------- - out : ndarray - The coefficient array representing their sum. - - See Also - -------- - polysub, polymulx, polymul, polydiv, polypow - - Examples - -------- - >>> from numpy.polynomial import polynomial as P - >>> c1 = (1,2,3) - >>> c2 = (3,2,1) - >>> sum = P.polyadd(c1,c2); sum - array([4., 4., 4.]) - >>> P.polyval(2, sum) # 4 + 4(2) + 4(2**2) - 28.0 - - """ - return pu._add(c1, c2) - - -def polysub(c1, c2): - """ - Subtract one polynomial from another. - - Returns the difference of two polynomials `c1` - `c2`. The arguments - are sequences of coefficients from lowest order term to highest, i.e., - [1,2,3] represents the polynomial ``1 + 2*x + 3*x**2``. - - Parameters - ---------- - c1, c2 : array_like - 1-D arrays of polynomial coefficients ordered from low to - high. - - Returns - ------- - out : ndarray - Of coefficients representing their difference. - - See Also - -------- - polyadd, polymulx, polymul, polydiv, polypow - - Examples - -------- - >>> from numpy.polynomial import polynomial as P - >>> c1 = (1,2,3) - >>> c2 = (3,2,1) - >>> P.polysub(c1,c2) - array([-2., 0., 2.]) - >>> P.polysub(c2,c1) # -P.polysub(c1,c2) - array([ 2., 0., -2.]) - - """ - return pu._sub(c1, c2) - - -def polymulx(c): - """Multiply a polynomial by x. - - Multiply the polynomial `c` by x, where x is the independent - variable. - - - Parameters - ---------- - c : array_like - 1-D array of polynomial coefficients ordered from low to - high. - - Returns - ------- - out : ndarray - Array representing the result of the multiplication. - - See Also - -------- - polyadd, polysub, polymul, polydiv, polypow - - Notes - ----- - - .. versionadded:: 1.5.0 - - """ - # c is a trimmed copy - [c] = pu.as_series([c]) - # The zero series needs special treatment - if len(c) == 1 and c[0] == 0: - return c - - prd = np.empty(len(c) + 1, dtype=c.dtype) - prd[0] = c[0]*0 - prd[1:] = c - return prd - - -def polymul(c1, c2): - """ - Multiply one polynomial by another. - - Returns the product of two polynomials `c1` * `c2`. The arguments are - sequences of coefficients, from lowest order term to highest, e.g., - [1,2,3] represents the polynomial ``1 + 2*x + 3*x**2.`` - - Parameters - ---------- - c1, c2 : array_like - 1-D arrays of coefficients representing a polynomial, relative to the - "standard" basis, and ordered from lowest order term to highest. - - Returns - ------- - out : ndarray - Of the coefficients of their product. - - See Also - -------- - polyadd, polysub, polymulx, polydiv, polypow - - Examples - -------- - >>> from numpy.polynomial import polynomial as P - >>> c1 = (1,2,3) - >>> c2 = (3,2,1) - >>> P.polymul(c1,c2) - array([ 3., 8., 14., 8., 3.]) - - """ - # c1, c2 are trimmed copies - [c1, c2] = pu.as_series([c1, c2]) - ret = np.convolve(c1, c2) - return pu.trimseq(ret) - - -def polydiv(c1, c2): - """ - Divide one polynomial by another. - - Returns the quotient-with-remainder of two polynomials `c1` / `c2`. - The arguments are sequences of coefficients, from lowest order term - to highest, e.g., [1,2,3] represents ``1 + 2*x + 3*x**2``. - - Parameters - ---------- - c1, c2 : array_like - 1-D arrays of polynomial coefficients ordered from low to high. - - Returns - ------- - [quo, rem] : ndarrays - Of coefficient series representing the quotient and remainder. - - See Also - -------- - polyadd, polysub, polymulx, polymul, polypow - - Examples - -------- - >>> from numpy.polynomial import polynomial as P - >>> c1 = (1,2,3) - >>> c2 = (3,2,1) - >>> P.polydiv(c1,c2) - (array([3.]), array([-8., -4.])) - >>> P.polydiv(c2,c1) - (array([ 0.33333333]), array([ 2.66666667, 1.33333333])) # may vary - - """ - # c1, c2 are trimmed copies - [c1, c2] = pu.as_series([c1, c2]) - if c2[-1] == 0: - raise ZeroDivisionError() - - # note: this is more efficient than `pu._div(polymul, c1, c2)` - lc1 = len(c1) - lc2 = len(c2) - if lc1 < lc2: - return c1[:1]*0, c1 - elif lc2 == 1: - return c1/c2[-1], c1[:1]*0 - else: - dlen = lc1 - lc2 - scl = c2[-1] - c2 = c2[:-1]/scl - i = dlen - j = lc1 - 1 - while i >= 0: - c1[i:j] -= c2*c1[j] - i -= 1 - j -= 1 - return c1[j+1:]/scl, pu.trimseq(c1[:j+1]) - - -def polypow(c, pow, maxpower=None): - """Raise a polynomial to a power. - - Returns the polynomial `c` raised to the power `pow`. The argument - `c` is a sequence of coefficients ordered from low to high. i.e., - [1,2,3] is the series ``1 + 2*x + 3*x**2.`` - - Parameters - ---------- - c : array_like - 1-D array of array of series coefficients ordered from low to - high degree. - pow : integer - Power to which the series will be raised - maxpower : integer, optional - Maximum power allowed. This is mainly to limit growth of the series - to unmanageable size. Default is 16 - - Returns - ------- - coef : ndarray - Power series of power. - - See Also - -------- - polyadd, polysub, polymulx, polymul, polydiv - - Examples - -------- - >>> from numpy.polynomial import polynomial as P - >>> P.polypow([1,2,3], 2) - array([ 1., 4., 10., 12., 9.]) - - """ - # note: this is more efficient than `pu._pow(polymul, c1, c2)`, as it - # avoids calling `as_series` repeatedly - return pu._pow(np.convolve, c, pow, maxpower) - - -def polyder(c, m=1, scl=1, axis=0): - """ - Differentiate a polynomial. - - Returns the polynomial coefficients `c` differentiated `m` times along - `axis`. At each iteration the result is multiplied by `scl` (the - scaling factor is for use in a linear change of variable). The - argument `c` is an array of coefficients from low to high degree along - each axis, e.g., [1,2,3] represents the polynomial ``1 + 2*x + 3*x**2`` - while [[1,2],[1,2]] represents ``1 + 1*x + 2*y + 2*x*y`` if axis=0 is - ``x`` and axis=1 is ``y``. - - Parameters - ---------- - c : array_like - Array of polynomial coefficients. If c is multidimensional the - different axis correspond to different variables with the degree - in each axis given by the corresponding index. - m : int, optional - Number of derivatives taken, must be non-negative. (Default: 1) - scl : scalar, optional - Each differentiation is multiplied by `scl`. The end result is - multiplication by ``scl**m``. This is for use in a linear change - of variable. (Default: 1) - axis : int, optional - Axis over which the derivative is taken. (Default: 0). - - .. versionadded:: 1.7.0 - - Returns - ------- - der : ndarray - Polynomial coefficients of the derivative. - - See Also - -------- - polyint - - Examples - -------- - >>> from numpy.polynomial import polynomial as P - >>> c = (1,2,3,4) # 1 + 2x + 3x**2 + 4x**3 - >>> P.polyder(c) # (d/dx)(c) = 2 + 6x + 12x**2 - array([ 2., 6., 12.]) - >>> P.polyder(c,3) # (d**3/dx**3)(c) = 24 - array([24.]) - >>> P.polyder(c,scl=-1) # (d/d(-x))(c) = -2 - 6x - 12x**2 - array([ -2., -6., -12.]) - >>> P.polyder(c,2,-1) # (d**2/d(-x)**2)(c) = 6 + 24x - array([ 6., 24.]) - - """ - c = np.array(c, ndmin=1, copy=True) - if c.dtype.char in '?bBhHiIlLqQpP': - # astype fails with NA - c = c + 0.0 - cdt = c.dtype - cnt = pu._deprecate_as_int(m, "the order of derivation") - iaxis = pu._deprecate_as_int(axis, "the axis") - if cnt < 0: - raise ValueError("The order of derivation must be non-negative") - iaxis = normalize_axis_index(iaxis, c.ndim) - - if cnt == 0: - return c - - c = np.moveaxis(c, iaxis, 0) - n = len(c) - if cnt >= n: - c = c[:1]*0 - else: - for i in range(cnt): - n = n - 1 - c *= scl - der = np.empty((n,) + c.shape[1:], dtype=cdt) - for j in range(n, 0, -1): - der[j - 1] = j*c[j] - c = der - c = np.moveaxis(c, 0, iaxis) - return c - - -def polyint(c, m=1, k=[], lbnd=0, scl=1, axis=0): - """ - Integrate a polynomial. - - Returns the polynomial coefficients `c` integrated `m` times from - `lbnd` along `axis`. At each iteration the resulting series is - **multiplied** by `scl` and an integration constant, `k`, is added. - The scaling factor is for use in a linear change of variable. ("Buyer - beware": note that, depending on what one is doing, one may want `scl` - to be the reciprocal of what one might expect; for more information, - see the Notes section below.) The argument `c` is an array of - coefficients, from low to high degree along each axis, e.g., [1,2,3] - represents the polynomial ``1 + 2*x + 3*x**2`` while [[1,2],[1,2]] - represents ``1 + 1*x + 2*y + 2*x*y`` if axis=0 is ``x`` and axis=1 is - ``y``. - - Parameters - ---------- - c : array_like - 1-D array of polynomial coefficients, ordered from low to high. - m : int, optional - Order of integration, must be positive. (Default: 1) - k : {[], list, scalar}, optional - Integration constant(s). The value of the first integral at zero - is the first value in the list, the value of the second integral - at zero is the second value, etc. If ``k == []`` (the default), - all constants are set to zero. If ``m == 1``, a single scalar can - be given instead of a list. - lbnd : scalar, optional - The lower bound of the integral. (Default: 0) - scl : scalar, optional - Following each integration the result is *multiplied* by `scl` - before the integration constant is added. (Default: 1) - axis : int, optional - Axis over which the integral is taken. (Default: 0). - - .. versionadded:: 1.7.0 - - Returns - ------- - S : ndarray - Coefficient array of the integral. - - Raises - ------ - ValueError - If ``m < 1``, ``len(k) > m``, ``np.ndim(lbnd) != 0``, or - ``np.ndim(scl) != 0``. - - See Also - -------- - polyder - - Notes - ----- - Note that the result of each integration is *multiplied* by `scl`. Why - is this important to note? Say one is making a linear change of - variable :math:`u = ax + b` in an integral relative to `x`. Then - :math:`dx = du/a`, so one will need to set `scl` equal to - :math:`1/a` - perhaps not what one would have first thought. - - Examples - -------- - >>> from numpy.polynomial import polynomial as P - >>> c = (1,2,3) - >>> P.polyint(c) # should return array([0, 1, 1, 1]) - array([0., 1., 1., 1.]) - >>> P.polyint(c,3) # should return array([0, 0, 0, 1/6, 1/12, 1/20]) - array([ 0. , 0. , 0. , 0.16666667, 0.08333333, # may vary - 0.05 ]) - >>> P.polyint(c,k=3) # should return array([3, 1, 1, 1]) - array([3., 1., 1., 1.]) - >>> P.polyint(c,lbnd=-2) # should return array([6, 1, 1, 1]) - array([6., 1., 1., 1.]) - >>> P.polyint(c,scl=-2) # should return array([0, -2, -2, -2]) - array([ 0., -2., -2., -2.]) - - """ - c = np.array(c, ndmin=1, copy=True) - if c.dtype.char in '?bBhHiIlLqQpP': - # astype doesn't preserve mask attribute. - c = c + 0.0 - cdt = c.dtype - if not np.iterable(k): - k = [k] - cnt = pu._deprecate_as_int(m, "the order of integration") - iaxis = pu._deprecate_as_int(axis, "the axis") - if cnt < 0: - raise ValueError("The order of integration must be non-negative") - if len(k) > cnt: - raise ValueError("Too many integration constants") - if np.ndim(lbnd) != 0: - raise ValueError("lbnd must be a scalar.") - if np.ndim(scl) != 0: - raise ValueError("scl must be a scalar.") - iaxis = normalize_axis_index(iaxis, c.ndim) - - if cnt == 0: - return c - - k = list(k) + [0]*(cnt - len(k)) - c = np.moveaxis(c, iaxis, 0) - for i in range(cnt): - n = len(c) - c *= scl - if n == 1 and np.all(c[0] == 0): - c[0] += k[i] - else: - tmp = np.empty((n + 1,) + c.shape[1:], dtype=cdt) - tmp[0] = c[0]*0 - tmp[1] = c[0] - for j in range(1, n): - tmp[j + 1] = c[j]/(j + 1) - tmp[0] += k[i] - polyval(lbnd, tmp) - c = tmp - c = np.moveaxis(c, 0, iaxis) - return c - - -def polyval(x, c, tensor=True): - """ - Evaluate a polynomial at points x. - - If `c` is of length `n + 1`, this function returns the value - - .. math:: p(x) = c_0 + c_1 * x + ... + c_n * x^n - - The parameter `x` is converted to an array only if it is a tuple or a - list, otherwise it is treated as a scalar. In either case, either `x` - or its elements must support multiplication and addition both with - themselves and with the elements of `c`. - - If `c` is a 1-D array, then `p(x)` will have the same shape as `x`. If - `c` is multidimensional, then the shape of the result depends on the - value of `tensor`. If `tensor` is true the shape will be c.shape[1:] + - x.shape. If `tensor` is false the shape will be c.shape[1:]. Note that - scalars have shape (,). - - Trailing zeros in the coefficients will be used in the evaluation, so - they should be avoided if efficiency is a concern. - - Parameters - ---------- - x : array_like, compatible object - If `x` is a list or tuple, it is converted to an ndarray, otherwise - it is left unchanged and treated as a scalar. In either case, `x` - or its elements must support addition and multiplication with - with themselves and with the elements of `c`. - c : array_like - Array of coefficients ordered so that the coefficients for terms of - degree n are contained in c[n]. If `c` is multidimensional the - remaining indices enumerate multiple polynomials. In the two - dimensional case the coefficients may be thought of as stored in - the columns of `c`. - tensor : boolean, optional - If True, the shape of the coefficient array is extended with ones - on the right, one for each dimension of `x`. Scalars have dimension 0 - for this action. The result is that every column of coefficients in - `c` is evaluated for every element of `x`. If False, `x` is broadcast - over the columns of `c` for the evaluation. This keyword is useful - when `c` is multidimensional. The default value is True. - - .. versionadded:: 1.7.0 - - Returns - ------- - values : ndarray, compatible object - The shape of the returned array is described above. - - See Also - -------- - polyval2d, polygrid2d, polyval3d, polygrid3d - - Notes - ----- - The evaluation uses Horner's method. - - Examples - -------- - >>> from numpy.polynomial.polynomial import polyval - >>> polyval(1, [1,2,3]) - 6.0 - >>> a = np.arange(4).reshape(2,2) - >>> a - array([[0, 1], - [2, 3]]) - >>> polyval(a, [1,2,3]) - array([[ 1., 6.], - [17., 34.]]) - >>> coef = np.arange(4).reshape(2,2) # multidimensional coefficients - >>> coef - array([[0, 1], - [2, 3]]) - >>> polyval([1,2], coef, tensor=True) - array([[2., 4.], - [4., 7.]]) - >>> polyval([1,2], coef, tensor=False) - array([2., 7.]) - - """ - c = np.array(c, ndmin=1, copy=False) - if c.dtype.char in '?bBhHiIlLqQpP': - # astype fails with NA - c = c + 0.0 - if isinstance(x, (tuple, list)): - x = np.asarray(x) - if isinstance(x, np.ndarray) and tensor: - c = c.reshape(c.shape + (1,)*x.ndim) - - c0 = c[-1] + x*0 - for i in range(2, len(c) + 1): - c0 = c[-i] + c0*x - return c0 - - -def polyvalfromroots(x, r, tensor=True): - """ - Evaluate a polynomial specified by its roots at points x. - - If `r` is of length `N`, this function returns the value - - .. math:: p(x) = \\prod_{n=1}^{N} (x - r_n) - - The parameter `x` is converted to an array only if it is a tuple or a - list, otherwise it is treated as a scalar. In either case, either `x` - or its elements must support multiplication and addition both with - themselves and with the elements of `r`. - - If `r` is a 1-D array, then `p(x)` will have the same shape as `x`. If `r` - is multidimensional, then the shape of the result depends on the value of - `tensor`. If `tensor` is ``True`` the shape will be r.shape[1:] + x.shape; - that is, each polynomial is evaluated at every value of `x`. If `tensor` is - ``False``, the shape will be r.shape[1:]; that is, each polynomial is - evaluated only for the corresponding broadcast value of `x`. Note that - scalars have shape (,). - - .. versionadded:: 1.12 - - Parameters - ---------- - x : array_like, compatible object - If `x` is a list or tuple, it is converted to an ndarray, otherwise - it is left unchanged and treated as a scalar. In either case, `x` - or its elements must support addition and multiplication with - with themselves and with the elements of `r`. - r : array_like - Array of roots. If `r` is multidimensional the first index is the - root index, while the remaining indices enumerate multiple - polynomials. For instance, in the two dimensional case the roots - of each polynomial may be thought of as stored in the columns of `r`. - tensor : boolean, optional - If True, the shape of the roots array is extended with ones on the - right, one for each dimension of `x`. Scalars have dimension 0 for this - action. The result is that every column of coefficients in `r` is - evaluated for every element of `x`. If False, `x` is broadcast over the - columns of `r` for the evaluation. This keyword is useful when `r` is - multidimensional. The default value is True. - - Returns - ------- - values : ndarray, compatible object - The shape of the returned array is described above. - - See Also - -------- - polyroots, polyfromroots, polyval - - Examples - -------- - >>> from numpy.polynomial.polynomial import polyvalfromroots - >>> polyvalfromroots(1, [1,2,3]) - 0.0 - >>> a = np.arange(4).reshape(2,2) - >>> a - array([[0, 1], - [2, 3]]) - >>> polyvalfromroots(a, [-1, 0, 1]) - array([[-0., 0.], - [ 6., 24.]]) - >>> r = np.arange(-2, 2).reshape(2,2) # multidimensional coefficients - >>> r # each column of r defines one polynomial - array([[-2, -1], - [ 0, 1]]) - >>> b = [-2, 1] - >>> polyvalfromroots(b, r, tensor=True) - array([[-0., 3.], - [ 3., 0.]]) - >>> polyvalfromroots(b, r, tensor=False) - array([-0., 0.]) - """ - r = np.array(r, ndmin=1, copy=False) - if r.dtype.char in '?bBhHiIlLqQpP': - r = r.astype(np.double) - if isinstance(x, (tuple, list)): - x = np.asarray(x) - if isinstance(x, np.ndarray): - if tensor: - r = r.reshape(r.shape + (1,)*x.ndim) - elif x.ndim >= r.ndim: - raise ValueError("x.ndim must be < r.ndim when tensor == False") - return np.prod(x - r, axis=0) - - -def polyval2d(x, y, c): - """ - Evaluate a 2-D polynomial at points (x, y). - - This function returns the value - - .. math:: p(x,y) = \\sum_{i,j} c_{i,j} * x^i * y^j - - The parameters `x` and `y` are converted to arrays only if they are - tuples or a lists, otherwise they are treated as a scalars and they - must have the same shape after conversion. In either case, either `x` - and `y` or their elements must support multiplication and addition both - with themselves and with the elements of `c`. - - If `c` has fewer than two dimensions, ones are implicitly appended to - its shape to make it 2-D. The shape of the result will be c.shape[2:] + - x.shape. - - Parameters - ---------- - x, y : array_like, compatible objects - The two dimensional series is evaluated at the points `(x, y)`, - where `x` and `y` must have the same shape. If `x` or `y` is a list - or tuple, it is first converted to an ndarray, otherwise it is left - unchanged and, if it isn't an ndarray, it is treated as a scalar. - c : array_like - Array of coefficients ordered so that the coefficient of the term - of multi-degree i,j is contained in `c[i,j]`. If `c` has - dimension greater than two the remaining indices enumerate multiple - sets of coefficients. - - Returns - ------- - values : ndarray, compatible object - The values of the two dimensional polynomial at points formed with - pairs of corresponding values from `x` and `y`. - - See Also - -------- - polyval, polygrid2d, polyval3d, polygrid3d - - Notes - ----- - - .. versionadded:: 1.7.0 - - """ - return pu._valnd(polyval, c, x, y) - - -def polygrid2d(x, y, c): - """ - Evaluate a 2-D polynomial on the Cartesian product of x and y. - - This function returns the values: - - .. math:: p(a,b) = \\sum_{i,j} c_{i,j} * a^i * b^j - - where the points `(a, b)` consist of all pairs formed by taking - `a` from `x` and `b` from `y`. The resulting points form a grid with - `x` in the first dimension and `y` in the second. - - The parameters `x` and `y` are converted to arrays only if they are - tuples or a lists, otherwise they are treated as a scalars. In either - case, either `x` and `y` or their elements must support multiplication - and addition both with themselves and with the elements of `c`. - - If `c` has fewer than two dimensions, ones are implicitly appended to - its shape to make it 2-D. The shape of the result will be c.shape[2:] + - x.shape + y.shape. - - Parameters - ---------- - x, y : array_like, compatible objects - The two dimensional series is evaluated at the points in the - Cartesian product of `x` and `y`. If `x` or `y` is a list or - tuple, it is first converted to an ndarray, otherwise it is left - unchanged and, if it isn't an ndarray, it is treated as a scalar. - c : array_like - Array of coefficients ordered so that the coefficients for terms of - degree i,j are contained in ``c[i,j]``. If `c` has dimension - greater than two the remaining indices enumerate multiple sets of - coefficients. - - Returns - ------- - values : ndarray, compatible object - The values of the two dimensional polynomial at points in the Cartesian - product of `x` and `y`. - - See Also - -------- - polyval, polyval2d, polyval3d, polygrid3d - - Notes - ----- - - .. versionadded:: 1.7.0 - - """ - return pu._gridnd(polyval, c, x, y) - - -def polyval3d(x, y, z, c): - """ - Evaluate a 3-D polynomial at points (x, y, z). - - This function returns the values: - - .. math:: p(x,y,z) = \\sum_{i,j,k} c_{i,j,k} * x^i * y^j * z^k - - The parameters `x`, `y`, and `z` are converted to arrays only if - they are tuples or a lists, otherwise they are treated as a scalars and - they must have the same shape after conversion. In either case, either - `x`, `y`, and `z` or their elements must support multiplication and - addition both with themselves and with the elements of `c`. - - If `c` has fewer than 3 dimensions, ones are implicitly appended to its - shape to make it 3-D. The shape of the result will be c.shape[3:] + - x.shape. - - Parameters - ---------- - x, y, z : array_like, compatible object - The three dimensional series is evaluated at the points - `(x, y, z)`, where `x`, `y`, and `z` must have the same shape. If - any of `x`, `y`, or `z` is a list or tuple, it is first converted - to an ndarray, otherwise it is left unchanged and if it isn't an - ndarray it is treated as a scalar. - c : array_like - Array of coefficients ordered so that the coefficient of the term of - multi-degree i,j,k is contained in ``c[i,j,k]``. If `c` has dimension - greater than 3 the remaining indices enumerate multiple sets of - coefficients. - - Returns - ------- - values : ndarray, compatible object - The values of the multidimensional polynomial on points formed with - triples of corresponding values from `x`, `y`, and `z`. - - See Also - -------- - polyval, polyval2d, polygrid2d, polygrid3d - - Notes - ----- - - .. versionadded:: 1.7.0 - - """ - return pu._valnd(polyval, c, x, y, z) - - -def polygrid3d(x, y, z, c): - """ - Evaluate a 3-D polynomial on the Cartesian product of x, y and z. - - This function returns the values: - - .. math:: p(a,b,c) = \\sum_{i,j,k} c_{i,j,k} * a^i * b^j * c^k - - where the points `(a, b, c)` consist of all triples formed by taking - `a` from `x`, `b` from `y`, and `c` from `z`. The resulting points form - a grid with `x` in the first dimension, `y` in the second, and `z` in - the third. - - The parameters `x`, `y`, and `z` are converted to arrays only if they - are tuples or a lists, otherwise they are treated as a scalars. In - either case, either `x`, `y`, and `z` or their elements must support - multiplication and addition both with themselves and with the elements - of `c`. - - If `c` has fewer than three dimensions, ones are implicitly appended to - its shape to make it 3-D. The shape of the result will be c.shape[3:] + - x.shape + y.shape + z.shape. - - Parameters - ---------- - x, y, z : array_like, compatible objects - The three dimensional series is evaluated at the points in the - Cartesian product of `x`, `y`, and `z`. If `x`,`y`, or `z` is a - list or tuple, it is first converted to an ndarray, otherwise it is - left unchanged and, if it isn't an ndarray, it is treated as a - scalar. - c : array_like - Array of coefficients ordered so that the coefficients for terms of - degree i,j are contained in ``c[i,j]``. If `c` has dimension - greater than two the remaining indices enumerate multiple sets of - coefficients. - - Returns - ------- - values : ndarray, compatible object - The values of the two dimensional polynomial at points in the Cartesian - product of `x` and `y`. - - See Also - -------- - polyval, polyval2d, polygrid2d, polyval3d - - Notes - ----- - - .. versionadded:: 1.7.0 - - """ - return pu._gridnd(polyval, c, x, y, z) - - -def polyvander(x, deg): - """Vandermonde matrix of given degree. - - Returns the Vandermonde matrix of degree `deg` and sample points - `x`. The Vandermonde matrix is defined by - - .. math:: V[..., i] = x^i, - - where `0 <= i <= deg`. The leading indices of `V` index the elements of - `x` and the last index is the power of `x`. - - If `c` is a 1-D array of coefficients of length `n + 1` and `V` is the - matrix ``V = polyvander(x, n)``, then ``np.dot(V, c)`` and - ``polyval(x, c)`` are the same up to roundoff. This equivalence is - useful both for least squares fitting and for the evaluation of a large - number of polynomials of the same degree and sample points. - - Parameters - ---------- - x : array_like - Array of points. The dtype is converted to float64 or complex128 - depending on whether any of the elements are complex. If `x` is - scalar it is converted to a 1-D array. - deg : int - Degree of the resulting matrix. - - Returns - ------- - vander : ndarray. - The Vandermonde matrix. The shape of the returned matrix is - ``x.shape + (deg + 1,)``, where the last index is the power of `x`. - The dtype will be the same as the converted `x`. - - See Also - -------- - polyvander2d, polyvander3d - - """ - ideg = pu._deprecate_as_int(deg, "deg") - if ideg < 0: - raise ValueError("deg must be non-negative") - - x = np.array(x, copy=False, ndmin=1) + 0.0 - dims = (ideg + 1,) + x.shape - dtyp = x.dtype - v = np.empty(dims, dtype=dtyp) - v[0] = x*0 + 1 - if ideg > 0: - v[1] = x - for i in range(2, ideg + 1): - v[i] = v[i-1]*x - return np.moveaxis(v, 0, -1) - - -def polyvander2d(x, y, deg): - """Pseudo-Vandermonde matrix of given degrees. - - Returns the pseudo-Vandermonde matrix of degrees `deg` and sample - points `(x, y)`. The pseudo-Vandermonde matrix is defined by - - .. math:: V[..., (deg[1] + 1)*i + j] = x^i * y^j, - - where `0 <= i <= deg[0]` and `0 <= j <= deg[1]`. The leading indices of - `V` index the points `(x, y)` and the last index encodes the powers of - `x` and `y`. - - If ``V = polyvander2d(x, y, [xdeg, ydeg])``, then the columns of `V` - correspond to the elements of a 2-D coefficient array `c` of shape - (xdeg + 1, ydeg + 1) in the order - - .. math:: c_{00}, c_{01}, c_{02} ... , c_{10}, c_{11}, c_{12} ... - - and ``np.dot(V, c.flat)`` and ``polyval2d(x, y, c)`` will be the same - up to roundoff. This equivalence is useful both for least squares - fitting and for the evaluation of a large number of 2-D polynomials - of the same degrees and sample points. - - Parameters - ---------- - x, y : array_like - Arrays of point coordinates, all of the same shape. The dtypes - will be converted to either float64 or complex128 depending on - whether any of the elements are complex. Scalars are converted to - 1-D arrays. - deg : list of ints - List of maximum degrees of the form [x_deg, y_deg]. - - Returns - ------- - vander2d : ndarray - The shape of the returned matrix is ``x.shape + (order,)``, where - :math:`order = (deg[0]+1)*(deg([1]+1)`. The dtype will be the same - as the converted `x` and `y`. - - See Also - -------- - polyvander, polyvander3d, polyval2d, polyval3d - - """ - return pu._vander_nd_flat((polyvander, polyvander), (x, y), deg) - - -def polyvander3d(x, y, z, deg): - """Pseudo-Vandermonde matrix of given degrees. - - Returns the pseudo-Vandermonde matrix of degrees `deg` and sample - points `(x, y, z)`. If `l, m, n` are the given degrees in `x, y, z`, - then The pseudo-Vandermonde matrix is defined by - - .. math:: V[..., (m+1)(n+1)i + (n+1)j + k] = x^i * y^j * z^k, - - where `0 <= i <= l`, `0 <= j <= m`, and `0 <= j <= n`. The leading - indices of `V` index the points `(x, y, z)` and the last index encodes - the powers of `x`, `y`, and `z`. - - If ``V = polyvander3d(x, y, z, [xdeg, ydeg, zdeg])``, then the columns - of `V` correspond to the elements of a 3-D coefficient array `c` of - shape (xdeg + 1, ydeg + 1, zdeg + 1) in the order - - .. math:: c_{000}, c_{001}, c_{002},... , c_{010}, c_{011}, c_{012},... - - and ``np.dot(V, c.flat)`` and ``polyval3d(x, y, z, c)`` will be the - same up to roundoff. This equivalence is useful both for least squares - fitting and for the evaluation of a large number of 3-D polynomials - of the same degrees and sample points. - - Parameters - ---------- - x, y, z : array_like - Arrays of point coordinates, all of the same shape. The dtypes will - be converted to either float64 or complex128 depending on whether - any of the elements are complex. Scalars are converted to 1-D - arrays. - deg : list of ints - List of maximum degrees of the form [x_deg, y_deg, z_deg]. - - Returns - ------- - vander3d : ndarray - The shape of the returned matrix is ``x.shape + (order,)``, where - :math:`order = (deg[0]+1)*(deg([1]+1)*(deg[2]+1)`. The dtype will - be the same as the converted `x`, `y`, and `z`. - - See Also - -------- - polyvander, polyvander3d, polyval2d, polyval3d - - Notes - ----- - - .. versionadded:: 1.7.0 - - """ - return pu._vander_nd_flat((polyvander, polyvander, polyvander), (x, y, z), deg) - - -def polyfit(x, y, deg, rcond=None, full=False, w=None): - """ - Least-squares fit of a polynomial to data. - - Return the coefficients of a polynomial of degree `deg` that is the - least squares fit to the data values `y` given at points `x`. If `y` is - 1-D the returned coefficients will also be 1-D. If `y` is 2-D multiple - fits are done, one for each column of `y`, and the resulting - coefficients are stored in the corresponding columns of a 2-D return. - The fitted polynomial(s) are in the form - - .. math:: p(x) = c_0 + c_1 * x + ... + c_n * x^n, - - where `n` is `deg`. - - Parameters - ---------- - x : array_like, shape (`M`,) - x-coordinates of the `M` sample (data) points ``(x[i], y[i])``. - y : array_like, shape (`M`,) or (`M`, `K`) - y-coordinates of the sample points. Several sets of sample points - sharing the same x-coordinates can be (independently) fit with one - call to `polyfit` by passing in for `y` a 2-D array that contains - one data set per column. - deg : int or 1-D array_like - Degree(s) of the fitting polynomials. If `deg` is a single integer - all terms up to and including the `deg`'th term are included in the - fit. For NumPy versions >= 1.11.0 a list of integers specifying the - degrees of the terms to include may be used instead. - rcond : float, optional - Relative condition number of the fit. Singular values smaller - than `rcond`, relative to the largest singular value, will be - ignored. The default value is ``len(x)*eps``, where `eps` is the - relative precision of the platform's float type, about 2e-16 in - most cases. - full : bool, optional - Switch determining the nature of the return value. When ``False`` - (the default) just the coefficients are returned; when ``True``, - diagnostic information from the singular value decomposition (used - to solve the fit's matrix equation) is also returned. - w : array_like, shape (`M`,), optional - Weights. If not None, the weight ``w[i]`` applies to the unsquared - residual ``y[i] - y_hat[i]`` at ``x[i]``. Ideally the weights are - chosen so that the errors of the products ``w[i]*y[i]`` all have the - same variance. When using inverse-variance weighting, use - ``w[i] = 1/sigma(y[i])``. The default value is None. - - .. versionadded:: 1.5.0 - - Returns - ------- - coef : ndarray, shape (`deg` + 1,) or (`deg` + 1, `K`) - Polynomial coefficients ordered from low to high. If `y` was 2-D, - the coefficients in column `k` of `coef` represent the polynomial - fit to the data in `y`'s `k`-th column. - - [residuals, rank, singular_values, rcond] : list - These values are only returned if ``full == True`` - - - residuals -- sum of squared residuals of the least squares fit - - rank -- the numerical rank of the scaled Vandermonde matrix - - singular_values -- singular values of the scaled Vandermonde matrix - - rcond -- value of `rcond`. - - For more details, see `numpy.linalg.lstsq`. - - Raises - ------ - RankWarning - Raised if the matrix in the least-squares fit is rank deficient. - The warning is only raised if ``full == False``. The warnings can - be turned off by: - - >>> import warnings - >>> warnings.simplefilter('ignore', np.RankWarning) - - See Also - -------- - numpy.polynomial.chebyshev.chebfit - numpy.polynomial.legendre.legfit - numpy.polynomial.laguerre.lagfit - numpy.polynomial.hermite.hermfit - numpy.polynomial.hermite_e.hermefit - polyval : Evaluates a polynomial. - polyvander : Vandermonde matrix for powers. - numpy.linalg.lstsq : Computes a least-squares fit from the matrix. - scipy.interpolate.UnivariateSpline : Computes spline fits. - - Notes - ----- - The solution is the coefficients of the polynomial `p` that minimizes - the sum of the weighted squared errors - - .. math:: E = \\sum_j w_j^2 * |y_j - p(x_j)|^2, - - where the :math:`w_j` are the weights. This problem is solved by - setting up the (typically) over-determined matrix equation: - - .. math:: V(x) * c = w * y, - - where `V` is the weighted pseudo Vandermonde matrix of `x`, `c` are the - coefficients to be solved for, `w` are the weights, and `y` are the - observed values. This equation is then solved using the singular value - decomposition of `V`. - - If some of the singular values of `V` are so small that they are - neglected (and `full` == ``False``), a `RankWarning` will be raised. - This means that the coefficient values may be poorly determined. - Fitting to a lower order polynomial will usually get rid of the warning - (but may not be what you want, of course; if you have independent - reason(s) for choosing the degree which isn't working, you may have to: - a) reconsider those reasons, and/or b) reconsider the quality of your - data). The `rcond` parameter can also be set to a value smaller than - its default, but the resulting fit may be spurious and have large - contributions from roundoff error. - - Polynomial fits using double precision tend to "fail" at about - (polynomial) degree 20. Fits using Chebyshev or Legendre series are - generally better conditioned, but much can still depend on the - distribution of the sample points and the smoothness of the data. If - the quality of the fit is inadequate, splines may be a good - alternative. - - Examples - -------- - >>> np.random.seed(123) - >>> from numpy.polynomial import polynomial as P - >>> x = np.linspace(-1,1,51) # x "data": [-1, -0.96, ..., 0.96, 1] - >>> y = x**3 - x + np.random.randn(len(x)) # x^3 - x + Gaussian noise - >>> c, stats = P.polyfit(x,y,3,full=True) - >>> np.random.seed(123) - >>> c # c[0], c[2] should be approx. 0, c[1] approx. -1, c[3] approx. 1 - array([ 0.01909725, -1.30598256, -0.00577963, 1.02644286]) # may vary - >>> stats # note the large SSR, explaining the rather poor results - [array([ 38.06116253]), 4, array([ 1.38446749, 1.32119158, 0.50443316, # may vary - 0.28853036]), 1.1324274851176597e-014] - - Same thing without the added noise - - >>> y = x**3 - x - >>> c, stats = P.polyfit(x,y,3,full=True) - >>> c # c[0], c[2] should be "very close to 0", c[1] ~= -1, c[3] ~= 1 - array([-6.36925336e-18, -1.00000000e+00, -4.08053781e-16, 1.00000000e+00]) - >>> stats # note the minuscule SSR - [array([ 7.46346754e-31]), 4, array([ 1.38446749, 1.32119158, # may vary - 0.50443316, 0.28853036]), 1.1324274851176597e-014] - - """ - return pu._fit(polyvander, x, y, deg, rcond, full, w) - - -def polycompanion(c): - """ - Return the companion matrix of c. - - The companion matrix for power series cannot be made symmetric by - scaling the basis, so this function differs from those for the - orthogonal polynomials. - - Parameters - ---------- - c : array_like - 1-D array of polynomial coefficients ordered from low to high - degree. - - Returns - ------- - mat : ndarray - Companion matrix of dimensions (deg, deg). - - Notes - ----- - - .. versionadded:: 1.7.0 - - """ - # c is a trimmed copy - [c] = pu.as_series([c]) - if len(c) < 2: - raise ValueError('Series must have maximum degree of at least 1.') - if len(c) == 2: - return np.array([[-c[0]/c[1]]]) - - n = len(c) - 1 - mat = np.zeros((n, n), dtype=c.dtype) - bot = mat.reshape(-1)[n::n+1] - bot[...] = 1 - mat[:, -1] -= c[:-1]/c[-1] - return mat - - -def polyroots(c): - """ - Compute the roots of a polynomial. - - Return the roots (a.k.a. "zeros") of the polynomial - - .. math:: p(x) = \\sum_i c[i] * x^i. - - Parameters - ---------- - c : 1-D array_like - 1-D array of polynomial coefficients. - - Returns - ------- - out : ndarray - Array of the roots of the polynomial. If all the roots are real, - then `out` is also real, otherwise it is complex. - - See Also - -------- - numpy.polynomial.chebyshev.chebroots - numpy.polynomial.legendre.legroots - numpy.polynomial.laguerre.lagroots - numpy.polynomial.hermite.hermroots - numpy.polynomial.hermite_e.hermeroots - - Notes - ----- - The root estimates are obtained as the eigenvalues of the companion - matrix, Roots far from the origin of the complex plane may have large - errors due to the numerical instability of the power series for such - values. Roots with multiplicity greater than 1 will also show larger - errors as the value of the series near such points is relatively - insensitive to errors in the roots. Isolated roots near the origin can - be improved by a few iterations of Newton's method. - - Examples - -------- - >>> import numpy.polynomial.polynomial as poly - >>> poly.polyroots(poly.polyfromroots((-1,0,1))) - array([-1., 0., 1.]) - >>> poly.polyroots(poly.polyfromroots((-1,0,1))).dtype - dtype('float64') - >>> j = complex(0,1) - >>> poly.polyroots(poly.polyfromroots((-j,0,j))) - array([ 0.00000000e+00+0.j, 0.00000000e+00+1.j, 2.77555756e-17-1.j]) # may vary - - """ - # c is a trimmed copy - [c] = pu.as_series([c]) - if len(c) < 2: - return np.array([], dtype=c.dtype) - if len(c) == 2: - return np.array([-c[0]/c[1]]) - - # rotated companion matrix reduces error - m = polycompanion(c)[::-1,::-1] - r = la.eigvals(m) - r.sort() - return r - - -# -# polynomial class -# - -class Polynomial(ABCPolyBase): - """A power series class. - - The Polynomial class provides the standard Python numerical methods - '+', '-', '*', '//', '%', 'divmod', '**', and '()' as well as the - attributes and methods listed in the `ABCPolyBase` documentation. - - Parameters - ---------- - coef : array_like - Polynomial coefficients in order of increasing degree, i.e., - ``(1, 2, 3)`` give ``1 + 2*x + 3*x**2``. - domain : (2,) array_like, optional - Domain to use. The interval ``[domain[0], domain[1]]`` is mapped - to the interval ``[window[0], window[1]]`` by shifting and scaling. - The default value is [-1, 1]. - window : (2,) array_like, optional - Window, see `domain` for its use. The default value is [-1, 1]. - - .. versionadded:: 1.6.0 - symbol : str, optional - Symbol used to represent the independent variable in string - representations of the polynomial expression, e.g. for printing. - The symbol must be a valid Python identifier. Default value is 'x'. - - .. versionadded:: 1.24 - - """ - # Virtual Functions - _add = staticmethod(polyadd) - _sub = staticmethod(polysub) - _mul = staticmethod(polymul) - _div = staticmethod(polydiv) - _pow = staticmethod(polypow) - _val = staticmethod(polyval) - _int = staticmethod(polyint) - _der = staticmethod(polyder) - _fit = staticmethod(polyfit) - _line = staticmethod(polyline) - _roots = staticmethod(polyroots) - _fromroots = staticmethod(polyfromroots) - - # Virtual properties - domain = np.array(polydomain) - window = np.array(polydomain) - basis_name = None - - @classmethod - def _str_term_unicode(cls, i, arg_str): - if i == '1': - return f"·{arg_str}" - else: - return f"·{arg_str}{i.translate(cls._superscript_mapping)}" - - @staticmethod - def _str_term_ascii(i, arg_str): - if i == '1': - return f" {arg_str}" - else: - return f" {arg_str}**{i}" - - @staticmethod - def _repr_latex_term(i, arg_str, needs_parens): - if needs_parens: - arg_str = rf"\left({arg_str}\right)" - if i == 0: - return '1' - elif i == 1: - return arg_str - else: - return f"{arg_str}^{{{i}}}" diff --git a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/pandas/tests/indexes/timedeltas/methods/test_factorize.py b/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/pandas/tests/indexes/timedeltas/methods/test_factorize.py deleted file mode 100644 index 24ab3888412d08b54543ed22910c67ce9bdf328f..0000000000000000000000000000000000000000 --- a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/pandas/tests/indexes/timedeltas/methods/test_factorize.py +++ /dev/null @@ -1,40 +0,0 @@ -import numpy as np - -from pandas import ( - TimedeltaIndex, - factorize, - timedelta_range, -) -import pandas._testing as tm - - -class TestTimedeltaIndexFactorize: - def test_factorize(self): - idx1 = TimedeltaIndex(["1 day", "1 day", "2 day", "2 day", "3 day", "3 day"]) - - exp_arr = np.array([0, 0, 1, 1, 2, 2], dtype=np.intp) - exp_idx = TimedeltaIndex(["1 day", "2 day", "3 day"]) - - arr, idx = idx1.factorize() - tm.assert_numpy_array_equal(arr, exp_arr) - tm.assert_index_equal(idx, exp_idx) - assert idx.freq == exp_idx.freq - - arr, idx = idx1.factorize(sort=True) - tm.assert_numpy_array_equal(arr, exp_arr) - tm.assert_index_equal(idx, exp_idx) - assert idx.freq == exp_idx.freq - - def test_factorize_preserves_freq(self): - # GH#38120 freq should be preserved - idx3 = timedelta_range("1 day", periods=4, freq="s") - exp_arr = np.array([0, 1, 2, 3], dtype=np.intp) - arr, idx = idx3.factorize() - tm.assert_numpy_array_equal(arr, exp_arr) - tm.assert_index_equal(idx, idx3) - assert idx.freq == idx3.freq - - arr, idx = factorize(idx3) - tm.assert_numpy_array_equal(arr, exp_arr) - tm.assert_index_equal(idx, idx3) - assert idx.freq == idx3.freq diff --git a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/pandas/tests/io/formats/style/__init__.py b/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/pandas/tests/io/formats/style/__init__.py deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/pip/_vendor/html5lib/__init__.py b/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/pip/_vendor/html5lib/__init__.py deleted file mode 100644 index d1d82f157f884dc65160a41b436258d1aaf12e4c..0000000000000000000000000000000000000000 --- a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/pip/_vendor/html5lib/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -""" -HTML parsing library based on the `WHATWG HTML specification -`_. The parser is designed to be compatible with -existing HTML found in the wild and implements well-defined error recovery that -is largely compatible with modern desktop web browsers. - -Example usage:: - - from pip._vendor import html5lib - with open("my_document.html", "rb") as f: - tree = html5lib.parse(f) - -For convenience, this module re-exports the following names: - -* :func:`~.html5parser.parse` -* :func:`~.html5parser.parseFragment` -* :class:`~.html5parser.HTMLParser` -* :func:`~.treebuilders.getTreeBuilder` -* :func:`~.treewalkers.getTreeWalker` -* :func:`~.serializer.serialize` -""" - -from __future__ import absolute_import, division, unicode_literals - -from .html5parser import HTMLParser, parse, parseFragment -from .treebuilders import getTreeBuilder -from .treewalkers import getTreeWalker -from .serializer import serialize - -__all__ = ["HTMLParser", "parse", "parseFragment", "getTreeBuilder", - "getTreeWalker", "serialize"] - -# this has to be at the top level, see how setup.py parses this -#: Distribution version number. -__version__ = "1.1" diff --git a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/pip/_vendor/msgpack/__init__.py b/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/pip/_vendor/msgpack/__init__.py deleted file mode 100644 index d6705e22b79dd53f3896bee29eb1e2f12bf106eb..0000000000000000000000000000000000000000 --- a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/pip/_vendor/msgpack/__init__.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 -from ._version import version -from .exceptions import * -from .ext import ExtType, Timestamp - -import os -import sys - - -if os.environ.get("MSGPACK_PUREPYTHON") or sys.version_info[0] == 2: - from .fallback import Packer, unpackb, Unpacker -else: - try: - from ._cmsgpack import Packer, unpackb, Unpacker - except ImportError: - from .fallback import Packer, unpackb, Unpacker - - -def pack(o, stream, **kwargs): - """ - Pack object `o` and write it to `stream` - - See :class:`Packer` for options. - """ - packer = Packer(**kwargs) - stream.write(packer.pack(o)) - - -def packb(o, **kwargs): - """ - Pack object `o` and return packed bytes - - See :class:`Packer` for options. - """ - return Packer(**kwargs).pack(o) - - -def unpack(stream, **kwargs): - """ - Unpack an object from `stream`. - - Raises `ExtraData` when `stream` contains extra bytes. - See :class:`Unpacker` for options. - """ - data = stream.read() - return unpackb(data, **kwargs) - - -# alias for compatibility to simplejson/marshal/pickle. -load = unpack -loads = unpackb - -dump = pack -dumps = packb diff --git a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/pip/_vendor/rich/live_render.py b/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/pip/_vendor/rich/live_render.py deleted file mode 100644 index b90fbf7f35097694f727e201b0b378942d70a443..0000000000000000000000000000000000000000 --- a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/pip/_vendor/rich/live_render.py +++ /dev/null @@ -1,113 +0,0 @@ -import sys -from typing import Optional, Tuple - -if sys.version_info >= (3, 8): - from typing import Literal -else: - from pip._vendor.typing_extensions import Literal # pragma: no cover - - -from ._loop import loop_last -from .console import Console, ConsoleOptions, RenderableType, RenderResult -from .control import Control -from .segment import ControlType, Segment -from .style import StyleType -from .text import Text - -VerticalOverflowMethod = Literal["crop", "ellipsis", "visible"] - - -class LiveRender: - """Creates a renderable that may be updated. - - Args: - renderable (RenderableType): Any renderable object. - style (StyleType, optional): An optional style to apply to the renderable. Defaults to "". - """ - - def __init__( - self, - renderable: RenderableType, - style: StyleType = "", - vertical_overflow: VerticalOverflowMethod = "ellipsis", - ) -> None: - self.renderable = renderable - self.style = style - self.vertical_overflow = vertical_overflow - self._shape: Optional[Tuple[int, int]] = None - - def set_renderable(self, renderable: RenderableType) -> None: - """Set a new renderable. - - Args: - renderable (RenderableType): Any renderable object, including str. - """ - self.renderable = renderable - - def position_cursor(self) -> Control: - """Get control codes to move cursor to beginning of live render. - - Returns: - Control: A control instance that may be printed. - """ - if self._shape is not None: - _, height = self._shape - return Control( - ControlType.CARRIAGE_RETURN, - (ControlType.ERASE_IN_LINE, 2), - *( - ( - (ControlType.CURSOR_UP, 1), - (ControlType.ERASE_IN_LINE, 2), - ) - * (height - 1) - ) - ) - return Control() - - def restore_cursor(self) -> Control: - """Get control codes to clear the render and restore the cursor to its previous position. - - Returns: - Control: A Control instance that may be printed. - """ - if self._shape is not None: - _, height = self._shape - return Control( - ControlType.CARRIAGE_RETURN, - *((ControlType.CURSOR_UP, 1), (ControlType.ERASE_IN_LINE, 2)) * height - ) - return Control() - - def __rich_console__( - self, console: Console, options: ConsoleOptions - ) -> RenderResult: - - renderable = self.renderable - style = console.get_style(self.style) - lines = console.render_lines(renderable, options, style=style, pad=False) - shape = Segment.get_shape(lines) - - _, height = shape - if height > options.size.height: - if self.vertical_overflow == "crop": - lines = lines[: options.size.height] - shape = Segment.get_shape(lines) - elif self.vertical_overflow == "ellipsis": - lines = lines[: (options.size.height - 1)] - overflow_text = Text( - "...", - overflow="crop", - justify="center", - end="", - style="live.ellipsis", - ) - lines.append(list(console.render(overflow_text))) - shape = Segment.get_shape(lines) - self._shape = shape - - new_line = Segment.line() - for last, line in loop_last(lines): - yield from line - if not last: - yield new_line diff --git a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/pydantic/v1/tools.py b/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/pydantic/v1/tools.py deleted file mode 100644 index 45be27704cbc9df2bcc2bf5294b87f2083960980..0000000000000000000000000000000000000000 --- a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/pydantic/v1/tools.py +++ /dev/null @@ -1,92 +0,0 @@ -import json -from functools import lru_cache -from pathlib import Path -from typing import TYPE_CHECKING, Any, Callable, Optional, Type, TypeVar, Union - -from .parse import Protocol, load_file, load_str_bytes -from .types import StrBytes -from .typing import display_as_type - -__all__ = ('parse_file_as', 'parse_obj_as', 'parse_raw_as', 'schema_of', 'schema_json_of') - -NameFactory = Union[str, Callable[[Type[Any]], str]] - -if TYPE_CHECKING: - from .typing import DictStrAny - - -def _generate_parsing_type_name(type_: Any) -> str: - return f'ParsingModel[{display_as_type(type_)}]' - - -@lru_cache(maxsize=2048) -def _get_parsing_type(type_: Any, *, type_name: Optional[NameFactory] = None) -> Any: - from .main import create_model - - if type_name is None: - type_name = _generate_parsing_type_name - if not isinstance(type_name, str): - type_name = type_name(type_) - return create_model(type_name, __root__=(type_, ...)) - - -T = TypeVar('T') - - -def parse_obj_as(type_: Type[T], obj: Any, *, type_name: Optional[NameFactory] = None) -> T: - model_type = _get_parsing_type(type_, type_name=type_name) # type: ignore[arg-type] - return model_type(__root__=obj).__root__ - - -def parse_file_as( - type_: Type[T], - path: Union[str, Path], - *, - content_type: str = None, - encoding: str = 'utf8', - proto: Protocol = None, - allow_pickle: bool = False, - json_loads: Callable[[str], Any] = json.loads, - type_name: Optional[NameFactory] = None, -) -> T: - obj = load_file( - path, - proto=proto, - content_type=content_type, - encoding=encoding, - allow_pickle=allow_pickle, - json_loads=json_loads, - ) - return parse_obj_as(type_, obj, type_name=type_name) - - -def parse_raw_as( - type_: Type[T], - b: StrBytes, - *, - content_type: str = None, - encoding: str = 'utf8', - proto: Protocol = None, - allow_pickle: bool = False, - json_loads: Callable[[str], Any] = json.loads, - type_name: Optional[NameFactory] = None, -) -> T: - obj = load_str_bytes( - b, - proto=proto, - content_type=content_type, - encoding=encoding, - allow_pickle=allow_pickle, - json_loads=json_loads, - ) - return parse_obj_as(type_, obj, type_name=type_name) - - -def schema_of(type_: Any, *, title: Optional[NameFactory] = None, **schema_kwargs: Any) -> 'DictStrAny': - """Generate a JSON schema (as dict) for the passed model or dynamically generated one""" - return _get_parsing_type(type_, type_name=title).schema(**schema_kwargs) - - -def schema_json_of(type_: Any, *, title: Optional[NameFactory] = None, **schema_json_kwargs: Any) -> str: - """Generate a JSON schema (as JSON) for the passed model or dynamically generated one""" - return _get_parsing_type(type_, type_name=title).schema_json(**schema_json_kwargs) diff --git a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/urllib3/contrib/pyopenssl.py b/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/urllib3/contrib/pyopenssl.py deleted file mode 100644 index 74b35883bfdd214cb784215a0b83ff2c0f5f23c3..0000000000000000000000000000000000000000 --- a/spaces/profayle/TerrapinTalk/myenv/lib/python3.9/site-packages/urllib3/contrib/pyopenssl.py +++ /dev/null @@ -1,548 +0,0 @@ -""" -Module for using pyOpenSSL as a TLS backend. This module was relevant before -the standard library ``ssl`` module supported SNI, but now that we've dropped -support for Python 2.7 all relevant Python versions support SNI so -**this module is no longer recommended**. - -This needs the following packages installed: - -* `pyOpenSSL`_ (tested with 16.0.0) -* `cryptography`_ (minimum 1.3.4, from pyopenssl) -* `idna`_ (minimum 2.0, from cryptography) - -However, pyOpenSSL depends on cryptography, which depends on idna, so while we -use all three directly here we end up having relatively few packages required. - -You can install them with the following command: - -.. code-block:: bash - - $ python -m pip install pyopenssl cryptography idna - -To activate certificate checking, call -:func:`~urllib3.contrib.pyopenssl.inject_into_urllib3` from your Python code -before you begin making HTTP requests. This can be done in a ``sitecustomize`` -module, or at any other time before your application begins using ``urllib3``, -like this: - -.. code-block:: python - - try: - import urllib3.contrib.pyopenssl - urllib3.contrib.pyopenssl.inject_into_urllib3() - except ImportError: - pass - -.. _pyopenssl: https://www.pyopenssl.org -.. _cryptography: https://cryptography.io -.. _idna: https://github.com/kjd/idna -""" - -from __future__ import annotations - -import OpenSSL.SSL # type: ignore[import] -from cryptography import x509 - -try: - from cryptography.x509 import UnsupportedExtension # type: ignore[attr-defined] -except ImportError: - # UnsupportedExtension is gone in cryptography >= 2.1.0 - class UnsupportedExtension(Exception): # type: ignore[no-redef] - pass - - -import logging -import ssl -import typing -from io import BytesIO -from socket import socket as socket_cls -from socket import timeout - -from .. import util - -if typing.TYPE_CHECKING: - from OpenSSL.crypto import X509 # type: ignore[import] - - -__all__ = ["inject_into_urllib3", "extract_from_urllib3"] - -# Map from urllib3 to PyOpenSSL compatible parameter-values. -_openssl_versions = { - util.ssl_.PROTOCOL_TLS: OpenSSL.SSL.SSLv23_METHOD, # type: ignore[attr-defined] - util.ssl_.PROTOCOL_TLS_CLIENT: OpenSSL.SSL.SSLv23_METHOD, # type: ignore[attr-defined] - ssl.PROTOCOL_TLSv1: OpenSSL.SSL.TLSv1_METHOD, -} - -if hasattr(ssl, "PROTOCOL_TLSv1_1") and hasattr(OpenSSL.SSL, "TLSv1_1_METHOD"): - _openssl_versions[ssl.PROTOCOL_TLSv1_1] = OpenSSL.SSL.TLSv1_1_METHOD - -if hasattr(ssl, "PROTOCOL_TLSv1_2") and hasattr(OpenSSL.SSL, "TLSv1_2_METHOD"): - _openssl_versions[ssl.PROTOCOL_TLSv1_2] = OpenSSL.SSL.TLSv1_2_METHOD - - -_stdlib_to_openssl_verify = { - ssl.CERT_NONE: OpenSSL.SSL.VERIFY_NONE, - ssl.CERT_OPTIONAL: OpenSSL.SSL.VERIFY_PEER, - ssl.CERT_REQUIRED: OpenSSL.SSL.VERIFY_PEER - + OpenSSL.SSL.VERIFY_FAIL_IF_NO_PEER_CERT, -} -_openssl_to_stdlib_verify = {v: k for k, v in _stdlib_to_openssl_verify.items()} - -# The SSLvX values are the most likely to be missing in the future -# but we check them all just to be sure. -_OP_NO_SSLv2_OR_SSLv3: int = getattr(OpenSSL.SSL, "OP_NO_SSLv2", 0) | getattr( - OpenSSL.SSL, "OP_NO_SSLv3", 0 -) -_OP_NO_TLSv1: int = getattr(OpenSSL.SSL, "OP_NO_TLSv1", 0) -_OP_NO_TLSv1_1: int = getattr(OpenSSL.SSL, "OP_NO_TLSv1_1", 0) -_OP_NO_TLSv1_2: int = getattr(OpenSSL.SSL, "OP_NO_TLSv1_2", 0) -_OP_NO_TLSv1_3: int = getattr(OpenSSL.SSL, "OP_NO_TLSv1_3", 0) - -_openssl_to_ssl_minimum_version: dict[int, int] = { - ssl.TLSVersion.MINIMUM_SUPPORTED: _OP_NO_SSLv2_OR_SSLv3, - ssl.TLSVersion.TLSv1: _OP_NO_SSLv2_OR_SSLv3, - ssl.TLSVersion.TLSv1_1: _OP_NO_SSLv2_OR_SSLv3 | _OP_NO_TLSv1, - ssl.TLSVersion.TLSv1_2: _OP_NO_SSLv2_OR_SSLv3 | _OP_NO_TLSv1 | _OP_NO_TLSv1_1, - ssl.TLSVersion.TLSv1_3: ( - _OP_NO_SSLv2_OR_SSLv3 | _OP_NO_TLSv1 | _OP_NO_TLSv1_1 | _OP_NO_TLSv1_2 - ), - ssl.TLSVersion.MAXIMUM_SUPPORTED: ( - _OP_NO_SSLv2_OR_SSLv3 | _OP_NO_TLSv1 | _OP_NO_TLSv1_1 | _OP_NO_TLSv1_2 - ), -} -_openssl_to_ssl_maximum_version: dict[int, int] = { - ssl.TLSVersion.MINIMUM_SUPPORTED: ( - _OP_NO_SSLv2_OR_SSLv3 - | _OP_NO_TLSv1 - | _OP_NO_TLSv1_1 - | _OP_NO_TLSv1_2 - | _OP_NO_TLSv1_3 - ), - ssl.TLSVersion.TLSv1: ( - _OP_NO_SSLv2_OR_SSLv3 | _OP_NO_TLSv1_1 | _OP_NO_TLSv1_2 | _OP_NO_TLSv1_3 - ), - ssl.TLSVersion.TLSv1_1: _OP_NO_SSLv2_OR_SSLv3 | _OP_NO_TLSv1_2 | _OP_NO_TLSv1_3, - ssl.TLSVersion.TLSv1_2: _OP_NO_SSLv2_OR_SSLv3 | _OP_NO_TLSv1_3, - ssl.TLSVersion.TLSv1_3: _OP_NO_SSLv2_OR_SSLv3, - ssl.TLSVersion.MAXIMUM_SUPPORTED: _OP_NO_SSLv2_OR_SSLv3, -} - -# OpenSSL will only write 16K at a time -SSL_WRITE_BLOCKSIZE = 16384 - -orig_util_SSLContext = util.ssl_.SSLContext - - -log = logging.getLogger(__name__) - - -def inject_into_urllib3() -> None: - "Monkey-patch urllib3 with PyOpenSSL-backed SSL-support." - - _validate_dependencies_met() - - util.SSLContext = PyOpenSSLContext # type: ignore[assignment] - util.ssl_.SSLContext = PyOpenSSLContext # type: ignore[assignment] - util.IS_PYOPENSSL = True - util.ssl_.IS_PYOPENSSL = True - - -def extract_from_urllib3() -> None: - "Undo monkey-patching by :func:`inject_into_urllib3`." - - util.SSLContext = orig_util_SSLContext - util.ssl_.SSLContext = orig_util_SSLContext - util.IS_PYOPENSSL = False - util.ssl_.IS_PYOPENSSL = False - - -def _validate_dependencies_met() -> None: - """ - Verifies that PyOpenSSL's package-level dependencies have been met. - Throws `ImportError` if they are not met. - """ - # Method added in `cryptography==1.1`; not available in older versions - from cryptography.x509.extensions import Extensions - - if getattr(Extensions, "get_extension_for_class", None) is None: - raise ImportError( - "'cryptography' module missing required functionality. " - "Try upgrading to v1.3.4 or newer." - ) - - # pyOpenSSL 0.14 and above use cryptography for OpenSSL bindings. The _x509 - # attribute is only present on those versions. - from OpenSSL.crypto import X509 - - x509 = X509() - if getattr(x509, "_x509", None) is None: - raise ImportError( - "'pyOpenSSL' module missing required functionality. " - "Try upgrading to v0.14 or newer." - ) - - -def _dnsname_to_stdlib(name: str) -> str | None: - """ - Converts a dNSName SubjectAlternativeName field to the form used by the - standard library on the given Python version. - - Cryptography produces a dNSName as a unicode string that was idna-decoded - from ASCII bytes. We need to idna-encode that string to get it back, and - then on Python 3 we also need to convert to unicode via UTF-8 (the stdlib - uses PyUnicode_FromStringAndSize on it, which decodes via UTF-8). - - If the name cannot be idna-encoded then we return None signalling that - the name given should be skipped. - """ - - def idna_encode(name: str) -> bytes | None: - """ - Borrowed wholesale from the Python Cryptography Project. It turns out - that we can't just safely call `idna.encode`: it can explode for - wildcard names. This avoids that problem. - """ - import idna - - try: - for prefix in ["*.", "."]: - if name.startswith(prefix): - name = name[len(prefix) :] - return prefix.encode("ascii") + idna.encode(name) - return idna.encode(name) - except idna.core.IDNAError: - return None - - # Don't send IPv6 addresses through the IDNA encoder. - if ":" in name: - return name - - encoded_name = idna_encode(name) - if encoded_name is None: - return None - return encoded_name.decode("utf-8") - - -def get_subj_alt_name(peer_cert: X509) -> list[tuple[str, str]]: - """ - Given an PyOpenSSL certificate, provides all the subject alternative names. - """ - cert = peer_cert.to_cryptography() - - # We want to find the SAN extension. Ask Cryptography to locate it (it's - # faster than looping in Python) - try: - ext = cert.extensions.get_extension_for_class(x509.SubjectAlternativeName).value - except x509.ExtensionNotFound: - # No such extension, return the empty list. - return [] - except ( - x509.DuplicateExtension, - UnsupportedExtension, - x509.UnsupportedGeneralNameType, - UnicodeError, - ) as e: - # A problem has been found with the quality of the certificate. Assume - # no SAN field is present. - log.warning( - "A problem was encountered with the certificate that prevented " - "urllib3 from finding the SubjectAlternativeName field. This can " - "affect certificate validation. The error was %s", - e, - ) - return [] - - # We want to return dNSName and iPAddress fields. We need to cast the IPs - # back to strings because the match_hostname function wants them as - # strings. - # Sadly the DNS names need to be idna encoded and then, on Python 3, UTF-8 - # decoded. This is pretty frustrating, but that's what the standard library - # does with certificates, and so we need to attempt to do the same. - # We also want to skip over names which cannot be idna encoded. - names = [ - ("DNS", name) - for name in map(_dnsname_to_stdlib, ext.get_values_for_type(x509.DNSName)) - if name is not None - ] - names.extend( - ("IP Address", str(name)) for name in ext.get_values_for_type(x509.IPAddress) - ) - - return names - - -class WrappedSocket: - """API-compatibility wrapper for Python OpenSSL's Connection-class.""" - - def __init__( - self, - connection: OpenSSL.SSL.Connection, - socket: socket_cls, - suppress_ragged_eofs: bool = True, - ) -> None: - self.connection = connection - self.socket = socket - self.suppress_ragged_eofs = suppress_ragged_eofs - self._io_refs = 0 - self._closed = False - - def fileno(self) -> int: - return self.socket.fileno() - - # Copy-pasted from Python 3.5 source code - def _decref_socketios(self) -> None: - if self._io_refs > 0: - self._io_refs -= 1 - if self._closed: - self.close() - - def recv(self, *args: typing.Any, **kwargs: typing.Any) -> bytes: - try: - data = self.connection.recv(*args, **kwargs) - except OpenSSL.SSL.SysCallError as e: - if self.suppress_ragged_eofs and e.args == (-1, "Unexpected EOF"): - return b"" - else: - raise OSError(e.args[0], str(e)) from e - except OpenSSL.SSL.ZeroReturnError: - if self.connection.get_shutdown() == OpenSSL.SSL.RECEIVED_SHUTDOWN: - return b"" - else: - raise - except OpenSSL.SSL.WantReadError as e: - if not util.wait_for_read(self.socket, self.socket.gettimeout()): - raise timeout("The read operation timed out") from e - else: - return self.recv(*args, **kwargs) - - # TLS 1.3 post-handshake authentication - except OpenSSL.SSL.Error as e: - raise ssl.SSLError(f"read error: {e!r}") from e - else: - return data # type: ignore[no-any-return] - - def recv_into(self, *args: typing.Any, **kwargs: typing.Any) -> int: - try: - return self.connection.recv_into(*args, **kwargs) # type: ignore[no-any-return] - except OpenSSL.SSL.SysCallError as e: - if self.suppress_ragged_eofs and e.args == (-1, "Unexpected EOF"): - return 0 - else: - raise OSError(e.args[0], str(e)) from e - except OpenSSL.SSL.ZeroReturnError: - if self.connection.get_shutdown() == OpenSSL.SSL.RECEIVED_SHUTDOWN: - return 0 - else: - raise - except OpenSSL.SSL.WantReadError as e: - if not util.wait_for_read(self.socket, self.socket.gettimeout()): - raise timeout("The read operation timed out") from e - else: - return self.recv_into(*args, **kwargs) - - # TLS 1.3 post-handshake authentication - except OpenSSL.SSL.Error as e: - raise ssl.SSLError(f"read error: {e!r}") from e - - def settimeout(self, timeout: float) -> None: - return self.socket.settimeout(timeout) - - def _send_until_done(self, data: bytes) -> int: - while True: - try: - return self.connection.send(data) # type: ignore[no-any-return] - except OpenSSL.SSL.WantWriteError as e: - if not util.wait_for_write(self.socket, self.socket.gettimeout()): - raise timeout() from e - continue - except OpenSSL.SSL.SysCallError as e: - raise OSError(e.args[0], str(e)) from e - - def sendall(self, data: bytes) -> None: - total_sent = 0 - while total_sent < len(data): - sent = self._send_until_done( - data[total_sent : total_sent + SSL_WRITE_BLOCKSIZE] - ) - total_sent += sent - - def shutdown(self) -> None: - # FIXME rethrow compatible exceptions should we ever use this - self.connection.shutdown() - - def close(self) -> None: - self._closed = True - if self._io_refs <= 0: - self._real_close() - - def _real_close(self) -> None: - try: - return self.connection.close() # type: ignore[no-any-return] - except OpenSSL.SSL.Error: - return - - def getpeercert( - self, binary_form: bool = False - ) -> dict[str, list[typing.Any]] | None: - x509 = self.connection.get_peer_certificate() - - if not x509: - return x509 # type: ignore[no-any-return] - - if binary_form: - return OpenSSL.crypto.dump_certificate(OpenSSL.crypto.FILETYPE_ASN1, x509) # type: ignore[no-any-return] - - return { - "subject": ((("commonName", x509.get_subject().CN),),), # type: ignore[dict-item] - "subjectAltName": get_subj_alt_name(x509), - } - - def version(self) -> str: - return self.connection.get_protocol_version_name() # type: ignore[no-any-return] - - -WrappedSocket.makefile = socket_cls.makefile # type: ignore[attr-defined] - - -class PyOpenSSLContext: - """ - I am a wrapper class for the PyOpenSSL ``Context`` object. I am responsible - for translating the interface of the standard library ``SSLContext`` object - to calls into PyOpenSSL. - """ - - def __init__(self, protocol: int) -> None: - self.protocol = _openssl_versions[protocol] - self._ctx = OpenSSL.SSL.Context(self.protocol) - self._options = 0 - self.check_hostname = False - self._minimum_version: int = ssl.TLSVersion.MINIMUM_SUPPORTED - self._maximum_version: int = ssl.TLSVersion.MAXIMUM_SUPPORTED - - @property - def options(self) -> int: - return self._options - - @options.setter - def options(self, value: int) -> None: - self._options = value - self._set_ctx_options() - - @property - def verify_mode(self) -> int: - return _openssl_to_stdlib_verify[self._ctx.get_verify_mode()] - - @verify_mode.setter - def verify_mode(self, value: ssl.VerifyMode) -> None: - self._ctx.set_verify(_stdlib_to_openssl_verify[value], _verify_callback) - - def set_default_verify_paths(self) -> None: - self._ctx.set_default_verify_paths() - - def set_ciphers(self, ciphers: bytes | str) -> None: - if isinstance(ciphers, str): - ciphers = ciphers.encode("utf-8") - self._ctx.set_cipher_list(ciphers) - - def load_verify_locations( - self, - cafile: str | None = None, - capath: str | None = None, - cadata: bytes | None = None, - ) -> None: - if cafile is not None: - cafile = cafile.encode("utf-8") # type: ignore[assignment] - if capath is not None: - capath = capath.encode("utf-8") # type: ignore[assignment] - try: - self._ctx.load_verify_locations(cafile, capath) - if cadata is not None: - self._ctx.load_verify_locations(BytesIO(cadata)) - except OpenSSL.SSL.Error as e: - raise ssl.SSLError(f"unable to load trusted certificates: {e!r}") from e - - def load_cert_chain( - self, - certfile: str, - keyfile: str | None = None, - password: str | None = None, - ) -> None: - try: - self._ctx.use_certificate_chain_file(certfile) - if password is not None: - if not isinstance(password, bytes): - password = password.encode("utf-8") # type: ignore[assignment] - self._ctx.set_passwd_cb(lambda *_: password) - self._ctx.use_privatekey_file(keyfile or certfile) - except OpenSSL.SSL.Error as e: - raise ssl.SSLError(f"Unable to load certificate chain: {e!r}") from e - - def set_alpn_protocols(self, protocols: list[bytes | str]) -> None: - protocols = [util.util.to_bytes(p, "ascii") for p in protocols] - return self._ctx.set_alpn_protos(protocols) # type: ignore[no-any-return] - - def wrap_socket( - self, - sock: socket_cls, - server_side: bool = False, - do_handshake_on_connect: bool = True, - suppress_ragged_eofs: bool = True, - server_hostname: bytes | str | None = None, - ) -> WrappedSocket: - cnx = OpenSSL.SSL.Connection(self._ctx, sock) - - # If server_hostname is an IP, don't use it for SNI, per RFC6066 Section 3 - if server_hostname and not util.ssl_.is_ipaddress(server_hostname): - if isinstance(server_hostname, str): - server_hostname = server_hostname.encode("utf-8") - cnx.set_tlsext_host_name(server_hostname) - - cnx.set_connect_state() - - while True: - try: - cnx.do_handshake() - except OpenSSL.SSL.WantReadError as e: - if not util.wait_for_read(sock, sock.gettimeout()): - raise timeout("select timed out") from e - continue - except OpenSSL.SSL.Error as e: - raise ssl.SSLError(f"bad handshake: {e!r}") from e - break - - return WrappedSocket(cnx, sock) - - def _set_ctx_options(self) -> None: - self._ctx.set_options( - self._options - | _openssl_to_ssl_minimum_version[self._minimum_version] - | _openssl_to_ssl_maximum_version[self._maximum_version] - ) - - @property - def minimum_version(self) -> int: - return self._minimum_version - - @minimum_version.setter - def minimum_version(self, minimum_version: int) -> None: - self._minimum_version = minimum_version - self._set_ctx_options() - - @property - def maximum_version(self) -> int: - return self._maximum_version - - @maximum_version.setter - def maximum_version(self, maximum_version: int) -> None: - self._maximum_version = maximum_version - self._set_ctx_options() - - -def _verify_callback( - cnx: OpenSSL.SSL.Connection, - x509: X509, - err_no: int, - err_depth: int, - return_code: int, -) -> bool: - return err_no == 0 diff --git a/spaces/pyodide-demo/self-hosted/scipy-tests.js b/spaces/pyodide-demo/self-hosted/scipy-tests.js deleted file mode 100644 index 8172aa41fddea00580550271ded3932b4b1baf0e..0000000000000000000000000000000000000000 --- a/spaces/pyodide-demo/self-hosted/scipy-tests.js +++ /dev/null @@ -1 +0,0 @@ -var Module=typeof globalThis.__pyodide_module!=="undefined"?globalThis.__pyodide_module:{};if(!Module.expectedDataFileDownloads){Module.expectedDataFileDownloads=0}Module.expectedDataFileDownloads++;(function(){var loadPackage=function(metadata){var PACKAGE_PATH="";if(typeof window==="object"){PACKAGE_PATH=window["encodeURIComponent"](window.location.pathname.toString().substring(0,window.location.pathname.toString().lastIndexOf("/"))+"/")}else if(typeof process==="undefined"&&typeof location!=="undefined"){PACKAGE_PATH=encodeURIComponent(location.pathname.toString().substring(0,location.pathname.toString().lastIndexOf("/"))+"/")}var PACKAGE_NAME="scipy-tests.data";var REMOTE_PACKAGE_BASE="scipy-tests.data";if(typeof Module["locateFilePackage"]==="function"&&!Module["locateFile"]){Module["locateFile"]=Module["locateFilePackage"];err("warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)")}var REMOTE_PACKAGE_NAME=Module["locateFile"]?Module["locateFile"](REMOTE_PACKAGE_BASE,""):REMOTE_PACKAGE_BASE;var REMOTE_PACKAGE_SIZE=metadata["remote_package_size"];var PACKAGE_UUID=metadata["package_uuid"];function fetchRemotePackage(packageName,packageSize,callback,errback){if(typeof process==="object"){require("fs").readFile(packageName,(function(err,contents){if(err){errback(err)}else{callback(contents.buffer)}}));return}var xhr=new XMLHttpRequest;xhr.open("GET",packageName,true);xhr.responseType="arraybuffer";xhr.onprogress=function(event){var url=packageName;var size=packageSize;if(event.total)size=event.total;if(event.loaded){if(!xhr.addedTotal){xhr.addedTotal=true;if(!Module.dataFileDownloads)Module.dataFileDownloads={};Module.dataFileDownloads[url]={loaded:event.loaded,total:size}}else{Module.dataFileDownloads[url].loaded=event.loaded}var total=0;var loaded=0;var num=0;for(var download in Module.dataFileDownloads){var data=Module.dataFileDownloads[download];total+=data.total;loaded+=data.loaded;num++}total=Math.ceil(total*Module.expectedDataFileDownloads/num);if(Module["setStatus"])Module["setStatus"]("Downloading data... ("+loaded+"/"+total+")")}else if(!Module.dataFileDownloads){if(Module["setStatus"])Module["setStatus"]("Downloading data...")}};xhr.onerror=function(event){throw new Error("NetworkError for: "+packageName)};xhr.onload=function(event){if(xhr.status==200||xhr.status==304||xhr.status==206||xhr.status==0&&xhr.response){var packageData=xhr.response;callback(packageData)}else{throw new Error(xhr.statusText+" : "+xhr.responseURL)}};xhr.send(null)}function handleError(error){console.error("package error:",error)}var fetchedCallback=null;var fetched=Module["getPreloadedPackage"]?Module["getPreloadedPackage"](REMOTE_PACKAGE_NAME,REMOTE_PACKAGE_SIZE):null;if(!fetched)fetchRemotePackage(REMOTE_PACKAGE_NAME,REMOTE_PACKAGE_SIZE,(function(data){if(fetchedCallback){fetchedCallback(data);fetchedCallback=null}else{fetched=data}}),handleError);function runWithFS(){function assert(check,msg){if(!check)throw msg+(new Error).stack}Module["FS_createPath"]("/","lib",true,true);Module["FS_createPath"]("/lib","python3.9",true,true);Module["FS_createPath"]("/lib/python3.9","site-packages",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages","scipy",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy","cluster",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/cluster","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy","constants",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/constants","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy","fft",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/fft","_pocketfft",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/fft/_pocketfft","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/fft","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy","fftpack",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/fftpack","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy","integrate",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/integrate","_ivp",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/integrate/_ivp","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/integrate","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy","interpolate",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/interpolate","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/interpolate/tests","data",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy","io",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/io","matlab",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/io/matlab","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/io/matlab/tests","data",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/io","arff",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/io/arff","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/io/arff/tests","data",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/io","harwell_boeing",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/io/harwell_boeing","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/io","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/io/tests","data",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy","linalg",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/linalg","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/linalg/tests","data",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy","misc",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/misc","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy","odr",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/odr","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy","optimize",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/optimize","_trustregion_constr",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/optimize/_trustregion_constr","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/optimize","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy","signal",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/signal","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy","sparse",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/sparse","linalg",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/sparse/linalg","isolve",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/sparse/linalg/isolve","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/sparse/linalg","dsolve",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/sparse/linalg/dsolve","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/sparse/linalg","eigen",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/sparse/linalg/eigen","arpack",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/sparse/linalg/eigen/arpack","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/sparse/linalg/eigen","lobpcg",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/sparse/linalg/eigen/lobpcg","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/sparse/linalg","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/sparse","csgraph",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/sparse/csgraph","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/sparse","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/sparse/tests","data",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy","spatial",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/spatial","transform",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/spatial/transform","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/spatial","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/spatial/tests","data",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy","special",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/special","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/special/tests","data",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy","stats",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/stats","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/stats/tests","data",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/stats/tests/data","nist_anova",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/stats/tests/data","nist_linregress",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy","ndimage",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/ndimage","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/ndimage/tests","data",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy","_build_utils",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/_build_utils","tests",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy","_lib",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/scipy/_lib","tests",true,true);function processPackageData(arrayBuffer){assert(arrayBuffer,"Loading data file failed.");assert(arrayBuffer instanceof ArrayBuffer,"bad input to processPackageData");var byteArray=new Uint8Array(arrayBuffer);var curr;var compressedData={data:null,cachedOffset:5802037,cachedIndexes:[-1,-1],cachedChunks:[null,null],offsets:[0,1264,2667,3997,5065,6106,7125,8148,9315,10142,10880,11728,13333,14337,15210,16138,16795,17523,18555,19052,19916,20624,21561,22348,22894,23754,24637,25640,26692,27446,28410,29388,30476,31360,32306,33096,34039,35151,36070,36869,37739,38861,39838,40930,41526,42412,43119,43664,44482,45366,46310,47452,48278,48990,50302,51233,52155,53228,54114,54800,55962,56735,57911,58760,59815,61238,62531,63579,64742,65552,66648,67150,67779,68361,69228,70422,71484,72677,73359,74622,75642,76060,76729,77376,78149,79063,80022,81039,81864,82635,83595,84662,85755,86362,87139,87740,88349,89216,90178,91065,91902,93036,93757,94386,95018,95576,96255,97077,97957,99755,101812,103050,104631,106679,108239,109717,110361,111146,112199,112870,113700,114293,115057,115875,116597,117416,118118,119090,120050,121651,123646,125702,127759,129755,131803,133851,135898,136779,137911,139200,140494,141718,142995,144216,145410,146600,147637,148877,150758,152771,154819,156867,158873,160921,162969,165017,166010,167684,169684,171682,173730,175731,177779,179827,181875,183392,184704,186589,188608,190656,192664,194712,196769,198817,200865,201765,203385,205367,207366,209414,211414,213462,215510,217558,218978,220374,222241,224246,226294,228295,230343,232391,234448,236496,237489,239202,241200,243202,245250,247250,249298,251346,253394,254812,255681,256548,257454,258184,259121,260383,261659,262836,264201,265478,266766,268013,269405,270770,272117,273475,274834,276154,277457,278764,279722,280596,281454,282320,283113,283967,284756,285536,286314,287105,287954,288731,289509,290287,291065,291843,292621,293400,294308,295479,296926,298372,299796,301241,302666,304088,305510,306955,308380,309801,311224,312639,314060,315483,316906,318215,319223,320564,321991,323418,324816,326233,327655,329056,330402,331810,333237,334650,336062,337421,338752,340077,341392,342415,343572,344927,346370,347800,349232,350659,352083,353508,354968,356376,357800,359221,360638,362060,363482,364909,366341,367231,368389,369787,371209,372628,374016,375440,376855,378202,379563,380987,382408,383821,385196,386536,387854,389161,390317,391399,392749,394185,395634,397068,398516,399946,401380,402803,404250,405679,407101,408524,409951,411367,412782,414198,415264,416431,417798,419251,420692,422130,423567,425002,426430,427850,429296,430725,432149,433581,434992,436400,437787,439157,440022,440892,441754,442575,443858,445754,447750,449807,451540,452458,453846,455362,456908,458452,459329,460885,462883,464884,466932,468374,469621,471489,473504,475552,477555,478432,480223,482225,484224,486272,487415,488804,490807,492819,494867,496564,497607,499426,501474,503480,505528,506403,508034,510036,512039,514087,515536,516398,517265,518344,519343,520548,521752,522720,523574,524226,524899,525784,526727,527505,528472,529381,530284,531381,532577,533602,534698,535977,536739,537741,538620,539529,540947,542007,543102,544339,545637,546719,547817,548750,549489,550262,551109,551878,553042,554218,555307,556100,557078,558238,559361,560623,561561,562614,563876,564743,565872,566796,567782,568676,569536,570793,571509,572626,574e3,574837,575855,576801,577690,578678,579468,580527,581560,582322,582875,583650,584732,585441,586020,586908,587861,588547,589296,589979,590969,591973,593184,594416,595247,596464,597449,598482,599519,600529,601415,602447,603474,604453,605392,606427,607210,608323,609298,610198,611065,611938,612948,613829,614937,615731,616656,617740,619052,619909,620655,621291,621984,622594,623405,624323,625256,626074,626992,628011,628943,629701,630499,631599,633039,634094,635150,635941,637142,637828,639104,640043,641282,642498,643650,644897,645824,646989,648370,649699,650564,651579,652576,653701,654493,655467,656659,657676,658671,659732,660856,661761,662638,663765,665056,666242,667456,668487,669608,670589,671593,672541,673482,674351,675614,676666,677621,678637,679749,680865,681955,682906,684072,685276,686306,687316,688495,689245,690002,690647,691686,692701,693483,694458,695490,696367,697292,697791,698535,699310,699861,700662,701325,702263,703039,703762,704762,705940,706613,707696,708871,709626,710542,711315,712307,713236,714194,715410,716528,717285,718273,719300,720307,722306,724354,726402,728450,730498,732546,734594,736642,738690,740738,742786,744834,746882,748929,750977,753025,755073,757116,759062,760399,761892,763122,764252,765353,766312,767283,768463,769587,770623,771921,772823,774073,775077,776291,777319,778344,779340,780476,781676,782833,783844,785182,786362,787527,788720,789712,790703,791640,792352,793113,794372,795444,796531,797581,798659,800593,802641,804689,806745,808793,810841,812889,814937,816985,819033,820086,821216,822478,824062,825065,825994,826471,827474,828748,829131,830024,830624,830958,831926,832899,834205,835886,836626,837710,838782,839799,840677,841518,842393,843315,844542,846194,847845,849291,850675,852060,853448,854832,856227,857611,858996,860416,861800,863185,864628,866012,867396,868863,870247,871632,873117,874501,875885,877371,878755,880140,881625,883009,884395,885776,886967,888159,889379,890572,891762,892956,894236,895426,896619,897888,899081,900271,901465,902697,903888,905080,906370,907563,908753,909951,911141,912332,913525,914815,916008,917198,918444,919634,920825,922017,923277,924470,925660,926917,928107,929299,930491,931701,932894,934084,935378,936568,937759,938977,940167,941360,942550,943838,945029,946221,947487,948677,949870,951060,952302,953492,954683,955975,957165,958358,959548,960741,961932,963123,964415,965605,966798,968036,968981,970417,971859,972701,973584,974791,975885,976946,977799,978700,979337,980055,980709,981624,982256,982910,983993,985194,986366,987116,987852,988675,989656,990659,991472,992444,993395,994459,995781,997005,998099,998935,1000167,1001394,1002370,1003487,1004312,1005389,1006085,1006953,1007877,1008471,1009337,1010233,1010687,1011474,1012573,1013175,1013952,1014935,1016151,1016873,1017634,1018394,1018974,1019748,1020477,1022508,1024300,1026092,1027884,1029676,1031468,1033260,1035052,1037100,1038891,1039790,1040539,1041333,1041358,1041383,1041408,1041433,1041458,1041955,1042699,1043329,1043496,1044412,1045185,1046067,1046865,1047215,1048732,1050522,1052122,1052969,1052997,1053025,1053053,1053081,1053109,1053660,1054821,1055669,1056428,1057196,1057969,1058814,1058842,1058870,1058898,1058926,1058954,1059380,1059838,1059863,1059888,1060531,1060822,1060850,1060885,1061626,1062390,1063128,1065095,1066887,1068679,1070471,1072263,1074055,1075847,1077639,1079397,1080308,1080594,1081444,1081472,1081500,1081528,1081556,1081584,1081612,1081640,1081668,1082107,1082644,1082672,1082724,1083519,1083544,1083592,1084365,1085030,1085808,1086607,1086632,1086657,1086682,1086707,1086732,1086757,1086782,1086807,1087063,1087382,1087660,1088990,1089759,1090457,1091207,1093094,1095142,1097190,1099238,1101286,1103334,1104574,1105415,1105990,1106901,1107620,1108352,1108794,1108819,1108844,1108869,1108894,1108942,1109715,1110517,1111010,1112026,1113230,1113989,1114779,1115521,1116273,1117332,1118564,1119771,1120961,1122134,1123242,1124342,1125442,1126538,1127638,1128739,1129842,1130944,1132044,1133141,1134238,1135338,1136687,1138103,1138820,1139706,1140816,1141540,1142359,1143602,1144804,1145687,1146304,1147327,1148348,1149243,1150264,1151613,1152627,1153916,1155056,1155959,1156807,1157742,1158540,1159362,1160301,1161432,1162542,1163835,1164977,1165848,1167151,1168439,1169687,1170894,1171936,1172953,1174261,1175273,1176329,1177210,1178129,1178887,1179966,1181136,1182168,1182979,1183794,1184806,1186005,1187116,1188394,1189589,1190655,1192019,1193272,1193847,1195049,1196120,1197230,1198466,1199337,1200638,1201976,1202955,1204281,1205520,1206689,1207637,1208544,1209800,1210858,1211893,1213127,1214115,1215370,1216762,1217476,1218484,1219704,1220785,1221695,1222625,1223231,1223957,1224615,1225470,1226533,1227355,1228176,1229005,1230071,1231092,1231961,1232813,1233419,1234316,1235517,1236248,1236793,1237542,1238163,1238732,1239437,1240089,1240676,1241274,1242085,1242620,1243524,1244140,1245048,1245849,1246670,1247609,1248624,1249895,1251005,1252089,1252959,1253971,1255021,1255899,1256773,1257918,1258961,1259951,1260937,1262008,1262498,1263043,1263757,1264685,1265295,1266140,1267005,1267919,1268778,1269516,1270161,1270738,1271300,1272281,1273212,1274140,1275124,1276274,1277051,1278025,1279082,1280191,1281237,1282220,1282710,1283471,1284023,1284683,1285760,1286381,1287064,1287872,1288644,1289260,1290110,1290775,1291538,1292468,1292937,1293388,1294327,1294927,1295780,1296633,1297296,1298069,1298654,1299198,1300007,1300636,1301342,1302122,1302954,1303489,1304670,1305969,1306695,1307509,1308348,1309208,1309868,1310916,1312106,1313007,1314109,1315133,1316151,1317209,1318183,1319175,1319938,1320922,1321757,1322804,1324012,1324848,1325967,1326874,1327889,1329023,1330168,1331221,1331982,1332603,1333519,1334166,1334820,1335415,1336066,1337066,1337544,1338257,1339311,1340239,1341362,1342274,1342988,1343921,1344655,1345489,1346287,1346997,1347723,1348669,1349775,1350541,1351526,1352609,1353861,1354767,1355515,1356594,1357532,1358453,1358989,1360179,1361078,1361859,1363010,1364306,1365194,1366160,1367308,1368671,1369707,1370906,1371705,1372496,1373058,1373900,1374827,1375657,1376407,1377003,1377803,1378583,1379476,1380393,1381776,1383130,1384528,1385965,1386897,1387996,1389089,1390308,1391399,1391990,1392028,1392226,1392320,1392432,1392550,1392653,1392774,1392892,1393006,1393105,1393225,1393345,1393480,1393602,1393718,1393884,1395653,1397628,1399613,1401313,1403091,1404666,1406694,1408254,1409967,1411791,1413711,1415698,1417660,1419351,1421255,1422749,1424089,1424498,1424785,1425778,1427038,1427835,1428015,1428283,1428333,1428384,1428434,1428485,1428542,1428698,1428735,1428774,1428811,1428850,1428889,1429039,1429203,1429241,1429279,1429575,1429644,1429669,1429694,1429719,1429744,1429769,1429794,1429963,1430118,1430324,1430477,1430711,1430736,1430761,1430786,1430811,1430836,1430861,1430886,1430911,1430936,1430961,1430986,1431011,1431036,1431061,1431086,1431111,1431136,1431161,1431186,1431211,1431236,1431261,1431286,1431311,1431336,1431361,1431386,1433169,1435217,1437253,1439207,1441035,1442633,1443824,1445036,1446136,1447441,1448709,1449897,1450849,1452165,1453257,1454313,1455301,1456329,1457407,1458580,1459640,1460528,1461627,1462659,1463751,1464764,1465720,1466836,1467780,1469228,1470194,1471339,1472398,1473569,1475059,1476865,1478801,1480836,1482854,1484620,1486159,1487165,1488061,1489176,1490364,1491581,1492700,1493891,1495171,1496511,1497683,1498551,1499634,1500593,1501468,1502335,1503303,1504469,1505237,1506261,1507251,1508234,1509223,1509709,1510312,1510904,1511409,1511935,1512385,1513020,1513797,1514684,1515308,1516119,1516796,1517842,1518971,1520300,1521055,1521938,1522805,1523869,1524631,1525499,1526279,1526993,1527723,1528789,1529609,1530524,1532011,1533239,1534161,1535007,1536196,1537106,1537849,1538601,1539652,1540420,1541734,1542479,1543223,1543816,1544918,1545471,1546614,1547719,1548565,1549424,1550555,1551730,1552497,1553331,1554037,1554932,1556120,1557130,1558296,1559435,1560761,1561899,1563034,1564046,1564920,1565832,1566767,1568043,1569043,1570081,1571127,1572215,1573204,1574171,1575415,1576559,1577668,1578829,1580039,1581028,1582149,1583261,1584460,1585529,1586218,1586651,1587601,1588699,1589641,1590511,1591384,1592004,1593145,1594277,1595135,1596270,1596877,1597787,1598914,1600116,1600848,1601375,1602146,1602538,1603224,1604129,1604617,1605161,1605764,1606206,1607175,1607966,1609069,1610128,1611383,1612622,1613869,1614662,1615544,1616644,1617498,1618356,1619080,1619851,1620816,1621403,1622083,1622896,1624078,1625231,1626226,1627322,1628298,1629077,1630033,1631142,1632393,1633282,1634445,1635382,1636380,1637326,1638577,1639723,1640670,1641743,1642712,1643873,1645096,1646155,1646939,1648011,1648936,1650119,1651291,1651838,1652741,1653717,1654808,1655447,1656094,1657108,1658196,1659514,1660768,1661830,1663157,1664323,1665080,1665862,1666935,1667937,1669002,1670368,1671628,1672654,1673529,1674723,1675995,1677347,1678505,1679715,1680949,1682276,1683578,1684446,1685305,1686197,1686979,1688059,1689185,1690412,1691289,1692246,1693370,1694498,1695410,1696591,1697458,1698615,1699718,1700839,1701523,1702580,1703720,1704407,1705497,1706409,1707546,1708886,1709945,1710824,1711690,1712591,1713889,1715223,1716420,1717364,1718289,1719314,1720322,1721368,1722182,1723212,1724136,1725320,1726294,1727051,1727885,1728849,1729663,1730449,1731451,1732291,1733201,1733984,1735040,1735445,1735913,1736574,1737510,1738370,1739379,1740028,1741150,1742206,1743165,1744303,1745161,1745905,1746817,1747790,1748710,1749549,1750606,1751807,1753072,1753981,1755070,1756251,1757535,1758515,1759379,1760224,1761323,1762227,1763415,1764349,1765106,1765937,1766678,1767945,1769092,1770007,1770935,1771990,1773035,1774235,1775270,1776103,1776641,1777849,1778840,1779408,1780141,1780658,1781678,1782859,1783788,1784710,1785417,1786315,1787196,1788447,1789652,1790741,1791660,1792678,1793752,1794847,1796150,1796961,1797868,1798766,1799683,1800429,1801144,1802282,1803327,1804630,1805363,1806051,1806668,1807300,1807840,1808759,1809363,1810125,1810861,1811371,1812091,1812785,1813447,1814575,1815565,1816443,1817229,1817778,1818747,1819910,1820476,1821167,1821836,1822294,1822910,1823981,1825055,1826186,1827320,1828234,1829472,1830523,1831463,1832446,1833584,1834175,1834869,1835561,1836177,1836983,1838008,1838895,1839662,1840669,1841415,1842541,1843618,1844758,1845902,1846927,1848123,1849208,1850439,1851322,1851961,1852525,1853621,1854384,1854893,1855511,1856164,1857190,1858088,1859054,1859953,1861241,1861959,1862903,1864157,1865282,1866658,1868020,1869186,1870180,1871381,1872448,1873478,1874384,1875086,1875963,1876565,1877557,1878384,1879180,1879690,1880212,1881350,1882318,1883452,1884581,1885483,1886296,1887203,1887901,1888473,1889503,1890587,1891877,1892958,1894125,1895156,1896268,1897326,1898072,1899293,1900406,1901434,1902167,1903224,1904144,1904887,1905750,1906638,1907990,1909051,1910063,1911216,1912715,1914109,1915162,1916375,1917553,1918858,1919897,1920900,1921954,1922840,1923838,1924692,1925560,1926684,1927746,1928880,1929888,1930720,1931915,1932870,1933833,1934490,1935368,1936069,1936820,1937538,1938400,1939776,1941055,1942296,1943565,1944388,1945415,1946156,1947368,1948848,1950339,1951466,1952580,1953400,1954401,1955710,1956675,1957496,1958298,1959166,1960263,1961261,1962347,1963296,1964391,1965503,1966380,1967378,1968385,1969412,1970512,1971165,1971973,1973148,1974098,1975265,1976346,1977553,1978376,1979333,1980337,1981358,1982400,1983262,1984091,1984958,1985828,1986715,1987624,1988411,1989430,1990333,1991412,1992196,1993453,1994623,1995512,1996180,1997285,1998159,1998940,1999802,2000585,2001505,2002224,2003131,2004355,2005546,2006949,2008222,2009302,2010829,2012327,2013820,2015340,2016834,2018344,2019605,2020583,2021599,2022601,2023569,2024535,2025222,2026357,2027412,2028508,2029514,2030479,2031294,2032231,2033370,2034583,2035483,2036431,2037377,2038342,2039208,2040381,2041456,2042436,2043358,2044250,2045218,2046154,2047150,2048322,2049396,2050262,2051265,2052391,2053642,2054609,2055558,2056621,2057789,2059120,2060054,2060923,2061671,2062350,2063111,2063827,2064817,2065570,2066673,2067473,2068183,2068869,2069706,2070725,2071510,2072452,2073502,2074438,2075362,2076086,2077083,2078004,2078787,2079683,2080525,2081492,2082466,2083193,2084287,2085618,2086883,2088141,2089192,2090104,2090861,2091467,2092596,2093469,2094417,2095480,2096270,2097062,2098173,2099108,2099692,2100492,2101165,2101740,2102584,2103539,2104664,2105873,2106945,2108276,2109548,2110511,2111712,2112947,2113991,2115157,2116021,2117225,2118263,2119158,2120277,2121625,2122771,2123958,2124783,2125536,2126613,2127672,2128749,2129971,2130968,2132142,2133147,2134242,2135215,2136439,2137738,2138661,2139600,2140967,2141974,2142793,2143733,2144732,2145642,2146795,2148037,2149219,2150263,2151509,2152599,2153549,2154627,2155603,2156592,2157608,2158415,2159825,2160599,2161713,2162742,2163647,2164790,2166133,2167040,2168392,2169741,2171154,2172302,2173587,2174772,2175775,2176797,2177487,2178406,2179595,2180777,2181964,2183125,2184133,2184788,2185374,2186227,2187157,2187888,2188856,2190053,2191243,2192215,2192923,2194061,2195305,2196240,2197032,2198048,2199285,2200512,2201446,2202310,2203234,2204034,2204839,2205971,2206811,2207546,2208606,2209707,2210743,2211676,2212667,2213774,2214680,2215234,2215969,2216982,2217640,2218497,2219396,2220456,2221322,2222324,2223363,2224031,2225180,2226323,2227354,2228380,2229196,2229892,2230691,2231617,2233077,2234407,2235318,2236082,2237204,2238058,2238822,2239364,2240128,2240918,2241486,2242269,2243158,2244134,2245093,2246237,2247238,2248170,2248851,2249578,2250354,2251191,2251883,2252633,2253626,2254403,2255028,2256006,2256864,2257942,2258569,2259704,2260613,2261576,2262515,2263532,2264297,2265317,2266205,2267147,2268045,2268996,2270096,2270856,2271787,2272809,2273755,2274667,2275674,2276548,2277179,2278228,2279079,2280208,2281131,2282032,2283015,2284020,2284840,2285751,2286450,2287377,2288250,2289177,2290075,2291004,2291953,2292740,2293837,2294727,2295768,2296798,2297935,2299074,2300166,2301138,2302314,2303390,2304229,2305290,2306063,2307161,2308500,2309684,2310820,2311940,2312969,2313902,2314794,2315594,2316710,2317348,2318097,2318806,2319847,2320662,2321446,2322059,2323047,2323877,2324811,2326081,2327542,2328559,2329505,2330485,2331380,2332277,2333284,2334517,2335426,2336612,2337497,2338537,2339350,2340103,2341040,2342042,2343016,2343954,2344828,2345716,2346609,2347491,2348254,2349383,2350233,2350871,2351992,2352927,2354075,2354817,2355750,2357014,2357677,2358356,2359308,2360308,2361279,2362051,2362989,2363746,2364591,2365667,2366542,2367617,2368529,2369648,2370711,2371967,2373255,2374371,2375375,2376408,2377438,2378466,2379735,2380854,2381882,2383060,2384180,2385124,2386146,2387241,2388383,2389401,2390239,2391326,2392339,2393589,2394460,2395572,2396717,2397627,2398731,2399834,2401023,2401904,2403096,2404147,2405264,2406348,2407289,2408246,2409361,2410483,2411611,2412669,2413705,2414685,2415772,2416860,2418015,2419003,2419799,2420932,2421897,2423316,2424243,2425407,2426616,2427867,2428796,2429815,2430858,2431518,2432627,2433778,2434892,2435763,2436697,2437486,2438035,2438669,2439439,2440003,2440659,2441413,2441821,2442419,2443002,2443539,2444023,2444708,2445851,2446912,2447964,2449063,2449979,2451088,2451981,2452875,2453571,2454367,2455392,2456454,2457638,2458606,2459478,2460658,2461813,2462699,2463619,2464711,2465953,2467240,2468423,2469869,2471514,2473169,2474836,2476492,2478299,2480109,2481895,2483684,2485479,2487248,2489038,2490821,2492612,2494394,2496178,2497939,2499706,2501490,2503259,2505081,2506851,2508639,2510434,2512208,2513989,2515768,2517545,2519340,2521092,2521547,2522038,2522533,2523005,2523452,2523934,2524408,2524887,2525340,2525824,2526326,2526795,2527273,2527754,2528215,2528710,2529185,2529681,2530155,2530627,2531091,2531579,2532030,2532494,2532968,2533439,2533914,2534377,2534861,2535343,2535820,2536304,2536794,2537277,2537756,2538247,2538721,2539204,2539683,2540165,2540642,2541061,2541535,2542014,2542490,2542966,2543452,2543937,2544424,2544890,2545360,2545809,2546256,2546696,2547176,2547646,2548104,2548546,2548988,2549454,2549899,2550363,2550813,2551261,2551706,2552169,2552632,2553089,2553557,2554020,2554465,2554908,2555363,2555838,2556308,2556755,2557220,2557670,2558113,2558566,2559015,2559458,2559904,2560362,2560789,2561241,2561677,2562937,2564313,2565750,2567161,2568592,2569989,2571465,2572937,2574406,2575870,2577340,2578826,2580236,2581663,2583065,2584501,2585885,2587277,2588681,2590111,2591538,2592952,2594411,2595839,2597147,2598572,2599981,2601406,2602845,2604282,2605717,2607144,2608567,2609957,2611306,2612677,2614085,2615436,2616844,2618264,2619649,2621005,2622423,2623823,2625224,2626597,2627955,2629307,2630662,2632152,2633606,2635017,2636447,2637840,2639313,2640777,2642147,2643583,2645032,2646474,2647903,2649361,2650799,2652235,2653629,2655092,2656544,2657947,2659389,2660809,2662231,2663627,2665014,2666404,2667820,2669253,2670662,2672067,2673535,2675e3,2676389,2677833,2679273,2680724,2682159,2683562,2684955,2686433,2687709,2689016,2690293,2691587,2692861,2694147,2695407,2696668,2697972,2699273,2700541,2701831,2703124,2704431,2705698,2706984,2708268,2709512,2710768,2712028,2713294,2714552,2715774,2717026,2718292,2719565,2720837,2722113,2723393,2724649,2725931,2727198,2728464,2729738,2730967,2732205,2733465,2734731,2735981,2737229,2738502,2739751,2741026,2742297,2743543,2744800,2746056,2747284,2748532,2749810,2751078,2752331,2753636,2754944,2756222,2757527,2758800,2760088,2761360,2762666,2763946,2765228,2766479,2767765,2769062,2770362,2771660,2772935,2774265,2775537,2776825,2778129,2779369,2780617,2781887,2783165,2784455,2785722,2787011,2788310,2789653,2790920,2792241,2793557,2794847,2796154,2797440,2798755,2799381,2799576,2799788,2799978,2800164,2800351,2800578,2800793,2800987,2801163,2801389,2801574,2801763,2801951,2802165,2802341,2802534,2802697,2802877,2803055,2803224,2803432,2803606,2803822,2804317,2805496,2806243,2806721,2807230,2807719,2808214,2808741,2809248,2810282,2811963,2813683,2815382,2817078,2818779,2820473,2822176,2823892,2825600,2827324,2829034,2830735,2832431,2834131,2835813,2837514,2839213,2840907,2842611,2844310,2846039,2847766,2849458,2851138,2852851,2854562,2856260,2857965,2859663,2861366,2863078,2864754,2866448,2868147,2869841,2871537,2873243,2874967,2876681,2878385,2880084,2881782,2883475,2885164,2886853,2888557,2890241,2891898,2893545,2895216,2896892,2898560,2900222,2901887,2903546,2905221,2906889,2908550,2910202,2911870,2913538,2915214,2916886,2918543,2920217,2921880,2923542,2925225,2926913,2928599,2930256,2931917,2933573,2935224,2936873,2938537,2940186,2941865,2943524,2945197,2946865,2948534,2950207,2951869,2953059,2954331,2955474,2956532,2957618,2958831,2959862,2960604,2961296,2961958,2962455,2962968,2963452,2964058,2964684,2965282,2966079,2967286,2968531,2969744,2970979,2972193,2973419,2974634,2975831,2977091,2978364,2979586,2980807,2982037,2983282,2984553,2985831,2987089,2988336,2989542,2990808,2992055,2993326,2994557,2995822,2997096,2998357,2999582,3000830,3002092,3003349,3004622,3005902,3007155,3008387,3009627,3010856,3012122,3013362,3014602,3015843,3017109,3018361,3019651,3020900,3022170,3023453,3024716,3025924,3027167,3028316,3029475,3030667,3031846,3033029,3034283,3035490,3036711,3037859,3039067,3040255,3041402,3042589,3043740,3044911,3046052,3047238,3048355,3049559,3050808,3052030,3053219,3054340,3055549,3056767,3057964,3059165,3060380,3061596,3062720,3063949,3065077,3066169,3067292,3068496,3069626,3070771,3071871,3073540,3075043,3076264,3077693,3079115,3080504,3081891,3083265,3084592,3085940,3087309,3088718,3090136,3091558,3092936,3094321,3095699,3097059,3098415,3099784,3101160,3102512,3103834,3105149,3106469,3107807,3109139,3110472,3111793,3113110,3114425,3115736,3117079,3118423,3119739,3121064,3122364,3123718,3125079,3126384,3127723,3129017,3130292,3131571,3132892,3134169,3135438,3136697,3137941,3139216,3140456,3141850,3143277,3144781,3146266,3147732,3149194,3150660,3152092,3153589,3154994,3156472,3157911,3159399,3160786,3162257,3163716,3165164,3166658,3168089,3169605,3171035,3172459,3173950,3175395,3176822,3178254,3179641,3181e3,3182344,3183780,3185267,3186793,3188301,3189772,3191298,3192767,3194257,3195766,3197258,3198570,3199818,3201054,3202301,3203550,3204767,3206018,3207252,3208467,3209751,3210975,3212210,3213449,3214728,3216003,3217287,3218535,3219777,3221032,3222266,3223532,3224772,3226028,3227275,3228543,3229799,3231068,3232298,3233541,3234782,3236009,3237280,3238521,3239761,3240997,3242226,3243486,3244733,3245973,3247259,3248501,3249728,3250994,3252250,3253515,3254747,3255996,3257226,3258460,3259710,3260955,3262203,3263418,3264692,3265990,3267224,3268469,3269758,3270998,3272264,3273554,3274793,3276061,3277360,3278626,3279892,3281147,3282411,3283687,3284934,3286209,3287476,3288738,3290015,3291283,3292531,3293786,3295056,3296314,3297561,3298791,3300029,3301243,3302453,3303711,3304916,3306169,3307680,3309446,3311257,3313013,3314718,3316388,3318089,3319794,3321475,3323178,3324852,3326572,3328263,3329961,3331662,3333369,3335062,3336780,3338470,3340174,3341890,3343595,3345303,3347004,3348708,3350406,3352122,3353825,3355542,3357244,3358937,3360627,3362332,3364025,3365715,3367417,3369124,3370823,3372531,3374234,3374817,3375329,3375888,3376451,3376986,3377543,3378081,3378609,3379128,3379649,3380162,3380692,3381224,3381754,3382298,3382850,3383382,3383904,3384427,3384962,3385468,3385997,3386496,3387013,3387597,3388108,3388621,3389161,3389672,3390187,3390726,3391279,3391810,3392329,3392865,3393408,3393931,3394451,3394975,3395524,3396047,3396601,3397141,3397650,3398162,3398697,3399247,3399726,3400263,3400742,3401224,3401728,3402223,3402696,3403212,3403710,3404222,3404722,3405203,3405705,3406203,3406703,3407206,3407714,3408213,3408711,3409203,3409695,3410072,3410576,3411086,3411554,3412039,3412545,3413041,3413559,3414024,3414511,3414995,3415490,3415968,3416438,3416933,3417430,3417911,3418395,3418865,3420203,3421863,3423526,3425206,3426746,3427984,3429267,3430543,3431814,3433053,3434312,3435575,3436787,3438044,3439342,3440581,3441815,3443081,3444346,3445649,3446937,3448219,3449500,3450739,3452020,3453260,3454541,3455809,3457088,3458343,3459609,3460889,3462176,3463447,3464723,3466e3,3467277,3468548,3469812,3471064,3472320,3473602,3474861,3476121,3477412,3478697,3479965,3481237,3482513,3483759,3485029,3486280,3487521,3488802,3490075,3491352,3492629,3493911,3495203,3496499,3497773,3499062,3500346,3501631,3502903,3504179,3505443,3506719,3508003,3509265,3510525,3511789,3513105,3514398,3515656,3516984,3518247,3519554,3520829,3522080,3523330,3524602,3525881,3527136,3528430,3529705,3530891,3532134,3533369,3534661,3535931,3537211,3538964,3540733,3542516,3544329,3546111,3547582,3548028,3549200,3550502,3551753,3552776,3553846,3555048,3556156,3556985,3558186,3559369,3560517,3561694,3562790,3563825,3565093,3566478,3567751,3568311,3568883,3569532,3570089,3570650,3571217,3571838,3573006,3574225,3575046,3576056,3576937,3577686,3578460,3579271,3580107,3581143,3582027,3582741,3583741,3584620,3585253,3585803,3586371,3587102,3588282,3589141,3589998,3590512,3591201,3591861,3592345,3593063,3593582,3594182,3595030,3595658,3596501,3597762,3598883,3599978,3601029,3601949,3602975,3604048,3605109,3606113,3607199,3607845,3608318,3608888,3609637,3610667,3611682,3612523,3613387,3614087,3614818,3615347,3616008,3617083,3617952,3619008,3619891,3620746,3621686,3622665,3623526,3624549,3625619,3626474,3627382,3628093,3628557,3629177,3630151,3631084,3632403,3633333,3634166,3635183,3636192,3637117,3637994,3638958,3639896,3640791,3641725,3642643,3643796,3645013,3645843,3646673,3647397,3648113,3648673,3649565,3650408,3651705,3652801,3653996,3655245,3656037,3657074,3658299,3659431,3660526,3661222,3662408,3663107,3664392,3665274,3666084,3666845,3667704,3668936,3670141,3671531,3672437,3673604,3674336,3675089,3676069,3677526,3678508,3679639,3680448,3681544,3682456,3683321,3684305,3684927,3685716,3686487,3687197,3688148,3688977,3689798,3690544,3691965,3693149,3694016,3695069,3695749,3696447,3697002,3697863,3698615,3699283,3700083,3701057,3701910,3703014,3703836,3704675,3705490,3706593,3707385,3708262,3709480,3710669,3711866,3713089,3714291,3715474,3716550,3717503,3718409,3719016,3719874,3720798,3721842,3722867,3723845,3724623,3725680,3726617,3727589,3728327,3729184,3730155,3731171,3732138,3733214,3734221,3735075,3735998,3736905,3738006,3739086,3740698,3741268,3741730,3742220,3742722,3743223,3743753,3744425,3745084,3745671,3746297,3746762,3747077,3747659,3748317,3748627,3749351,3751070,3753118,3755166,3757214,3759262,3761310,3763358,3765406,3767454,3769510,3771558,3773614,3775662,3777710,3779767,3781815,3783863,3785911,3787959,3790007,3792055,3794103,3796151,3798199,3800247,3802295,3804343,3806391,3808447,3810495,3812543,3814591,3816647,3818704,3820761,3822809,3824857,3826905,3828953,3830996,3833044,3835101,3837149,3839197,3841253,3843301,3845357,3847414,3849462,3851478,3853526,3855574,3857622,3859670,3861724,3863772,3865820,3867868,3869916,3871964,3874021,3876069,3878117,3880165,3882213,3884270,3886318,3888366,3890414,3892471,3894519,3896567,3898615,3900631,3902663,3904716,3906746,3908794,3910836,3912883,3914937,3916989,3919046,3921102,3923158,3925214,3927269,3929325,3931381,3933425,3935473,3937530,3939586,3941634,3943690,3945746,3947802,3949858,3951906,3953963,3956011,3957659,3958763,3960811,3962859,3964907,3966955,3969003,3971051,3973099,3975147,3977195,3979243,3981291,3983340,3985388,3987436,3989484,3991532,3993580,3995628,3997676,3999724,4001772,4003820,4005868,4007916,4009964,4012012,4014060,4016108,4018156,4020204,4022252,4024300,4026348,4028396,4030444,4032492,4034540,4036588,4038636,4040684,4042732,4044780,4046837,4048881,4050937,4052985,4055041,4057089,4059145,4061202,4063259,4065307,4067340,4069388,4071436,4073484,4075532,4077580,4079637,4081685,4083733,4085781,4087829,4089877,4091925,4093973,4096030,4098078,4100126,4102174,4104222,4106270,4108318,4110375,4112423,4114471,4116519,4118567,4120624,4122672,4124720,4126777,4128825,4130873,4132921,4134969,4137017,4139065,4141113,4143161,4145209,4147257,4149305,4151353,4153401,4155449,4157497,4159545,4161593,4163641,4165689,4167737,4169785,4171833,4173881,4175929,4177977,4180025,4182073,4184121,4186169,4188217,4190265,4192313,4194361,4196409,4198457,4200505,4202553,4204601,4206654,4208702,4210746,4212803,4214851,4216883,4218901,4220949,4222874,4224922,4226970,4229018,4231073,4233121,4235169,4237217,4239265,4241313,4243361,4245409,4247457,4249505,4251553,4253609,4255666,4257714,4259762,4261810,4263858,4265906,4267954,4270002,4272050,4274098,4276146,4278194,4280242,4282290,4284338,4286386,4288434,4290482,4292530,4294578,4296626,4298674,4300722,4302770,4304818,4306866,4308914,4310962,4313010,4315058,4317106,4319154,4321202,4323250,4325298,4327346,4329394,4331442,4333490,4335538,4337586,4339634,4341682,4343730,4345778,4347826,4349874,4351922,4353970,4356018,4358066,4360114,4362162,4364210,4366258,4368306,4370354,4372402,4374450,4376498,4378546,4380594,4382642,4384690,4386738,4388786,4390834,4392882,4394930,4396978,4399026,4401074,4403122,4405170,4407218,4409266,4411314,4413362,4415410,4417458,4419506,4421554,4423602,4425650,4427698,4429746,4431794,4433842,4435890,4437938,4439986,4442034,4444082,4446130,4448178,4450226,4452274,4454322,4456370,4458418,4460466,4462514,4464562,4466610,4468658,4470706,4472754,4474802,4476850,4478898,4480946,4482994,4485051,4487105,4489141,4491198,4493255,4495159,4496455,4496908,4497576,4499633,4501681,4503729,4505777,4507819,4509867,4511915,4513963,4516011,4518059,4520103,4522151,4524199,4526236,4528291,4529843,4531673,4533718,4535766,4537823,4539830,4541878,4543926,4545974,4548027,4550075,4551881,4553938,4555986,4558034,4560082,4562130,4564178,4566226,4568274,4570329,4572372,4574425,4576482,4578530,4580578,4582626,4584674,4586722,4588770,4590818,4592861,4594909,4596957,4599005,4601053,4603101,4605149,4607197,4609245,4611293,4613341,4615389,4617437,4619485,4621533,4623537,4625577,4627625,4629673,4631721,4633769,4635817,4637865,4639913,4641961,4644009,4646057,4648105,4650153,4652201,4654249,4656297,4658345,4660393,4662441,4664489,4666546,4668594,4670642,4672690,4674747,4676795,4678843,4680891,4682939,4684987,4687035,4689083,4691140,4693188,4695236,4697284,4699338,4701386,4703434,4705491,4707539,4709587,4711635,4713689,4715746,4717803,4719851,4721899,4723955,4726012,4728059,4730098,4732155,4734203,4736251,4738299,4740347,4742395,4744451,4746508,4748556,4750517,4752565,4754613,4756640,4758696,4760744,4762792,4764840,4766888,4768936,4770992,4773027,4775082,4777130,4779186,4781243,4783299,4785347,4787395,4789443,4791491,4793539,4795587,4797635,4799683,4801731,4803779,4805827,4807875,4809929,4811977,4814015,4816063,4818090,4820138,4821372,4822340,4823241,4824161,4825867,4827915,4829963,4832011,4834059,4836116,4838164,4840212,4842260,4844308,4846356,4848404,4850452,4851931,4852999,4854674,4856636,4858590,4860556,4862493,4864547,4866595,4868643,4870691,4871772,4873115,4875039,4877029,4879027,4881006,4882978,4885026,4886947,4888895,4890809,4892857,4894913,4896970,4898987,4901040,4903095,4905133,4907181,4909229,4911277,4913325,4915373,4917421,4919469,4921517,4923565,4925613,4927661,4929709,4931757,4933805,4935853,4937901,4939949,4941997,4944045,4946093,4948141,4950189,4952237,4954285,4956333,4958381,4960429,4962477,4964525,4966573,4968621,4970669,4972717,4974765,4976813,4978861,4980909,4982957,4985005,4987053,4989101,4991149,4993197,4995245,4997293,4999341,5001389,5003437,5005485,5007533,5009581,5011629,5013677,5015725,5017773,5019821,5021869,5023720,5025633,5027597,5029582,5031573,5033588,5035513,5037429,5039380,5041297,5043242,5045221,5047224,5049220,5051164,5053113,5055106,5056954,5058929,5060964,5063021,5065058,5067115,5069164,5071219,5073022,5073767,5074607,5075271,5076272,5077098,5078078,5079241,5080310,5081489,5082299,5083094,5084089,5084911,5085662,5086710,5087719,5088942,5090125,5091280,5092452,5093624,5094710,5095534,5096443,5097469,5098559,5099628,5100196,5101310,5102410,5103306,5104126,5105235,5106147,5107166,5108025,5109067,5110111,5111268,5112298,5113260,5113730,5114628,5115548,5116377,5117242,5118506,5119689,5120361,5121140,5121858,5122530,5123593,5124310,5124955,5125797,5126395,5127510,5128893,5130088,5131179,5131845,5132916,5133910,5135091,5136154,5137154,5138320,5139377,5140109,5140901,5141800,5142700,5143251,5144135,5145330,5146178,5147186,5148325,5149544,5150484,5151430,5152569,5153663,5154638,5155804,5157117,5158461,5159501,5160668,5161966,5163093,5164254,5165146,5166139,5167097,5168052,5168884,5169743,5170814,5171873,5172403,5173291,5173664,5174631,5175126,5176139,5177003,5178389,5179491,5180379,5181345,5181796,5182976,5183930,5184875,5186156,5187333,5188279,5188901,5189621,5190668,5191660,5192631,5193537,5194789,5195377,5196118,5197181,5198256,5198918,5199786,5200984,5202057,5203120,5204201,5205295,5206462,5207447,5208071,5208794,5209812,5210760,5211777,5212913,5213913,5214908,5215782,5216672,5217596,5218473,5219267,5220147,5220966,5221685,5222299,5223174,5224276,5225187,5226210,5227382,5228530,5229532,5230237,5231240,5232214,5232877,5233513,5234502,5235669,5236665,5238085,5239388,5240314,5241425,5242690,5243387,5244273,5244980,5245805,5247055,5248103,5249328,5250465,5251332,5252415,5253495,5254450,5255371,5256389,5257466,5258787,5260337,5261668,5262819,5263964,5264649,5265558,5266653,5267680,5268856,5269690,5270689,5271675,5272808,5273584,5274923,5275529,5275977,5277191,5278274,5278897,5279595,5280416,5281319,5282339,5283596,5285107,5286593,5287692,5288652,5289405,5290149,5291602,5293202,5294490,5295522,5296650,5297880,5298749,5299713,5300591,5301595,5302465,5303308,5304282,5305265,5306239,5306834,5307538,5308411,5309032,5309871,5310968,5311648,5312612,5313686,5314879,5316240,5317449,5318183,5319071,5319808,5320507,5321770,5323147,5324416,5325387,5326541,5327744,5328710,5329951,5331087,5332152,5333523,5334732,5335951,5336940,5337977,5339155,5340443,5341723,5342782,5344044,5345214,5346418,5347649,5348884,5349874,5350989,5352353,5353526,5354542,5355889,5356960,5358007,5359327,5360075,5361069,5362125,5363190,5364445,5365499,5366705,5367754,5368912,5369898,5370928,5371895,5372790,5373792,5375142,5376338,5377309,5378433,5379587,5380684,5381531,5382410,5383e3,5384017,5385040,5386024,5387207,5388224,5389403,5390388,5391540,5392597,5393691,5394987,5396215,5397530,5398643,5399759,5400704,5401631,5402931,5403933,5404869,5406027,5407012,5407860,5408743,5409547,5410291,5411152,5411875,5412865,5413923,5415055,5416157,5417387,5418538,5419737,5420306,5421273,5422316,5423075,5424067,5425082,5425934,5427003,5427989,5428583,5430032,5431066,5432018,5433108,5434330,5435368,5436329,5437541,5438533,5439593,5440476,5441486,5442743,5443777,5444753,5445543,5446571,5447679,5448915,5450185,5451225,5452367,5453498,5454476,5455731,5456893,5458093,5459152,5460375,5461405,5462418,5463274,5464250,5465095,5465822,5466907,5468077,5468823,5469655,5470770,5472054,5473110,5474382,5475657,5476917,5477890,5478581,5479549,5480371,5481365,5482395,5483227,5484500,5485467,5486759,5487596,5488738,5489966,5491484,5492616,5493568,5494744,5495791,5496956,5497659,5498505,5499498,5500452,5501485,5502660,5503567,5504708,5505957,5507283,5508303,5508945,5510037,5511185,5512378,5513563,5514581,5515779,5516904,5518124,5519381,5520761,5522026,5523374,5524605,5525405,5526910,5528024,5529374,5530649,5531969,5533138,5534136,5535135,5536252,5537244,5538455,5539743,5540492,5541613,5542724,5543848,5544893,5545800,5546854,5547927,5548816,5549634,5550538,5551514,5552754,5553975,5555264,5556346,5557461,5558425,5559459,5560508,5561512,5562306,5563573,5564551,5565671,5566687,5568435,5570085,5571293,5572372,5573467,5574715,5575455,5576534,5577728,5578505,5579273,5580101,5580769,5581890,5582774,5583706,5584608,5585700,5586532,5587435,5588273,5589263,559e4,5590934,5592014,5592631,5593657,5594642,5595546,5596368,5597286,5597965,5598801,5599591,5600335,5601154,5601833,5602847,5603340,5603825,5604256,5604722,5605131,5605548,5605913,5606401,5606870,5607290,5607723,5608157,5608610,5609146,5609416,5609679,5609946,5611200,5613164,5615019,5616037,5616098,5616159,5616229,5616268,5616314,5616353,5616660,5616927,5617194,5618280,5620191,5622040,5623287,5623348,5623409,5623470,5623521,5623568,5623607,5624503,5624639,5624772,5625039,5625993,5626972,5627168,5627290,5627822,5628340,5628395,5628450,5628505,5628560,5628615,5628670,5628725,5628780,5628835,5628890,5628945,5629e3,5629055,5629110,5629165,5629220,5629275,5629330,5629385,5629440,5629495,5629550,5629605,5629660,5629715,5629770,5629825,5629880,5629935,5629990,5630075,5630130,5630185,5630240,5630295,5630350,5630405,5630460,5630515,5630570,5630625,5630680,5630735,5630790,5630845,5630900,5630955,5631010,5631065,5631120,5631175,5631230,5631285,5631340,5631395,5631450,5631505,5631560,5631615,5631670,5631725,5631806,5631861,5631916,5631971,5632026,5632081,5632136,5632191,5632246,5632301,5632356,5632411,5632466,5632521,5632576,5632631,5632686,5632741,5632796,5632851,5632906,5632961,5633016,5633071,5633126,5633181,5633236,5633291,5633346,5633401,5633456,5633511,5633592,5633647,5633702,5633757,5633812,5633867,5633922,5633977,5634032,5634087,5634142,5634197,5634252,5634307,5634362,5634417,5634472,5634527,5634582,5634637,5634692,5634747,5634802,5634857,5634912,5634967,5635022,5635077,5635132,5635187,5635242,5635324,5635379,5635434,5635489,5635544,5635599,5635654,5635709,5635764,5635819,5635874,5635929,5635984,5636039,5636094,5636149,5636204,5636259,5636314,5636369,5636424,5636479,5636534,5636589,5636644,5636699,5636754,5636809,5636864,5636919,5636974,5637055,5637110,5637165,5637220,5637275,5637330,5637385,5637440,5637495,5637550,5637605,5637660,5637715,5637770,5637825,5637880,5637935,5637990,5638045,5638100,5638155,5638210,5638265,5638320,5638375,5638430,5638485,5638540,5638595,5638650,5638705,5638774,5638829,5638884,5638939,5638994,5639049,5639104,5639159,5639214,5639269,5639324,5639379,5639434,5639489,5639544,5639599,5639654,5639709,5639764,5639819,5639874,5639929,5639984,5640039,5640094,5640149,5640204,5640259,5640314,5640369,5640424,5640479,5640560,5640615,5640670,5640725,5640780,5640835,5640890,5640945,5641e3,5641055,5641110,5641165,5641220,5641275,5641330,5641385,5641440,5641495,5641550,5641605,5641660,5641715,5641770,5641825,5641880,5641935,5641990,5642045,5642100,5642155,5642210,5642291,5642346,5642401,5642456,5642511,5642566,5642621,5642676,5642731,5642786,5642841,5642896,5642951,5643006,5643061,5643116,5643171,5643226,5643281,5643336,5643391,5643446,5643501,5643556,5643611,5643666,5643721,5643776,5643831,5643886,5643941,5644367,5644923,5644969,5645045,5645097,5645146,5645217,5645264,5645344,5645396,5645446,5645518,5645559,5645625,5645670,5645720,5645793,5645845,5645916,5645963,5646016,5646095,5646146,5646885,5647121,5647176,5647231,5647316,5647371,5647426,5647508,5647563,5647618,5647699,5647754,5647809,5647890,5647945,5648e3,5648081,5648136,5648191,5648246,5648306,5648361,5648416,5648497,5648552,5648607,5648688,5648743,5648798,5649624,5649777,5649832,5649918,5649968,5650021,5650087,5650138,5650194,5650265,5650321,5650375,5650444,5650498,5650544,5650621,5650676,5650727,5650804,5650858,5650907,5650969,5651016,5651091,5651145,5651196,5651709,5652181,5652226,5652276,5652328,5652380,5652427,5652474,5652527,5652580,5652631,5652679,5652724,5652766,5652810,5652856,5652907,5652959,5653008,5653055,5653102,5653155,5653207,5653257,5653306,5653372,5653415,5653460,5653510,5653562,5653614,5653661,5653708,5653761,5653814,5653865,5653914,5653959,5654001,5654045,5654091,5654142,5654194,5654243,5654290,5654337,5654390,5654442,5654492,5654541,5654604,5654647,5654692,5654742,5654794,5654846,5654893,5654940,5654993,5655046,5655097,5655146,5655191,5655233,5655277,5655323,5655374,5655426,5655475,5655522,5655569,5655622,5655674,5655724,5655797,5655838,5655881,5655926,5655976,5656028,5656080,5656127,5656174,5656227,5656280,5656331,5656380,5656425,5656467,5656511,5656557,5656608,5656660,5656709,5656756,5656803,5656856,5656908,5656958,5657031,5657072,5657115,5657160,5657210,5657262,5657314,5657361,5657408,5657461,5657514,5657565,5657614,5657659,5657701,5657745,5657791,5657842,5657894,5657943,5657990,5658037,5658090,5658142,5658216,5658265,5658306,5658349,5658394,5658444,5658496,5658548,5658595,5658642,5658695,5658748,5658799,5658848,5658893,5658935,5658979,5659025,5659076,5659128,5659177,5659224,5659271,5659324,5659399,5659449,5659498,5659539,5659582,5659627,5659677,5659729,5659781,5659828,5659875,5659928,5659981,5660032,5660081,5660126,5660168,5660212,5660258,5660309,5660361,5660410,5660457,5660504,5660557,5660633,5660683,5660732,5660773,5660816,5660861,5660911,5660963,5661015,5661062,5661109,5661162,5661215,5661266,5661315,5661360,5661402,5661446,5661492,5661543,5661595,5661644,5661691,5661738,5661817,5661869,5661919,5661968,5662009,5662052,5662097,5662147,5662199,5662251,5662298,5662345,5662398,5662451,5662502,5662551,5662596,5662638,5662682,5662728,5662779,5662831,5662880,5662927,5662974,5663918,5663969,5664025,5664074,5664130,5664184,5664232,5664286,5664332,5664388,5664443,5664494,5664545,5664599,5664648,5664704,5664751,5664807,5664860,5664911,5664963,5665012,5665062,5665119,5665167,5665222,5665276,5665326,5665379,5665448,5665499,5665555,5665604,5665660,5665714,5665762,5665816,5665862,5665916,5665971,5666022,5666073,5666127,5666176,5666233,5666280,5666334,5666388,5666439,5666491,5666540,5666590,5666647,5666695,5666750,5666804,5666854,5666933,5666978,5667029,5667085,5667134,5667190,5667244,5667292,5667346,5667392,5667446,5667501,5667552,5667603,5667657,5667706,5667763,5667810,5667864,5667918,5667969,5668021,5668070,5668120,5668177,5668225,5668280,5668334,5668406,5668459,5668504,5668555,5668611,5668660,5668716,5668770,5668818,5668872,5668918,5668972,5669027,5669078,5669129,5669183,5669232,5669289,5669336,5669390,5669444,5669495,5669547,5669596,5669646,5669703,5669751,5669806,5669860,5669932,5669985,5670030,5670081,5670137,5670186,5670242,5670296,5670344,5670398,5670444,5670498,5670553,5670604,5670655,5670709,5670758,5670815,5670862,5670916,5670970,5671021,5671073,5671122,5671172,5671229,5671277,5671332,5671414,5671464,5671517,5671562,5671613,5671669,5671718,5671774,5671828,5671876,5671930,5671976,5672030,5672085,5672136,5672187,5672241,5672290,5672347,5672394,5672448,5672502,5672553,5672605,5672654,5672704,5672761,5672809,5672885,5672939,5672989,5673042,5673087,5673138,5673194,5673243,5673299,5673353,5673401,5673455,5673501,5673555,5673610,5673661,5673712,5673766,5673815,5673872,5673919,5673973,5674027,5674078,5674130,5674179,5674229,5674286,5674334,5674412,5674466,5674516,5674569,5674614,5674665,5674721,5674770,5674826,5674880,5674928,5674982,5675028,5675082,5675137,5675188,5675239,5675293,5675342,5675399,5675446,5675500,5675554,5675605,5675657,5675706,5675756,5675813,5675882,5675937,5675991,5676041,5676094,5676139,5676190,5676246,5676295,5676351,5676405,5676453,5676507,5676553,5676607,5676662,5676713,5676764,5676818,5676867,5676924,5676971,5677025,5677079,5677130,5677182,5677231,5677281,5677578,5678666,5679303,5679429,5679892,5680938,5681836,5682879,5683372,5684025,5684985,5685959,5686797,5687507,5688035,5688487,5689081,5689717,5690354,5691017,5691526,5692314,5692944,5693456,5694257,5694923,5695377,5695920,5696611,5697274,5698036,5698630,5699190,5699703,5700257,5700829,5701382,5702114,5702710,5703579,5704408,5705088,5705584,5706804,5707810,5708526,5709198,5709906,5711004,5711559,5712471,5713620,5714614,5715090,5715686,5716197,5716725,5717261,5718204,5719253,5720002,5720979,5721606,5722232,5722693,5723251,5724047,5725019,5726042,5726722,5727306,5728205,5729316,5730423,5731446,5731994,5732547,5733357,5734234,5734868,5735498,5736168,5736788,5737411,5738030,5738675,5739287,5739816,5740509,5741037,5741521,5742102,5742646,5743040,5743467,5743979,5744536,5745179,5745663,5746251,5746791,5747337,5748071,5748824,5749447,5749814,5750239,5750797,5751309,5751870,5752489,5752917,5753429,5754080,5754635,5755212,5755796,5756370,5756778,5757255,5757744,5758246,5758727,5759262,5759948,5760638,5761215,5762019,5762560,5764300,5765398,5766099,5766667,5767109,5767620,5768369,5769385,5769898,5770419,5771036,5771639,5772462,5773145,5773665,5774216,5774676,5775198,5775971,5776452,5776904,5777280,5777700,5778459,5779518,5780603,5781788,5782662,5783737,5784828,5785825,5786688,5787831,5789061,5790121,5791242,5792242,5793405,5794294,5795171,5796238,5797239,5798299,5799443,5800635,5801395],sizes:[1264,1403,1330,1068,1041,1019,1023,1167,827,738,848,1605,1004,873,928,657,728,1032,497,864,708,937,787,546,860,883,1003,1052,754,964,978,1088,884,946,790,943,1112,919,799,870,1122,977,1092,596,886,707,545,818,884,944,1142,826,712,1312,931,922,1073,886,686,1162,773,1176,849,1055,1423,1293,1048,1163,810,1096,502,629,582,867,1194,1062,1193,682,1263,1020,418,669,647,773,914,959,1017,825,771,960,1067,1093,607,777,601,609,867,962,887,837,1134,721,629,632,558,679,822,880,1798,2057,1238,1581,2048,1560,1478,644,785,1053,671,830,593,764,818,722,819,702,972,960,1601,1995,2056,2057,1996,2048,2048,2047,881,1132,1289,1294,1224,1277,1221,1194,1190,1037,1240,1881,2013,2048,2048,2006,2048,2048,2048,993,1674,2e3,1998,2048,2001,2048,2048,2048,1517,1312,1885,2019,2048,2008,2048,2057,2048,2048,900,1620,1982,1999,2048,2e3,2048,2048,2048,1420,1396,1867,2005,2048,2001,2048,2048,2057,2048,993,1713,1998,2002,2048,2e3,2048,2048,2048,1418,869,867,906,730,937,1262,1276,1177,1365,1277,1288,1247,1392,1365,1347,1358,1359,1320,1303,1307,958,874,858,866,793,854,789,780,778,791,849,777,778,778,778,778,778,779,908,1171,1447,1446,1424,1445,1425,1422,1422,1445,1425,1421,1423,1415,1421,1423,1423,1309,1008,1341,1427,1427,1398,1417,1422,1401,1346,1408,1427,1413,1412,1359,1331,1325,1315,1023,1157,1355,1443,1430,1432,1427,1424,1425,1460,1408,1424,1421,1417,1422,1422,1427,1432,890,1158,1398,1422,1419,1388,1424,1415,1347,1361,1424,1421,1413,1375,1340,1318,1307,1156,1082,1350,1436,1449,1434,1448,1430,1434,1423,1447,1429,1422,1423,1427,1416,1415,1416,1066,1167,1367,1453,1441,1438,1437,1435,1428,1420,1446,1429,1424,1432,1411,1408,1387,1370,865,870,862,821,1283,1896,1996,2057,1733,918,1388,1516,1546,1544,877,1556,1998,2001,2048,1442,1247,1868,2015,2048,2003,877,1791,2002,1999,2048,1143,1389,2003,2012,2048,1697,1043,1819,2048,2006,2048,875,1631,2002,2003,2048,1449,862,867,1079,999,1205,1204,968,854,652,673,885,943,778,967,909,903,1097,1196,1025,1096,1279,762,1002,879,909,1418,1060,1095,1237,1298,1082,1098,933,739,773,847,769,1164,1176,1089,793,978,1160,1123,1262,938,1053,1262,867,1129,924,986,894,860,1257,716,1117,1374,837,1018,946,889,988,790,1059,1033,762,553,775,1082,709,579,888,953,686,749,683,990,1004,1211,1232,831,1217,985,1033,1037,1010,886,1032,1027,979,939,1035,783,1113,975,900,867,873,1010,881,1108,794,925,1084,1312,857,746,636,693,610,811,918,933,818,918,1019,932,758,798,1100,1440,1055,1056,791,1201,686,1276,939,1239,1216,1152,1247,927,1165,1381,1329,865,1015,997,1125,792,974,1192,1017,995,1061,1124,905,877,1127,1291,1186,1214,1031,1121,981,1004,948,941,869,1263,1052,955,1016,1112,1116,1090,951,1166,1204,1030,1010,1179,750,757,645,1039,1015,782,975,1032,877,925,499,744,775,551,801,663,938,776,723,1e3,1178,673,1083,1175,755,916,773,992,929,958,1216,1118,757,988,1027,1007,1999,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2047,2048,2048,2048,2043,1946,1337,1493,1230,1130,1101,959,971,1180,1124,1036,1298,902,1250,1004,1214,1028,1025,996,1136,1200,1157,1011,1338,1180,1165,1193,992,991,937,712,761,1259,1072,1087,1050,1078,1934,2048,2048,2056,2048,2048,2048,2048,2048,2048,1053,1130,1262,1584,1003,929,477,1003,1274,383,893,600,334,968,973,1306,1681,740,1084,1072,1017,878,841,875,922,1227,1652,1651,1446,1384,1385,1388,1384,1395,1384,1385,1420,1384,1385,1443,1384,1384,1467,1384,1385,1485,1384,1384,1486,1384,1385,1485,1384,1386,1381,1191,1192,1220,1193,1190,1194,1280,1190,1193,1269,1193,1190,1194,1232,1191,1192,1290,1193,1190,1198,1190,1191,1193,1290,1193,1190,1246,1190,1191,1192,1260,1193,1190,1257,1190,1192,1192,1210,1193,1190,1294,1190,1191,1218,1190,1193,1190,1288,1191,1192,1266,1190,1193,1190,1242,1190,1191,1292,1190,1193,1190,1193,1191,1191,1292,1190,1193,1238,945,1436,1442,842,883,1207,1094,1061,853,901,637,718,654,915,632,654,1083,1201,1172,750,736,823,981,1003,813,972,951,1064,1322,1224,1094,836,1232,1227,976,1117,825,1077,696,868,924,594,866,896,454,787,1099,602,777,983,1216,722,761,760,580,774,729,2031,1792,1792,1792,1792,1792,1792,1792,2048,1791,899,749,794,25,25,25,25,25,497,744,630,167,916,773,882,798,350,1517,1790,1600,847,28,28,28,28,28,551,1161,848,759,768,773,845,28,28,28,28,28,426,458,25,25,643,291,28,35,741,764,738,1967,1792,1792,1792,1792,1792,1792,1792,1758,911,286,850,28,28,28,28,28,28,28,28,439,537,28,52,795,25,48,773,665,778,799,25,25,25,25,25,25,25,25,256,319,278,1330,769,698,750,1887,2048,2048,2048,2048,2048,1240,841,575,911,719,732,442,25,25,25,25,48,773,802,493,1016,1204,759,790,742,752,1059,1232,1207,1190,1173,1108,1100,1100,1096,1100,1101,1103,1102,1100,1097,1097,1100,1349,1416,717,886,1110,724,819,1243,1202,883,617,1023,1021,895,1021,1349,1014,1289,1140,903,848,935,798,822,939,1131,1110,1293,1142,871,1303,1288,1248,1207,1042,1017,1308,1012,1056,881,919,758,1079,1170,1032,811,815,1012,1199,1111,1278,1195,1066,1364,1253,575,1202,1071,1110,1236,871,1301,1338,979,1326,1239,1169,948,907,1256,1058,1035,1234,988,1255,1392,714,1008,1220,1081,910,930,606,726,658,855,1063,822,821,829,1066,1021,869,852,606,897,1201,731,545,749,621,569,705,652,587,598,811,535,904,616,908,801,821,939,1015,1271,1110,1084,870,1012,1050,878,874,1145,1043,990,986,1071,490,545,714,928,610,845,865,914,859,738,645,577,562,981,931,928,984,1150,777,974,1057,1109,1046,983,490,761,552,660,1077,621,683,808,772,616,850,665,763,930,469,451,939,600,853,853,663,773,585,544,809,629,706,780,832,535,1181,1299,726,814,839,860,660,1048,1190,901,1102,1024,1018,1058,974,992,763,984,835,1047,1208,836,1119,907,1015,1134,1145,1053,761,621,916,647,654,595,651,1e3,478,713,1054,928,1123,912,714,933,734,834,798,710,726,946,1106,766,985,1083,1252,906,748,1079,938,921,536,1190,899,781,1151,1296,888,966,1148,1363,1036,1199,799,791,562,842,927,830,750,596,800,780,893,917,1383,1354,1398,1437,932,1099,1093,1219,1091,591,38,198,94,112,118,103,121,118,114,99,120,120,135,122,116,166,1769,1975,1985,1700,1778,1575,2028,1560,1713,1824,1920,1987,1962,1691,1904,1494,1340,409,287,993,1260,797,180,268,50,51,50,51,57,156,37,39,37,39,39,150,164,38,38,296,69,25,25,25,25,25,25,169,155,206,153,234,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,1783,2048,2036,1954,1828,1598,1191,1212,1100,1305,1268,1188,952,1316,1092,1056,988,1028,1078,1173,1060,888,1099,1032,1092,1013,956,1116,944,1448,966,1145,1059,1171,1490,1806,1936,2035,2018,1766,1539,1006,896,1115,1188,1217,1119,1191,1280,1340,1172,868,1083,959,875,867,968,1166,768,1024,990,983,989,486,603,592,505,526,450,635,777,887,624,811,677,1046,1129,1329,755,883,867,1064,762,868,780,714,730,1066,820,915,1487,1228,922,846,1189,910,743,752,1051,768,1314,745,744,593,1102,553,1143,1105,846,859,1131,1175,767,834,706,895,1188,1010,1166,1139,1326,1138,1135,1012,874,912,935,1276,1e3,1038,1046,1088,989,967,1244,1144,1109,1161,1210,989,1121,1112,1199,1069,689,433,950,1098,942,870,873,620,1141,1132,858,1135,607,910,1127,1202,732,527,771,392,686,905,488,544,603,442,969,791,1103,1059,1255,1239,1247,793,882,1100,854,858,724,771,965,587,680,813,1182,1153,995,1096,976,779,956,1109,1251,889,1163,937,998,946,1251,1146,947,1073,969,1161,1223,1059,784,1072,925,1183,1172,547,903,976,1091,639,647,1014,1088,1318,1254,1062,1327,1166,757,782,1073,1002,1065,1366,1260,1026,875,1194,1272,1352,1158,1210,1234,1327,1302,868,859,892,782,1080,1126,1227,877,957,1124,1128,912,1181,867,1157,1103,1121,684,1057,1140,687,1090,912,1137,1340,1059,879,866,901,1298,1334,1197,944,925,1025,1008,1046,814,1030,924,1184,974,757,834,964,814,786,1002,840,910,783,1056,405,468,661,936,860,1009,649,1122,1056,959,1138,858,744,912,973,920,839,1057,1201,1265,909,1089,1181,1284,980,864,845,1099,904,1188,934,757,831,741,1267,1147,915,928,1055,1045,1200,1035,833,538,1208,991,568,733,517,1020,1181,929,922,707,898,881,1251,1205,1089,919,1018,1074,1095,1303,811,907,898,917,746,715,1138,1045,1303,733,688,617,632,540,919,604,762,736,510,720,694,662,1128,990,878,786,549,969,1163,566,691,669,458,616,1071,1074,1131,1134,914,1238,1051,940,983,1138,591,694,692,616,806,1025,887,767,1007,746,1126,1077,1140,1144,1025,1196,1085,1231,883,639,564,1096,763,509,618,653,1026,898,966,899,1288,718,944,1254,1125,1376,1362,1166,994,1201,1067,1030,906,702,877,602,992,827,796,510,522,1138,968,1134,1129,902,813,907,698,572,1030,1084,1290,1081,1167,1031,1112,1058,746,1221,1113,1028,733,1057,920,743,863,888,1352,1061,1012,1153,1499,1394,1053,1213,1178,1305,1039,1003,1054,886,998,854,868,1124,1062,1134,1008,832,1195,955,963,657,878,701,751,718,862,1376,1279,1241,1269,823,1027,741,1212,1480,1491,1127,1114,820,1001,1309,965,821,802,868,1097,998,1086,949,1095,1112,877,998,1007,1027,1100,653,808,1175,950,1167,1081,1207,823,957,1004,1021,1042,862,829,867,870,887,909,787,1019,903,1079,784,1257,1170,889,668,1105,874,781,862,783,920,719,907,1224,1191,1403,1273,1080,1527,1498,1493,1520,1494,1510,1261,978,1016,1002,968,966,687,1135,1055,1096,1006,965,815,937,1139,1213,900,948,946,965,866,1173,1075,980,922,892,968,936,996,1172,1074,866,1003,1126,1251,967,949,1063,1168,1331,934,869,748,679,761,716,990,753,1103,800,710,686,837,1019,785,942,1050,936,924,724,997,921,783,896,842,967,974,727,1094,1331,1265,1258,1051,912,757,606,1129,873,948,1063,790,792,1111,935,584,800,673,575,844,955,1125,1209,1072,1331,1272,963,1201,1235,1044,1166,864,1204,1038,895,1119,1348,1146,1187,825,753,1077,1059,1077,1222,997,1174,1005,1095,973,1224,1299,923,939,1367,1007,819,940,999,910,1153,1242,1182,1044,1246,1090,950,1078,976,989,1016,807,1410,774,1114,1029,905,1143,1343,907,1352,1349,1413,1148,1285,1185,1003,1022,690,919,1189,1182,1187,1161,1008,655,586,853,930,731,968,1197,1190,972,708,1138,1244,935,792,1016,1237,1227,934,864,924,800,805,1132,840,735,1060,1101,1036,933,991,1107,906,554,735,1013,658,857,899,1060,866,1002,1039,668,1149,1143,1031,1026,816,696,799,926,1460,1330,911,764,1122,854,764,542,764,790,568,783,889,976,959,1144,1001,932,681,727,776,837,692,750,993,777,625,978,858,1078,627,1135,909,963,939,1017,765,1020,888,942,898,951,1100,760,931,1022,946,912,1007,874,631,1049,851,1129,923,901,983,1005,820,911,699,927,873,927,898,929,949,787,1097,890,1041,1030,1137,1139,1092,972,1176,1076,839,1061,773,1098,1339,1184,1136,1120,1029,933,892,800,1116,638,749,709,1041,815,784,613,988,830,934,1270,1461,1017,946,980,895,897,1007,1233,909,1186,885,1040,813,753,937,1002,974,938,874,888,893,882,763,1129,850,638,1121,935,1148,742,933,1264,663,679,952,1e3,971,772,938,757,845,1076,875,1075,912,1119,1063,1256,1288,1116,1004,1033,1030,1028,1269,1119,1028,1178,1120,944,1022,1095,1142,1018,838,1087,1013,1250,871,1112,1145,910,1104,1103,1189,881,1192,1051,1117,1084,941,957,1115,1122,1128,1058,1036,980,1087,1088,1155,988,796,1133,965,1419,927,1164,1209,1251,929,1019,1043,660,1109,1151,1114,871,934,789,549,634,770,564,656,754,408,598,583,537,484,685,1143,1061,1052,1099,916,1109,893,894,696,796,1025,1062,1184,968,872,1180,1155,886,920,1092,1242,1287,1183,1446,1645,1655,1667,1656,1807,1810,1786,1789,1795,1769,1790,1783,1791,1782,1784,1761,1767,1784,1769,1822,1770,1788,1795,1774,1781,1779,1777,1795,1752,455,491,495,472,447,482,474,479,453,484,502,469,478,481,461,495,475,496,474,472,464,488,451,464,474,471,475,463,484,482,477,484,490,483,479,491,474,483,479,482,477,419,474,479,476,476,486,485,487,466,470,449,447,440,480,470,458,442,442,466,445,464,450,448,445,463,463,457,468,463,445,443,455,475,470,447,465,450,443,453,449,443,446,458,427,452,436,1260,1376,1437,1411,1431,1397,1476,1472,1469,1464,1470,1486,1410,1427,1402,1436,1384,1392,1404,1430,1427,1414,1459,1428,1308,1425,1409,1425,1439,1437,1435,1427,1423,1390,1349,1371,1408,1351,1408,1420,1385,1356,1418,1400,1401,1373,1358,1352,1355,1490,1454,1411,1430,1393,1473,1464,1370,1436,1449,1442,1429,1458,1438,1436,1394,1463,1452,1403,1442,1420,1422,1396,1387,1390,1416,1433,1409,1405,1468,1465,1389,1444,1440,1451,1435,1403,1393,1478,1276,1307,1277,1294,1274,1286,1260,1261,1304,1301,1268,1290,1293,1307,1267,1286,1284,1244,1256,1260,1266,1258,1222,1252,1266,1273,1272,1276,1280,1256,1282,1267,1266,1274,1229,1238,1260,1266,1250,1248,1273,1249,1275,1271,1246,1257,1256,1228,1248,1278,1268,1253,1305,1308,1278,1305,1273,1288,1272,1306,1280,1282,1251,1286,1297,1300,1298,1275,1330,1272,1288,1304,1240,1248,1270,1278,1290,1267,1289,1299,1343,1267,1321,1316,1290,1307,1286,1315,626,195,212,190,186,187,227,215,194,176,226,185,189,188,214,176,193,163,180,178,169,208,174,216,495,1179,747,478,509,489,495,527,507,1034,1681,1720,1699,1696,1701,1694,1703,1716,1708,1724,1710,1701,1696,1700,1682,1701,1699,1694,1704,1699,1729,1727,1692,1680,1713,1711,1698,1705,1698,1703,1712,1676,1694,1699,1694,1696,1706,1724,1714,1704,1699,1698,1693,1689,1689,1704,1684,1657,1647,1671,1676,1668,1662,1665,1659,1675,1668,1661,1652,1668,1668,1676,1672,1657,1674,1663,1662,1683,1688,1686,1657,1661,1656,1651,1649,1664,1649,1679,1659,1673,1668,1669,1673,1662,1190,1272,1143,1058,1086,1213,1031,742,692,662,497,513,484,606,626,598,797,1207,1245,1213,1235,1214,1226,1215,1197,1260,1273,1222,1221,1230,1245,1271,1278,1258,1247,1206,1266,1247,1271,1231,1265,1274,1261,1225,1248,1262,1257,1273,1280,1253,1232,1240,1229,1266,1240,1240,1241,1266,1252,1290,1249,1270,1283,1263,1208,1243,1149,1159,1192,1179,1183,1254,1207,1221,1148,1208,1188,1147,1187,1151,1171,1141,1186,1117,1204,1249,1222,1189,1121,1209,1218,1197,1201,1215,1216,1124,1229,1128,1092,1123,1204,1130,1145,1100,1669,1503,1221,1429,1422,1389,1387,1374,1327,1348,1369,1409,1418,1422,1378,1385,1378,1360,1356,1369,1376,1352,1322,1315,1320,1338,1332,1333,1321,1317,1315,1311,1343,1344,1316,1325,1300,1354,1361,1305,1339,1294,1275,1279,1321,1277,1269,1259,1244,1275,1240,1394,1427,1504,1485,1466,1462,1466,1432,1497,1405,1478,1439,1488,1387,1471,1459,1448,1494,1431,1516,1430,1424,1491,1445,1427,1432,1387,1359,1344,1436,1487,1526,1508,1471,1526,1469,1490,1509,1492,1312,1248,1236,1247,1249,1217,1251,1234,1215,1284,1224,1235,1239,1279,1275,1284,1248,1242,1255,1234,1266,1240,1256,1247,1268,1256,1269,1230,1243,1241,1227,1271,1241,1240,1236,1229,1260,1247,1240,1286,1242,1227,1266,1256,1265,1232,1249,1230,1234,1250,1245,1248,1215,1274,1298,1234,1245,1289,1240,1266,1290,1239,1268,1299,1266,1266,1255,1264,1276,1247,1275,1267,1262,1277,1268,1248,1255,1270,1258,1247,1230,1238,1214,1210,1258,1205,1253,1511,1766,1811,1756,1705,1670,1701,1705,1681,1703,1674,1720,1691,1698,1701,1707,1693,1718,1690,1704,1716,1705,1708,1701,1704,1698,1716,1703,1717,1702,1693,1690,1705,1693,1690,1702,1707,1699,1708,1703,583,512,559,563,535,557,538,528,519,521,513,530,532,530,544,552,532,522,523,535,506,529,499,517,584,511,513,540,511,515,539,553,531,519,536,543,523,520,524,549,523,554,540,509,512,535,550,479,537,479,482,504,495,473,516,498,512,500,481,502,498,500,503,508,499,498,492,492,377,504,510,468,485,506,496,518,465,487,484,495,478,470,495,497,481,484,470,1338,1660,1663,1680,1540,1238,1283,1276,1271,1239,1259,1263,1212,1257,1298,1239,1234,1266,1265,1303,1288,1282,1281,1239,1281,1240,1281,1268,1279,1255,1266,1280,1287,1271,1276,1277,1277,1271,1264,1252,1256,1282,1259,1260,1291,1285,1268,1272,1276,1246,1270,1251,1241,1281,1273,1277,1277,1282,1292,1296,1274,1289,1284,1285,1272,1276,1264,1276,1284,1262,1260,1264,1316,1293,1258,1328,1263,1307,1275,1251,1250,1272,1279,1255,1294,1275,1186,1243,1235,1292,1270,1280,1753,1769,1783,1813,1782,1471,446,1172,1302,1251,1023,1070,1202,1108,829,1201,1183,1148,1177,1096,1035,1268,1385,1273,560,572,649,557,561,567,621,1168,1219,821,1010,881,749,774,811,836,1036,884,714,1e3,879,633,550,568,731,1180,859,857,514,689,660,484,718,519,600,848,628,843,1261,1121,1095,1051,920,1026,1073,1061,1004,1086,646,473,570,749,1030,1015,841,864,700,731,529,661,1075,869,1056,883,855,940,979,861,1023,1070,855,908,711,464,620,974,933,1319,930,833,1017,1009,925,877,964,938,895,934,918,1153,1217,830,830,724,716,560,892,843,1297,1096,1195,1249,792,1037,1225,1132,1095,696,1186,699,1285,882,810,761,859,1232,1205,1390,906,1167,732,753,980,1457,982,1131,809,1096,912,865,984,622,789,771,710,951,829,821,746,1421,1184,867,1053,680,698,555,861,752,668,800,974,853,1104,822,839,815,1103,792,877,1218,1189,1197,1223,1202,1183,1076,953,906,607,858,924,1044,1025,978,778,1057,937,972,738,857,971,1016,967,1076,1007,854,923,907,1101,1080,1612,570,462,490,502,501,530,672,659,587,626,465,315,582,658,310,724,1719,2048,2048,2048,2048,2048,2048,2048,2048,2056,2048,2056,2048,2048,2057,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2056,2048,2048,2048,2056,2057,2057,2048,2048,2048,2048,2043,2048,2057,2048,2048,2056,2048,2056,2057,2048,2016,2048,2048,2048,2048,2054,2048,2048,2048,2048,2048,2057,2048,2048,2048,2048,2057,2048,2048,2048,2057,2048,2048,2048,2016,2032,2053,2030,2048,2042,2047,2054,2052,2057,2056,2056,2056,2055,2056,2056,2044,2048,2057,2056,2048,2056,2056,2056,2056,2048,2057,2048,1648,1104,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2049,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2057,2044,2056,2048,2056,2048,2056,2057,2057,2048,2033,2048,2048,2048,2048,2048,2057,2048,2048,2048,2048,2048,2048,2048,2057,2048,2048,2048,2048,2048,2048,2057,2048,2048,2048,2048,2057,2048,2048,2057,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2053,2048,2044,2057,2048,2032,2018,2048,1925,2048,2048,2048,2055,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2056,2057,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2057,2054,2036,2057,2057,1904,1296,453,668,2057,2048,2048,2048,2042,2048,2048,2048,2048,2048,2044,2048,2048,2037,2055,1552,1830,2045,2048,2057,2007,2048,2048,2048,2053,2048,1806,2057,2048,2048,2048,2048,2048,2048,2048,2055,2043,2053,2057,2048,2048,2048,2048,2048,2048,2048,2043,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2004,2040,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2057,2048,2048,2048,2057,2048,2048,2048,2048,2048,2048,2048,2057,2048,2048,2048,2054,2048,2048,2057,2048,2048,2048,2054,2057,2057,2048,2048,2056,2057,2047,2039,2057,2048,2048,2048,2048,2048,2056,2057,2048,1961,2048,2048,2027,2056,2048,2048,2048,2048,2048,2056,2035,2055,2048,2056,2057,2056,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2054,2048,2038,2048,2027,2048,1234,968,901,920,1706,2048,2048,2048,2048,2057,2048,2048,2048,2048,2048,2048,2048,1479,1068,1675,1962,1954,1966,1937,2054,2048,2048,2048,1081,1343,1924,1990,1998,1979,1972,2048,1921,1948,1914,2048,2056,2057,2017,2053,2055,2038,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,1851,1913,1964,1985,1991,2015,1925,1916,1951,1917,1945,1979,2003,1996,1944,1949,1993,1848,1975,2035,2057,2037,2057,2049,2055,1803,745,840,664,1001,826,980,1163,1069,1179,810,795,995,822,751,1048,1009,1223,1183,1155,1172,1172,1086,824,909,1026,1090,1069,568,1114,1100,896,820,1109,912,1019,859,1042,1044,1157,1030,962,470,898,920,829,865,1264,1183,672,779,718,672,1063,717,645,842,598,1115,1383,1195,1091,666,1071,994,1181,1063,1e3,1166,1057,732,792,899,900,551,884,1195,848,1008,1139,1219,940,946,1139,1094,975,1166,1313,1344,1040,1167,1298,1127,1161,892,993,958,955,832,859,1071,1059,530,888,373,967,495,1013,864,1386,1102,888,966,451,1180,954,945,1281,1177,946,622,720,1047,992,971,906,1252,588,741,1063,1075,662,868,1198,1073,1063,1081,1094,1167,985,624,723,1018,948,1017,1136,1e3,995,874,890,924,877,794,880,819,719,614,875,1102,911,1023,1172,1148,1002,705,1003,974,663,636,989,1167,996,1420,1303,926,1111,1265,697,886,707,825,1250,1048,1225,1137,867,1083,1080,955,921,1018,1077,1321,1550,1331,1151,1145,685,909,1095,1027,1176,834,999,986,1133,776,1339,606,448,1214,1083,623,698,821,903,1020,1257,1511,1486,1099,960,753,744,1453,1600,1288,1032,1128,1230,869,964,878,1004,870,843,974,983,974,595,704,873,621,839,1097,680,964,1074,1193,1361,1209,734,888,737,699,1263,1377,1269,971,1154,1203,966,1241,1136,1065,1371,1209,1219,989,1037,1178,1288,1280,1059,1262,1170,1204,1231,1235,990,1115,1364,1173,1016,1347,1071,1047,1320,748,994,1056,1065,1255,1054,1206,1049,1158,986,1030,967,895,1002,1350,1196,971,1124,1154,1097,847,879,590,1017,1023,984,1183,1017,1179,985,1152,1057,1094,1296,1228,1315,1113,1116,945,927,1300,1002,936,1158,985,848,883,804,744,861,723,990,1058,1132,1102,1230,1151,1199,569,967,1043,759,992,1015,852,1069,986,594,1449,1034,952,1090,1222,1038,961,1212,992,1060,883,1010,1257,1034,976,790,1028,1108,1236,1270,1040,1142,1131,978,1255,1162,1200,1059,1223,1030,1013,856,976,845,727,1085,1170,746,832,1115,1284,1056,1272,1275,1260,973,691,968,822,994,1030,832,1273,967,1292,837,1142,1228,1518,1132,952,1176,1047,1165,703,846,993,954,1033,1175,907,1141,1249,1326,1020,642,1092,1148,1193,1185,1018,1198,1125,1220,1257,1380,1265,1348,1231,800,1505,1114,1350,1275,1320,1169,998,999,1117,992,1211,1288,749,1121,1111,1124,1045,907,1054,1073,889,818,904,976,1240,1221,1289,1082,1115,964,1034,1049,1004,794,1267,978,1120,1016,1748,1650,1208,1079,1095,1248,740,1079,1194,777,768,828,668,1121,884,932,902,1092,832,903,838,990,737,934,1080,617,1026,985,904,822,918,679,836,790,744,819,679,1014,493,485,431,466,409,417,365,488,469,420,433,434,453,536,270,263,267,1254,1964,1855,1018,61,61,70,39,46,39,307,267,267,1086,1911,1849,1247,61,61,61,51,47,39,896,136,133,267,954,979,196,122,532,518,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,85,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,81,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,81,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,82,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,81,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,69,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,81,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,81,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,426,556,46,76,52,49,71,47,80,52,50,72,41,66,45,50,73,52,71,47,53,79,51,739,236,55,55,85,55,55,82,55,55,81,55,55,81,55,55,81,55,55,55,60,55,55,81,55,55,81,55,55,826,153,55,86,50,53,66,51,56,71,56,54,69,54,46,77,55,51,77,54,49,62,47,75,54,51,513,472,45,50,52,52,47,47,53,53,51,48,45,42,44,46,51,52,49,47,47,53,52,50,49,66,43,45,50,52,52,47,47,53,53,51,49,45,42,44,46,51,52,49,47,47,53,52,50,49,63,43,45,50,52,52,47,47,53,53,51,49,45,42,44,46,51,52,49,47,47,53,52,50,73,41,43,45,50,52,52,47,47,53,53,51,49,45,42,44,46,51,52,49,47,47,53,52,50,73,41,43,45,50,52,52,47,47,53,53,51,49,45,42,44,46,51,52,49,47,47,53,52,74,49,41,43,45,50,52,52,47,47,53,53,51,49,45,42,44,46,51,52,49,47,47,53,75,50,49,41,43,45,50,52,52,47,47,53,53,51,49,45,42,44,46,51,52,49,47,47,53,76,50,49,41,43,45,50,52,52,47,47,53,53,51,49,45,42,44,46,51,52,49,47,47,79,52,50,49,41,43,45,50,52,52,47,47,53,53,51,49,45,42,44,46,51,52,49,47,47,944,51,56,49,56,54,48,54,46,56,55,51,51,54,49,56,47,56,53,51,52,49,50,57,48,55,54,50,53,69,51,56,49,56,54,48,54,46,54,55,51,51,54,49,57,47,54,54,51,52,49,50,57,48,55,54,50,79,45,51,56,49,56,54,48,54,46,54,55,51,51,54,49,57,47,54,54,51,52,49,50,57,48,55,54,72,53,45,51,56,49,56,54,48,54,46,54,55,51,51,54,49,57,47,54,54,51,52,49,50,57,48,55,54,72,53,45,51,56,49,56,54,48,54,46,54,55,51,51,54,49,57,47,54,54,51,52,49,50,57,48,55,82,50,53,45,51,56,49,56,54,48,54,46,54,55,51,51,54,49,57,47,54,54,51,52,49,50,57,48,76,54,50,53,45,51,56,49,56,54,48,54,46,54,55,51,51,54,49,57,47,54,54,51,52,49,50,57,48,78,54,50,53,45,51,56,49,56,54,48,54,46,54,55,51,51,54,49,57,47,54,54,51,52,49,50,57,69,55,54,50,53,45,51,56,49,56,54,48,54,46,54,55,51,51,54,49,57,47,54,54,51,52,49,50,297,1088,637,126,463,1046,898,1043,493,653,960,974,838,710,528,452,594,636,637,663,509,788,630,512,801,666,454,543,691,663,762,594,560,513,554,572,553,732,596,869,829,680,496,1220,1006,716,672,708,1098,555,912,1149,994,476,596,511,528,536,943,1049,749,977,627,626,461,558,796,972,1023,680,584,899,1111,1107,1023,548,553,810,877,634,630,670,620,623,619,645,612,529,693,528,484,581,544,394,427,512,557,643,484,588,540,546,734,753,623,367,425,558,512,561,619,428,512,651,555,577,584,574,408,477,489,502,481,535,686,690,577,804,541,1740,1098,701,568,442,511,749,1016,513,521,617,603,823,683,520,551,460,522,773,481,452,376,420,759,1059,1085,1185,874,1075,1091,997,863,1143,1230,1060,1121,1e3,1163,889,877,1067,1001,1060,1144,1192,760,642],successes:[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,0,0,0,1,1,1,1,0,1,0,0,0,1,1,1,1,0,1,0,1,0,0,1,1,1,1,0,1,0,0,0,1,1,1,1,0,1,0,0,1,0,1,1,1,1,0,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,0,1,1,1,0,1,0,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,1,1,0,0,0,0,1,0,1,0,0,1,0,1,1,0,1,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,1,0,0,0,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,1,1,1,1,0,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,1,0,1,1,1,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,1,1,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0,0,0,0,0,1,0,0,1,1,1,1,1,0,1,1,0,0,0,1,0,1,1,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,1,0,0,1,0,0,0,1,1,1,0,0,1,1,1,1,1,0,0,0,0,0,1,1,0,1,0,0,1,1,0,0,0,0,1,1,1,1,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,1,1,1,1,1,0,0,0,0,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,0,1,1,1,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]};compressedData["data"]=byteArray;assert(typeof Module.LZ4==="object","LZ4 not present - was your app build with -s LZ4=1 ?");Module.LZ4.loadPackage({metadata:metadata,compressedData:compressedData},true);Module["removeRunDependency"]("datafile_scipy-tests.data")}Module["addRunDependency"]("datafile_scipy-tests.data");if(!Module.preloadResults)Module.preloadResults={};Module.preloadResults[PACKAGE_NAME]={fromCache:false};if(fetched){processPackageData(fetched);fetched=null}else{fetchedCallback=processPackageData}}if(Module["calledRun"]){runWithFS()}else{if(!Module["preRun"])Module["preRun"]=[];Module["preRun"].push(runWithFS)}};loadPackage({files:[{filename:"/lib/python3.9/site-packages/scipy/conftest.py",start:0,end:1723,audio:0},{filename:"/lib/python3.9/site-packages/scipy/cluster/tests/test_vq.py",start:1723,end:15156,audio:0},{filename:"/lib/python3.9/site-packages/scipy/cluster/tests/__init__.py",start:15156,end:15156,audio:0},{filename:"/lib/python3.9/site-packages/scipy/cluster/tests/hierarchy_test_data.py",start:15156,end:22006,audio:0},{filename:"/lib/python3.9/site-packages/scipy/cluster/tests/test_hierarchy.py",start:22006,end:64549,audio:0},{filename:"/lib/python3.9/site-packages/scipy/cluster/tests/test_disjoint_set.py",start:64549,end:70018,audio:0},{filename:"/lib/python3.9/site-packages/scipy/constants/tests/test_constants.py",start:70018,end:71650,audio:0},{filename:"/lib/python3.9/site-packages/scipy/constants/tests/__init__.py",start:71650,end:71650,audio:0},{filename:"/lib/python3.9/site-packages/scipy/constants/tests/test_codata.py",start:71650,end:73640,audio:0},{filename:"/lib/python3.9/site-packages/scipy/fft/_pocketfft/tests/test_basic.py",start:73640,end:109358,audio:0},{filename:"/lib/python3.9/site-packages/scipy/fft/_pocketfft/tests/test_real_transforms.py",start:109358,end:125784,audio:0},{filename:"/lib/python3.9/site-packages/scipy/fft/_pocketfft/tests/__init__.py",start:125784,end:125784,audio:0},{filename:"/lib/python3.9/site-packages/scipy/fft/tests/test_real_transforms.py",start:125784,end:130970,audio:0},{filename:"/lib/python3.9/site-packages/scipy/fft/tests/test_fft_function.py",start:130970,end:132117,audio:0},{filename:"/lib/python3.9/site-packages/scipy/fft/tests/test_fftlog.py",start:132117,end:137920,audio:0},{filename:"/lib/python3.9/site-packages/scipy/fft/tests/test_backend.py",start:137920,end:141785,audio:0},{filename:"/lib/python3.9/site-packages/scipy/fft/tests/test_numpy.py",start:141785,end:156217,audio:0},{filename:"/lib/python3.9/site-packages/scipy/fft/tests/test_multithreading.py",start:156217,end:158349,audio:0},{filename:"/lib/python3.9/site-packages/scipy/fft/tests/mock_backend.py",start:158349,end:160032,audio:0},{filename:"/lib/python3.9/site-packages/scipy/fft/tests/test_helper.py",start:160032,end:169839,audio:0},{filename:"/lib/python3.9/site-packages/scipy/fftpack/tests/fftw_dct.c",start:169839,end:173702,audio:0},{filename:"/lib/python3.9/site-packages/scipy/fftpack/tests/gen_fftw_ref.py",start:173702,end:175625,audio:0},{filename:"/lib/python3.9/site-packages/scipy/fftpack/tests/test_basic.py",start:175625,end:205998,audio:0},{filename:"/lib/python3.9/site-packages/scipy/fftpack/tests/test_pseudo_diffs.py",start:205998,end:219387,audio:0},{filename:"/lib/python3.9/site-packages/scipy/fftpack/tests/test_helper.py",start:219387,end:221062,audio:0},{filename:"/lib/python3.9/site-packages/scipy/fftpack/tests/gendata.m",start:221062,end:221494,audio:0},{filename:"/lib/python3.9/site-packages/scipy/fftpack/tests/__init__.py",start:221494,end:221494,audio:0},{filename:"/lib/python3.9/site-packages/scipy/fftpack/tests/test.npz",start:221494,end:233462,audio:0},{filename:"/lib/python3.9/site-packages/scipy/fftpack/tests/test_import.py",start:233462,end:234591,audio:0},{filename:"/lib/python3.9/site-packages/scipy/fftpack/tests/Makefile",start:234591,end:234805,audio:0},{filename:"/lib/python3.9/site-packages/scipy/fftpack/tests/test_real_transforms.py",start:234805,end:258858,audio:0},{filename:"/lib/python3.9/site-packages/scipy/fftpack/tests/gendata.py",start:258858,end:259021,audio:0},{filename:"/lib/python3.9/site-packages/scipy/fftpack/tests/fftw_double_ref.npz",start:259021,end:421141,audio:0},{filename:"/lib/python3.9/site-packages/scipy/fftpack/tests/fftw_longdouble_ref.npz",start:421141,end:717213,audio:0},{filename:"/lib/python3.9/site-packages/scipy/fftpack/tests/fftw_single_ref.npz",start:717213,end:812357,audio:0},{filename:"/lib/python3.9/site-packages/scipy/integrate/_ivp/tests/test_ivp.py",start:812357,end:845154,audio:0},{filename:"/lib/python3.9/site-packages/scipy/integrate/_ivp/tests/test_rk.py",start:845154,end:846480,audio:0},{filename:"/lib/python3.9/site-packages/scipy/integrate/tests/_test_multivariate.c",start:846480,end:848559,audio:0},{filename:"/lib/python3.9/site-packages/scipy/integrate/tests/__init__.py",start:848559,end:848559,audio:0},{filename:"/lib/python3.9/site-packages/scipy/integrate/tests/test_quadrature.py",start:848559,end:858401,audio:0},{filename:"/lib/python3.9/site-packages/scipy/integrate/tests/banded5x5.f",start:858401,end:865069,audio:0},{filename:"/lib/python3.9/site-packages/scipy/integrate/tests/test_banded_ode_solvers.py",start:865069,end:871938,audio:0},{filename:"/lib/python3.9/site-packages/scipy/integrate/tests/test_integrate.py",start:871938,end:896862,audio:0},{filename:"/lib/python3.9/site-packages/scipy/integrate/tests/test_odeint_jac.py",start:896862,end:898682,audio:0},{filename:"/lib/python3.9/site-packages/scipy/integrate/tests/test_bvp.py",start:898682,end:918841,audio:0},{filename:"/lib/python3.9/site-packages/scipy/integrate/tests/test__quad_vec.py",start:918841,end:924292,audio:0},{filename:"/lib/python3.9/site-packages/scipy/integrate/tests/test_quadpack.py",start:924292,end:938079,audio:0},{filename:"/lib/python3.9/site-packages/scipy/interpolate/tests/test_interpolate.py",start:938079,end:1046928,audio:0},{filename:"/lib/python3.9/site-packages/scipy/interpolate/tests/test_ndgriddata.py",start:1046928,end:1054498,audio:0},{filename:"/lib/python3.9/site-packages/scipy/interpolate/tests/test_rbfinterp.py",start:1054498,end:1071493,audio:0},{filename:"/lib/python3.9/site-packages/scipy/interpolate/tests/__init__.py",start:1071493,end:1071493,audio:0},{filename:"/lib/python3.9/site-packages/scipy/interpolate/tests/test_fitpack.py",start:1071493,end:1087665,audio:0},{filename:"/lib/python3.9/site-packages/scipy/interpolate/tests/test_interpnd.py",start:1087665,end:1101291,audio:0},{filename:"/lib/python3.9/site-packages/scipy/interpolate/tests/test_bsplines.py",start:1101291,end:1149292,audio:0},{filename:"/lib/python3.9/site-packages/scipy/interpolate/tests/test_rbf.py",start:1149292,end:1155838,audio:0},{filename:"/lib/python3.9/site-packages/scipy/interpolate/tests/test_regression.py",start:1155838,end:1156248,audio:0},{filename:"/lib/python3.9/site-packages/scipy/interpolate/tests/test_fitpack2.py",start:1156248,end:1204566,audio:0},{filename:"/lib/python3.9/site-packages/scipy/interpolate/tests/test_gil.py",start:1204566,end:1206440,audio:0},{filename:"/lib/python3.9/site-packages/scipy/interpolate/tests/test_pade.py",start:1206440,end:1210226,audio:0},{filename:"/lib/python3.9/site-packages/scipy/interpolate/tests/test_polyint.py",start:1210226,end:1236966,audio:0},{filename:"/lib/python3.9/site-packages/scipy/interpolate/tests/data/estimate_gradients_hang.npy",start:1236966,end:1272646,audio:0},{filename:"/lib/python3.9/site-packages/scipy/interpolate/tests/data/bug-1310.npz",start:1272646,end:1275294,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/afunc.m",start:1275294,end:1275360,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/gen_mat5files.m",start:1275360,end:1277845,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/test_mio_funcs.py",start:1277845,end:1279236,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/gen_mat4files.m",start:1279236,end:1280399,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/save_matfile.m",start:1280399,end:1280599,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/test_mio_utils.py",start:1280599,end:1282192,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/test_miobase.py",start:1282192,end:1283655,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/test_mio.py",start:1283655,end:1325532,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/test_mio5_utils.py",start:1325532,end:1330948,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/test_byteordercodes.py",start:1330948,end:1331885,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/test_streams.py",start:1331885,end:1339203,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/test_pathological.py",start:1339203,end:1340262,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/__init__.py",start:1340262,end:1340262,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testmatrix_7.4_GLNX86.mat",start:1340262,end:1340455,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testobject_6.5.1_GLNX86.mat",start:1340455,end:1341127,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testvec_4_GLNX86.mat",start:1341127,end:1341220,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testmatrix_6.1_SOL2.mat",start:1341220,end:1341436,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testminus_6.1_SOL2.mat",start:1341436,end:1341636,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testfunc_7.4_GLNX86.mat",start:1341636,end:1342017,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testdouble_4.2c_SOL2.mat",start:1342017,end:1342120,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/teststructnest_7.1_GLNX86.mat",start:1342120,end:1342372,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/teststring_7.1_GLNX86.mat",start:1342372,end:1342596,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/test_mat4_le_floats.mat",start:1342596,end:1342634,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testobject_6.1_SOL2.mat",start:1342634,end:1343434,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testcellnest_7.1_GLNX86.mat",start:1343434,end:1343662,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testsparsecomplex_6.5.1_GLNX86.mat",start:1343662,end:1344062,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/teststringarray_6.1_SOL2.mat",start:1344062,end:1344294,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testcomplex_7.1_GLNX86.mat",start:1344294,end:1344541,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/teststructarr_7.1_GLNX86.mat",start:1344541,end:1344787,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testminus_7.1_GLNX86.mat",start:1344787,end:1344971,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testonechar_6.1_SOL2.mat",start:1344971,end:1345171,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testmulti_4.2c_SOL2.mat",start:1345171,end:1345411,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/japanese_utf8.txt",start:1345411,end:1345681,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/bad_miuint32.mat",start:1345681,end:1345953,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/teststruct_6.5.1_GLNX86.mat",start:1345953,end:1346505,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testsparse_6.5.1_GLNX86.mat",start:1346505,end:1346833,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testmatrix_6.5.1_GLNX86.mat",start:1346833,end:1347049,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/malformed1.mat",start:1347049,end:1349257,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/teststring_6.1_SOL2.mat",start:1349257,end:1349545,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testsparse_6.1_SOL2.mat",start:1349545,end:1349825,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/test_skip_variable.mat",start:1349825,end:1370050,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testcell_7.1_GLNX86.mat",start:1370050,end:1370333,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testsimplecell.mat",start:1370333,end:1370553,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/test3dmatrix_6.5.1_GLNX86.mat",start:1370553,end:1370785,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testmatrix_4.2c_SOL2.mat",start:1370785,end:1370936,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testminus_6.5.1_GLNX86.mat",start:1370936,end:1371136,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testsparsefloat_7.4_GLNX86.mat",start:1371136,end:1371355,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/test3dmatrix_7.1_GLNX86.mat",start:1371355,end:1371568,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/teststructnest_6.5.1_GLNX86.mat",start:1371568,end:1371984,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testsparse_7.1_GLNX86.mat",start:1371984,end:1372213,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/teststructarr_6.1_SOL2.mat",start:1372213,end:1372741,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/miuint32_for_miint32.mat",start:1372741,end:1373013,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testminus_4.2c_SOL2.mat",start:1373013,end:1373051,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/teststructnest_6.1_SOL2.mat",start:1373051,end:1373547,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/parabola.mat",start:1373547,end:1374276,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/miutf8_array_name.mat",start:1374276,end:1374484,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/teststruct_7.1_GLNX86.mat",start:1374484,end:1374798,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testobject_7.1_GLNX86.mat",start:1374798,end:1375104,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testdouble_6.1_SOL2.mat",start:1375104,end:1375376,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testonechar_6.5.1_GLNX86.mat",start:1375376,end:1375576,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testemptycell_7.1_GLNX86.mat",start:1375576,end:1375794,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/some_functions.mat",start:1375794,end:1377191,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testminus_7.4_GLNX86.mat",start:1377191,end:1377375,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/sqr.mat",start:1377375,end:1378054,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testcellnest_7.4_GLNX86.mat",start:1378054,end:1378282,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testobject_7.4_GLNX86.mat",start:1378282,end:1378588,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/teststringarray_7.4_GLNX86.mat",start:1378588,end:1378791,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testdouble_7.4_GLNX86.mat",start:1378791,end:1379023,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testbool_8_WIN64.mat",start:1379023,end:1379208,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testunicode_7.1_GLNX86.mat",start:1379208,end:1379565,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testemptycell_7.4_GLNX86.mat",start:1379565,end:1379783,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/one_by_zero_char.mat",start:1379783,end:1379967,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testunicode_7.4_GLNX86.mat",start:1379967,end:1380324,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/corrupted_zlib_checksum.mat",start:1380324,end:1380600,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testonechar_7.4_GLNX86.mat",start:1380600,end:1380784,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/test3dmatrix_7.4_GLNX86.mat",start:1380784,end:1380997,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testcellnest_6.5.1_GLNX86.mat",start:1380997,end:1381565,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testsparse_4.2c_SOL2.mat",start:1381565,end:1381788,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/big_endian.mat",start:1381788,end:1382061,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testsparse_7.4_GLNX86.mat",start:1382061,end:1382290,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/teststring_6.5.1_GLNX86.mat",start:1382290,end:1382578,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/nasty_duplicate_fieldnames.mat",start:1382578,end:1390746,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/test_empty_struct.mat",start:1390746,end:1390919,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/teststructnest_7.4_GLNX86.mat",start:1390919,end:1391171,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testonechar_7.1_GLNX86.mat",start:1391171,end:1391355,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/single_empty_string.mat",start:1391355,end:1391526,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testcomplex_7.4_GLNX86.mat",start:1391526,end:1391773,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testsparsecomplex_6.1_SOL2.mat",start:1391773,end:1392077,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testhdf5_7.4_GLNX86.mat",start:1392077,end:1396245,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testdouble_6.5.1_GLNX86.mat",start:1396245,end:1396517,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/teststringarray_7.1_GLNX86.mat",start:1396517,end:1396720,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testsparsecomplex_4.2c_SOL2.mat",start:1396720,end:1397014,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/little_endian.mat",start:1397014,end:1397279,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testmulti_7.4_GLNX86.mat",start:1397279,end:1397555,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testemptycell_6.5.1_GLNX86.mat",start:1397555,end:1398027,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/logical_sparse.mat",start:1398027,end:1398235,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testcellnest_6.1_SOL2.mat",start:1398235,end:1398803,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testdouble_7.1_GLNX86.mat",start:1398803,end:1399035,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testmulti_7.1_GLNX86.mat",start:1399035,end:1399311,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testsparsecomplex_7.1_GLNX86.mat",start:1399311,end:1399552,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testcomplex_4.2c_SOL2.mat",start:1399552,end:1399728,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testcell_6.5.1_GLNX86.mat",start:1399728,end:1400264,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testcomplex_6.5.1_GLNX86.mat",start:1400264,end:1400616,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/teststructarr_6.5.1_GLNX86.mat",start:1400616,end:1401088,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/teststringarray_6.5.1_GLNX86.mat",start:1401088,end:1401320,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testonechar_4.2c_SOL2.mat",start:1401320,end:1401360,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/bad_miutf8_array_name.mat",start:1401360,end:1401568,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/teststringarray_4.2c_SOL2.mat",start:1401568,end:1401724,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testcomplex_6.1_SOL2.mat",start:1401724,end:1402076,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/corrupted_zlib_data.mat",start:1402076,end:1405527,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/broken_utf8.mat",start:1405527,end:1405743,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testscalarcell_7.4_GLNX86.mat",start:1405743,end:1405937,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testcell_7.4_GLNX86.mat",start:1405937,end:1406220,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/teststring_4.2c_SOL2.mat",start:1406220,end:1406595,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/test3dmatrix_6.1_SOL2.mat",start:1406595,end:1406827,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/teststruct_7.4_GLNX86.mat",start:1406827,end:1407141,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testmatrix_7.1_GLNX86.mat",start:1407141,end:1407334,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testsparsecomplex_7.4_GLNX86.mat",start:1407334,end:1407575,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/teststructarr_7.4_GLNX86.mat",start:1407575,end:1407821,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/teststruct_6.1_SOL2.mat",start:1407821,end:1408429,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/teststring_7.4_GLNX86.mat",start:1408429,end:1408653,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testemptycell_5.3_SOL2.mat",start:1408653,end:1409125,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/matlab/tests/data/testcell_6.1_SOL2.mat",start:1409125,end:1409661,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/arff/tests/test_arffread.py",start:1409661,end:1422662,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/arff/tests/__init__.py",start:1422662,end:1422662,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/arff/tests/data/test10.arff",start:1422662,end:1621671,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/arff/tests/data/test8.arff",start:1621671,end:1622100,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/arff/tests/data/missing.arff",start:1622100,end:1622220,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/arff/tests/data/test1.arff",start:1622220,end:1622411,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/arff/tests/data/test9.arff",start:1622411,end:1622722,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/arff/tests/data/test7.arff",start:1622722,end:1623281,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/arff/tests/data/test4.arff",start:1623281,end:1623519,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/arff/tests/data/test5.arff",start:1623519,end:1623884,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/arff/tests/data/test2.arff",start:1623884,end:1624184,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/arff/tests/data/quoted_nominal.arff",start:1624184,end:1624470,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/arff/tests/data/test6.arff",start:1624470,end:1624665,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/arff/tests/data/nodata.arff",start:1624665,end:1624894,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/arff/tests/data/test3.arff",start:1624894,end:1624966,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/arff/tests/data/test11.arff",start:1624966,end:1625207,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/arff/tests/data/iris.arff",start:1625207,end:1632693,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/arff/tests/data/quoted_nominal_spaces.arff",start:1632693,end:1632985,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/harwell_boeing/tests/test_hb.py",start:1632985,end:1635269,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/harwell_boeing/tests/test_fortran_format.py",start:1635269,end:1637651,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/harwell_boeing/tests/__init__.py",start:1637651,end:1637651,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/test_idl.py",start:1637651,end:1657231,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/test_fortran.py",start:1657231,end:1664803,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/__init__.py",start:1664803,end:1664803,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/test_wavfile.py",start:1664803,end:1679949,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/test_netcdf.py",start:1679949,end:1699145,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/test_mmio.py",start:1699145,end:1725613,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/test_paths.py",start:1725613,end:1728854,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/scalar_int32.sav",start:1728854,end:1730926,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/struct_pointers_replicated_3d.sav",start:1730926,end:1733382,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/scalar_heap_pointer.sav",start:1733382,end:1735586,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/array_float32_2d.sav",start:1735586,end:1738778,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/test-8000Hz-le-1ch-10S-20bit-extra.wav",start:1738778,end:1738852,audio:1},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/test-44100Hz-be-1ch-4bytes.wav",start:1738852,end:1756572,audio:1},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/test-44100Hz-2ch-32bit-float-be.wav",start:1756572,end:1760158,audio:1},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/scalar_string.sav",start:1760158,end:1762282,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/array_float32_3d.sav",start:1762282,end:1776034,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/scalar_uint16.sav",start:1776034,end:1778106,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/struct_arrays_replicated_3d.sav",start:1778106,end:1782714,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/struct_pointer_arrays_replicated_3d.sav",start:1782714,end:1785586,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/scalar_float64.sav",start:1785586,end:1787662,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/struct_pointers_replicated.sav",start:1787662,end:1789966,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/test-8000Hz-le-3ch-5S-24bit-inconsistent.wav",start:1789966,end:1790056,audio:1},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/array_float32_1d.sav",start:1790056,end:1792684,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/struct_pointer_arrays_replicated.sav",start:1792684,end:1795176,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/test-44100Hz-2ch-32bit-float-le.wav",start:1795176,end:1798762,audio:1},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/test-44100Hz-le-1ch-4bytes-early-eof.wav",start:1798762,end:1799786,audio:1},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/array_float32_pointer_3d.sav",start:1799786,end:1813602,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/example_1.nc",start:1813602,end:1815338,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/fortran-si4-1x1x7.dat",start:1815338,end:1815374,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/various_compressed.sav",start:1815374,end:1816389,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/struct_inherit.sav",start:1816389,end:1818793,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/example_2.nc",start:1818793,end:1819065,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/fortran-sf8-1x1x5.dat",start:1819065,end:1819113,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/struct_arrays.sav",start:1819113,end:1821693,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/test-8000Hz-be-3ch-5S-24bit.wav",start:1821693,end:1821783,audio:1},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/scalar_int64.sav",start:1821783,end:1823859,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/array_float32_pointer_8d.sav",start:1823859,end:1837579,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/array_float32_5d.sav",start:1837579,end:1845475,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/array_float32_pointer_5d.sav",start:1845475,end:1853435,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/struct_scalars.sav",start:1853435,end:1855751,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/scalar_byte_descr.sav",start:1855751,end:1857875,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/scalar_complex64.sav",start:1857875,end:1859959,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/test-44100Hz-le-1ch-4bytes.wav",start:1859959,end:1877679,audio:1},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/struct_scalars_replicated.sav",start:1877679,end:1880159,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/fortran-sf8-1x1x1.dat",start:1880159,end:1880175,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/struct_arrays_byte_idl80.sav",start:1880175,end:1881563,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/array_float32_pointer_6d.sav",start:1881563,end:1901043,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/test-44100Hz-le-1ch-4bytes-incomplete-chunk.wav",start:1901043,end:1901056,audio:1},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/fortran-si4-1x1x1.dat",start:1901056,end:1901068,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/fortran-mixed.dat",start:1901068,end:1901108,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/array_float32_pointer_4d.sav",start:1901108,end:1907788,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/array_float32_4d.sav",start:1907788,end:1914404,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/scalar_uint32.sav",start:1914404,end:1916476,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/invalid_pointer.sav",start:1916476,end:1917756,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/fortran-sf8-11x1x10.dat",start:1917756,end:1918644,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/scalar_complex32.sav",start:1918644,end:1920720,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/array_float32_6d.sav",start:1920720,end:1940136,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/Transparent Busy.ani",start:1940136,end:1944498,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/scalar_int16.sav",start:1944498,end:1946570,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/example_3_maskedvals.nc",start:1946570,end:1947994,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/test-8000Hz-le-3ch-5S-53bit.wav",start:1947994,end:1948144,audio:1},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/struct_pointer_arrays.sav",start:1948144,end:1950552,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/array_float32_pointer_7d.sav",start:1950552,end:1953904,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/test-8000Hz-le-3ch-5S-64bit.wav",start:1953904,end:1954068,audio:1},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/fortran-si4-15x10x22.dat",start:1954068,end:1967276,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/array_float32_pointer_2d.sav",start:1967276,end:1970532,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/fortran-3x3d-2i.dat",start:1970532,end:1970983,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/test-8000Hz-le-3ch-5S-45bit.wav",start:1970983,end:1971117,audio:1},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/test-8000Hz-le-5ch-9S-5bit.wav",start:1971117,end:1971206,audio:1},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/fortran-si4-1x1x5.dat",start:1971206,end:1971234,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/struct_scalars_replicated_3d.sav",start:1971234,end:1974474,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/test-44100Hz-le-1ch-4bytes-early-eof-no-data.wav",start:1974474,end:1974546,audio:1},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/struct_pointers.sav",start:1974546,end:1976814,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/array_float32_8d.sav",start:1976814,end:1990470,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/scalar_float32.sav",start:1990470,end:1992542,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/array_float32_7d.sav",start:1992542,end:1995830,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/fortran-si4-11x1x10.dat",start:1995830,end:1996278,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/struct_arrays_replicated.sav",start:1996278,end:1999214,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/test-8000Hz-le-2ch-1byteu.wav",start:1999214,end:2000858,audio:1},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/scalar_byte.sav",start:2000858,end:2002934,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/test-8000Hz-le-4ch-9S-12bit.wav",start:2002934,end:2003050,audio:1},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/null_pointer.sav",start:2003050,end:2005230,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/test-8000Hz-le-3ch-5S-24bit.wav",start:2005230,end:2005320,audio:1},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/test-8000Hz-le-1ch-1byte-ulaw.wav",start:2005320,end:2005390,audio:1},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/test-8000Hz-le-3ch-5S-36bit.wav",start:2005390,end:2005510,audio:1},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/scalar_uint64.sav",start:2005510,end:2007586,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/array_float32_pointer_1d.sav",start:2007586,end:2010278,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/fortran-si4-1x3x5.dat",start:2010278,end:2010346,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/test-48000Hz-2ch-64bit-float-le-wavex.wav",start:2010346,end:2018138,audio:1},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/fortran-sf8-1x1x7.dat",start:2018138,end:2018202,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/fortran-sf8-1x3x5.dat",start:2018202,end:2018330,audio:0},{filename:"/lib/python3.9/site-packages/scipy/io/tests/data/fortran-sf8-15x10x22.dat",start:2018330,end:2044738,audio:0},{filename:"/lib/python3.9/site-packages/scipy/linalg/tests/test_interpolative.py",start:2044738,end:2053629,audio:0},{filename:"/lib/python3.9/site-packages/scipy/linalg/tests/test_decomp_cossin.py",start:2053629,end:2059401,audio:0},{filename:"/lib/python3.9/site-packages/scipy/linalg/tests/test_build.py",start:2059401,end:2061149,audio:0},{filename:"/lib/python3.9/site-packages/scipy/linalg/tests/test_decomp_cholesky.py",start:2061149,end:2068414,audio:0},{filename:"/lib/python3.9/site-packages/scipy/linalg/tests/test_sketches.py",start:2068414,end:2072374,audio:0},{filename:"/lib/python3.9/site-packages/scipy/linalg/tests/test_solve_toeplitz.py",start:2072374,end:2076413,audio:0},{filename:"/lib/python3.9/site-packages/scipy/linalg/tests/test_decomp_polar.py",start:2076413,end:2079059,audio:0},{filename:"/lib/python3.9/site-packages/scipy/linalg/tests/test_lapack.py",start:2079059,end:2195326,audio:0},{filename:"/lib/python3.9/site-packages/scipy/linalg/tests/test_decomp.py",start:2195326,end:2303672,audio:0},{filename:"/lib/python3.9/site-packages/scipy/linalg/tests/test_blas.py",start:2303672,end:2343878,audio:0},{filename:"/lib/python3.9/site-packages/scipy/linalg/tests/test_procrustes.py",start:2343878,end:2350635,audio:0},{filename:"/lib/python3.9/site-packages/scipy/linalg/tests/test_decomp_update.py",start:2350635,end:2418965,audio:0},{filename:"/lib/python3.9/site-packages/scipy/linalg/tests/test_cython_lapack.py",start:2418965,end:2419539,audio:0},{filename:"/lib/python3.9/site-packages/scipy/linalg/tests/test_fblas.py",start:2419539,end:2438224,audio:0},{filename:"/lib/python3.9/site-packages/scipy/linalg/tests/test_matfuncs.py",start:2438224,end:2472900,audio:0},{filename:"/lib/python3.9/site-packages/scipy/linalg/tests/test_basic.py",start:2472900,end:2537117,audio:0},{filename:"/lib/python3.9/site-packages/scipy/linalg/tests/test_solvers.py",start:2537117,end:2568119,audio:0},{filename:"/lib/python3.9/site-packages/scipy/linalg/tests/test_misc.py",start:2568119,end:2568195,audio:0},{filename:"/lib/python3.9/site-packages/scipy/linalg/tests/test_matmul_toeplitz.py",start:2568195,end:2572065,audio:0},{filename:"/lib/python3.9/site-packages/scipy/linalg/tests/__init__.py",start:2572065,end:2572065,audio:0},{filename:"/lib/python3.9/site-packages/scipy/linalg/tests/test_cython_blas.py",start:2572065,end:2576282,audio:0},{filename:"/lib/python3.9/site-packages/scipy/linalg/tests/test_special_matrices.py",start:2576282,end:2602993,audio:0},{filename:"/lib/python3.9/site-packages/scipy/linalg/tests/test_decomp_ldl.py",start:2602993,end:2608034,audio:0},{filename:"/lib/python3.9/site-packages/scipy/linalg/tests/data/carex_19_data.npz",start:2608034,end:2642084,audio:0},{filename:"/lib/python3.9/site-packages/scipy/linalg/tests/data/carex_20_data.npz",start:2642084,end:2673315,audio:0},{filename:"/lib/python3.9/site-packages/scipy/linalg/tests/data/carex_6_data.npz",start:2673315,end:2689193,audio:0},{filename:"/lib/python3.9/site-packages/scipy/linalg/tests/data/carex_15_data.npz",start:2689193,end:2723655,audio:0},{filename:"/lib/python3.9/site-packages/scipy/linalg/tests/data/carex_18_data.npz",start:2723655,end:2885142,audio:0},{filename:"/lib/python3.9/site-packages/scipy/linalg/tests/data/gendare_20170120_data.npz",start:2885142,end:2887306,audio:0},{filename:"/lib/python3.9/site-packages/scipy/misc/tests/__init__.py",start:2887306,end:2887306,audio:0},{filename:"/lib/python3.9/site-packages/scipy/misc/tests/test_common.py",start:2887306,end:2887833,audio:0},{filename:"/lib/python3.9/site-packages/scipy/misc/tests/test_doccer.py",start:2887833,end:2891571,audio:0},{filename:"/lib/python3.9/site-packages/scipy/odr/tests/__init__.py",start:2891571,end:2891571,audio:0},{filename:"/lib/python3.9/site-packages/scipy/odr/tests/test_odr.py",start:2891571,end:2911085,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/_trustregion_constr/tests/test_report.py",start:2911085,end:2912173,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/_trustregion_constr/tests/test_projections.py",start:2912173,end:2920993,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/_trustregion_constr/tests/test_canonical_constraint.py",start:2920993,end:2930862,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/_trustregion_constr/tests/test_qp_subproblem.py",start:2930862,end:2958581,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/_trustregion_constr/tests/__init__.py",start:2958581,end:2958581,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test_least_squares.py",start:2958581,end:2989133,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test_nnls.py",start:2989133,end:2990047,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test_lbfgsb_hessinv.py",start:2990047,end:2991184,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test_trustregion.py",start:2991184,end:2996826,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test_constraint_conversion.py",start:2996826,end:3008572,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test_slsqp.py",start:3008572,end:3031766,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test_lsq_common.py",start:3031766,end:3041266,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test_optimize.py",start:3041266,end:3130658,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test_differentiable_functions.py",start:3130658,end:3156001,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test_linprog.py",start:3156001,end:3240597,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test__root.py",start:3240597,end:3243210,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test_constraints.py",start:3243210,end:3250104,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test__remove_redundancy.py",start:3250104,end:3257631,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test__spectral.py",start:3257631,end:3264150,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test_zeros.py",start:3264150,end:3292015,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test_hessian_update_strategy.py",start:3292015,end:3302224,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test_minpack.py",start:3302224,end:3335541,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test_cobyla.py",start:3335541,end:3338979,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test_trustregion_krylov.py",start:3338979,end:3345566,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test_lsq_linear.py",start:3345566,end:3352787,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test_regression.py",start:3352787,end:3353864,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test__dual_annealing.py",start:3353864,end:3367076,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/__init__.py",start:3367076,end:3367076,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test__basinhopping.py",start:3367076,end:3383291,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test__shgo.py",start:3383291,end:3410081,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test__differential_evolution.py",start:3410081,end:3460255,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test_cython_optimize.py",start:3460255,end:3462893,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test_minimize_constrained.py",start:3462893,end:3487409,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test_nonlin.py",start:3487409,end:3502339,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test_tnc.py",start:3502339,end:3513528,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test_trustregion_exact.py",start:3513528,end:3526482,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test_lbfgsb_setulb.py",start:3526482,end:3529654,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test_linesearch.py",start:3529654,end:3540476,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test_quadratic_assignment.py",start:3540476,end:3556785,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test_linear_assignment.py",start:3556785,end:3560531,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test__linprog_clean_inputs.py",start:3560531,end:3571637,audio:0},{filename:"/lib/python3.9/site-packages/scipy/optimize/tests/test__numdiff.py",start:3571637,end:3601332,audio:0},{filename:"/lib/python3.9/site-packages/scipy/signal/tests/test_waveforms.py",start:3601332,end:3613306,audio:0},{filename:"/lib/python3.9/site-packages/scipy/signal/tests/test_max_len_seq.py",start:3613306,end:3616412,audio:0},{filename:"/lib/python3.9/site-packages/scipy/signal/tests/test_signaltools.py",start:3616412,end:3749762,audio:0},{filename:"/lib/python3.9/site-packages/scipy/signal/tests/test_cont2discrete.py",start:3749762,end:3764583,audio:0},{filename:"/lib/python3.9/site-packages/scipy/signal/tests/test_savitzky_golay.py",start:3764583,end:3774786,audio:0},{filename:"/lib/python3.9/site-packages/scipy/signal/tests/test_fir_filter_design.py",start:3774786,end:3802065,audio:0},{filename:"/lib/python3.9/site-packages/scipy/signal/tests/test_upfirdn.py",start:3802065,end:3812782,audio:0},{filename:"/lib/python3.9/site-packages/scipy/signal/tests/test_dltisys.py",start:3812782,end:3834340,audio:0},{filename:"/lib/python3.9/site-packages/scipy/signal/tests/test_windows.py",start:3834340,end:3871703,audio:0},{filename:"/lib/python3.9/site-packages/scipy/signal/tests/test_bsplines.py",start:3871703,end:3884724,audio:0},{filename:"/lib/python3.9/site-packages/scipy/signal/tests/test_peak_finding.py",start:3884724,end:3917589,audio:0},{filename:"/lib/python3.9/site-packages/scipy/signal/tests/test_array_tools.py",start:3917589,end:3921221,audio:0},{filename:"/lib/python3.9/site-packages/scipy/signal/tests/test_filter_design.py",start:3921221,end:4094139,audio:0},{filename:"/lib/python3.9/site-packages/scipy/signal/tests/test_spectral.py",start:4094139,end:4147385,audio:0},{filename:"/lib/python3.9/site-packages/scipy/signal/tests/test_wavelets.py",start:4147385,end:4153325,audio:0},{filename:"/lib/python3.9/site-packages/scipy/signal/tests/__init__.py",start:4153325,end:4153325,audio:0},{filename:"/lib/python3.9/site-packages/scipy/signal/tests/test_ltisys.py",start:4153325,end:4200060,audio:0},{filename:"/lib/python3.9/site-packages/scipy/signal/tests/test_result_type.py",start:4200060,end:4201702,audio:0},{filename:"/lib/python3.9/site-packages/scipy/signal/tests/mpsig.py",start:4201702,end:4205010,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/linalg/isolve/tests/test_lsmr.py",start:4205010,end:4212095,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/linalg/isolve/tests/test_minres.py",start:4212095,end:4214549,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/linalg/isolve/tests/test_gcrotmk.py",start:4214549,end:4219954,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/linalg/isolve/tests/test_lgmres.py",start:4219954,end:4227012,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/linalg/isolve/tests/test_lsqr.py",start:4227012,end:4231701,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/linalg/isolve/tests/__init__.py",start:4231701,end:4231701,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/linalg/isolve/tests/test_utils.py",start:4231701,end:4231936,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/linalg/isolve/tests/test_iterative.py",start:4231936,end:4256247,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/linalg/isolve/tests/demo_lgmres.py",start:4256247,end:4257835,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/linalg/dsolve/tests/__init__.py",start:4257835,end:4257835,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/linalg/dsolve/tests/test_linsolve.py",start:4257835,end:4284223,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/linalg/eigen/arpack/tests/__init__.py",start:4284223,end:4284223,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/linalg/eigen/arpack/tests/test_arpack.py",start:4284223,end:4318590,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/linalg/eigen/lobpcg/tests/__init__.py",start:4318590,end:4318590,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/linalg/eigen/lobpcg/tests/test_lobpcg.py",start:4318590,end:4331780,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/linalg/tests/test_norm.py",start:4331780,end:4337125,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/linalg/tests/test_onenormest.py",start:4337125,end:4346354,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/linalg/tests/__init__.py",start:4346354,end:4346354,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/linalg/tests/test_interface.py",start:4346354,end:4362876,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/linalg/tests/test_matfuncs.py",start:4362876,end:4384114,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/linalg/tests/test_expm_multiply.py",start:4384114,end:4393683,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/linalg/tests/test_pydata_sparse.py",start:4393683,end:4399637,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/csgraph/tests/test_spanning_tree.py",start:4399637,end:4401752,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/csgraph/tests/test_reordering.py",start:4401752,end:4404365,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/csgraph/tests/test_flow.py",start:4404365,end:4409053,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/csgraph/tests/test_graph_laplacian.py",start:4409053,end:4413375,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/csgraph/tests/test_traversal.py",start:4413375,end:4415700,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/csgraph/tests/test_connected_components.py",start:4415700,end:4418899,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/csgraph/tests/test_shortest_path.py",start:4418899,end:4430925,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/csgraph/tests/test_conversions.py",start:4430925,end:4432780,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/csgraph/tests/test_matching.py",start:4432780,end:4441312,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/csgraph/tests/__init__.py",start:4441312,end:4441312,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/tests/test_csc.py",start:4441312,end:4444214,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/tests/test_sputils.py",start:4444214,end:4450923,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/tests/__init__.py",start:4450923,end:4450923,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/tests/test_matrix_io.py",start:4450923,end:4453465,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/tests/test_base.py",start:4453465,end:4632948,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/tests/test_extract.py",start:4632948,end:4634257,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/tests/test_spfuncs.py",start:4634257,end:4637534,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/tests/test_construct.py",start:4637534,end:4659522,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/tests/test_sparsetools.py",start:4659522,end:4669663,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/tests/test_csr.py",start:4669663,end:4673180,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/tests/data/csc_py2.npz",start:4673180,end:4674026,audio:0},{filename:"/lib/python3.9/site-packages/scipy/sparse/tests/data/csc_py3.npz",start:4674026,end:4674877,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/transform/tests/__init__.py",start:4674877,end:4674877,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/transform/tests/test_rotation_spline.py",start:4674877,end:4679912,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/transform/tests/test_rotation_groups.py",start:4679912,end:4685472,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/transform/tests/test_rotation.py",start:4685472,end:4724681,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/test_kdtree.py",start:4724681,end:4773554,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/__init__.py",start:4773554,end:4773554,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/test_slerp.py",start:4773554,end:4790016,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/test_hausdorff.py",start:4790016,end:4796384,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/test_spherical_voronoi.py",start:4796384,end:4810893,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/test_qhull.py",start:4810893,end:4853212,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/test__plotutils.py",start:4853212,end:4855155,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/test_distance.py",start:4855155,end:4942135,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/test__procrustes.py",start:4942135,end:4947109,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/pdist-jaccard-ml.txt",start:4947109,end:4950150,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/pdist-seuclidean-ml.txt",start:4950150,end:4953191,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/pdist-correlation-ml.txt",start:4953191,end:4956232,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/pdist-cosine-ml.txt",start:4956232,end:4959273,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/random-int-data.txt",start:4959273,end:4969539,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/pdist-double-inp.txt",start:4969539,end:5019539,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/pdist-chebyshev-ml-iris.txt",start:5019539,end:5198340,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/pdist-cosine-ml-iris.txt",start:5198340,end:5377141,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/pdist-spearman-ml.txt",start:5377141,end:5380182,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/pdist-seuclidean-ml-iris.txt",start:5380182,end:5558983,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/pdist-boolean-inp.txt",start:5558983,end:5608983,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/pdist-minkowski-3.2-ml.txt",start:5608983,end:5612024,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/iris.txt",start:5612024,end:5627024,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/pdist-jensenshannon-ml-iris.txt",start:5627024,end:5799762,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/pdist-euclidean-ml.txt",start:5799762,end:5802803,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/pdist-cityblock-ml.txt",start:5802803,end:5805844,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/random-bool-data.txt",start:5805844,end:5811844,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/degenerate_pointset.npz",start:5811844,end:5834392,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/pdist-euclidean-ml-iris.txt",start:5834392,end:6013193,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/pdist-jensenshannon-ml.txt",start:6013193,end:6016011,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/pdist-chebyshev-ml.txt",start:6016011,end:6019052,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/pdist-correlation-ml-iris.txt",start:6019052,end:6197853,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/pdist-minkowski-5.8-ml-iris.txt",start:6197853,end:6376654,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/cdist-X1.txt",start:6376654,end:6382404,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/random-double-data.txt",start:6382404,end:6457404,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/pdist-cityblock-ml-iris.txt",start:6457404,end:6636205,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/random-uint-data.txt",start:6636205,end:6644916,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/selfdual-4d-polytope.txt",start:6644916,end:6645396,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/pdist-minkowski-3.2-ml-iris.txt",start:6645396,end:6824197,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/cdist-X2.txt",start:6824197,end:6835697,audio:0},{filename:"/lib/python3.9/site-packages/scipy/spatial/tests/data/pdist-hamming-ml.txt",start:6835697,end:6838738,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/__init__.py",start:6838738,end:6838738,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_wright_bessel.py",start:6838738,end:6842893,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_zeta.py",start:6842893,end:6844260,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_loggamma.py",start:6844260,end:6846252,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_precompute_expn_asy.py",start:6846252,end:6846859,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_boxcox.py",start:6846859,end:6849531,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_nan_inputs.py",start:6849531,end:6851376,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_log_softmax.py",start:6851376,end:6854791,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_precompute_gammainc.py",start:6854791,end:6859347,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_sph_harm.py",start:6859347,end:6860463,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_ndtri_exp.py",start:6860463,end:6862778,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_erfinv.py",start:6862778,end:6865669,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_trig.py",start:6865669,end:6867766,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_lambertw.py",start:6867766,end:6871967,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_cython_special.py",start:6871967,end:6890184,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_sf_error.py",start:6890184,end:6893162,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_round.py",start:6893162,end:6893568,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_spence.py",start:6893568,end:6894667,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_sici.py",start:6894667,end:6895894,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_orthogonal.py",start:6895894,end:6925027,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_data.py",start:6925027,end:6951309,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_gamma.py",start:6951309,end:6951567,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_mpmath.py",start:6951567,end:7026663,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_wrightomega.py",start:7026663,end:7030213,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_cosine_distr.py",start:7030213,end:7032904,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_logsumexp.py",start:7032904,end:7039084,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_spherical_bessel.py",start:7039084,end:7053368,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_exponential_integrals.py",start:7053368,end:7055236,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_faddeeva.py",start:7055236,end:7057804,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_ndtr.py",start:7057804,end:7058280,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_pcf.py",start:7058280,end:7058944,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_pdtr.py",start:7058944,end:7060228,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_bdtr.py",start:7060228,end:7063459,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_kolmogorov.py",start:7063459,end:7081866,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_logit.py",start:7081866,end:7084569,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_owens_t.py",start:7084569,end:7085892,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_gammainc.py",start:7085892,end:7089707,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_ellip_harm.py",start:7089707,end:7099347,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_orthogonal_eval.py",start:7099347,end:7108343,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_digamma.py",start:7108343,end:7109737,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_precompute_utils.py",start:7109737,end:7110926,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_spfun_stats.py",start:7110926,end:7112924,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_cdflib.py",start:7112924,end:7126089,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_basic.py",start:7126089,end:7258869,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/test_hypergeometric.py",start:7258869,end:7262396,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/data/README",start:7262396,end:7297535,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/data/boost.npz",start:7297535,end:8383213,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/data/local.npz",start:8383213,end:8586651,audio:0},{filename:"/lib/python3.9/site-packages/scipy/special/tests/data/gsl.npz",start:8586651,end:8638084,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/test_entropy.py",start:8638084,end:8649362,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/test_contingency.py",start:8649362,end:8656812,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/test_rank.py",start:8656812,end:8665087,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/test_bootstrap.py",start:8665087,end:8681641,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/test_mstats_basic.py",start:8681641,end:8756103,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/test_mstats_extras.py",start:8756103,end:8761493,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/test_multivariate.py",start:8761493,end:8842755,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/test_binned_statistic.py",start:8842755,end:8859584,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/test_stats.py",start:8859584,end:9158411,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/test_fit.py",start:9158411,end:9163297,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/common_tests.py",start:9163297,end:9174548,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/test_discrete_distns.py",start:9174548,end:9192494,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/test_continuous_basic.py",start:9192494,end:9222542,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/test_tukeylambda_stats.py",start:9222542,end:9225774,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/test_kdeoth.py",start:9225774,end:9242226,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/__init__.py",start:9242226,end:9242226,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/test_hypotests.py",start:9242226,end:9294496,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/test_distributions.py",start:9294496,end:9535628,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/test_discrete_basic.py",start:9535628,end:9545999,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/test_relative_risk.py",start:9545999,end:9549646,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/studentized_range_mpmath_ref.py",start:9549646,end:9557287,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/test_morestats.py",start:9557287,end:9659876,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/test_crosstab.py",start:9659876,end:9663639,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/test_qmc.py",start:9663639,end:9704732,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/data/studentized_range_mpmath_ref.json",start:9704732,end:9733971,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/data/stable-cdf-sample-data.npy",start:9733971,end:9760979,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/data/stable-pdf-sample-data.npy",start:9760979,end:9787987,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/data/nist_anova/SmLs07.dat",start:9787987,end:9795368,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/data/nist_anova/AtmWtAg.dat",start:9795368,end:9798431,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/data/nist_anova/SmLs04.dat",start:9798431,end:9805246,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/data/nist_anova/SmLs09.dat",start:9805246,end:10382879,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/data/nist_anova/SmLs02.dat",start:10382879,end:10429440,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/data/nist_anova/SmLs08.dat",start:10429440,end:10488668,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/data/nist_anova/SmLs05.dat",start:10488668,end:10542467,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/data/nist_anova/SmLs03.dat",start:10542467,end:10994033,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/data/nist_anova/SmLs06.dat",start:10994033,end:11517638,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/data/nist_anova/SiRstv.dat",start:11517638,end:11519585,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/data/nist_anova/SmLs01.dat",start:11519585,end:11525640,audio:0},{filename:"/lib/python3.9/site-packages/scipy/stats/tests/data/nist_linregress/Norris.dat",start:11525640,end:11528231,audio:0},{filename:"/lib/python3.9/site-packages/scipy/ndimage/tests/test_c_api.py",start:11528231,end:11531707,audio:0},{filename:"/lib/python3.9/site-packages/scipy/ndimage/tests/test_fourier.py",start:11531707,end:11538375,audio:0},{filename:"/lib/python3.9/site-packages/scipy/ndimage/tests/test_filters.py",start:11538375,end:11621264,audio:0},{filename:"/lib/python3.9/site-packages/scipy/ndimage/tests/test_interpolation.py",start:11621264,end:11676064,audio:0},{filename:"/lib/python3.9/site-packages/scipy/ndimage/tests/test_morphology.py",start:11676064,end:11780415,audio:0},{filename:"/lib/python3.9/site-packages/scipy/ndimage/tests/dots.png",start:11780415,end:11782529,audio:0},{filename:"/lib/python3.9/site-packages/scipy/ndimage/tests/test_measurements.py",start:11782529,end:11829026,audio:0},{filename:"/lib/python3.9/site-packages/scipy/ndimage/tests/test_splines.py",start:11829026,end:11831233,audio:0},{filename:"/lib/python3.9/site-packages/scipy/ndimage/tests/test_datatypes.py",start:11831233,end:11833975,audio:0},{filename:"/lib/python3.9/site-packages/scipy/ndimage/tests/__init__.py",start:11833975,end:11834402,audio:0},{filename:"/lib/python3.9/site-packages/scipy/ndimage/tests/data/label_strels.txt",start:11834402,end:11834654,audio:0},{filename:"/lib/python3.9/site-packages/scipy/ndimage/tests/data/README.txt",start:11834654,end:11834932,audio:0},{filename:"/lib/python3.9/site-packages/scipy/ndimage/tests/data/label_inputs.txt",start:11834932,end:11835226,audio:0},{filename:"/lib/python3.9/site-packages/scipy/ndimage/tests/data/label_results.txt",start:11835226,end:11839535,audio:0},{filename:"/lib/python3.9/site-packages/scipy/_build_utils/tests/__init__.py",start:11839535,end:11839535,audio:0},{filename:"/lib/python3.9/site-packages/scipy/_build_utils/tests/test_scipy_version.py",start:11839535,end:11840141,audio:0},{filename:"/lib/python3.9/site-packages/scipy/_lib/tests/test_bunch.py",start:11840141,end:11846309,audio:0},{filename:"/lib/python3.9/site-packages/scipy/_lib/tests/test_deprecation.py",start:11846309,end:11846673,audio:0},{filename:"/lib/python3.9/site-packages/scipy/_lib/tests/test_tmpdirs.py",start:11846673,end:11847915,audio:0},{filename:"/lib/python3.9/site-packages/scipy/_lib/tests/test_warnings.py",start:11847915,end:11851676,audio:0},{filename:"/lib/python3.9/site-packages/scipy/_lib/tests/test__threadsafety.py",start:11851676,end:11852998,audio:0},{filename:"/lib/python3.9/site-packages/scipy/_lib/tests/test__gcutils.py",start:11852998,end:11856414,audio:0},{filename:"/lib/python3.9/site-packages/scipy/_lib/tests/test__testutils.py",start:11856414,end:11857214,audio:0},{filename:"/lib/python3.9/site-packages/scipy/_lib/tests/__init__.py",start:11857214,end:11857214,audio:0},{filename:"/lib/python3.9/site-packages/scipy/_lib/tests/test_ccallback.py",start:11857214,end:11863209,audio:0},{filename:"/lib/python3.9/site-packages/scipy/_lib/tests/test__pep440.py",start:11863209,end:11865486,audio:0},{filename:"/lib/python3.9/site-packages/scipy/_lib/tests/test__util.py",start:11865486,end:11874205,audio:0},{filename:"/lib/python3.9/site-packages/scipy/_lib/tests/test_import_cycles.py",start:11874205,end:11875511,audio:0}],remote_package_size:5806133,package_uuid:"72f18fb8-be96-4066-8bdd-ee23c6d6e9b6"})})(); \ No newline at end of file diff --git a/spaces/quidiaMuxgu/Expedit-SAM/Adobe Premiere Pro CC 2015 V9.0 Crack Serial Key Keygen _BEST_.md b/spaces/quidiaMuxgu/Expedit-SAM/Adobe Premiere Pro CC 2015 V9.0 Crack Serial Key Keygen _BEST_.md deleted file mode 100644 index 87e8e5b0384b51d1cf927f525ef3a9031630c448..0000000000000000000000000000000000000000 --- a/spaces/quidiaMuxgu/Expedit-SAM/Adobe Premiere Pro CC 2015 V9.0 Crack Serial Key Keygen _BEST_.md +++ /dev/null @@ -1,7 +0,0 @@ -
        -

        the interface is very intuitive, and you can use shortcuts and tools to create, edit, and share video quickly. premiere pro cc 2015 is a powerful and complete tool for video creation and editing, allowing you to share your video projects with the world.

        -

        premiere pro cc 2015 free download software is very easy to use and is available for windows and mac os x, with a high level of customization. you can search for files and other media by metadata and make a selection from the following list of sources: camera, disc, computer, network, folder, and streaming media. it also supports a wide range of file formats, codecs, and codec options.

        -

        Adobe Premiere Pro CC 2015 v9.0 Crack Serial Key keygen


        DOWNLOAD »»» https://geags.com/2uCsMa



        -

        adobe premiere pro cc 2016 v9.0 is a new version of the software, which is one of the most popular video editing software used by most of the video editing professionals. it is a video editing application which is used to create and edit different types of videos such as short, long, and 3d videos. it is the most favorite video editing software among the video editing professionals and students. the software is very easy to learn, use, and also highly flexible. it is considered one of the best software among all video editing software. it is a complete video editing software package, which is one of the most popular tools among the professional video editors. adobe premiere pro cc 2016 is a complete package for video editing. it is the best video editing software available in the market. it is a professional video editing software which comes with advanced features and tools that enable you to create different types of high quality videos. it is one of the most popular video editing software which is used by millions of professionals all over the world.adobe premiere pro cc 2016 full license key download. adobe premiere pro cc 2016 crack free download torrentadobe premiere pro cc 2016 keygen activator. adobe premiere pro cc 2016 crack.adobe premiere pro cc 2016 license key free download. it is one of the best video editing software which is used by millions of professionals all over the world. it is a complete package for video editing.

        899543212b
        -
        -
        \ No newline at end of file diff --git a/spaces/quidiaMuxgu/Expedit-SAM/Carl Flesch Scale System For Viola EXCLUSIVE Download Pdf.md b/spaces/quidiaMuxgu/Expedit-SAM/Carl Flesch Scale System For Viola EXCLUSIVE Download Pdf.md deleted file mode 100644 index 703533184650b11a479f12b5c2988cc6bea4f259..0000000000000000000000000000000000000000 --- a/spaces/quidiaMuxgu/Expedit-SAM/Carl Flesch Scale System For Viola EXCLUSIVE Download Pdf.md +++ /dev/null @@ -1,26 +0,0 @@ -
        -

        How to Master the Carl Flesch Scale System for Viola

        -

        If you are a viola player who wants to improve your technique, intonation, and musicality, you may have heard of the Carl Flesch Scale System. This is a comprehensive method that covers all major and minor scales, arpeggios, double stops, and chromatic scales in various positions and patterns. It was developed by Carl Flesch (1873-1944), a Hungarian violinist and teacher who was one of the most influential pedagogues of the 20th century[^3^].

        -

        Carl Flesch Scale System For Viola Download Pdf


        Downloadhttps://geags.com/2uCrIE



        -

        The Carl Flesch Scale System for Viola is a adaptation of his original work for violin, edited by Charlotte Karman. It is available as a paperback book that you can purchase online[^2^] or download as a PDF file[^1^]. In this article, we will give you some tips on how to use this system effectively and efficiently to achieve your viola goals.

        -

        Why Use the Carl Flesch Scale System for Viola?

        -

        The Carl Flesch Scale System for Viola is not just a collection of exercises. It is a way of developing your musical ear, your fingerboard knowledge, your bow control, and your expressive skills. By practicing the scales in different keys, modes, tempos, rhythms, articulations, and dynamics, you will be able to play any piece of music with confidence and accuracy. You will also be able to improvise, sight-read, and transpose with ease.

        -

        The Carl Flesch Scale System for Viola is also a great tool for preparing for auditions, exams, competitions, and performances. It will help you warm up your muscles, tune your instrument, and focus your mind. It will also expose you to a variety of musical styles and genres, as well as historical and theoretical aspects of music.

        -

        How to Use the Carl Flesch Scale System for Viola?

        -

        The Carl Flesch Scale System for Viola is divided into four parts: Part I covers one-octave scales and arpeggios in all keys; Part II covers two-octave scales and arpeggios in all keys; Part III covers three-octave scales and arpeggios in all keys; and Part IV covers chromatic scales, double stops, harmonics, and artificial harmonics.

        -

        -

        Here are some general guidelines on how to use the system:

        -
          -
        • Start with Part I and work your way up to Part IV gradually. Do not skip any exercises or keys.
        • -
        • Practice each scale or arpeggio with a metronome. Start slowly and increase the speed as you master each level of difficulty.
        • -
        • Practice each scale or arpeggio with different bowings, rhythms, articulations, and dynamics. Follow the suggestions given in the book or create your own variations.
        • -
        • Practice each scale or arpeggio with different fingerings. Experiment with different positions and shifts to find the most comfortable and efficient way of playing.
        • -
        • Practice each scale or arpeggio with a drone or a tuner. Listen carefully to your intonation and adjust accordingly.
        • -
        • Practice each scale or arpeggio with a piano or a recording. Play along with the accompaniment and pay attention to your harmony and phrasing.
        • -
        • Practice each scale or arpeggio with expression and musicality. Imagine that you are playing a melody or a solo and convey your emotions and ideas through your sound.
        • -
        -

        Conclusion

        -

        The Carl Flesch Scale System for Viola is a valuable resource for any viola player who wants to take their playing to the next level. It will help you develop your technique, intonation, musicality, and versatility. It will also prepare you for any musical challenge that you may encounter. However, it is not enough to just play through the exercises mechanically. You need to practice them with attention, intention, and creativity. You need to make them your own.

        -

        If you follow these tips and practice regularly, you will soon see the results of your hard work. You will be able to play any viola piece with ease and confidence. You will be able to express yourself fully through your instrument. You will be able to enjoy playing the viola more than ever before.

        d5da3c52bf
        -
        -
        \ No newline at end of file diff --git a/spaces/quidiaMuxgu/Expedit-SAM/Coaching Institute Management Software 3.0 !EXCLUSIVE! Crack.md b/spaces/quidiaMuxgu/Expedit-SAM/Coaching Institute Management Software 3.0 !EXCLUSIVE! Crack.md deleted file mode 100644 index 34fa3aaf227fe582d834ec3545b0fd036c7cff4b..0000000000000000000000000000000000000000 --- a/spaces/quidiaMuxgu/Expedit-SAM/Coaching Institute Management Software 3.0 !EXCLUSIVE! Crack.md +++ /dev/null @@ -1,6 +0,0 @@ -

        coaching institute management software 3.0 crack


        Download Zip ———>>> https://geags.com/2uCqfG



        -
        -coaching institute management software for cricket,Management institute software. Download it. | File Page. -- Coaching Institute Management Software 3.0 Crack WORK ✓. coaching institute management software, er diagram for coaching institute management system, .coaching institute management software for cricket,Management institute software. Download it. | File Page. -- Coaching Institute Management Software 3.0 Crack WORK ✓. coaching institute management software, er diagram for coaching institute management system, .coaching institute management software for cricket,Management institute software. Download it. | File Page. -- Coaching Institute Management Software 3.0 Crack WORK ✓. coaching institute management software, er diagram for coaching institute management system, .coaching institute management software for cricket,Management institute software. Download it. | File Page. -- Coaching Institute Management Software 3.0 Crack WORK ✓. coaching institute management software, er diagram for coaching institute management system, .coaching institute management software for cricket,Management institute software. Download it. | File Page. -- Coaching Institute Management Software 3.0 Crack WORK ✓. coaching institute management software, er diagram for coaching institute management system, .coaching institute management software for cricket,Management institute software. Download it. | File Page. -- Coaching Institute Management Software 3.0 Crack WORK ✓. coaching institute management software, er diagram for coaching institute management system, .coaching institute management software for cricket,Management institute software. Download it. | File Page. -- Coaching Institute Management Software 3.0 Crack WORK ✓. coaching institute management software, er diagram for coaching institute management system, .coaching institute management software for cricket,Management institute software. Download it. | File Page. -- Coaching Institute Management Software 3.0 Crack WORK ✓. coaching institute management software, er diagram for coaching institute management system, .coaching institute management software for cricket,Management institute software. Download it. | File Page. -- Coaching Institute Management Software 3.0 Crack WORK ✓. coaching institute management software, er diagram for coaching institute management system, .coaching institute management software for cricket,Management institute software. Download it. | File Page. -- Coaching Institute Management Software 3.0 Crack WORK ✓. coaching institute management software, er diagram for coaching institute management system, .coaching institute management software for cricket,Management institute software. Download it. | File Page. -- Coaching Institute Management Software 3.0 Crack WORK ✓. coaching institute management software, er diagram for coaching institute 4fefd39f24
        -
        -
        -

        diff --git a/spaces/quidiaMuxgu/Expedit-SAM/Hentai Bleach Mayuri Game 5.7 13.md b/spaces/quidiaMuxgu/Expedit-SAM/Hentai Bleach Mayuri Game 5.7 13.md deleted file mode 100644 index 09de3467dfd986c85c16e1d782b272bd3fdad1e0..0000000000000000000000000000000000000000 --- a/spaces/quidiaMuxgu/Expedit-SAM/Hentai Bleach Mayuri Game 5.7 13.md +++ /dev/null @@ -1,28 +0,0 @@ -

        hentai bleach mayuri game 5.7 13


        Download File ○○○ https://geags.com/2uCqmb



        -
        -mp4 - -a) Clearing the fully summoned monster forms by a special move - -P2P Mayuri Games 2018 - -Mayuri Games - -Hentai Bleach Mayuri Game 5.7 13 ->>->>->> bleach mayuri game<br> bleach mayuri game english<br> bleach mayuri game 1b541ae6f6.mp4 - -a) Chaining all Normal forms to one enemy - -Hentai Bleach Mayuri Game 5.7 13 ->>->>->> bleach mayuri game<br> bleach mayuri game english<br> bleach mayuri game 16f2ed10e2.mp4 - -a) Chain before attacking. - -Hentai Bleach Mayuri Game 5.7 13 ->>->>->> bleach mayuri game<br> bleach mayuri game english<br> bleach mayuri game 5b5f22c44e.mp4 - -Hentai Bleach Mayuri Game 5.7 13 ->>->>->> bleach mayuri game<br> bleach mayuri game english<br> bleach mayuri game 18ca5b1c86.mp4 - -Hentai Bleach Mayuri Game 5.7 13 ->>->>->> bleach mayuri game<br> bleach mayuri game english<br> bleach mayuri game c5cd42469b.mp4 - -Hentai Bleach Mayuri Game 5.7 4fefd39f24
        -
        -
        -

        diff --git a/spaces/radames/TinyStories-Candle-Wasm-Magic/server.py b/spaces/radames/TinyStories-Candle-Wasm-Magic/server.py deleted file mode 100644 index 0c4a67f25c9b3d54338a6fdc7bc393563d20ce59..0000000000000000000000000000000000000000 --- a/spaces/radames/TinyStories-Candle-Wasm-Magic/server.py +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/python3 -# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/ -# generate server.xml with the following command: -# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes -# run as follows: -# python simple-https-server.py -# then in your browser, visit: -# https://localhost:4443 -# -# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes - -from http.server import HTTPServer, SimpleHTTPRequestHandler -import ssl, os - -if not os.path.exists("key.pem") or not os.path.exists("cert.pem"): - os.system( - "openssl req -nodes -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -subj '/CN=mylocalhost'" - ) -port = 443 -httpd = HTTPServer(("0.0.0.0", port), SimpleHTTPRequestHandler) -httpd.socket = ssl.wrap_socket( - httpd.socket, keyfile="key.pem", certfile="cert.pem", server_side=True -) -print(f"Server running on https://0.0.0.0:{port}") -httpd.serve_forever() diff --git a/spaces/raedeXanto/academic-chatgpt-beta/Agata Kristi Knjige.pdf Why You Should Read the Masterpieces of the Worlds Bestselling Author.md b/spaces/raedeXanto/academic-chatgpt-beta/Agata Kristi Knjige.pdf Why You Should Read the Masterpieces of the Worlds Bestselling Author.md deleted file mode 100644 index a13d6e2a2e273d26ed9ded49c70d95c9b91705c1..0000000000000000000000000000000000000000 --- a/spaces/raedeXanto/academic-chatgpt-beta/Agata Kristi Knjige.pdf Why You Should Read the Masterpieces of the Worlds Bestselling Author.md +++ /dev/null @@ -1,100 +0,0 @@ -
        -

        Agata Kristi Knjige.pdf: A Guide to the Best Books by the Queen of Crime

        -

        If you are a fan of mystery and suspense, you have probably heard of Agata Kristi, the best-selling author of all time. Her novels and short stories have captivated millions of readers around the world, and have been adapted into movies, TV shows, plays and games. But did you know that you can read her books in Serbian for free? In this article, we will tell you everything you need to know about Agata Kristi Knjige.pdf, a collection of her works in PDF format that you can download and enjoy on your device. We will also recommend some of her best books that you should not miss.

        -

        Agata Kristi Knjige.pdf


        Download File --->>> https://tinourl.com/2uL0dN



        -

        Introduction

        -

        Who was Agata Kristi?

        -

        Agata Kristi was born in 1890 in England, and started writing at a young age. She married twice, had one daughter, and travelled extensively around the world. She died in 1976, leaving behind a legacy of over 80 novels and collections of short stories, as well as 19 plays and two memoirs. She wrote under her own name and also under the pseudonym Mary Westmacott.

        -

        Why is she famous?

        -

        Agata Kristi is famous for creating some of the most iconic characters and plots in the history of crime fiction. She is known as the Queen of Crime, and has been praised for her ingenious twists, clever clues, and psychological insights. She is also one of the most translated authors in the world, with her books available in more than 100 languages.

        -

        What are her most popular books?

        -

        Agata Kristi wrote many genres and styles of books, but she is best known for her detective novels featuring Hercule Poirot and Miss Marple. Poirot is a Belgian detective with a distinctive moustache and a brilliant mind, who solves complex cases using his "little grey cells". Miss Marple is an elderly spinster who lives in a quiet village and uses her keen observation and common sense to unravel mysteries. Some of her other famous characters include Tommy and Tuppence Beresford, a married couple who work as amateur sleuths; Ariadne Oliver, a crime writer who is a self-parody of Agata Kristi herself; and Harley Quin, a mysterious figure who helps people in trouble.

        -

        Agata Kristi Knjige.pdf: A Collection of Her Works in Serbian

        -

        How to download Agata Kristi Knjige.pdf

        -

        If you want to read Agata Kristi's books in Serbian, you can download them for free from various websites online. One of them is Knjige Online, where you can find over 20 books by Agata Kristi in PDF format. You can also search for "Agata Kristi Knjige.pdf" on Google or other search engines and find more sources.

        -

        What are the advantages of reading Agata Kristi Knjige.pdf

        -

        Reading Agata Kristi Knjige.pdf has many benefits for Serbian readers. Here are some of them:

        -
          -
        • You can improve your reading skills and vocabulary by reading books in your native language.
        • -
        • You can enjoy the original style and tone of Agata Kristi's writing without losing anything in translation.
        • -
        • You can save money by downloading free books instead of buying them.
        • -
        • You can access your books anytime and anywhere on your device without carrying physical copies.
        • -
        • You can share your books with your friends and family who also love Agata Kristi.
        • -
        -

        What are some of the best books in Agata Kristi Knjige.pdf

        -

        It is hard to choose from so many great books by Agata Kristi, but here are some of our favorites that you should definitely read:

        -

        Deset malih crnaca (And Then There Were None)

        -

        This is one of Agata Kristi's most famous and acclaimed novels, and also one of the best-selling books of all time. It tells the story of ten strangers who are invited to an isolated island by a mysterious host. They soon discover that they have been lured there for a sinister purpose: they are accused of various crimes that they have committed in their pasts, and one by one they are killed off according to a nursery rhyme. Who is behind this deadly game? And who will survive?

        -

        Ubistvo u Orijent ekspresu (Murder on the Orient Express)

        -

        This is another classic novel by Agata Kristi featuring Hercule Poirot as the main protagonist. It takes place on a luxurious train that travels from Istanbul to London. During the journey, one of the passengers is found stabbed to death in his cabin. Poirot is asked to investigate the case by his friend Monsieur Bouc, who is also on board. He soon realizes that there are twelve suspects with different motives and alibis, and that the murder is connected to a notorious kidnapping case that happened years ago.

        -

        Agata Kristi knjige download
        -Agata Kristi knjige online
        -Agata Kristi knjige besplatno
        -Agata Kristi knjige u pdf formatu
        -Agata Kristi knjige na srpskom
        -Agata Kristi knjige na hrvatskom
        -Agata Kristi knjige na engleskom
        -Agata Kristi knjige popis
        -Agata Kristi knjige redoslijed
        -Agata Kristi knjige po godinama
        -Agata Kristi knjige sa Hercule Poirotom
        -Agata Kristi knjige sa Miss Marple
        -Agata Kristi knjige sa Tommyjem i Tuppence
        -Agata Kristi knjige sa Harleyjem Quinom
        -Agata Kristi knjige sa Parkerom Pyneom
        -Agata Kristi knjige sa Ariadne Oliver
        -Agata Kristi knjige sa Superintendentom Battleom
        -Agata Kristi knjige sa Colonelom Raceom
        -Agata Kristi knjige sa detektivom Satterthwaiteom
        -Agata Kristi knjige sa detektivom Neeleom
        -Agata Kristi knjige sa detektivom Craddockom
        -Agata Kristi knjige sa detektivom Spenceom
        -Agata Kristi knjige sa detektivom Leachom
        -Agata Kristi knjige sa detektivom Narracottom
        -Agata Kristi knjige sa detektivom Westonnom
        -Agata Kristi knjige sa detektivom Ketteringom
        -Agata Kristi knjige sa detektivom Mercerom
        -Agata Kristi knjige sa detektivom Blandom
        -Agata Kristi knjige sa detektivom Hewittom
        -Agata Kristi knjige sa detektivom O'Briennom
        -Agata Kristi knjige sa detektivom Jappom
        -Agata Kristi knjige sa detektivom Summerhayesom
        -Agata Kristi knjige sa detektivom Slackom
        -Agata Kristi knjige sa detektivkom Clitheringovou
        -Agata Kristi knjige sa doktorom Sheppardom
        -Agata Kristi knjige sa doktorom Haydockom
        -Agata Kristi knjige sa doktorom Gerardem
        -Agata Kristi knjige sa doktorom Calgaryjem
        -Agata Kristi knjige sa doktoricom Franklinovou
        -Agata Kristi knjige sa gospođicom Lemonovou
        -Agata Kristi knjige sa gospođicom Felicity Lemonovou
        -Agata Kristi knjige sa gospođicom Bulstrodeovou
        -Agata Kristi knjige sa gospođicom Vansittartovou
        -Agata Kristi knjige sa gospođicom Gilchristovou
        -Agata Kristi knjige sa gospođicom Van Schuylerovou
        -Agata Kristi knjige sa gospođicom Lawsonovou
        -Agata Kristi knjige sa gospođicom Pebmarshovou
        -Agata Kristi knjige sa gospođicom Greenshawovou
        -Agata Kristi knjige recenzije

        -

        Smrt na Nilu (Death on the Nile)

        -

        This is a thrilling novel by Agata Kristi that also features Hercule Poirot as the main protagonist. It takes place on a cruise ship that sails along the Nile River in Egypt. Among the passengers are Linnet Doyle, a beautiful heiress who has recently married Simon Doyle, her best friend's former fiancé; Jacqueline de Bellefort, Linnet's former friend who is obsessed with revenge; and various other characters with secrets and grudges. When Linnet is shot dead during a sightseeing tour, Poirot has to find out who among them is the killer.

        -

        Ubistvo Rodžera Akrojda (The Murder of Roger Ackroyd)

        -```html the main protagonist. It takes place in a small village where a wealthy man named Roger Ackroyd is found stabbed to death in his study. The narrator of the story is Dr. James Sheppard, who assists Miss Marple in solving the case. The novel has a shocking and unexpected twist that challenges the conventions of detective fiction.

        -

        Zlo pod suncem (Evil Under the Sun)

        -

        This is a captivating novel by Agata Kristi that also features Hercule Poirot as the main protagonist. It takes place on a secluded island resort where a group of guests are staying for a holiday. Among them is Arlena Stuart, a beautiful actress who attracts the attention of many men and the jealousy of many women. When she is found strangled on a beach, Poirot has to find out who among the guests had a motive and an opportunity to kill her.

        -

        Conclusion

        -

        Summary of the main points

        -

        In this article, we have introduced you to Agata Kristi Knjige.pdf, a collection of her books in Serbian that you can download for free and read on your device. We have also given you some background information about Agata Kristi, her life and her works. We have also recommended some of her best books that you should not miss if you are a fan of mystery and suspense.

        -

        Call to action for the readers

        -

        If you are interested in reading Agata Kristi Knjige.pdf, you can visit Knjige Online or search for other sources online. You can also check out other books by Agata Kristi in other languages and formats. You will not regret diving into the world of Agata Kristi, where nothing is as it seems and where every puzzle has a brilliant solution.

        -

        FAQs

        -
          -
        • Q: How many books did Agata Kristi write in total? A: Agata Kristi wrote over 80 novels and collections of short stories, as well as 19 plays and two memoirs.
        • -
        • Q: Which book by Agata Kristi is considered her masterpiece? A: Many critics and readers consider And Then There Were None to be her masterpiece, as it is one of the most original and ingenious novels ever written.
        • -
        • Q: Which book by Agata Kristi was adapted into a movie starring Johnny Depp? A: Murder on the Orient Express was adapted into a movie starring Johnny Depp as one of the suspects in 2017.
        • -
        • Q: Which book by Agata Kristi features both Hercule Poirot and Miss Marple? A: The only book by Agata Kristi that features both Hercule Poirot and Miss Marple is The Thirteen Problems, which is a collection of short stories.
        • -
        • Q: Which book by Agata Kristi was inspired by her own experience of being poisoned? A: The Pale Horse was inspired by Agata Kristi's own experience of being poisoned by thallium during World War II.
        • -
        -

        0a6ba089eb
        -
        -
        \ No newline at end of file diff --git a/spaces/raedeXanto/academic-chatgpt-beta/Download FM8 Full Crack Free for Windows and Create Amazing Music.md b/spaces/raedeXanto/academic-chatgpt-beta/Download FM8 Full Crack Free for Windows and Create Amazing Music.md deleted file mode 100644 index aa007f95ad18e8f36e1d4e8f82803f29b1e574a5..0000000000000000000000000000000000000000 --- a/spaces/raedeXanto/academic-chatgpt-beta/Download FM8 Full Crack Free for Windows and Create Amazing Music.md +++ /dev/null @@ -1,168 +0,0 @@ -
        -

        FM8 Full Crack Free for Windows: A Comprehensive Guide

        -

        If you are a music producer or a sound designer who loves creating amazing sounds with FM synthesis, you may have heard of FM8, one of the most popular and powerful plugins by Native Instruments. But what if you don't have enough money to buy it or you just want to try it out before making a purchase? In that case, you may be tempted to download FM8 full crack free for windows, a version of the software that bypasses the copy protection and lets you use it without paying anything. But is it really worth it? And how can you do it safely and easily?

        -

        fm8 full crack free for windows


        DOWNLOAD ===> https://tinourl.com/2uL2by



        -

        In this article, we will answer all these questions and more. We will give you a brief overview of what FM8 is and why you might want to download it for free. We will also provide you with a step-by-step guide on how to find and install a working FM8 full crack free for windows. Finally, we will discuss some of the potential risks and alternatives of downloading FM8 full crack free for windows. By the end of this article, you will have all the information you need to make an informed decision about whether or not to download FM8 full crack free for windows.

        -

        What is FM8?

        -

        FM8 is a software synthesizer that uses frequency modulation (FM) synthesis to create sounds. FM synthesis is a technique that involves modulating one or more oscillators (called carriers) with another oscillator (called modulator) to produce complex waveforms. This allows you to create sounds that are rich in harmonics, dynamics, and expression.

        -

        FM8 is based on the legendary Yamaha DX7, one of the first digital synthesizers that popularized FM synthesis in the 1980s. However, FM8 goes beyond the limitations of the original hardware and offers many more features and possibilities. Some of these features include:

        -
          -
        • A powerful FM matrix that lets you easily assign modulators to carriers and adjust their levels
        • -
        • An intuitive arpeggiator that lets you create complex rhythmic patterns with various modes and parameters
        • -
        • A revolutionary sound morphing feature that lets you blend between four different sounds using an XY pad
        • -
        • A large selection of new, charismatic effects that add depth and character to your sounds
        • -
        • A library of over 1200 expertly-designed presets that cover a wide range of genres and styles
        • -
        • A compatibility mode that lets you load patches from classic FM hardware units, such as the DX7 or TX81Z
        • -
        -

        FM8 is one of the most versatile and powerful synthesizers on the market. It can create anything from crystalline bells and keys to bright and bold brasses to deep and dark basses. It can also emulate acoustic instruments like pianos or guitars or create futuristic sounds that are unique and original.

        -

        Why download FM8 full crack free for windows?

        -

        FM8 is not a cheap plugin. It costs $199 on the official website of Native Instruments. That's why some people may want to download FM8 full crack free for windows, a version of the plugin that does not require any payment or activation.

        -

        fm8 full version free download for windows 10
        -how to get fm8 cracked for windows 7
        -fm8 synth full crack free for windows 8.1
        -download fm8 full crack gratis for windows 11
        -fm8 vst full crack free for windows xp
        -fm8 native instruments full crack free for windows vista
        -fm8 software full crack free for windows 32 bit
        -fm8 plugin full crack free for windows 64 bit
        -fm8 mac full crack free for windows emulator
        -fm8 serial number full crack free for windows activation
        -fm8 keygen full crack free for windows license
        -fm8 patch full crack free for windows update
        -fm8 torrent full crack free for windows magnet link
        -fm8 rar full crack free for windows zip file
        -fm8 iso full crack free for windows image file
        -fm8 setup full crack free for windows installer
        -fm8 exe full crack free for windows executable file
        -fm8 dll full crack free for windows library file
        -fm8 presets full crack free for windows sound bank
        -fm8 skins full crack free for windows custom interface
        -fm8 manual full crack free for windows user guide
        -fm8 tutorial full crack free for windows video course
        -fm8 review full crack free for windows feedback
        -fm8 tips full crack free for windows tricks
        -fm8 tricks full crack free for windows hacks
        -fm8 hacks full crack free for windows cheats
        -fm8 cheats full crack free for windows shortcuts
        -fm8 shortcuts full crack free for windows keyboard commands
        -fm8 keyboard commands full crack free for windows hotkeys
        -fm8 hotkeys full crack free for windows quick access
        -fm8 quick access full crack free for windows fast launch
        -fm8 fast launch full crack free for windows easy start
        -fm8 easy start full crack free for windows simple setup
        -fm8 simple setup full crack free for windows basic configuration
        -fm8 basic configuration full crack free for windows default settings
        -fm8 default settings full crack free for windows optimal performance
        -fm8 optimal performance full crack free for windows best quality
        -fm8 best quality full crack free for windows high resolution
        -fm8 high resolution full crack free for windows clear sound
        -fm8 clear sound full crack free for windows realistic synthesis
        -fm8 realistic synthesis full crack free for windows amazing effects
        -fm8 amazing effects full crack free for windows cool features
        -fm8 cool features full crack free for windows awesome functions
        -fm8 awesome functions full crack free for windows powerful tools
        -fm8 powerful tools full crack free for windows advanced options
        -fm8 advanced options full crack free for windows expert mode
        -fm8 expert mode full crack free for windows professional level
        -fm8 professional level full crack free for windows industry standard

        -

        There are several reasons why someone might want to download FM8 full crack free for windows, such as:

        -
          -
        • Saving money: Some people may not have enough money to buy FM8 or may not want to spend that much on a plugin. They may think that downloading FM8 full crack free for windows is a way to save money and still enjoy its features.
        • -
        • Testing the software: Some people may want to try out FM8 before buying it. They may think that downloading FM8 full crack free for windows is a way to test its functionality and compatibility with their system.
        • -

          How to Download FM8 Full Crack Free for Windows

          -

          Now that you know what FM8 is and why you might want to download it for free, let's see how you can actually do it. In this section, we will provide you with a step-by-step guide on how to find and install a working FM8 full crack free for windows. Follow these steps carefully and you will be able to enjoy FM8 full crack features and presets in no time.

          -

          Step 1: Find a reliable source for FM8 full crack free for windows

          -

          The first step is to find a website that offers FM8 full crack free for windows. There are many websites that claim to provide FM8 full crack free for windows, but not all of them are trustworthy or reliable. Some of them may contain viruses, malware, or fake files that can harm your computer or steal your personal information. Therefore, you need to be careful and choose a website that has a good reputation and positive reviews from other users.

          -

          One way to find a reliable source for FM8 full crack free for windows is to use a search engine like Google or Bing and type in keywords like "FM8 full crack free for windows", "FM8 full version free download", or "FM8 cracked download". You will get many results, but you need to check them carefully and look for some indicators of quality, such as:

          -
            -
          • The website has a professional design and layout
          • -
          • The website has a clear and detailed description of the FM8 full crack file and its features
          • -
          • The website has screenshots or videos of the FM8 full crack software in action
          • -
          • The website has a secure and fast download link that does not require any surveys, passwords, or registrations
          • -
          • The website has positive comments and feedback from other users who have downloaded the FM8 full crack file
          • -
          • The website has a contact or support page where you can ask questions or report problems
          • -
          -

          To help you out, we have done some research and found three websites that offer FM8 full crack free for windows and meet these criteria. These are:

          -
            -
          • FileCR: This website has a simple and clean design and offers FM8 full crack free for windows as well as other audio plugins and software. It has a detailed description of the FM8 full crack file and its features, as well as screenshots and technical details. It also has a secure and fast download link that does not require any surveys, passwords, or registrations. The file size is 104 MB and the version is 1.4.4.
          • -
          • 4DOWNLOAD: This website has a colorful and attractive design and offers FM8 full crack free for windows as well as other audio plugins and software. It has a brief overview of the FM8 full crack file and its features, as well as screenshots and product information. It also has a secure and fast download link that does not require any surveys, passwords, or registrations. The file size is 104 MB and the version is 1.4.4.
          • -
          • VSTTorrentz: This website has a dark and modern design and offers FM8 full crack free for windows as well as other audio plugins and software. It has a short introduction of the FM8 full crack file and its features, as well as screenshots and system requirements. It also has a secure and fast download link that does not require any surveys, passwords, or registrations. The file size is 106 MB and the version is 1.4.4.
          • -
          -

          You can choose any of these websites to download FM8 full crack free for windows, but we recommend FileCR because it has the most detailed description of the FM8 full crack file and its features.

          -

          Step 2: Download the FM8 full crack file and extract it

          -

          The next step is to download the FM8 full crack file from the chosen website and extract it using a software like WinRAR or 7-Zip. To do this, follow these steps:

          -
            -
          1. Go to the chosen website and click on the download link for FM8 full crack free for windows. You may have to wait for a few seconds before the download starts.
          2. -
          3. Save the FM8 full crack file to your desired location on your computer. Make sure you have enough space on your hard drive.
          4. -
          5. Once the download is complete, locate the FM8 full crack file on your computer. It should be in a compressed format like .rar or .zip.
          6. -
          7. Right-click on the FM8 full crack file and select "Extract here" or "Extract to" depending on your software. You may have to enter a password if prompted. The password is usually provided on the website where you downloaded the file.
          8. -
          9. A new folder with the name of the FM8 full crack file should appear on your computer. Open it and you should see several files inside, such as setup.exe, serial.txt, keygen.exe, etc.
          10. -
          -

          Step 3: Install the FM8 full crack software and activate it

          -

          The final step is to install the FM8 full crack software and activate it using a serial number or a keygen. To do this, follow these steps:

          -
            -
          1. Open the folder where you extracted the FM8 full crack file and double-click on the setup.exe file. This will launch the installation wizard.
          2. -
          3. Follow the instructions on the screen and choose your preferred language, destination folder, and components. You may have to agree to the terms and conditions of Native Instruments.
          4. -
          5. Wait for the installation to complete and click on Finish. Do not run the FM8 full crack software yet.
          6. -
          7. Open the folder where you installed the FM8 full crack software and look for a file named serial.txt or keygen.exe. This file contains the serial number or the keygen that you need to activate the FM8 full crack software.
          8. -
          9. If you have a serial number, copy it and run the FM8 full crack software. It will ask you to enter the serial number. Paste it and click on Activate.
          10. -
          11. If you have a keygen, run it and click on Generate. It will create a serial number for you. Copy it and run the FM8 full crack software. It will ask you to enter the serial number. Paste it and click on Activate.
          12. -
          13. You should see a message that says "Activation successful". Congratulations! You have successfully installed and activated the FM8 full crack software.
          14. -
          -

          Step 4: Enjoy the FM8 full crack features and presets

          -

          Now that you have installed and activated the FM8 full crack software, you can enjoy its features and presets. You can open it as a standalone application or as a plugin in your DAW. You can explore its interface and its powerful FM matrix, its intuitive arpeggiator, its revolutionary sound morphing, and its large selection of effects. You can also browse through its library of over 1200 presets that cover a wide range of genres and styles. You can tweak them, mix them, or create your own sounds from scratch.

          -

          FM8 full crack free for windows is a great way to experience the power and versatility of FM synthesis. It can create anything from crystalline bells and keys to bright and bold brasses to deep and dark basses. It can also emulate acoustic instruments like pianos or guitars or create futuristic sounds that are unique and original.

          -

          Risks and Alternatives of Downloading FM8 Full Crack Free for Windows

          -

          You may be wondering if there are any risks or alternatives of downloading FM8 full crack free for windows. In this section, we will discuss some of the potential risks and alternatives of downloading FM8 full crack free for windows. We will also give you some tips on how to avoid or minimize these risks.

          -

          What are the risks of downloading FM8 full crack free for windows?

          -

          Downloading FM8 full crack free for windows may seem like a good idea at first, but it also comes with some risks that you should be aware of. Some of these risks include:

          -
            -
          • Viruses, malware, or other threats: Some websites that offer FM8 full crack free for windows may contain viruses, malware, or other threats that can harm your computer or steal your personal information. These threats may be hidden in the download link, in the compressed file, or in the setup file. They may infect your system, damage your files, slow down your performance, or compromise your security.
          • -the terms and conditions of Native Instruments. You may face legal consequences if you are caught using a cracked version of FM8. According to the U.S. Copyright Law, you may have to pay fines of up to $150,000 and spend five years in prison. -
          • Compatibility problems: Downloading FM8 full crack free for windows may cause compatibility problems with your system or your DAW. The cracked version of FM8 may not work properly or may crash frequently. It may also conflict with other plugins or software that you have installed on your computer.
          • -
          -

          These are some of the risks that you should consider before downloading FM8 full crack free for windows. However, there are also some ways to avoid or minimize these risks, such as:

          -
            -
          • Scanning the downloaded file: Before opening or extracting the FM8 full crack file, you should scan it with an antivirus software to make sure it does not contain any viruses, malware, or other threats. You should also scan your computer regularly to detect and remove any potential infections.
          • -
          • Backing up your data: Before installing the FM8 full crack software, you should back up your data to an external drive or a cloud service. This way, you can restore your data in case something goes wrong with the installation or the software damages your files.
          • -
          • Updating your system and software: Before using the FM8 full crack software, you should update your system and software to the latest versions. This can help you avoid compatibility problems and improve your performance and security.
          • -
          -

          What are the alternatives of downloading FM8 full crack free for windows?

          -

          If you are not willing to take the risks of downloading FM8 full crack free for windows, or if you want to support the developers of FM8, there are some alternatives that you can try instead. Some of these alternatives include:

          -
            -
          • Buying FM8 from the official website: The best and most legal way to get FM8 is to buy it from the official website of Native Instruments. You can get FM8 for $199 or as part of a bundle like Komplete 13 for $599. By buying FM8 from the official website, you can enjoy its full features and presets without any restrictions or risks. You can also get updates, technical support, and discounts from Native Instruments.
          • -
          • Using a trial version of FM8: If you want to try out FM8 before buying it, you can use a trial version of FM8 for 30 days. You can download the trial version from the official website of Native Instruments. The trial version has all the features and presets of the full version, but it will stop working after 30 days. You can then decide whether to buy FM8 or not.
          • -
          • Subscribing to a service like Komplete: If you want to access FM8 and other plugins and software by Native Instruments, you can subscribe to a service like Komplete for a monthly or annual fee. Komplete is a collection of over 100 instruments and effects by Native Instruments, including FM8. You can get Komplete for $9.99 per month or $99 per year. By subscribing to Komplete, you can use FM8 and other plugins and software without any limitations or risks. You can also get updates, technical support, and discounts from Native Instruments.
          • -
          -

          These are some of the alternatives that you can consider instead of downloading FM8 full crack free for windows. They may cost you some money, but they will also give you more benefits and peace of mind.

          -

          FAQs about Downloading FM8 Full Crack Free for Windows

          -

          In this section, we will answer some of the most common questions that people have about downloading FM8 full crack free for windows. If you have any other questions that are not answered here, feel free to leave a comment below or contact us through our website.

          -

          Is FM8 compatible with Windows 11?

          -

          Yes, according to Native Instruments, FM8 is compatible with Windows 11 as well as Windows 10, Windows 8.1, and Windows 7. However, if you download FM8 full crack free for windows, you may encounter some compatibility issues or errors with Windows 11.

          -

          Is FM8 worth downloading?

          -

          Yes, if you are looking for a versatile and powerful FM synthesis plugin that can create a wide range of sounds from classic to modern. FM8 has many features and presets that make it one of the best synthesizers on the market. However, if you download FM8 full crack free for windows, you may not be able to enjoy its full potential or support its developers.

          -

          Is downloading FM8 full crack free for windows illegal?

          -the terms and conditions of Native Instruments. You may face legal consequences if you are caught using a cracked version of FM8. According to the U.S. Copyright Law, you may have to pay fines of up to $150,000 and spend five years in prison. -
        • Compatibility problems: Downloading FM8 full crack free for windows may cause compatibility problems with your system or your DAW. The cracked version of FM8 may not work properly or may crash frequently. It may also conflict with other plugins or software that you have installed on your computer.
        • -
        -

        These are some of the risks that you should consider before downloading FM8 full crack free for windows. However, there are also some ways to avoid or minimize these risks, such as:

        -
          -
        • Scanning the downloaded file: Before opening or extracting the FM8 full crack file, you should scan it with an antivirus software to make sure it does not contain any viruses, malware, or other threats. You should also scan your computer regularly to detect and remove any potential infections.
        • -
        • Backing up your data: Before installing the FM8 full crack software, you should back up your data to an external drive or a cloud service. This way, you can restore your data in case something goes wrong with the installation or the software damages your files.
        • -
        • Updating your system and software: Before using the FM8 full crack software, you should update your system and software to the latest versions. This can help you avoid compatibility problems and improve your performance and security.
        • -
        -

        What are the alternatives of downloading FM8 full crack free for windows?

        -

        If you are not willing to take the risks of downloading FM8 full crack free for windows, or if you want to support the developers of FM8, there are some alternatives that you can try instead. Some of these alternatives include:

        -
          -
        • Buying FM8 from the official website: The best and most legal way to get FM8 is to buy it from the official website of Native Instruments. You can get FM8 for $199 or as part of a bundle like Komplete 13 for $599. By buying FM8 from the official website, you can enjoy its full features and presets without any restrictions or risks. You can also get updates, technical support, and discounts from Native Instruments.
        • -
        • Using a trial version of FM8: If you want to try out FM8 before buying it, you can use a trial version of FM8 for 30 days. You can download the trial version from the official website of Native Instruments. The trial version has all the features and presets of the full version, but it will stop working after 30 days. You can then decide whether to buy FM8 or not.
        • -
        • Subscribing to a service like Komplete: If you want to access FM8 and other plugins and software by Native Instruments, you can subscribe to a service like Komplete for a monthly or annual fee. Komplete is a collection of over 100 instruments and effects by Native Instruments, including FM8. You can get Komplete for $9.99 per month or $99 per year. By subscribing to Komplete, you can use FM8 and other plugins and software without any limitations or risks. You can also get updates, technical support, and discounts from Native Instruments.
        • -
        -

        These are some of the alternatives that you can consider instead of downloading FM8 full crack free for windows. They may cost you some money, but they will also give you more benefits and peace of mind.

        -

        -

        This concludes our article on how to download FM8 full crack free for windows. We hope that this article has been informative and helpful for you. We have covered what FM8 is, why you might want to download it for free, how to find and install a working FM8 full crack for windows, what are the risks and alternatives of downloading FM8 full crack free for windows, and some FAQs about downloading FM8 full crack free for windows.

        -

        If you have any questions or comments about this article, feel free to leave them below or contact us through our website. We would love to hear from you and help you out with any issues that you may have.

        -

        Thank you for reading this article and have a great day!

        - : https://www.makeuseof.com/what-is-software-cracking-and-dangers-of-cracked-software/ : https://www.native-instruments.com/en/products/komplete/synths/fm8/

        0a6ba089eb
        -
        -
        \ No newline at end of file diff --git a/spaces/rahul999r/Rahul_Kannada_TTS/utils/inference/run_gradio.py b/spaces/rahul999r/Rahul_Kannada_TTS/utils/inference/run_gradio.py deleted file mode 100644 index 5b4c46a79fc0b7e1760d1d321a2902e14e3020e3..0000000000000000000000000000000000000000 --- a/spaces/rahul999r/Rahul_Kannada_TTS/utils/inference/run_gradio.py +++ /dev/null @@ -1,53 +0,0 @@ -import gradio as gr -import argparse -import numpy as np -from argparse import Namespace -from advanced_tts import load_all_models, run_tts_paragraph - - -def hit_tts(textbox, slider_noise_scale, slider_length_sclae, choice_transliteration, choice_number_conversion, choice_split_sentences): - inputs_to_gradio = {'text' : textbox, - 'noise_scale': slider_noise_scale, - 'length_scale': slider_length_sclae, - 'transliteration' : 1 if choice_transliteration else 0, - 'number_conversion' : 1 if choice_number_conversion else 0, - 'split_sentences' : 1 if choice_split_sentences else 0 - } - - args = Namespace(**inputs_to_gradio) - args.wav = None - args.lang = lang - - if args.text: - sr, audio = run_tts_paragraph(args) - return (sr, audio) - - -if __name__ == "__main__": - parser = argparse.ArgumentParser() - parser.add_argument("-a", "--acoustic", required=True, type=str) - parser.add_argument("-v", "--vocoder", required=True, type=str) - parser.add_argument("-d", "--device", type=str, default="cpu") - parser.add_argument("-L", "--lang", type=str, required=True) - - global lang - - args = parser.parse_args() - lang = args.lang - load_all_models(args) - - textbox = gr.inputs.Textbox(placeholder="Enter Text to run", default="", label="TTS") - slider_noise_scale = gr.inputs.Slider(minimum=0, maximum=1.0, step=0.001, default=0.667, label='Enter Noise Scale') - slider_length_sclae = gr.inputs.Slider(minimum=0, maximum=2.0, step=0.1, default=1.0, label='Enter Slider Scale') - - choice_transliteration = gr.inputs.Checkbox(default=True, label="Transliteration") - choice_number_conversion = gr.inputs.Checkbox(default=True, label="Number Conversion") - choice_split_sentences = gr.inputs.Checkbox(default=True, label="Split Sentences") - - - - op = gr.outputs.Audio(type="numpy", label=None) - - inputs_to_gradio = [textbox, slider_noise_scale, slider_length_sclae, choice_transliteration, choice_number_conversion, choice_split_sentences] - iface = gr.Interface(fn=hit_tts, inputs=inputs_to_gradio, outputs=op, theme='huggingface', title='Run TTS example') - iface.launch(share=True, enable_queue=True) \ No newline at end of file diff --git a/spaces/ramkamal2000/voice-conversion-ddp/wavlm/WavLM.py b/spaces/ramkamal2000/voice-conversion-ddp/wavlm/WavLM.py deleted file mode 100644 index 09af97bfc48c5ecc3558c03666df9f965d2bef0d..0000000000000000000000000000000000000000 --- a/spaces/ramkamal2000/voice-conversion-ddp/wavlm/WavLM.py +++ /dev/null @@ -1,742 +0,0 @@ -# -------------------------------------------------------- -# WavLM: Large-Scale Self-Supervised Pre-training for Full Stack Speech Processing (https://arxiv.org/abs/2110.13900.pdf) -# Github source: https://github.com/microsoft/unilm/tree/master/wavlm -# Copyright (c) 2021 Microsoft -# Licensed under The MIT License [see LICENSE for details] -# Based on fairseq code bases -# https://github.com/pytorch/fairseq -# -------------------------------------------------------- - -import math -import logging -from typing import List, Optional, Tuple - -import numpy as np - -import torch -import torch.nn as nn -import torch.nn.functional as F -from torch.nn import LayerNorm -from wavlm.modules import ( - Fp32GroupNorm, - Fp32LayerNorm, - GradMultiply, - MultiheadAttention, - SamePad, - init_bert_params, - get_activation_fn, - TransposeLast, - GLU_Linear, -) - -logger = logging.getLogger(__name__) - - -def compute_mask_indices( - shape: Tuple[int, int], - padding_mask: Optional[torch.Tensor], - mask_prob: float, - mask_length: int, - mask_type: str = "static", - mask_other: float = 0.0, - min_masks: int = 0, - no_overlap: bool = False, - min_space: int = 0, -) -> np.ndarray: - """ - Computes random mask spans for a given shape - - Args: - shape: the the shape for which to compute masks. - should be of size 2 where first element is batch size and 2nd is timesteps - padding_mask: optional padding mask of the same size as shape, which will prevent masking padded elements - mask_prob: probability for each token to be chosen as start of the span to be masked. this will be multiplied by - number of timesteps divided by length of mask span to mask approximately this percentage of all elements. - however due to overlaps, the actual number will be smaller (unless no_overlap is True) - mask_type: how to compute mask lengths - static = fixed size - uniform = sample from uniform distribution [mask_other, mask_length*2] - normal = sample from normal distribution with mean mask_length and stdev mask_other. mask is min 1 element - poisson = sample from possion distribution with lambda = mask length - min_masks: minimum number of masked spans - no_overlap: if false, will switch to an alternative recursive algorithm that prevents spans from overlapping - min_space: only used if no_overlap is True, this is how many elements to keep unmasked between spans - """ - - bsz, all_sz = shape - mask = np.full((bsz, all_sz), False) - - all_num_mask = int( - # add a random number for probabilistic rounding - mask_prob * all_sz / float(mask_length) - + np.random.rand() - ) - - all_num_mask = max(min_masks, all_num_mask) - - mask_idcs = [] - for i in range(bsz): - if padding_mask is not None: - sz = all_sz - padding_mask[i].long().sum().item() - num_mask = int( - # add a random number for probabilistic rounding - mask_prob * sz / float(mask_length) - + np.random.rand() - ) - num_mask = max(min_masks, num_mask) - else: - sz = all_sz - num_mask = all_num_mask - - if mask_type == "static": - lengths = np.full(num_mask, mask_length) - elif mask_type == "uniform": - lengths = np.random.randint(mask_other, mask_length * 2 + 1, size=num_mask) - elif mask_type == "normal": - lengths = np.random.normal(mask_length, mask_other, size=num_mask) - lengths = [max(1, int(round(x))) for x in lengths] - elif mask_type == "poisson": - lengths = np.random.poisson(mask_length, size=num_mask) - lengths = [int(round(x)) for x in lengths] - else: - raise Exception("unknown mask selection " + mask_type) - - if sum(lengths) == 0: - lengths[0] = min(mask_length, sz - 1) - - if no_overlap: - mask_idc = [] - - def arrange(s, e, length, keep_length): - span_start = np.random.randint(s, e - length) - mask_idc.extend(span_start + i for i in range(length)) - - new_parts = [] - if span_start - s - min_space >= keep_length: - new_parts.append((s, span_start - min_space + 1)) - if e - span_start - keep_length - min_space > keep_length: - new_parts.append((span_start + length + min_space, e)) - return new_parts - - parts = [(0, sz)] - min_length = min(lengths) - for length in sorted(lengths, reverse=True): - lens = np.fromiter( - (e - s if e - s >= length + min_space else 0 for s, e in parts), - np.int, - ) - l_sum = np.sum(lens) - if l_sum == 0: - break - probs = lens / np.sum(lens) - c = np.random.choice(len(parts), p=probs) - s, e = parts.pop(c) - parts.extend(arrange(s, e, length, min_length)) - mask_idc = np.asarray(mask_idc) - else: - min_len = min(lengths) - if sz - min_len <= num_mask: - min_len = sz - num_mask - 1 - - mask_idc = np.random.choice(sz - min_len, num_mask, replace=False) - - mask_idc = np.asarray( - [ - mask_idc[j] + offset - for j in range(len(mask_idc)) - for offset in range(lengths[j]) - ] - ) - - mask_idcs.append(np.unique(mask_idc[mask_idc < sz])) - - min_len = min([len(m) for m in mask_idcs]) - for i, mask_idc in enumerate(mask_idcs): - if len(mask_idc) > min_len: - mask_idc = np.random.choice(mask_idc, min_len, replace=False) - mask[i, mask_idc] = True - - return mask - - -class WavLMConfig: - def __init__(self, cfg=None): - self.extractor_mode: str = "default" # mode for feature extractor. default has a single group norm with d groups in the first conv block, whereas layer_norm has layer norms in every block (meant to use with normalize=True) - self.encoder_layers: int = 12 # num encoder layers in the transformer - - self.encoder_embed_dim: int = 768 # encoder embedding dimension - self.encoder_ffn_embed_dim: int = 3072 # encoder embedding dimension for FFN - self.encoder_attention_heads: int = 12 # num encoder attention heads - self.activation_fn: str = "gelu" # activation function to use - - self.layer_norm_first: bool = False # apply layernorm first in the transformer - self.conv_feature_layers: str = "[(512,10,5)] + [(512,3,2)] * 4 + [(512,2,2)] * 2" # string describing convolutional feature extraction layers in form of a python list that contains [(dim, kernel_size, stride), ...] - self.conv_bias: bool = False # include bias in conv encoder - self.feature_grad_mult: float = 1.0 # multiply feature extractor var grads by this - - self.normalize: bool = False # normalize input to have 0 mean and unit variance during training - - # dropouts - self.dropout: float = 0.1 # dropout probability for the transformer - self.attention_dropout: float = 0.1 # dropout probability for attention weights - self.activation_dropout: float = 0.0 # dropout probability after activation in FFN - self.encoder_layerdrop: float = 0.0 # probability of dropping a tarnsformer layer - self.dropout_input: float = 0.0 # dropout to apply to the input (after feat extr) - self.dropout_features: float = 0.0 # dropout to apply to the features (after feat extr) - - # masking - self.mask_length: int = 10 # mask length - self.mask_prob: float = 0.65 # probability of replacing a token with mask - self.mask_selection: str = "static" # how to choose mask length - self.mask_other: float = 0 # secondary mask argument (used for more complex distributions), see help in compute_mask_indicesh - self.no_mask_overlap: bool = False # whether to allow masks to overlap - self.mask_min_space: int = 1 # min space between spans (if no overlap is enabled) - - # channel masking - self.mask_channel_length: int = 10 # length of the mask for features (channels) - self.mask_channel_prob: float = 0.0 # probability of replacing a feature with 0 - self.mask_channel_selection: str = "static" # how to choose mask length for channel masking - self.mask_channel_other: float = 0 # secondary mask argument (used for more complex distributions), see help in compute_mask_indices - self.no_mask_channel_overlap: bool = False # whether to allow channel masks to overlap - self.mask_channel_min_space: int = 1 # min space between spans (if no overlap is enabled) - - # positional embeddings - self.conv_pos: int = 128 # number of filters for convolutional positional embeddings - self.conv_pos_groups: int = 16 # number of groups for convolutional positional embedding - - # relative position embedding - self.relative_position_embedding: bool = False # apply relative position embedding - self.num_buckets: int = 320 # number of buckets for relative position embedding - self.max_distance: int = 1280 # maximum distance for relative position embedding - self.gru_rel_pos: bool = False # apply gated relative position embedding - - if cfg is not None: - self.update(cfg) - - def update(self, cfg: dict): - self.__dict__.update(cfg) - - -class WavLM(nn.Module): - def __init__( - self, - cfg: WavLMConfig, - ) -> None: - super().__init__() - logger.info(f"WavLM Config: {cfg.__dict__}") - - self.cfg = cfg - feature_enc_layers = eval(cfg.conv_feature_layers) - self.embed = feature_enc_layers[-1][0] - - self.feature_extractor = ConvFeatureExtractionModel( - conv_layers=feature_enc_layers, - dropout=0.0, - mode=cfg.extractor_mode, - conv_bias=cfg.conv_bias, - ) - - self.post_extract_proj = ( - nn.Linear(self.embed, cfg.encoder_embed_dim) - if self.embed != cfg.encoder_embed_dim - else None - ) - - self.mask_prob = cfg.mask_prob - self.mask_selection = cfg.mask_selection - self.mask_other = cfg.mask_other - self.mask_length = cfg.mask_length - self.no_mask_overlap = cfg.no_mask_overlap - self.mask_min_space = cfg.mask_min_space - - self.mask_channel_prob = cfg.mask_channel_prob - self.mask_channel_selection = cfg.mask_channel_selection - self.mask_channel_other = cfg.mask_channel_other - self.mask_channel_length = cfg.mask_channel_length - self.no_mask_channel_overlap = cfg.no_mask_channel_overlap - self.mask_channel_min_space = cfg.mask_channel_min_space - - self.dropout_input = nn.Dropout(cfg.dropout_input) - self.dropout_features = nn.Dropout(cfg.dropout_features) - - self.feature_grad_mult = cfg.feature_grad_mult - - self.mask_emb = nn.Parameter( - torch.FloatTensor(cfg.encoder_embed_dim).uniform_() - ) - - self.encoder = TransformerEncoder(cfg) - self.layer_norm = LayerNorm(self.embed) - - def apply_mask(self, x, padding_mask): - B, T, C = x.shape - if self.mask_prob > 0: - mask_indices = compute_mask_indices( - (B, T), - padding_mask, - self.mask_prob, - self.mask_length, - self.mask_selection, - self.mask_other, - min_masks=2, - no_overlap=self.no_mask_overlap, - min_space=self.mask_min_space, - ) - mask_indices = torch.from_numpy(mask_indices).to(x.device) - x[mask_indices] = self.mask_emb - else: - mask_indices = None - - if self.mask_channel_prob > 0: - mask_channel_indices = compute_mask_indices( - (B, C), - None, - self.mask_channel_prob, - self.mask_channel_length, - self.mask_channel_selection, - self.mask_channel_other, - no_overlap=self.no_mask_channel_overlap, - min_space=self.mask_channel_min_space, - ) - mask_channel_indices = ( - torch.from_numpy(mask_channel_indices) - .to(x.device) - .unsqueeze(1) - .expand(-1, T, -1) - ) - x[mask_channel_indices] = 0 - - return x, mask_indices - - def forward_padding_mask( - self, features: torch.Tensor, padding_mask: torch.Tensor, - ) -> torch.Tensor: - extra = padding_mask.size(1) % features.size(1) - if extra > 0: - padding_mask = padding_mask[:, :-extra] - padding_mask = padding_mask.view( - padding_mask.size(0), features.size(1), -1 - ) - #padding_mask = padding_mask.all(-1) - padding_mask = padding_mask.any(-1) - return padding_mask - - def extract_features( - self, - source: torch.Tensor, - padding_mask: Optional[torch.Tensor] = None, - mask: bool = False, - ret_conv: bool = False, - output_layer: Optional[int] = None, - ret_layer_results: bool = False, - ): - if self.feature_grad_mult > 0: - features = self.feature_extractor(source) - if self.feature_grad_mult != 1.0: - features = GradMultiply.apply(features, self.feature_grad_mult) - else: - with torch.no_grad(): - features = self.feature_extractor(source) - - features = features.transpose(1, 2) - features = self.layer_norm(features) - - if padding_mask is not None: - padding_mask = self.forward_padding_mask(features, padding_mask) - - if self.post_extract_proj is not None: - features = self.post_extract_proj(features) - - features = self.dropout_input(features) - - if mask: - x, mask_indices = self.apply_mask( - features, padding_mask - ) - else: - x = features - - # feature: (B, T, D), float - # target: (B, T), long - # x: (B, T, D), float - # padding_mask: (B, T), bool - # mask_indices: (B, T), bool - x, layer_results = self.encoder( - x, - padding_mask=padding_mask, - layer=None if output_layer is None else output_layer - 1 - ) - - res = {"x": x, "padding_mask": padding_mask, "features": features, "layer_results": layer_results} - - feature = res["features"] if ret_conv else res["x"] - if ret_layer_results: - feature = (feature, res["layer_results"]) - return feature, res["padding_mask"] - - -class ConvFeatureExtractionModel(nn.Module): - def __init__( - self, - conv_layers: List[Tuple[int, int, int]], - dropout: float = 0.0, - mode: str = "default", - conv_bias: bool = False, - conv_type: str = "default" - ): - super().__init__() - - assert mode in {"default", "layer_norm"} - - def block( - n_in, - n_out, - k, - stride, - is_layer_norm=False, - is_group_norm=False, - conv_bias=False, - ): - def make_conv(): - conv = nn.Conv1d(n_in, n_out, k, stride=stride, bias=conv_bias) - nn.init.kaiming_normal_(conv.weight) - return conv - - assert ( - is_layer_norm and is_group_norm - ) == False, "layer norm and group norm are exclusive" - - if is_layer_norm: - return nn.Sequential( - make_conv(), - nn.Dropout(p=dropout), - nn.Sequential( - TransposeLast(), - Fp32LayerNorm(dim, elementwise_affine=True), - TransposeLast(), - ), - nn.GELU(), - ) - elif is_group_norm: - return nn.Sequential( - make_conv(), - nn.Dropout(p=dropout), - Fp32GroupNorm(dim, dim, affine=True), - nn.GELU(), - ) - else: - return nn.Sequential(make_conv(), nn.Dropout(p=dropout), nn.GELU()) - - self.conv_type = conv_type - if self.conv_type == "default": - in_d = 1 - self.conv_layers = nn.ModuleList() - for i, cl in enumerate(conv_layers): - assert len(cl) == 3, "invalid conv definition: " + str(cl) - (dim, k, stride) = cl - - self.conv_layers.append( - block( - in_d, - dim, - k, - stride, - is_layer_norm=mode == "layer_norm", - is_group_norm=mode == "default" and i == 0, - conv_bias=conv_bias, - ) - ) - in_d = dim - elif self.conv_type == "conv2d": - in_d = 1 - self.conv_layers = nn.ModuleList() - for i, cl in enumerate(conv_layers): - assert len(cl) == 3 - (dim, k, stride) = cl - - self.conv_layers.append( - torch.nn.Conv2d(in_d, dim, k, stride) - ) - self.conv_layers.append(torch.nn.ReLU()) - in_d = dim - elif self.conv_type == "custom": - in_d = 1 - idim = 80 - self.conv_layers = nn.ModuleList() - for i, cl in enumerate(conv_layers): - assert len(cl) == 3 - (dim, k, stride) = cl - self.conv_layers.append( - torch.nn.Conv2d(in_d, dim, k, stride, padding=1) - ) - self.conv_layers.append( - torch.nn.LayerNorm([dim, idim]) - ) - self.conv_layers.append(torch.nn.ReLU()) - in_d = dim - if (i + 1) % 2 == 0: - self.conv_layers.append( - torch.nn.MaxPool2d(2, stride=2, ceil_mode=True) - ) - idim = int(math.ceil(idim / 2)) - else: - pass - - def forward(self, x, mask=None): - - # BxT -> BxCxT - x = x.unsqueeze(1) - if self.conv_type == "custom": - for conv in self.conv_layers: - if isinstance(conv, nn.LayerNorm): - x = x.transpose(1, 2) - x = conv(x).transpose(1, 2) - else: - x = conv(x) - x = x.transpose(2, 3).contiguous() - x = x.view(x.size(0), -1, x.size(-1)) - else: - for conv in self.conv_layers: - x = conv(x) - if self.conv_type == "conv2d": - b, c, t, f = x.size() - x = x.transpose(2, 3).contiguous().view(b, c * f, t) - return x - - -class TransformerEncoder(nn.Module): - def __init__(self, args): - super().__init__() - - self.dropout = args.dropout - self.embedding_dim = args.encoder_embed_dim - - self.pos_conv = nn.Conv1d( - self.embedding_dim, - self.embedding_dim, - kernel_size=args.conv_pos, - padding=args.conv_pos // 2, - groups=args.conv_pos_groups, - ) - dropout = 0 - std = math.sqrt((4 * (1.0 - dropout)) / (args.conv_pos * self.embedding_dim)) - nn.init.normal_(self.pos_conv.weight, mean=0, std=std) - nn.init.constant_(self.pos_conv.bias, 0) - - self.pos_conv = nn.utils.weight_norm(self.pos_conv, name="weight", dim=2) - self.pos_conv = nn.Sequential(self.pos_conv, SamePad(args.conv_pos), nn.GELU()) - - if hasattr(args, "relative_position_embedding"): - self.relative_position_embedding = args.relative_position_embedding - self.num_buckets = args.num_buckets - self.max_distance = args.max_distance - else: - self.relative_position_embedding = False - self.num_buckets = 0 - self.max_distance = 0 - - self.layers = nn.ModuleList( - [ - TransformerSentenceEncoderLayer( - embedding_dim=self.embedding_dim, - ffn_embedding_dim=args.encoder_ffn_embed_dim, - num_attention_heads=args.encoder_attention_heads, - dropout=self.dropout, - attention_dropout=args.attention_dropout, - activation_dropout=args.activation_dropout, - activation_fn=args.activation_fn, - layer_norm_first=args.layer_norm_first, - has_relative_attention_bias=(self.relative_position_embedding and i == 0), - num_buckets=self.num_buckets, - max_distance=self.max_distance, - gru_rel_pos=args.gru_rel_pos, - ) - for i in range(args.encoder_layers) - ] - ) - - self.layer_norm_first = args.layer_norm_first - self.layer_norm = LayerNorm(self.embedding_dim) - self.layerdrop = args.encoder_layerdrop - - self.apply(init_bert_params) - - def forward(self, x, padding_mask=None, streaming_mask=None, layer=None): - x, layer_results = self.extract_features(x, padding_mask, streaming_mask, layer) - - if self.layer_norm_first and layer is None: - x = self.layer_norm(x) - - return x, layer_results - - def extract_features(self, x, padding_mask=None, streaming_mask=None, tgt_layer=None): - - if padding_mask is not None: - x[padding_mask] = 0 - - x_conv = self.pos_conv(x.transpose(1, 2)) - x_conv = x_conv.transpose(1, 2) - x += x_conv - - if not self.layer_norm_first: - x = self.layer_norm(x) - - x = F.dropout(x, p=self.dropout, training=self.training) - - # B x T x C -> T x B x C - x = x.transpose(0, 1) - - layer_results = [] - z = None - if tgt_layer is not None: - layer_results.append((x, z)) - r = None - pos_bias = None - for i, layer in enumerate(self.layers): - dropout_probability = np.random.random() - if not self.training or (dropout_probability > self.layerdrop): - x, z, pos_bias = layer(x, self_attn_padding_mask=padding_mask, need_weights=False, - self_attn_mask=streaming_mask, pos_bias=pos_bias) - if tgt_layer is not None: - layer_results.append((x, z)) - if i == tgt_layer: - r = x - break - - if r is not None: - x = r - - # T x B x C -> B x T x C - x = x.transpose(0, 1) - - return x, layer_results - - -class TransformerSentenceEncoderLayer(nn.Module): - """ - Implements a Transformer Encoder Layer used in BERT/XLM style pre-trained - models. - """ - - def __init__( - self, - embedding_dim: float = 768, - ffn_embedding_dim: float = 3072, - num_attention_heads: float = 8, - dropout: float = 0.1, - attention_dropout: float = 0.1, - activation_dropout: float = 0.1, - activation_fn: str = "relu", - layer_norm_first: bool = False, - has_relative_attention_bias: bool = False, - num_buckets: int = 0, - max_distance: int = 0, - rescale_init: bool = False, - gru_rel_pos: bool = False, - ) -> None: - - super().__init__() - # Initialize parameters - self.embedding_dim = embedding_dim - self.dropout = dropout - self.activation_dropout = activation_dropout - - # Initialize blocks - self.activation_name = activation_fn - self.activation_fn = get_activation_fn(activation_fn) - self.self_attn = MultiheadAttention( - self.embedding_dim, - num_attention_heads, - dropout=attention_dropout, - self_attention=True, - has_relative_attention_bias=has_relative_attention_bias, - num_buckets=num_buckets, - max_distance=max_distance, - rescale_init=rescale_init, - gru_rel_pos=gru_rel_pos, - ) - - self.dropout1 = nn.Dropout(dropout) - self.dropout2 = nn.Dropout(self.activation_dropout) - self.dropout3 = nn.Dropout(dropout) - - self.layer_norm_first = layer_norm_first - - # layer norm associated with the self attention layer - self.self_attn_layer_norm = LayerNorm(self.embedding_dim) - - if self.activation_name == "glu": - self.fc1 = GLU_Linear(self.embedding_dim, ffn_embedding_dim, "swish") - else: - self.fc1 = nn.Linear(self.embedding_dim, ffn_embedding_dim) - self.fc2 = nn.Linear(ffn_embedding_dim, self.embedding_dim) - - # layer norm associated with the position wise feed-forward NN - self.final_layer_norm = LayerNorm(self.embedding_dim) - - def forward( - self, - x: torch.Tensor, - self_attn_mask: torch.Tensor = None, - self_attn_padding_mask: torch.Tensor = None, - need_weights: bool = False, - pos_bias=None - ): - """ - LayerNorm is applied either before or after the self-attention/ffn - modules similar to the original Transformer imlementation. - """ - residual = x - - if self.layer_norm_first: - x = self.self_attn_layer_norm(x) - x, attn, pos_bias = self.self_attn( - query=x, - key=x, - value=x, - key_padding_mask=self_attn_padding_mask, - need_weights=False, - attn_mask=self_attn_mask, - position_bias=pos_bias - ) - x = self.dropout1(x) - x = residual + x - - residual = x - x = self.final_layer_norm(x) - if self.activation_name == "glu": - x = self.fc1(x) - else: - x = self.activation_fn(self.fc1(x)) - x = self.dropout2(x) - x = self.fc2(x) - x = self.dropout3(x) - x = residual + x - else: - x, attn, pos_bias = self.self_attn( - query=x, - key=x, - value=x, - key_padding_mask=self_attn_padding_mask, - need_weights=need_weights, - attn_mask=self_attn_mask, - position_bias=pos_bias - ) - - x = self.dropout1(x) - x = residual + x - - x = self.self_attn_layer_norm(x) - - residual = x - if self.activation_name == "glu": - x = self.fc1(x) - else: - x = self.activation_fn(self.fc1(x)) - x = self.dropout2(x) - x = self.fc2(x) - x = self.dropout3(x) - x = residual + x - x = self.final_layer_norm(x) - - return x, attn, pos_bias diff --git a/spaces/raseel-zymr/LangChain-Youtube-Script-Generator/app.py b/spaces/raseel-zymr/LangChain-Youtube-Script-Generator/app.py deleted file mode 100644 index 53cdee9b7678b2235e13d8e433a9d08f06f2e1a6..0000000000000000000000000000000000000000 --- a/spaces/raseel-zymr/LangChain-Youtube-Script-Generator/app.py +++ /dev/null @@ -1,61 +0,0 @@ -import os -from apikey import apikey - -import streamlit as st -from langchain.llms import OpenAI -from langchain.prompts import PromptTemplate -from langchain.chains import LLMChain, SequentialChain -from langchain.memory import ConversationBufferMemory -from langchain.utilities import WikipediaAPIWrapper - -os.environ['OPENAI_API_KEY'] = st.secrets["openai_api_key"] - -st.title('🦜🔗 LangChain Tutorial - YouTube GPT Creator - by Raseel ') -prompt = st.text_input('Prompt: Write me a Youtube Video Script about') - -# Prompt Templates -title_template = PromptTemplate( - input_variables = ['topic'], - template='Write me a Youtube Video title about {topic}' -) - -script_template = PromptTemplate( - input_variables = ['title', 'wikipedia_research'], - template='Write me a Youtube Video script based on the title, TITLE {title} while leveraging its Wikipedia researc: {wikipedia_research}' -) - -# Memory -title_memory = ConversationBufferMemory(input_key='topic', memory_key='chat_history') -script_memory = ConversationBufferMemory(input_key='title', memory_key='chat_history') - -# LLMs -llm = OpenAI(temperature=0.9) -title_chain = LLMChain(llm=llm, prompt=title_template, verbose=True, output_key='title', memory=title_memory) -script_chain = LLMChain(llm=llm, prompt=script_template, verbose=True, output_key='script', memory=script_memory) - -# Tools -wiki = WikipediaAPIWrapper() - -# sequential_chain = SequentialChain(chains=[title_chain, script_chain], -# input_variables=['topic'], -# output_variables=['title', 'script'], -# verbose=True) - -if prompt: - title = title_chain.run(prompt) - wiki_research = wiki.run(prompt) - script = script_chain.run(title=title, wikipedia_research=wiki_research) - - st.subheader('Generated Title') - st.write(title) - st.subheader('Generated SCript') - st.write(script) - - with st.expander('Title History:'): - st.info(title_memory.buffer) - - with st.expander('Script History:'): - st.info(script_memory.buffer) - - with st.expander('Wikipedia Research:'): - st.info(wiki_research) \ No newline at end of file diff --git a/spaces/rasmodev/sepsis_prediction/README.md b/spaces/rasmodev/sepsis_prediction/README.md deleted file mode 100644 index 34ae7b9cc6990179efcee1d71379d0085859bea2..0000000000000000000000000000000000000000 --- a/spaces/rasmodev/sepsis_prediction/README.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: Sepsis Prediction -emoji: 🐨 -colorFrom: pink -colorTo: purple -sdk: docker -pinned: false -license: mit ---- - -Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference diff --git a/spaces/recenWmenso/ChatGPT-with-Voice-Cloning-for-All/datasets/Asunsoft SQL Password Geeker 5.0 ((NEW)).md b/spaces/recenWmenso/ChatGPT-with-Voice-Cloning-for-All/datasets/Asunsoft SQL Password Geeker 5.0 ((NEW)).md deleted file mode 100644 index 97f5914bae2bc78f90652084f1e4eb75f24b4497..0000000000000000000000000000000000000000 --- a/spaces/recenWmenso/ChatGPT-with-Voice-Cloning-for-All/datasets/Asunsoft SQL Password Geeker 5.0 ((NEW)).md +++ /dev/null @@ -1,6 +0,0 @@ -

        Asunsoft SQL Password Geeker 5.0


        Download File ✫✫✫ https://urlgoal.com/2uCJGi



        -
        -دانلود Asunsoft Windows Password Geeker Advanced 4.1 - بازیابی پسورد ویندوز دانلود Asunsoft Windows Password Geeker نرم افزار بازیابی ... 4d29de3e1b
        -
        -
        -

        diff --git a/spaces/recenWmenso/ChatGPT-with-Voice-Cloning-for-All/datasets/Csi Safe 2014 Crack 2015 13.md b/spaces/recenWmenso/ChatGPT-with-Voice-Cloning-for-All/datasets/Csi Safe 2014 Crack 2015 13.md deleted file mode 100644 index a97d894578ad49b0decf74f815d207d2fac06e29..0000000000000000000000000000000000000000 --- a/spaces/recenWmenso/ChatGPT-with-Voice-Cloning-for-All/datasets/Csi Safe 2014 Crack 2015 13.md +++ /dev/null @@ -1,6 +0,0 @@ -

        csi safe 2014 crack 2015 13


        DOWNLOADhttps://urlgoal.com/2uCKoe



        - -تنزيل مستند PDF FEM Design Verification Checklist for CSI.ETABS ... MV | 13 Sept 2017. ... ETABS 2015: ETABS is an engineering software product that caters ... stiffness and reinforcement to contain deflections, crack widths and . ... team to use Revit Structure 2014 and the architects and MEP engineers use ... would feel ... 4d29de3e1b
        -
        -
        -

        diff --git a/spaces/recenWmenso/ChatGPT-with-Voice-Cloning-for-All/datasets/Download Harvard Referencing For Microsoft Word 2007 39 TOP.md b/spaces/recenWmenso/ChatGPT-with-Voice-Cloning-for-All/datasets/Download Harvard Referencing For Microsoft Word 2007 39 TOP.md deleted file mode 100644 index 3334938ce41160e9511b04cedaf539b2a52fbc40..0000000000000000000000000000000000000000 --- a/spaces/recenWmenso/ChatGPT-with-Voice-Cloning-for-All/datasets/Download Harvard Referencing For Microsoft Word 2007 39 TOP.md +++ /dev/null @@ -1,8 +0,0 @@ -
        -

        The FileKinds option described above allows Word to adapt itself to the general content of a document, including tables, lists, paragraphs, and the like. The FileKinds and FileConversions features of Word allow document transformations beyond simple text conversion. The FileConversions feature in particular is used to create, for example, an equation editor for Word 2007 and earlier, or a multi-language layout for a Microsoft Office 2007 XML Content Document.

        -

        The FKListFormat.htm option controls the order in which Word presents the list of file kinds. Initially, Word presents a list in alphabetical order. You can change the order of the file kinds by selecting an alphabetically listed kind and dragging it to a desired location in the list.

        -

        Download Harvard Referencing For Microsoft Word 2007 39


        DOWNLOADhttps://urlgoal.com/2uCMS3



        -

        The fkcrContainers.htm option controls the containers in which Word places the bookmarks that it creates to separate parts of the document from one another, particularly in context menu operations. There are five container types: mybookmarks, mytags, mytables, mysections, and mystyles. The options "Create new file" and "Create new folder" control what container is used for the document.

        -

        With the rapid adoption of the DOCX format, it is not surprising that the support of Word editing is no longer a key feature of most Office 365 plans. See Office 365 plans, which has a reference to DOCX, with a comparison of Word editing features (2018). In a similar context (Office 365 plan differences), see Office 365 plans Office 365 plans (2020), which includes the following reference to Microsoft Word formatting options:

        Word has a rich set of formatting options for any needs. (DOCX does not.)
        Download Harvard Referencing For Microsoft Word 2007 39

        From the perspective of creators, few new documents are likely to be produced in the binary DOC format in the near future, as most creators and potential users will be familiar with the XML-based DOCX format, which can be read by virtually any modern word-processing software, including MS Word. For an example of the general recommendation that users substitute OOXML-based formats, see a general recommendation from the UK Data Service, cited earlier. Download Harvard Referencing For Microsoft Word 2007 39

        Alternatively, if the primary use of the format for creators is file sharing, like previous formats, there would be no need for new, updated uses and use of the format (and Word) in the future. The growth of the Internet Archive creates a large corpus of pre-2010 word processing files that can be indexed using archive.org . Although not a common document format today, HTML-based files are much more common than binary files. Download Harvard Referencing For Microsoft Word 2007 39

        From a general perspective, the Microsoft Excel XLSX format is the de-facto standard among business, government, and academic archives for file formats. This will still likely be the case, until the user experience of converting to MS Word is improved for automated conversion of the DOCX files it produces. This may be accomplished by a competitive software program being produced to replace Microsoft Word. If that is the case, the DOCX format may eventually become the standard format for documents at lower levels, as the experience and capability of conversion grows.

        899543212b
        -
        -
        \ No newline at end of file diff --git a/spaces/recenWmenso/ChatGPT-with-Voice-Cloning-for-All/datasets/Download LINK Tafsir Al Muyassar Pdf File.md b/spaces/recenWmenso/ChatGPT-with-Voice-Cloning-for-All/datasets/Download LINK Tafsir Al Muyassar Pdf File.md deleted file mode 100644 index f21e20889ca26453b286a0cfe3b191439297aecd..0000000000000000000000000000000000000000 --- a/spaces/recenWmenso/ChatGPT-with-Voice-Cloning-for-All/datasets/Download LINK Tafsir Al Muyassar Pdf File.md +++ /dev/null @@ -1,6 +0,0 @@ -

        download tafsir al muyassar pdf file


        DOWNLOAD 🗸🗸🗸 https://urlgoal.com/2uCKsd



        -
        -Books weapon engineering Télécharger PDF Download tafsir al qurtubi volume 2 english ... Tafsir Al Qurtubi - Vol i - Ebook download as PDF File. ... Al- Fiqh Asy- Syafi' i Télécharger Al- Muyassar Tafsir al- Munir PDF; KITAB ... 4d29de3e1b
        -
        -
        -

        diff --git a/spaces/recenWmenso/ChatGPT-with-Voice-Cloning-for-All/datasets/Facebook Auto Liker (FB) Software Free Download For PC.md b/spaces/recenWmenso/ChatGPT-with-Voice-Cloning-for-All/datasets/Facebook Auto Liker (FB) Software Free Download For PC.md deleted file mode 100644 index c319d2f12fba786ef3fe6d9960d6f45c122549ae..0000000000000000000000000000000000000000 --- a/spaces/recenWmenso/ChatGPT-with-Voice-Cloning-for-All/datasets/Facebook Auto Liker (FB) Software Free Download For PC.md +++ /dev/null @@ -1,104 +0,0 @@ -
        -

        Facebook Auto Liker (FB) Software Free Download for PC

        -

        If you want to boost your Facebook engagement and get more likes on your posts, you might be interested in using a Facebook auto liker software. This is a tool that can help you automate the process of liking other people's posts on Facebook, and in return, get more likes on your own posts.

        -

        Facebook Auto Liker (FB) Software Free Download for PC


        Download Ziphttps://urlgoal.com/2uCMmV



        -

        But how do you find the best Facebook auto liker software for PC? And how do you use it safely and effectively? In this article, we will answer these questions and provide you with some of the best options for downloading Facebook auto liker software for free.

        -

        What is Facebook Auto Liker Software?

        -

        Facebook auto liker software is a program that can help you increase your Facebook likes by automatically liking other people's posts. The idea is that by liking other people's posts, you will attract their attention and make them more likely to like your posts back.

        -

        There are different types of Facebook auto liker software, such as:

        -
          -
        • Auto liker apps: These are mobile applications that you can install on your smartphone and connect to your Facebook account. They usually have a simple interface and allow you to choose the posts you want to like, the number of likes you want to send, and the time interval between each like.
        • -
        • Auto liker websites: These are online platforms that you can access from your browser and log in with your Facebook credentials. They usually have more features and options than auto liker apps, such as selecting the target audience, the post type, the reaction type, and the speed of liking.
        • -
        • Auto liker software: These are desktop programs that you can download and install on your PC and link to your Facebook account. They usually have the most advanced features and settings than auto liker apps and websites, such as scheduling the liking activity, filtering the posts by keywords, hashtags, or locations, and using multiple accounts.
        • -
        -

        Why Use Facebook Auto Liker Software?

        -

        There are many benefits of using Facebook auto liker software, such as:

        -
          -
        • Increasing your Facebook engagement: By getting more likes on your posts, you can improve your Facebook reach and visibility, which can lead to more comments, shares, followers, and traffic to your website or blog.
        • -
        • Saving your time and effort: By automating the liking process, you can save yourself from manually liking hundreds or thousands of posts every day, which can be tedious and time-consuming.
        • -
        • Growing your network and influence: By liking other people's posts, you can build relationships with them and make them more aware of your brand, product, service, or message. You can also expose yourself to new audiences and potential customers who might be interested in what you have to offer.
        • -
        -

        How to Choose the Best Facebook Auto Liker Software for PC?

        -

        There are many factors to consider when choosing the best Facebook auto liker software for PC, such as:

        -

        -
          -
        • The compatibility: You need to make sure that the software is compatible with your PC's operating system, whether it is Windows 10, Windows 8, Windows 7, or Windows XP.
        • -
        • The security: You need to make sure that the software is safe and secure to use, and that it does not compromise your Facebook account or personal information. You should avoid any software that asks for your Facebook password or access token, or that requires you to join any groups or pages.
        • -
        • The functionality: You need to make sure that the software has all the features and options that you need to customize your liking activity, such as selecting the target audience, the post type, the reaction type, the speed of liking, and the scheduling of liking.
        • -
        • The reliability: You need to make sure that the software works well and consistently, and that it does not crash or freeze. You should also check the reviews and ratings of other users who have used the software before.
        • -
        • The cost: You need to make sure that the software is affordable and within your budget. You should also compare the prices and features of different software options before making a decision.
        • -
        -

        How to Download Facebook Auto Liker Software for Free?

        -

        If you are looking for some of the best options for downloading Facebook auto liker software for free, here are some suggestions:

        -
          -
        • Auto Liker for Facebook: This is a free desktop program that allows you to gain likes on Facebook posts like status updates, photos, videos, or custom codes. This is a spam-free tool that will never post on Facebook on your behalf. You can download it from here.
        • -
        • F8-Autoliker: This is a free desktop program that allows you to automatically like hundreds of photos on Facebook with just one click. This is a very good software if you don't want to do some manual liking on Facebook photos. You can download it from here.
        • -
        • Facebook Auto Like Platform: This is a free desktop program that enables you to increase your Facebook page likes in very short time. You just need to add your Facebook page address and start getting likes. You can download it from here.
        • -
        - -

        Conclusion

        - -

        Facebook auto liker software is a tool that can help you boost your Facebook engagement and get more likes on your posts. However, you need to be careful when choosing and using such software, as some of them might be unsafe or ineffective. You should always follow the best practices of using Facebook auto liker software, such as:

        - -
          - -
        • Using it sparingly and moderately: You should not overuse or abuse the software, as this might make your account look spammy or suspicious. You should also respect the limits and rules of Facebook regarding liking activity.
        • - -
        • Using it wisely and strategically: You should not use the software randomly or indiscriminately. You should use it only on relevant and quality posts that match your niche or interest. You should also use it only on people who might be interested in your content or offer.
        • - -
        • Using it ethically and responsibly: You should not use the software for malicious or fraudulent purposes. You should not use it to harm or harass other users or pages. You should also not use it to violate any laws or regulations.
        • - -
        - -

        If you follow these tips and choose the best Facebook auto liker software for PC from our list above, you can enjoy the benefits of getting more likes on your posts without risking your account or reputation.

        -

        How to Use Facebook Auto Liker Software for PC?

        -

        Using Facebook auto liker software for PC is not very difficult, but you need to follow some steps and precautions to make sure you use it correctly and safely. Here are some general steps to use Facebook auto liker software for PC:

        -
          -
        1. Download and install the software from a trusted source. You can choose one of the options we mentioned above, or you can search for other alternatives online.
        2. -
        3. Open the software and connect it to your Facebook account. You might need to enter your email or username, or you might need to scan a QR code or copy a URL.
        4. -
        5. Select the posts you want to like. You can choose from your own posts, your friends' posts, your groups' posts, or your fan pages' posts. You can also filter the posts by keywords, hashtags, or locations.
        6. -
        7. Select the number of likes you want to send. You can choose from a predefined number, such as 50, 100, or 200, or you can enter a custom number.
        8. -
        9. Select the time interval between each like. You can choose from a predefined interval, such as 1 second, 5 seconds, or 10 seconds, or you can enter a custom interval.
        10. -
        11. Select the reaction type you want to send. You can choose from the standard like, or you can choose from other reactions, such as love, haha, wow, sad, or angry.
        12. -
        13. Start the liking process and wait for the results. You can monitor the progress of the software and see how many likes it has sent and received.
        14. -
        -

        Some precautions you need to take when using Facebook auto liker software for PC are:

        -
          -
        • Do not use the software too frequently or excessively. You should limit your liking activity to a reasonable amount per day, such as 500 or 1000 likes. Otherwise, you might trigger Facebook's spam detection and get your account banned or suspended.
        • -
        • Do not use the software on sensitive or inappropriate posts. You should avoid liking posts that contain illegal, offensive, abusive, or harmful content. Otherwise, you might damage your reputation or get reported by other users.
        • -
        • Do not use the software on unknown or untrusted posts. You should only like posts that you know and trust, such as from your friends, groups, or fan pages. Otherwise, you might expose yourself to scams, viruses, or malware.
        • -
        - -

        What are the Alternatives to Facebook Auto Liker Software for PC?

        -

        If you are not satisfied with Facebook auto liker software for PC, or if you want to try other methods of getting more likes on your posts, you have some alternatives to consider. Some of these alternatives are:

        -
          -
        • Facebook auto liker apps: These are mobile applications that work similarly to Facebook auto liker software for PC, but they are designed for smartphones and tablets. They are usually easier to use and more convenient than desktop programs.
        • -
        • Facebook auto liker websites: These are online platforms that work similarly to Facebook auto liker software for PC, but they are accessed from your browser and do not require any download or installation. They are usually more flexible and versatile than desktop programs.
        • -
        • Facebook auto liker bots: These are automated scripts or programs that run on servers and perform liking actions on your behalf. They are usually more powerful and efficient than desktop programs, but they also require more technical skills and resources to set up and maintain.
        • -
        • Facebook ads: These are paid advertisements that you can create and run on Facebook to promote your posts and reach more people who might be interested in your content or offer. They are usually more effective and reliable than desktop programs, but they also require more money and strategy to manage and optimize.
        • -
        - -

        Conclusion

        - -

        Facebook auto liker software for PC is a tool that can help you boost your Facebook engagement and get more likes on your posts. However, you need to be careful when choosing and using such software, as some of them might be unsafe or ineffective. You should always follow the best practices of using Facebook auto liker software for PC, such as:

        - -
          - -
        • Using it sparingly and moderately: You should not overuse or abuse the software, as this might make your account look spammy or suspicious. You should also respect the limits and rules of Facebook regarding liking activity.
        • - -
        • Using it wisely and strategically: You should not use the software randomly or indiscriminately. You should use it only on relevant and quality posts that match your niche or interest. You should also use it only on people who might be interested in your content or offer.
        • - -
        • Using it ethically and responsibly: You should not use the software for malicious or fraudulent purposes. You should not use it to harm or harass other users or pages. You should also not use it to violate any laws or regulations.
        • - -
        - -

        If you follow these tips and choose the best Facebook auto liker software for PC from our list above, you can enjoy the benefits of getting more likes on your posts without risking your account or reputation.

        -

        Conclusion

        - -

        In this article, we have discussed what Facebook auto liker software for PC is, why you should use it, how to choose it, how to use it, and what are the alternatives to it. We have also provided you with some of the best options for downloading Facebook auto liker software for free.

        - -

        Facebook auto liker software for PC can be a useful tool to boost your Facebook engagement and get more likes on your posts. However, you need to be careful when choosing and using such software, as some of them might be unsafe or ineffective. You should always follow the best practices of using Facebook auto liker software for PC, such as using it sparingly and moderately, using it wisely and strategically, and using it ethically and responsibly.

        - -

        If you follow these tips and choose the best Facebook auto liker software for PC from our list above, you can enjoy the benefits of getting more likes on your posts without risking your account or reputation.

        3cee63e6c2
        -
        -
        \ No newline at end of file diff --git a/spaces/reha/Stick_Tech/hubert/app.py b/spaces/reha/Stick_Tech/hubert/app.py deleted file mode 100644 index 4cdd8d2485463d458e248c5f95a1431062706a58..0000000000000000000000000000000000000000 --- a/spaces/reha/Stick_Tech/hubert/app.py +++ /dev/null @@ -1,70 +0,0 @@ -import io - -import gradio as gr -import librosa -import numpy as np -import soundfile -import torch -from inference.infer_tool import Svc -import logging - -logging.getLogger('numba').setLevel(logging.WARNING) - -model_name = "logs/32k/G_98000.pth" -config_name = "configs/config.json" - -svc_model = Svc(model_name, config_name) -sid_map = { - "Ztech": "Ztech" -} - - -def vc_fn(sid, input_audio, vc_transform): - if input_audio is None: - return "You need to upload an audio", None - sampling_rate, audio = input_audio - # print(audio.shape,sampling_rate) - duration = audio.shape[0] / sampling_rate - if duration > 45: - return "请上传小于45s的音频,需要转换长音频请本地进行转换", None - audio = (audio / np.iinfo(audio.dtype).max).astype(np.float32) - if len(audio.shape) > 1: - audio = librosa.to_mono(audio.transpose(1, 0)) - if sampling_rate != 16000: - audio = librosa.resample(audio, orig_sr=sampling_rate, target_sr=16000) - print(audio.shape) - out_wav_path = io.BytesIO() - soundfile.write(out_wav_path, audio, 16000, format="wav") - out_wav_path.seek(0) - - sid = sid_map[sid] - out_audio, out_sr = svc_model.infer(sid, vc_transform, out_wav_path) - _audio = out_audio.cpu().numpy() - return "Success", (32000, _audio) - - -app = gr.Blocks() -with app: - with gr.Tabs(): - with gr.TabItem("Basic"): - gr.Markdown(value=""" - 这是sovits 3.0 32khz版本ai草莓猫taffy的在线demo - - 在使用此模型前请阅读[AI粘连科技模型使用协议](https://huggingface.co/spaces/reha/Stick_Tech/blob/main/terms.md) - - 粘连科技Official@bilibili:[点击关注](https://space.bilibili.com/248582596) - - 如果要在本地使用该demo,请使用git lfs clone 该仓库,安装requirements.txt后运行app.py即可 - - 项目改写基于 https://huggingface.co/spaces/innnky/nyaru-svc-3.0 - - 本地合成可以删除26、27两行代码以解除合成45s长度限制""") - sid = gr.Dropdown(label="音色", choices=["taffy"], value="taffy") - vc_input3 = gr.Audio(label="上传音频(长度小于45秒)") - vc_transform = gr.Number(label="变调(整数,可以正负,半音数量,升高八度就是12)", value=0) - vc_submit = gr.Button("转换", variant="primary") - vc_output1 = gr.Textbox(label="Output Message") - vc_output2 = gr.Audio(label="Output Audio") - vc_submit.click(vc_fn, [sid, vc_input3, vc_transform], [vc_output1, vc_output2]) - - app.launch() diff --git a/spaces/rexoscare/Resume_screener/app.py b/spaces/rexoscare/Resume_screener/app.py deleted file mode 100644 index 43608b8fc995847b1d4b1f446b5ec4c053c63096..0000000000000000000000000000000000000000 --- a/spaces/rexoscare/Resume_screener/app.py +++ /dev/null @@ -1,75 +0,0 @@ -from sentence_transformers import SentenceTransformer -from sklearn.metrics.pairwise import cosine_similarity -import pandas as pd -import gradio as gr -import pdfplumber -import texthero as hero -from texthero import preprocessing as ppe -import re - - -model = SentenceTransformer('sentence-transformers/paraphrase-xlm-r-multilingual-v1') - - -def remove_special_characters(text): - pattern = r'[^a-zA-Z]' - text = re.sub(pattern, ' ', text) - return text - - -#word file (Job Description) -def opentxt(filepath): - file_1 = open(filepath, errors="ignore") - file_2 = file_1.read() - file_2 = file_2.replace('\n', ' ') - file_2 = re.sub('www.\S+|www.\S+', '', file_2) - df_1 = pd.DataFrame([file_2], columns = ['text']) - df_1['text'] = df_1['text'].apply(remove_special_characters) - custom_pipeline = [ppe.fillna, ppe.remove_urls, ppe.remove_whitespace] - df_1['cleaned_text'] = hero.clean(df_1['text'], custom_pipeline) - file_2 = df_1['cleaned_text'].astype(str) - return file_2 - - -#pdf file (Resume) -def pdftotext(filepath): - with pdfplumber.open(filepath) as pdf: - first_page = pdf.pages[0] - list_1 = first_page.extract_text(x_tolerance=3, y_tolerance=3) - list_1 = list_1.replace('\n', ' ') - list_1 = re.sub('www.\S+|www.\S+', '', list_1) - df = pd.DataFrame([list_1], columns = ['text']) - df['text'] = df['text'].apply(remove_special_characters) - custom_pipeline = [ppe.fillna, ppe.remove_urls, ppe.remove_whitespace] - df['cleaned_text'] = hero.clean(df['text'], custom_pipeline) - list_1 = df['cleaned_text'].astype(str) - return list_1 - - -def sent_similarity(filepath_1, filepath_2): - txt_1 = pdftotext(filepath_1.name) - txt_2 = opentxt(filepath_2.name) - sentences = [''.join(txt_1), ''.join(txt_2)] - sentence_embeddings = model.encode(sentences) - similarity = cosine_similarity(sentence_embeddings[0].reshape(1, -1),sentence_embeddings[1].reshape(1, -1))[0][0] - return round(similarity*100, 2) - - -input_1 = gr.inputs.File(file_count="single", type="file", label= 'Upload the Resume (.pdf)', optional=False) -input_2 = gr.inputs.File(file_count="single", type="file", label= 'Upload the Job Description (.txt)', optional=False) - -title = "Resume Screener" -description = "Upload your resume(.pdf) and the job description(.txt) and let the sentence similarity model display the similarity percentage !!!" - -iface = gr.Interface( - sent_similarity, - [input_1, input_2], "label", title = title, description = description) - -if __name__ == "__main__": - iface.launch() - - - - - - diff --git a/spaces/rockeycoss/Prompt-Segment-Anything-Demo/projects/instance_segment_anything/models/segment_anything/modeling/common.py b/spaces/rockeycoss/Prompt-Segment-Anything-Demo/projects/instance_segment_anything/models/segment_anything/modeling/common.py deleted file mode 100644 index 2bf15236a3eb24d8526073bc4fa2b274cccb3f96..0000000000000000000000000000000000000000 --- a/spaces/rockeycoss/Prompt-Segment-Anything-Demo/projects/instance_segment_anything/models/segment_anything/modeling/common.py +++ /dev/null @@ -1,43 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. - -# This source code is licensed under the license found in the -# LICENSE file in the root directory of this source tree. - -import torch -import torch.nn as nn - -from typing import Type - - -class MLPBlock(nn.Module): - def __init__( - self, - embedding_dim: int, - mlp_dim: int, - act: Type[nn.Module] = nn.GELU, - ) -> None: - super().__init__() - self.lin1 = nn.Linear(embedding_dim, mlp_dim) - self.lin2 = nn.Linear(mlp_dim, embedding_dim) - self.act = act() - - def forward(self, x: torch.Tensor) -> torch.Tensor: - return self.lin2(self.act(self.lin1(x))) - - -# From https://github.com/facebookresearch/detectron2/blob/main/detectron2/layers/batch_norm.py # noqa -# Itself from https://github.com/facebookresearch/ConvNeXt/blob/d1fa8f6fef0a165b27399986cc2bdacc92777e40/models/convnext.py#L119 # noqa -class LayerNorm2d(nn.Module): - def __init__(self, num_channels: int, eps: float = 1e-6) -> None: - super().__init__() - self.weight = nn.Parameter(torch.ones(num_channels)) - self.bias = nn.Parameter(torch.zeros(num_channels)) - self.eps = eps - - def forward(self, x: torch.Tensor) -> torch.Tensor: - u = x.mean(1, keepdim=True) - s = (x - u).pow(2).mean(1, keepdim=True) - x = (x - u) / torch.sqrt(s + self.eps) - x = self.weight[:, None, None] * x + self.bias[:, None, None] - return x diff --git a/spaces/rorallitri/biomedical-language-models/logs/Blu Suicide Squad (English) Hd Movie 1080p Hindi Movies [WORK].md b/spaces/rorallitri/biomedical-language-models/logs/Blu Suicide Squad (English) Hd Movie 1080p Hindi Movies [WORK].md deleted file mode 100644 index 39d7ca7132e16d0323232f151e2e4e03b19ee035..0000000000000000000000000000000000000000 --- a/spaces/rorallitri/biomedical-language-models/logs/Blu Suicide Squad (English) Hd Movie 1080p Hindi Movies [WORK].md +++ /dev/null @@ -1,8 +0,0 @@ - -

        the suicide squaddebut was tracking to between $60m-$65m, however, it turns out that the word of mouth wasnt that strong. a killer klowns from outer spacestands at an even $50m, and the problem is that the comedy/horror comedy is not the next rocky horror picture showand the 2000 plan 9 from outer space. there is a hunger for something completely different this summer. suicide squadwas a commercial disappointment as well, with a $120m opening, but it did receive a b+ cinemascore from moviegoers. for a movie that cost $170m, that isnt a great start to a franchise.

        -

        the suicide squadrelease is a prime example of how the studios cant seem to get it right. theyre breaking records left and right, and when theyre not, theyre behind. its why i dont believe we will see another successful sequel to avengers: endgameuntil spider-man: far from homereally kicks in. the suicide squadmovie was a disaster, and while jungle cruiseperformed better, the suicide squad was still a box office disappointment. hopefully, this movie gets its own proper sequel in a few years.

        -

        blu Suicide Squad (English) hd movie 1080p hindi movies


        DOWNLOAD > https://tinurll.com/2uzlB5



        -

        in the meantime, the next suicide squadis well underway and on its way to becoming a true cinematic event. set in the 1980s, the suicide squadopens in the uk today and will get its stateside rollout this weekend, before making its way to the u.s. on friday.

        -

        synopsis:the story of an unlikely band of prisoners who find themselves allied against an unstoppable force, led by amanda waller, the worlds first female black ops agent. after being experimented on by the government, waller assembles a squad of the worlds most dangerous criminals and sends them on a mission to fight against an enemy that is far more frightening than any they have faced before. directed by david ayers (suicide squad) and starring will smith, margot robbie, viola davis, jai courtney, joel kinnaman, jay hernandez, adewale akinnuoye-agbaje, and danny huston.

        899543212b
        -
        -
        \ No newline at end of file diff --git a/spaces/rorallitri/biomedical-language-models/logs/CHEMKIN 2 DOWNLOAD Tips and Tricks for Using Chemkin-II for Chemical Kinetics Analysis.md b/spaces/rorallitri/biomedical-language-models/logs/CHEMKIN 2 DOWNLOAD Tips and Tricks for Using Chemkin-II for Chemical Kinetics Analysis.md deleted file mode 100644 index 2ed5631543f73ef3b4291fccbe090a0fe9b0f11b..0000000000000000000000000000000000000000 --- a/spaces/rorallitri/biomedical-language-models/logs/CHEMKIN 2 DOWNLOAD Tips and Tricks for Using Chemkin-II for Chemical Kinetics Analysis.md +++ /dev/null @@ -1,11 +0,0 @@ -
        -

        Used by millions around the world, students can take advantage of our free engineering software for homework, capstone projects and student competitions. Our renewable products can be downloaded at no cost by students across the globe and installed on any supported MS Windows 64-bit machine.

        -

        CHEMKIN 2 DOWNLOAD


        DOWNLOAD »»» https://tinurll.com/2uzm50



        -

        Ansys Student is our Ansys Workbench-based bundle of Ansys Mechanical, Ansys CFD, Ansys Autodyn, Ansys SpaceClaim and Ansys DesignXplorer. Ansys Student is downloaded by hundreds of thousands of students globally and includes some of our most-used products commercially. Users of this product may also find value in downloading our Ansys LS-DYNA Student product.

        -

        To generate graphs your chemkin spreadsheets should be uploaded to a new folder in the src folder. To plot, a graph object must be created in src/main.py, where graph_object.plot_sensitivity functions can be used to plot the sensitivities as follows:

        -

        There are 4 species-fields in the 0/-directory, which are initially required for the chemistry:O2, N2, C7H16 and Ydefault. Ydefault gives the boundary conditions for all other species than O2, N2, C7H16,that appear in the reaction mechanism.The reactions are defined in the "chem.inp"-file in the chemkin/-subdirectory (there are two more files for more complex mechanisms, which can also be chosen), the thermodynamic properties of the species aredefined in the "therm.dat"-file in the same subdirectory.

        -

        Installation guides for the latest Intel® Parallel Studio XE version are also available online. Please check Intel® Parallel Studio XE getting started page for installation guides. Note that link to Installation Guide is also available on Intel® Registration Center while downloading required installation package. Please refer to Installation FAQ for more details.

        -

        -

        Context-sensitive help accessed through the F1 key is restored in Intel® Parallel Studio XE 2019. Please download the compiler documentation and install it as described here. To access the documentation online follow the links from the Getting Started Guide, which can be viewed from the help menu.

        aaccfb2cb3
        -
        -
        \ No newline at end of file diff --git a/spaces/rorallitri/biomedical-language-models/logs/Igo Primo 2.4 Wince Free Download 2021.md b/spaces/rorallitri/biomedical-language-models/logs/Igo Primo 2.4 Wince Free Download 2021.md deleted file mode 100644 index 3cb13fd9fb33d28e2abdf908c32fddc2dcf42f05..0000000000000000000000000000000000000000 --- a/spaces/rorallitri/biomedical-language-models/logs/Igo Primo 2.4 Wince Free Download 2021.md +++ /dev/null @@ -1,10 +0,0 @@ - -

        if you have a wince device and have downloaded primo from the windows ce installer, you can start it from the winsetup.exe. this will put you into the igo primo. when you navigate, it should look like you are on a windows ce device, the only thing you will notice is you are not being routed on the road network. but igo primo can solve this problem too.

        -

        if you are having issues downloading the program, you can download the zip and unzip it. then run the setup.exe and you should be in the wince environment. again, make sure to have the settings listed above.

        -

        igo primo 2.4 wince free download


        Download ->>->>->> https://tinurll.com/2uzmwZ



        -

        if you want to run the program on another device, it might work on that other device. in the program you can see what device you are on. if it does not say igo primo, and you have the right settings, it might work on that other device. make sure you have the right settings and do a trial run.

        -

        igo primo 2.4.6 europe. f0a04e1465; igo primo 2.6 europe full screen download; movie torrent movies torrents movie downloads; igo primo 2.6 europa full screener. igo primo 2.6 europa [working] igo primo 2.6 europe for wince.6 europe for wince working fine since 2009 in 99% of all mobile phones..6 europe for wince, igo primo 2.6 europa video free download; igo primo 2.6 europe full screener.6 europa video free download.6 europa; 1 more files kerman burns on tom cruises.6 europa; movie torrent movies torrents movie downloads; release date: 11.12.2018; comments.6 europa.6 europa working fine since 2009 in 99% of all mobile phones ( phones and tablets). movie torrent movies torrents movie downloads.

        -

        igo primo 2.4.6 europe video codec ffmpeg. f0a04e1465; ipad 2 spt; igo primo 2.6 europe full screener. torrent;. dui torrent: igo primo 2.6 europe full screener [working] igo primo 2.6 europe for wince download. today i upload a video from the tv1 channel - topic: discovery channel -. download igo primo 2.6 europe for wince.

        -

        899543212b
        -
        -
        \ No newline at end of file diff --git a/spaces/rzzgate/Stable-Diffusion-ControlNet-WebUI/diffusion_webui/diffusion_models/controlnet/controlnet_inpaint/controlnet_inpaint_hed.py b/spaces/rzzgate/Stable-Diffusion-ControlNet-WebUI/diffusion_webui/diffusion_models/controlnet/controlnet_inpaint/controlnet_inpaint_hed.py deleted file mode 100644 index 590cb5db9213b22d00ce0e650a3e632725213a67..0000000000000000000000000000000000000000 --- a/spaces/rzzgate/Stable-Diffusion-ControlNet-WebUI/diffusion_webui/diffusion_models/controlnet/controlnet_inpaint/controlnet_inpaint_hed.py +++ /dev/null @@ -1,223 +0,0 @@ -import gradio as gr -import numpy as np -import torch -from controlnet_aux import HEDdetector -from diffusers import ControlNetModel -from PIL import Image - -from diffusion_webui.diffusion_models.controlnet.controlnet_inpaint.pipeline_stable_diffusion_controlnet_inpaint import ( - StableDiffusionControlNetInpaintPipeline, -) -from diffusion_webui.utils.model_list import ( - controlnet_hed_model_list, - stable_inpiant_model_list, -) -from diffusion_webui.utils.scheduler_list import ( - SCHEDULER_LIST, - get_scheduler_list, -) - -# https://github.com/mikonvergence/ControlNetInpaint - - -class StableDiffusionControlNetInpaintHedGenerator: - def __init__(self): - self.pipe = None - - def load_model(self, stable_model_path, controlnet_model_path, scheduler): - if self.pipe is None: - controlnet = ControlNetModel.from_pretrained( - controlnet_model_path, torch_dtype=torch.float16 - ) - self.pipe = ( - StableDiffusionControlNetInpaintPipeline.from_pretrained( - pretrained_model_name_or_path=stable_model_path, - controlnet=controlnet, - safety_checker=None, - torch_dtype=torch.float16, - ) - ) - - self.pipe = get_scheduler_list(pipe=self.pipe, scheduler=scheduler) - self.pipe.to("cuda") - self.pipe.enable_xformers_memory_efficient_attention() - - return self.pipe - - def load_image(self, image_path): - image = np.array(image_path) - image = Image.fromarray(image) - return image - - def controlnet_inpaint_hed(self, image_path: str): - hed = HEDdetector.from_pretrained("lllyasviel/ControlNet") - image = image_path["image"].convert("RGB").resize((512, 512)) - image = np.array(image) - image = hed(image) - - return image - - def generate_image( - self, - image_path: str, - stable_model_path: str, - controlnet_model_path: str, - prompt: str, - negative_prompt: str, - num_images_per_prompt: int, - guidance_scale: int, - num_inference_step: int, - controlnet_conditioning_scale: int, - scheduler: str, - seed_generator: int, - ): - normal_image = image_path["image"].convert("RGB").resize((512, 512)) - mask_image = image_path["mask"].convert("RGB").resize((512, 512)) - - normal_image = self.load_image(image_path=normal_image) - mask_image = self.load_image(image_path=mask_image) - - control_image = self.controlnet_inpaint_hed(image_path=image_path) - - pipe = self.load_model( - stable_model_path=stable_model_path, - controlnet_model_path=controlnet_model_path, - scheduler=scheduler, - ) - - if seed_generator == 0: - random_seed = torch.randint(0, 1000000, (1,)) - generator = torch.manual_seed(random_seed) - else: - generator = torch.manual_seed(seed_generator) - - output = pipe( - prompt=prompt, - image=normal_image, - mask_image=mask_image, - control_image=control_image, - negative_prompt=negative_prompt, - num_images_per_prompt=num_images_per_prompt, - num_inference_steps=num_inference_step, - guidance_scale=guidance_scale, - controlnet_conditioning_scale=controlnet_conditioning_scale, - generator=generator, - ).images - - return output - - def app(): - with gr.Blocks(): - with gr.Row(): - with gr.Column(): - controlnet_hed_inpaint_image_file = gr.Image( - source="upload", - tool="sketch", - elem_id="image_upload", - type="pil", - label="Upload", - ) - - controlnet_hed_inpaint_prompt = gr.Textbox( - lines=1, placeholder="Prompt", show_label=False - ) - - controlnet_hed_inpaint_negative_prompt = gr.Textbox( - lines=1, - show_label=False, - placeholder="Negative Prompt", - ) - with gr.Row(): - with gr.Column(): - controlnet_hed_inpaint_stable_model_id = ( - gr.Dropdown( - choices=stable_inpiant_model_list, - value=stable_inpiant_model_list[0], - label="Stable Model Id", - ) - ) - - controlnet_hed_inpaint_guidance_scale = gr.Slider( - minimum=0.1, - maximum=15, - step=0.1, - value=7.5, - label="Guidance Scale", - ) - - controlnet_hed_inpaint_num_inference_step = ( - gr.Slider( - minimum=1, - maximum=100, - step=1, - value=50, - label="Num Inference Step", - ) - ) - controlnet_hed_inpaint_num_images_per_prompt = ( - gr.Slider( - minimum=1, - maximum=10, - step=1, - value=1, - label="Number Of Images", - ) - ) - with gr.Row(): - with gr.Column(): - controlnet_hed_inpaint_model_id = gr.Dropdown( - choices=controlnet_hed_model_list, - value=controlnet_hed_model_list[0], - label="Controlnet Model Id", - ) - controlnet_hed_inpaint_scheduler = gr.Dropdown( - choices=SCHEDULER_LIST, - value=SCHEDULER_LIST[0], - label="Scheduler", - ) - controlnet_hed_inpaint_controlnet_conditioning_scale = gr.Slider( - minimum=0.1, - maximum=1.0, - step=0.1, - value=0.5, - label="Controlnet Conditioning Scale", - ) - - controlnet_hed_inpaint_seed_generator = ( - gr.Slider( - minimum=0, - maximum=1000000, - step=1, - value=0, - label="Seed Generator", - ) - ) - - controlnet_hed_inpaint_predict = gr.Button( - value="Generator" - ) - - with gr.Column(): - output_image = gr.Gallery( - label="Generated images", - show_label=False, - elem_id="gallery", - ).style(grid=(1, 2)) - - controlnet_hed_inpaint_predict.click( - fn=StableDiffusionControlNetInpaintHedGenerator().generate_image, - inputs=[ - controlnet_hed_inpaint_image_file, - controlnet_hed_inpaint_stable_model_id, - controlnet_hed_inpaint_model_id, - controlnet_hed_inpaint_prompt, - controlnet_hed_inpaint_negative_prompt, - controlnet_hed_inpaint_num_images_per_prompt, - controlnet_hed_inpaint_guidance_scale, - controlnet_hed_inpaint_num_inference_step, - controlnet_hed_inpaint_controlnet_conditioning_scale, - controlnet_hed_inpaint_scheduler, - controlnet_hed_inpaint_seed_generator, - ], - outputs=[output_image], - ) diff --git a/spaces/samcaicn/bingai/postcss.config.js b/spaces/samcaicn/bingai/postcss.config.js deleted file mode 100644 index 33ad091d26d8a9dc95ebdf616e217d985ec215b8..0000000000000000000000000000000000000000 --- a/spaces/samcaicn/bingai/postcss.config.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - plugins: { - tailwindcss: {}, - autoprefixer: {}, - }, -} diff --git a/spaces/sarinam/speaker-anonymization/IMSToucan/Layers/Attention.py b/spaces/sarinam/speaker-anonymization/IMSToucan/Layers/Attention.py deleted file mode 100644 index 7e1ee9a1e9995bd65fbe328a652424c6f5d5373f..0000000000000000000000000000000000000000 --- a/spaces/sarinam/speaker-anonymization/IMSToucan/Layers/Attention.py +++ /dev/null @@ -1,324 +0,0 @@ -# Written by Shigeki Karita, 2019 -# Published under Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) -# Adapted by Florian Lux, 2021 - -"""Multi-Head Attention layer definition.""" - -import math - -import numpy -import torch -from torch import nn - -from ..Utility.utils import make_non_pad_mask - - -class MultiHeadedAttention(nn.Module): - """ - Multi-Head Attention layer. - - Args: - n_head (int): The number of heads. - n_feat (int): The number of features. - dropout_rate (float): Dropout rate. - """ - - def __init__(self, n_head, n_feat, dropout_rate): - """ - Construct an MultiHeadedAttention object. - """ - super(MultiHeadedAttention, self).__init__() - assert n_feat % n_head == 0 - # We assume d_v always equals d_k - self.d_k = n_feat // n_head - self.h = n_head - self.linear_q = nn.Linear(n_feat, n_feat) - self.linear_k = nn.Linear(n_feat, n_feat) - self.linear_v = nn.Linear(n_feat, n_feat) - self.linear_out = nn.Linear(n_feat, n_feat) - self.attn = None - self.dropout = nn.Dropout(p=dropout_rate) - - def forward_qkv(self, query, key, value): - """ - Transform query, key and value. - - Args: - query (torch.Tensor): Query tensor (#batch, time1, size). - key (torch.Tensor): Key tensor (#batch, time2, size). - value (torch.Tensor): Value tensor (#batch, time2, size). - - Returns: - torch.Tensor: Transformed query tensor (#batch, n_head, time1, d_k). - torch.Tensor: Transformed key tensor (#batch, n_head, time2, d_k). - torch.Tensor: Transformed value tensor (#batch, n_head, time2, d_k). - """ - n_batch = query.size(0) - q = self.linear_q(query).view(n_batch, -1, self.h, self.d_k) - k = self.linear_k(key).view(n_batch, -1, self.h, self.d_k) - v = self.linear_v(value).view(n_batch, -1, self.h, self.d_k) - q = q.transpose(1, 2) # (batch, head, time1, d_k) - k = k.transpose(1, 2) # (batch, head, time2, d_k) - v = v.transpose(1, 2) # (batch, head, time2, d_k) - - return q, k, v - - def forward_attention(self, value, scores, mask): - """ - Compute attention context vector. - - Args: - value (torch.Tensor): Transformed value (#batch, n_head, time2, d_k). - scores (torch.Tensor): Attention score (#batch, n_head, time1, time2). - mask (torch.Tensor): Mask (#batch, 1, time2) or (#batch, time1, time2). - - Returns: - torch.Tensor: Transformed value (#batch, time1, d_model) - weighted by the attention score (#batch, time1, time2). - """ - n_batch = value.size(0) - if mask is not None: - mask = mask.unsqueeze(1).eq(0) # (batch, 1, *, time2) - min_value = float(numpy.finfo(torch.tensor(0, dtype=scores.dtype).numpy().dtype).min) - scores = scores.masked_fill(mask, min_value) - self.attn = torch.softmax(scores, dim=-1).masked_fill(mask, 0.0) # (batch, head, time1, time2) - else: - self.attn = torch.softmax(scores, dim=-1) # (batch, head, time1, time2) - - p_attn = self.dropout(self.attn) - x = torch.matmul(p_attn, value) # (batch, head, time1, d_k) - x = (x.transpose(1, 2).contiguous().view(n_batch, -1, self.h * self.d_k)) # (batch, time1, d_model) - - return self.linear_out(x) # (batch, time1, d_model) - - def forward(self, query, key, value, mask): - """ - Compute scaled dot product attention. - - Args: - query (torch.Tensor): Query tensor (#batch, time1, size). - key (torch.Tensor): Key tensor (#batch, time2, size). - value (torch.Tensor): Value tensor (#batch, time2, size). - mask (torch.Tensor): Mask tensor (#batch, 1, time2) or - (#batch, time1, time2). - - Returns: - torch.Tensor: Output tensor (#batch, time1, d_model). - """ - q, k, v = self.forward_qkv(query, key, value) - scores = torch.matmul(q, k.transpose(-2, -1)) / math.sqrt(self.d_k) - return self.forward_attention(v, scores, mask) - - -class RelPositionMultiHeadedAttention(MultiHeadedAttention): - """ - Multi-Head Attention layer with relative position encoding. - Details can be found in https://github.com/espnet/espnet/pull/2816. - Paper: https://arxiv.org/abs/1901.02860 - Args: - n_head (int): The number of heads. - n_feat (int): The number of features. - dropout_rate (float): Dropout rate. - zero_triu (bool): Whether to zero the upper triangular part of attention matrix. - """ - - def __init__(self, n_head, n_feat, dropout_rate, zero_triu=False): - """Construct an RelPositionMultiHeadedAttention object.""" - super().__init__(n_head, n_feat, dropout_rate) - self.zero_triu = zero_triu - # linear transformation for positional encoding - self.linear_pos = nn.Linear(n_feat, n_feat, bias=False) - # these two learnable bias are used in matrix c and matrix d - # as described in https://arxiv.org/abs/1901.02860 Section 3.3 - self.pos_bias_u = nn.Parameter(torch.Tensor(self.h, self.d_k)) - self.pos_bias_v = nn.Parameter(torch.Tensor(self.h, self.d_k)) - torch.nn.init.xavier_uniform_(self.pos_bias_u) - torch.nn.init.xavier_uniform_(self.pos_bias_v) - - def rel_shift(self, x): - """ - Compute relative positional encoding. - Args: - x (torch.Tensor): Input tensor (batch, head, time1, 2*time1-1). - time1 means the length of query vector. - Returns: - torch.Tensor: Output tensor. - """ - zero_pad = torch.zeros((*x.size()[:3], 1), device=x.device, dtype=x.dtype) - x_padded = torch.cat([zero_pad, x], dim=-1) - - x_padded = x_padded.view(*x.size()[:2], x.size(3) + 1, x.size(2)) - x = x_padded[:, :, 1:].view_as(x)[:, :, :, : x.size(-1) // 2 + 1] # only keep the positions from 0 to time2 - - if self.zero_triu: - ones = torch.ones((x.size(2), x.size(3)), device=x.device) - x = x * torch.tril(ones, x.size(3) - x.size(2))[None, None, :, :] - - return x - - def forward(self, query, key, value, pos_emb, mask): - """ - Compute 'Scaled Dot Product Attention' with rel. positional encoding. - Args: - query (torch.Tensor): Query tensor (#batch, time1, size). - key (torch.Tensor): Key tensor (#batch, time2, size). - value (torch.Tensor): Value tensor (#batch, time2, size). - pos_emb (torch.Tensor): Positional embedding tensor - (#batch, 2*time1-1, size). - mask (torch.Tensor): Mask tensor (#batch, 1, time2) or - (#batch, time1, time2). - Returns: - torch.Tensor: Output tensor (#batch, time1, d_model). - """ - q, k, v = self.forward_qkv(query, key, value) - q = q.transpose(1, 2) # (batch, time1, head, d_k) - - n_batch_pos = pos_emb.size(0) - p = self.linear_pos(pos_emb).view(n_batch_pos, -1, self.h, self.d_k) - p = p.transpose(1, 2) # (batch, head, 2*time1-1, d_k) - - # (batch, head, time1, d_k) - q_with_bias_u = (q + self.pos_bias_u).transpose(1, 2) - # (batch, head, time1, d_k) - q_with_bias_v = (q + self.pos_bias_v).transpose(1, 2) - - # compute attention score - # first compute matrix a and matrix c - # as described in https://arxiv.org/abs/1901.02860 Section 3.3 - # (batch, head, time1, time2) - matrix_ac = torch.matmul(q_with_bias_u, k.transpose(-2, -1)) - - # compute matrix b and matrix d - # (batch, head, time1, 2*time1-1) - matrix_bd = torch.matmul(q_with_bias_v, p.transpose(-2, -1)) - matrix_bd = self.rel_shift(matrix_bd) - - scores = (matrix_ac + matrix_bd) / math.sqrt(self.d_k) # (batch, head, time1, time2) - - return self.forward_attention(v, scores, mask) - - -class GuidedAttentionLoss(torch.nn.Module): - """ - Guided attention loss function module. - - This module calculates the guided attention loss described - in `Efficiently Trainable Text-to-Speech System Based - on Deep Convolutional Networks with Guided Attention`_, - which forces the attention to be diagonal. - - .. _`Efficiently Trainable Text-to-Speech System - Based on Deep Convolutional Networks with Guided Attention`: - https://arxiv.org/abs/1710.08969 - """ - - def __init__(self, sigma=0.4, alpha=1.0): - """ - Initialize guided attention loss module. - - Args: - sigma (float, optional): Standard deviation to control - how close attention to a diagonal. - alpha (float, optional): Scaling coefficient (lambda). - reset_always (bool, optional): Whether to always reset masks. - """ - super(GuidedAttentionLoss, self).__init__() - self.sigma = sigma - self.alpha = alpha - self.guided_attn_masks = None - self.masks = None - - def _reset_masks(self): - self.guided_attn_masks = None - self.masks = None - - def forward(self, att_ws, ilens, olens): - """ - Calculate forward propagation. - - Args: - att_ws (Tensor): Batch of attention weights (B, T_max_out, T_max_in). - ilens (LongTensor): Batch of input lenghts (B,). - olens (LongTensor): Batch of output lenghts (B,). - - Returns: - Tensor: Guided attention loss value. - """ - self._reset_masks() - self.guided_attn_masks = self._make_guided_attention_masks(ilens, olens).to(att_ws.device) - self.masks = self._make_masks(ilens, olens).to(att_ws.device) - losses = self.guided_attn_masks * att_ws - loss = torch.mean(losses.masked_select(self.masks)) - self._reset_masks() - return self.alpha * loss - - def _make_guided_attention_masks(self, ilens, olens): - n_batches = len(ilens) - max_ilen = max(ilens) - max_olen = max(olens) - guided_attn_masks = torch.zeros((n_batches, max_olen, max_ilen), device=ilens.device) - for idx, (ilen, olen) in enumerate(zip(ilens, olens)): - guided_attn_masks[idx, :olen, :ilen] = self._make_guided_attention_mask(ilen, olen, self.sigma) - return guided_attn_masks - - @staticmethod - def _make_guided_attention_mask(ilen, olen, sigma): - """ - Make guided attention mask. - """ - grid_x, grid_y = torch.meshgrid(torch.arange(olen, device=olen.device).float(), torch.arange(ilen, device=ilen.device).float()) - return 1.0 - torch.exp(-((grid_y / ilen - grid_x / olen) ** 2) / (2 * (sigma ** 2))) - - @staticmethod - def _make_masks(ilens, olens): - """ - Make masks indicating non-padded part. - - Args: - ilens (LongTensor or List): Batch of lengths (B,). - olens (LongTensor or List): Batch of lengths (B,). - - Returns: - Tensor: Mask tensor indicating non-padded part. - dtype=torch.uint8 in PyTorch 1.2- - dtype=torch.bool in PyTorch 1.2+ (including 1.2) - """ - in_masks = make_non_pad_mask(ilens, device=ilens.device) # (B, T_in) - out_masks = make_non_pad_mask(olens, device=olens.device) # (B, T_out) - return out_masks.unsqueeze(-1) & in_masks.unsqueeze(-2) # (B, T_out, T_in) - - -class GuidedMultiHeadAttentionLoss(GuidedAttentionLoss): - """ - Guided attention loss function module for multi head attention. - - Args: - sigma (float, optional): Standard deviation to control - how close attention to a diagonal. - alpha (float, optional): Scaling coefficient (lambda). - reset_always (bool, optional): Whether to always reset masks. - """ - - def forward(self, att_ws, ilens, olens): - """ - Calculate forward propagation. - - Args: - att_ws (Tensor): - Batch of multi head attention weights (B, H, T_max_out, T_max_in). - ilens (LongTensor): Batch of input lenghts (B,). - olens (LongTensor): Batch of output lenghts (B,). - - Returns: - Tensor: Guided attention loss value. - """ - if self.guided_attn_masks is None: - self.guided_attn_masks = (self._make_guided_attention_masks(ilens, olens).to(att_ws.device).unsqueeze(1)) - if self.masks is None: - self.masks = self._make_masks(ilens, olens).to(att_ws.device).unsqueeze(1) - losses = self.guided_attn_masks * att_ws - loss = torch.mean(losses.masked_select(self.masks)) - if self.reset_always: - self._reset_masks() - - return self.alpha * loss diff --git a/spaces/scedlatioru/img-to-music/example/Autoclosets Lt 5.0 Full Version.md b/spaces/scedlatioru/img-to-music/example/Autoclosets Lt 5.0 Full Version.md deleted file mode 100644 index d2b441fbfb4a7ba98406baad74b69501930694ee..0000000000000000000000000000000000000000 --- a/spaces/scedlatioru/img-to-music/example/Autoclosets Lt 5.0 Full Version.md +++ /dev/null @@ -1,6 +0,0 @@ - -

        'What I like about Autocad LT is that it is a newer application that is precise, easy to read, and offers a lot of new, high-quality features. This release includes a new plugin called Design Patterns by Thomas Vogelsag. It allows users to reverse engineer products and, with the new Design Patterns, the user can see who made the product and how it was made. Another feature that is quite helpful for us is the Draw Features that allow us to remove textures and render as a wireframe in the 3D view. We also added the Microsoft X2 Feature pack for 2008 and 2010 and support extended line geometries. Plus, new menu commands have been added such as Edit >>Routing >Rearrangement. These features have been new since LT 2012 so they have not been in previous versions. Also, we have been able to fix an error when generating the Layout from the Bottom view. It should have been in the Top view, as we found out by accident, because we didn’t think about switching views. We also added improved parametric tools for side panels, base panels, and windows. With the windows and doors, the lines have the correct thickness and the windows have a reflection tool that allows you to make windows look like solar window or side-by-side windows. Finally, we added a couple of new plugins. One of them is the Freedom Road Panels plugin, by Musashi Design, an add-on that allows you to create fully dimensional external and internal 3D panel elements.' - Masahiko Murata, Product Architect, Autocad. "

        -

        Autoclosets Lt 5.0 Full Version


        Downloadhttps://gohhs.com/2uEz9A



        -

        instagram to punk pdf
        nyas (n6) lv78ihv5d
        Norton Antivirus License Key Full Version With Crack
        Digital Antique Sold that: New York State Archives Division of Military and Naval Records is pleased to announce the release of New York State Troop Alias Records from the U.S.
        eBooks Born-Again, Born-Again, Born-AgainThe great philosopher Roger Williams had a brother Henry, who was "zealous for God and an enemy to all rebellion." The little man was an idealist, and he was willing to give his
        Femdom doms
        fotoed porno apple Autoclosets Lt 5.0 Full Version

        Dream The Green Song Free Download
        Firecrest (Firecrest) Blu-ray - 8.579 kbps
        Racing The Edge of Reason: Shakespeare Through Time (Masters of Quotidian Time) Epub
        Przygotowanie do udania licealnego (Flashback: 7 z 10 najlepszych brosów z najnowszej epoki)
        A World of Three Days (Encyclopedia of Romanticism) PDF Free
        Wintry Village (Encyclopedia of British Literature and Culture) PDF Free
        Fattmadonna (Fattmadonna) 720p NA
        Helter Skelter An Investigation Of The Manson Murders (An Unofficial

        899543212b
        -
        -
        \ No newline at end of file diff --git a/spaces/scedlatioru/img-to-music/example/Royal Revolt 2 MOD APK Hack Unlimited [Gems Gold Pearls] Free Download.md b/spaces/scedlatioru/img-to-music/example/Royal Revolt 2 MOD APK Hack Unlimited [Gems Gold Pearls] Free Download.md deleted file mode 100644 index deafc9b2ef345a556d92cd0e6cdec11eeceba48a..0000000000000000000000000000000000000000 --- a/spaces/scedlatioru/img-to-music/example/Royal Revolt 2 MOD APK Hack Unlimited [Gems Gold Pearls] Free Download.md +++ /dev/null @@ -1,10 +0,0 @@ -

        Royal Revolt 2 MOD APK Hack Unlimited [Gems Gold Pearls] Free Download


        Download File ✯✯✯ https://gohhs.com/2uEAno



        - -October 1, 2020 - Royal Revolt 2 MOD Apk. See more ideas about Rebellion. How to get free gems, gold, food, pearls in Royal Revolt 2. Royal Revolt 2 for free. This free app is ad-supported and may contain ads. -You can remove all ads from the game by purchasing the full version. -By downloading and installing Royal Revolt 2, you agree to our terms of use. -About Royal Revolt 2 - Royal Revolt 2 is a real-time strategy game designed for Android mobile devices. -The game allows you to explore a huge open world and create your own world of adventure, conquest and alliances. 8a78ff9644
        -
        -
        -

        diff --git a/spaces/scedlatioru/img-to-music/example/Virtual Audio Cable 4.08.zip !!EXCLUSIVE!!.md b/spaces/scedlatioru/img-to-music/example/Virtual Audio Cable 4.08.zip !!EXCLUSIVE!!.md deleted file mode 100644 index 4fa461d083a94d8b9a62702c97c4cd612791363e..0000000000000000000000000000000000000000 --- a/spaces/scedlatioru/img-to-music/example/Virtual Audio Cable 4.08.zip !!EXCLUSIVE!!.md +++ /dev/null @@ -1,6 +0,0 @@ -

        Virtual Audio Cable 4.08.zip


        Download Ziphttps://gohhs.com/2uEz6R



        - -Virtual Audio Cable 4.08.zip nelanjar. Virtual Audio Cable 4.08.zip. Virtual Audio Cable 4.08.zip. Virtual Audio Cable 4.08.zip nelanjar. Virtual Audio Cable 4.08.zip. Virtual Audio Cable 4.08.zip nelanjar. Virtual Audio Cable 4.08.zip. Virtual Audio Cable 4.08.zip nelanjar. Virtual Audio Cable 4.08.zip. Virtual Audio Cable 4.08.zip nelanjar. Virtual Audio Cable 4.08.zip. Virtual Audio Cable 4.08.zip nelanjar. Virtual Audio Cable 4.08.zip. Virtual Audio Cable 4.08.zip nelanjar. Virtual Audio Cable 4.08.zip. Virtual Audio Cable 4.08.zip nelanjar. Virtual Audio Cable 4.08.zip. Virtual Audio Cable 4.08.zip nelanjar. Virtual Audio Cable 4.08.zip. Virtual Audio Cable 4.08.zip nelanjar. Virtual Audio Cable 4.08.zip. Virtual Audio Cable 4.08.zip nelanjar. Virtual Audio Cable 4.08.zip. Virtual Audio Cable 4.08.zip nelanjar. Virtual Audio Cable 4.08.zip. Virtual Audio Cable 4.08.zip nelanjar. Virtual Audio Cable 4.08.zip. Virtual Audio Cable 4.08.zip nelanjar. Virtual Audio Cable 4.08.zip. Virtual Audio Cable 4.08.zip nelanjar. Virtual Audio Cable 4.08.zip. Virtual Audio Cable 4.08.zip nelanjar. Virtual Audio Cable 4.08.zip. Virtual Audio Cable 4.08.zip nelanjar. Virtual Audio Cable 4.08.zip. Virtual Audio Cable 4.08.zip nelanjar. Virtual Audio Cable 4.08.zip. Virtual Audio Cable 4.08.zip nelanjar. Virtual Audio Cable 4.08.zip. Virtual Audio Cable 4.08.zip nelanjar. Virtual Audio Cable 4.08.zip. Virtual Audio Cable 4.08.zip nelanjar. Virtual Audio Cable 4.08.zip. Virtual Audio Cable 4.08.zip nelanjar. Virtual Audio Cable 4.08.zip. Virtual Audio Cable 4.08.zip nelanjar. Virtual Audio Cable 4.08 4fefd39f24
        -
        -
        -

        diff --git a/spaces/scedlatioru/img-to-music/example/Visual Studio 6 Full With MSDN Library (CD1 And CD2).md b/spaces/scedlatioru/img-to-music/example/Visual Studio 6 Full With MSDN Library (CD1 And CD2).md deleted file mode 100644 index 8dd77cd477c786128d291b6b6b1537b87865f410..0000000000000000000000000000000000000000 --- a/spaces/scedlatioru/img-to-music/example/Visual Studio 6 Full With MSDN Library (CD1 And CD2).md +++ /dev/null @@ -1,6 +0,0 @@ -

        Visual Studio 6 full with MSDN Library (CD1 and CD2)


        Download ✏ ✏ ✏ https://gohhs.com/2uEAym



        - - 1fdad05405
        -
        -
        -

        diff --git a/spaces/sczhou/CodeFormer/CodeFormer/scripts/crop_align_face.py b/spaces/sczhou/CodeFormer/CodeFormer/scripts/crop_align_face.py deleted file mode 100644 index 31e66266ac0e5f818fa18b6409993151086bbc8b..0000000000000000000000000000000000000000 --- a/spaces/sczhou/CodeFormer/CodeFormer/scripts/crop_align_face.py +++ /dev/null @@ -1,192 +0,0 @@ -""" -brief: face alignment with FFHQ method (https://github.com/NVlabs/ffhq-dataset) -author: lzhbrian (https://lzhbrian.me) -link: https://gist.github.com/lzhbrian/bde87ab23b499dd02ba4f588258f57d5 -date: 2020.1.5 -note: code is heavily borrowed from - https://github.com/NVlabs/ffhq-dataset - http://dlib.net/face_landmark_detection.py.html -requirements: - conda install Pillow numpy scipy - conda install -c conda-forge dlib - # download face landmark model from: - # http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2 -""" - -import cv2 -import dlib -import glob -import numpy as np -import os -import PIL -import PIL.Image -import scipy -import scipy.ndimage -import sys -import argparse - -# download model from: http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2 -predictor = dlib.shape_predictor('weights/dlib/shape_predictor_68_face_landmarks-fbdc2cb8.dat') - - -def get_landmark(filepath, only_keep_largest=True): - """get landmark with dlib - :return: np.array shape=(68, 2) - """ - detector = dlib.get_frontal_face_detector() - - img = dlib.load_rgb_image(filepath) - dets = detector(img, 1) - - # Shangchen modified - print("Number of faces detected: {}".format(len(dets))) - if only_keep_largest: - print('Detect several faces and only keep the largest.') - face_areas = [] - for k, d in enumerate(dets): - face_area = (d.right() - d.left()) * (d.bottom() - d.top()) - face_areas.append(face_area) - - largest_idx = face_areas.index(max(face_areas)) - d = dets[largest_idx] - shape = predictor(img, d) - print("Part 0: {}, Part 1: {} ...".format( - shape.part(0), shape.part(1))) - else: - for k, d in enumerate(dets): - print("Detection {}: Left: {} Top: {} Right: {} Bottom: {}".format( - k, d.left(), d.top(), d.right(), d.bottom())) - # Get the landmarks/parts for the face in box d. - shape = predictor(img, d) - print("Part 0: {}, Part 1: {} ...".format( - shape.part(0), shape.part(1))) - - t = list(shape.parts()) - a = [] - for tt in t: - a.append([tt.x, tt.y]) - lm = np.array(a) - # lm is a shape=(68,2) np.array - return lm - -def align_face(filepath, out_path): - """ - :param filepath: str - :return: PIL Image - """ - try: - lm = get_landmark(filepath) - except: - print('No landmark ...') - return - - lm_chin = lm[0:17] # left-right - lm_eyebrow_left = lm[17:22] # left-right - lm_eyebrow_right = lm[22:27] # left-right - lm_nose = lm[27:31] # top-down - lm_nostrils = lm[31:36] # top-down - lm_eye_left = lm[36:42] # left-clockwise - lm_eye_right = lm[42:48] # left-clockwise - lm_mouth_outer = lm[48:60] # left-clockwise - lm_mouth_inner = lm[60:68] # left-clockwise - - # Calculate auxiliary vectors. - eye_left = np.mean(lm_eye_left, axis=0) - eye_right = np.mean(lm_eye_right, axis=0) - eye_avg = (eye_left + eye_right) * 0.5 - eye_to_eye = eye_right - eye_left - mouth_left = lm_mouth_outer[0] - mouth_right = lm_mouth_outer[6] - mouth_avg = (mouth_left + mouth_right) * 0.5 - eye_to_mouth = mouth_avg - eye_avg - - # Choose oriented crop rectangle. - x = eye_to_eye - np.flipud(eye_to_mouth) * [-1, 1] - x /= np.hypot(*x) - x *= max(np.hypot(*eye_to_eye) * 2.0, np.hypot(*eye_to_mouth) * 1.8) - y = np.flipud(x) * [-1, 1] - c = eye_avg + eye_to_mouth * 0.1 - quad = np.stack([c - x - y, c - x + y, c + x + y, c + x - y]) - qsize = np.hypot(*x) * 2 - - # read image - img = PIL.Image.open(filepath) - - output_size = 512 - transform_size = 4096 - enable_padding = False - - # Shrink. - shrink = int(np.floor(qsize / output_size * 0.5)) - if shrink > 1: - rsize = (int(np.rint(float(img.size[0]) / shrink)), - int(np.rint(float(img.size[1]) / shrink))) - img = img.resize(rsize, PIL.Image.ANTIALIAS) - quad /= shrink - qsize /= shrink - - # Crop. - border = max(int(np.rint(qsize * 0.1)), 3) - crop = (int(np.floor(min(quad[:, 0]))), int(np.floor(min(quad[:, 1]))), - int(np.ceil(max(quad[:, 0]))), int(np.ceil(max(quad[:, 1])))) - crop = (max(crop[0] - border, 0), max(crop[1] - border, 0), - min(crop[2] + border, - img.size[0]), min(crop[3] + border, img.size[1])) - if crop[2] - crop[0] < img.size[0] or crop[3] - crop[1] < img.size[1]: - img = img.crop(crop) - quad -= crop[0:2] - - # Pad. - pad = (int(np.floor(min(quad[:, 0]))), int(np.floor(min(quad[:, 1]))), - int(np.ceil(max(quad[:, 0]))), int(np.ceil(max(quad[:, 1])))) - pad = (max(-pad[0] + border, - 0), max(-pad[1] + border, - 0), max(pad[2] - img.size[0] + border, - 0), max(pad[3] - img.size[1] + border, 0)) - if enable_padding and max(pad) > border - 4: - pad = np.maximum(pad, int(np.rint(qsize * 0.3))) - img = np.pad( - np.float32(img), ((pad[1], pad[3]), (pad[0], pad[2]), (0, 0)), - 'reflect') - h, w, _ = img.shape - y, x, _ = np.ogrid[:h, :w, :1] - mask = np.maximum( - 1.0 - - np.minimum(np.float32(x) / pad[0], - np.float32(w - 1 - x) / pad[2]), 1.0 - - np.minimum(np.float32(y) / pad[1], - np.float32(h - 1 - y) / pad[3])) - blur = qsize * 0.02 - img += (scipy.ndimage.gaussian_filter(img, [blur, blur, 0]) - - img) * np.clip(mask * 3.0 + 1.0, 0.0, 1.0) - img += (np.median(img, axis=(0, 1)) - img) * np.clip(mask, 0.0, 1.0) - img = PIL.Image.fromarray( - np.uint8(np.clip(np.rint(img), 0, 255)), 'RGB') - quad += pad[:2] - - img = img.transform((transform_size, transform_size), PIL.Image.QUAD, - (quad + 0.5).flatten(), PIL.Image.BILINEAR) - - if output_size < transform_size: - img = img.resize((output_size, output_size), PIL.Image.ANTIALIAS) - - # Save aligned image. - print('saveing: ', out_path) - img.save(out_path) - - return img, np.max(quad[:, 0]) - np.min(quad[:, 0]) - - -if __name__ == '__main__': - parser = argparse.ArgumentParser() - parser.add_argument('--in_dir', type=str, default='./inputs/whole_imgs') - parser.add_argument('--out_dir', type=str, default='./inputs/cropped_faces') - args = parser.parse_args() - - img_list = sorted(glob.glob(f'{args.in_dir}/*.png')) - img_list = sorted(img_list) - - for in_path in img_list: - out_path = os.path.join(args.out_dir, in_path.split("/")[-1]) - out_path = out_path.replace('.jpg', '.png') - size_ = align_face(in_path, out_path) \ No newline at end of file diff --git a/spaces/seduerr/ethical_data/services/bad_words.py b/spaces/seduerr/ethical_data/services/bad_words.py deleted file mode 100644 index e9dc840dd90a14870656e58dc4b38f9b34c095d7..0000000000000000000000000000000000000000 --- a/spaces/seduerr/ethical_data/services/bad_words.py +++ /dev/null @@ -1,11 +0,0 @@ -import re - -def identify_bad_words(text): - bad_words = [] - with open('./src/bad_words.txt', 'r') as filehandle: - bad_words = [current_place.rstrip() - for current_place in filehandle.readlines()] - pattern = re.compile('[A-Z]*[a-z]+') - cleaned_text = pattern.findall(text) - long_word_set = set(bad_words) - return (set(cleaned_text) & long_word_set) diff --git a/spaces/seok07/Voice-Changer1/util.py b/spaces/seok07/Voice-Changer1/util.py deleted file mode 100644 index 8d6bcff1135c2d97e4caad7922f03f05c98484da..0000000000000000000000000000000000000000 --- a/spaces/seok07/Voice-Changer1/util.py +++ /dev/null @@ -1,81 +0,0 @@ -import sys -import asyncio -from io import BytesIO - -from fairseq import checkpoint_utils - -import torch - -import edge_tts -import librosa - - -# https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI/blob/main/config.py#L43-L55 # noqa -def has_mps() -> bool: - if sys.platform != "darwin": - return False - else: - if not getattr(torch, 'has_mps', False): - return False - - try: - torch.zeros(1).to(torch.device("mps")) - return True - except Exception: - return False - - -def is_half(device: str) -> bool: - if not device.startswith('cuda'): - return False - else: - gpu_name = torch.cuda.get_device_name( - int(device.split(':')[-1]) - ).upper() - - # ...regex? - if ( - ('16' in gpu_name and 'V100' not in gpu_name) - or 'P40' in gpu_name - or '1060' in gpu_name - or '1070' in gpu_name - or '1080' in gpu_name - ): - return False - - return True - - -def load_hubert_model(device: str, model_path: str = 'hubert_base.pt'): - model = checkpoint_utils.load_model_ensemble_and_task( - [model_path] - )[0][0].to(device) - - if is_half(device): - return model.half() - else: - return model.float() - - -async def call_edge_tts(speaker_name: str, text: str): - tts_com = edge_tts.Communicate(text, speaker_name) - tts_raw = b'' - - # Stream TTS audio to bytes - async for chunk in tts_com.stream(): - if chunk['type'] == 'audio': - tts_raw += chunk['data'] - - # Convert mp3 stream to wav - ffmpeg_proc = await asyncio.create_subprocess_exec( - 'ffmpeg', - '-f', 'mp3', - '-i', '-', - '-f', 'wav', - '-', - stdin=asyncio.subprocess.PIPE, - stdout=asyncio.subprocess.PIPE - ) - (tts_wav, _) = await ffmpeg_proc.communicate(tts_raw) - - return librosa.load(BytesIO(tts_wav)) diff --git a/spaces/shencc/gpt/crazy_functions/test_project/python/dqn/dqn.py b/spaces/shencc/gpt/crazy_functions/test_project/python/dqn/dqn.py deleted file mode 100644 index 6cea64d39baa7ff4c1e549869aaa4b0ae17779a9..0000000000000000000000000000000000000000 --- a/spaces/shencc/gpt/crazy_functions/test_project/python/dqn/dqn.py +++ /dev/null @@ -1,245 +0,0 @@ -from typing import Any, Dict, List, Optional, Tuple, Type, Union - -import gym -import numpy as np -import torch as th -from torch.nn import functional as F - -from stable_baselines3.common import logger -from stable_baselines3.common.off_policy_algorithm import OffPolicyAlgorithm -from stable_baselines3.common.preprocessing import maybe_transpose -from stable_baselines3.common.type_aliases import GymEnv, MaybeCallback, Schedule -from stable_baselines3.common.utils import get_linear_fn, is_vectorized_observation, polyak_update -from stable_baselines3.dqn.policies import DQNPolicy - - -class DQN(OffPolicyAlgorithm): - """ - Deep Q-Network (DQN) - - Paper: https://arxiv.org/abs/1312.5602, https://www.nature.com/articles/nature14236 - Default hyperparameters are taken from the nature paper, - except for the optimizer and learning rate that were taken from Stable Baselines defaults. - - :param policy: The policy model to use (MlpPolicy, CnnPolicy, ...) - :param env: The environment to learn from (if registered in Gym, can be str) - :param learning_rate: The learning rate, it can be a function - of the current progress remaining (from 1 to 0) - :param buffer_size: size of the replay buffer - :param learning_starts: how many steps of the model to collect transitions for before learning starts - :param batch_size: Minibatch size for each gradient update - :param tau: the soft update coefficient ("Polyak update", between 0 and 1) default 1 for hard update - :param gamma: the discount factor - :param train_freq: Update the model every ``train_freq`` steps. Alternatively pass a tuple of frequency and unit - like ``(5, "step")`` or ``(2, "episode")``. - :param gradient_steps: How many gradient steps to do after each rollout (see ``train_freq``) - Set to ``-1`` means to do as many gradient steps as steps done in the environment - during the rollout. - :param optimize_memory_usage: Enable a memory efficient variant of the replay buffer - at a cost of more complexity. - See https://github.com/DLR-RM/stable-baselines3/issues/37#issuecomment-637501195 - :param target_update_interval: update the target network every ``target_update_interval`` - environment steps. - :param exploration_fraction: fraction of entire training period over which the exploration rate is reduced - :param exploration_initial_eps: initial value of random action probability - :param exploration_final_eps: final value of random action probability - :param max_grad_norm: The maximum value for the gradient clipping - :param tensorboard_log: the log location for tensorboard (if None, no logging) - :param create_eval_env: Whether to create a second environment that will be - used for evaluating the agent periodically. (Only available when passing string for the environment) - :param policy_kwargs: additional arguments to be passed to the policy on creation - :param verbose: the verbosity level: 0 no output, 1 info, 2 debug - :param seed: Seed for the pseudo random generators - :param device: Device (cpu, cuda, ...) on which the code should be run. - Setting it to auto, the code will be run on the GPU if possible. - :param _init_setup_model: Whether or not to build the network at the creation of the instance - """ - - def __init__( - self, - policy: Union[str, Type[DQNPolicy]], - env: Union[GymEnv, str], - learning_rate: Union[float, Schedule] = 1e-4, - buffer_size: int = 1000000, - learning_starts: int = 50000, - batch_size: Optional[int] = 32, - tau: float = 1.0, - gamma: float = 0.99, - train_freq: Union[int, Tuple[int, str]] = 4, - gradient_steps: int = 1, - optimize_memory_usage: bool = False, - target_update_interval: int = 10000, - exploration_fraction: float = 0.1, - exploration_initial_eps: float = 1.0, - exploration_final_eps: float = 0.05, - max_grad_norm: float = 10, - tensorboard_log: Optional[str] = None, - create_eval_env: bool = False, - policy_kwargs: Optional[Dict[str, Any]] = None, - verbose: int = 0, - seed: Optional[int] = None, - device: Union[th.device, str] = "auto", - _init_setup_model: bool = True, - ): - - super(DQN, self).__init__( - policy, - env, - DQNPolicy, - learning_rate, - buffer_size, - learning_starts, - batch_size, - tau, - gamma, - train_freq, - gradient_steps, - action_noise=None, # No action noise - policy_kwargs=policy_kwargs, - tensorboard_log=tensorboard_log, - verbose=verbose, - device=device, - create_eval_env=create_eval_env, - seed=seed, - sde_support=False, - optimize_memory_usage=optimize_memory_usage, - supported_action_spaces=(gym.spaces.Discrete,), - ) - - self.exploration_initial_eps = exploration_initial_eps - self.exploration_final_eps = exploration_final_eps - self.exploration_fraction = exploration_fraction - self.target_update_interval = target_update_interval - self.max_grad_norm = max_grad_norm - # "epsilon" for the epsilon-greedy exploration - self.exploration_rate = 0.0 - # Linear schedule will be defined in `_setup_model()` - self.exploration_schedule = None - self.q_net, self.q_net_target = None, None - - if _init_setup_model: - self._setup_model() - - def _setup_model(self) -> None: - super(DQN, self)._setup_model() - self._create_aliases() - self.exploration_schedule = get_linear_fn( - self.exploration_initial_eps, self.exploration_final_eps, self.exploration_fraction - ) - - def _create_aliases(self) -> None: - self.q_net = self.policy.q_net - self.q_net_target = self.policy.q_net_target - - def _on_step(self) -> None: - """ - Update the exploration rate and target network if needed. - This method is called in ``collect_rollouts()`` after each step in the environment. - """ - if self.num_timesteps % self.target_update_interval == 0: - polyak_update(self.q_net.parameters(), self.q_net_target.parameters(), self.tau) - - self.exploration_rate = self.exploration_schedule(self._current_progress_remaining) - logger.record("rollout/exploration rate", self.exploration_rate) - - def train(self, gradient_steps: int, batch_size: int = 100) -> None: - # Update learning rate according to schedule - self._update_learning_rate(self.policy.optimizer) - - losses = [] - for _ in range(gradient_steps): - # Sample replay buffer - replay_data = self.replay_buffer.sample(batch_size, env=self._vec_normalize_env) - - with th.no_grad(): - # Compute the next Q-values using the target network - next_q_values = self.q_net_target(replay_data.next_observations) - # Follow greedy policy: use the one with the highest value - next_q_values, _ = next_q_values.max(dim=1) - # Avoid potential broadcast issue - next_q_values = next_q_values.reshape(-1, 1) - # 1-step TD target - target_q_values = replay_data.rewards + (1 - replay_data.dones) * self.gamma * next_q_values - - # Get current Q-values estimates - current_q_values = self.q_net(replay_data.observations) - - # Retrieve the q-values for the actions from the replay buffer - current_q_values = th.gather(current_q_values, dim=1, index=replay_data.actions.long()) - - # Compute Huber loss (less sensitive to outliers) - loss = F.smooth_l1_loss(current_q_values, target_q_values) - losses.append(loss.item()) - - # Optimize the policy - self.policy.optimizer.zero_grad() - loss.backward() - # Clip gradient norm - th.nn.utils.clip_grad_norm_(self.policy.parameters(), self.max_grad_norm) - self.policy.optimizer.step() - - # Increase update counter - self._n_updates += gradient_steps - - logger.record("train/n_updates", self._n_updates, exclude="tensorboard") - logger.record("train/loss", np.mean(losses)) - - def predict( - self, - observation: np.ndarray, - state: Optional[np.ndarray] = None, - mask: Optional[np.ndarray] = None, - deterministic: bool = False, - ) -> Tuple[np.ndarray, Optional[np.ndarray]]: - """ - Overrides the base_class predict function to include epsilon-greedy exploration. - - :param observation: the input observation - :param state: The last states (can be None, used in recurrent policies) - :param mask: The last masks (can be None, used in recurrent policies) - :param deterministic: Whether or not to return deterministic actions. - :return: the model's action and the next state - (used in recurrent policies) - """ - if not deterministic and np.random.rand() < self.exploration_rate: - if is_vectorized_observation(maybe_transpose(observation, self.observation_space), self.observation_space): - n_batch = observation.shape[0] - action = np.array([self.action_space.sample() for _ in range(n_batch)]) - else: - action = np.array(self.action_space.sample()) - else: - action, state = self.policy.predict(observation, state, mask, deterministic) - return action, state - - def learn( - self, - total_timesteps: int, - callback: MaybeCallback = None, - log_interval: int = 4, - eval_env: Optional[GymEnv] = None, - eval_freq: int = -1, - n_eval_episodes: int = 5, - tb_log_name: str = "DQN", - eval_log_path: Optional[str] = None, - reset_num_timesteps: bool = True, - ) -> OffPolicyAlgorithm: - - return super(DQN, self).learn( - total_timesteps=total_timesteps, - callback=callback, - log_interval=log_interval, - eval_env=eval_env, - eval_freq=eval_freq, - n_eval_episodes=n_eval_episodes, - tb_log_name=tb_log_name, - eval_log_path=eval_log_path, - reset_num_timesteps=reset_num_timesteps, - ) - - def _excluded_save_params(self) -> List[str]: - return super(DQN, self)._excluded_save_params() + ["q_net", "q_net_target"] - - def _get_torch_save_params(self) -> Tuple[List[str], List[str]]: - state_dicts = ["policy", "policy.optimizer"] - - return state_dicts, [] diff --git a/spaces/shgao/EditAnything/utils/stable_diffusion_reference.py b/spaces/shgao/EditAnything/utils/stable_diffusion_reference.py deleted file mode 100644 index 6a2e3a943a1d1dd7c16e7ebf07c851c20120eca7..0000000000000000000000000000000000000000 --- a/spaces/shgao/EditAnything/utils/stable_diffusion_reference.py +++ /dev/null @@ -1,1128 +0,0 @@ -# Based on https://raw.githubusercontent.com/okotaku/diffusers/feature/reference_only_control/examples/community/stable_diffusion_reference.py -# Inspired by: https://github.com/Mikubill/sd-webui-controlnet/discussions/1236 -from typing import Any, Callable, Dict, List, Optional, Union, Tuple - -import numpy as np -import PIL.Image -import torch - -from diffusers import StableDiffusionPipeline -from diffusers.models.attention import BasicTransformerBlock -from diffusers.models.unet_2d_blocks import ( - CrossAttnDownBlock2D, - CrossAttnUpBlock2D, - DownBlock2D, - UpBlock2D, -) -from diffusers.pipelines.stable_diffusion import StableDiffusionPipelineOutput -from diffusers.utils import PIL_INTERPOLATION, logging -import torch.nn.functional as F - - -logger = logging.get_logger(__name__) # pylint: disable=invalid-name - -EXAMPLE_DOC_STRING = """ - Examples: - ```py - >>> import torch - >>> from diffusers import UniPCMultistepScheduler - >>> from diffusers.utils import load_image - - >>> input_image = load_image("https://hf.co/datasets/huggingface/documentation-images/resolve/main/diffusers/input_image_vermeer.png") - - >>> pipe = StableDiffusionReferencePipeline.from_pretrained( - "runwayml/stable-diffusion-v1-5", - safety_checker=None, - torch_dtype=torch.float16 - ).to('cuda:0') - - >>> pipe.scheduler = UniPCMultistepScheduler.from_config(pipe_controlnet.scheduler.config) - - >>> result_img = pipe(ref_image=input_image, - prompt="1girl", - num_inference_steps=20, - reference_attn=True, - reference_adain=True).images[0] - - >>> result_img.show() - ``` -""" - - -def torch_dfs(model: torch.nn.Module): - result = [model] - for child in model.children(): - result += torch_dfs(child) - return result - - -class StableDiffusionReferencePipeline: - def prepare_ref_image( - self, - image, - width, - height, - batch_size, - num_images_per_prompt, - device, - dtype, - do_classifier_free_guidance=False, - guess_mode=False, - ): - if not isinstance(image, torch.Tensor): - if isinstance(image, PIL.Image.Image): - image = [image] - - if isinstance(image[0], PIL.Image.Image): - images = [] - - for image_ in image: - image_ = image_.convert("RGB") - image_ = image_.resize( - (width, height), resample=PIL_INTERPOLATION["lanczos"] - ) - image_ = np.array(image_) - image_ = image_[None, :] - images.append(image_) - - image = images - - image = np.concatenate(image, axis=0) - image = np.array(image).astype(np.float32) / 255.0 - image = (image - 0.5) / 0.5 - image = image.transpose(0, 3, 1, 2) - image = torch.from_numpy(image) - elif isinstance(image[0], torch.Tensor): - image = torch.cat(image, dim=0) - - image_batch_size = image.shape[0] - - if image_batch_size == 1: - repeat_by = batch_size - else: - # image batch size is the same as prompt batch size - repeat_by = num_images_per_prompt - - image = image.repeat_interleave(repeat_by, dim=0) - - image = image.to(device=device, dtype=dtype) - - if do_classifier_free_guidance and not guess_mode: - image = torch.cat([image] * 2) - - return image - - def prepare_ref_latents( - self, - refimage, - batch_size, - dtype, - device, - generator, - do_classifier_free_guidance, - ): - refimage = refimage.to(device=device, dtype=dtype) - - # encode the mask image into latents space so we can concatenate it to the latents - if isinstance(generator, list): - ref_image_latents = [ - self.vae.encode(refimage[i: i + 1]).latent_dist.sample( - generator=generator[i] - ) - for i in range(batch_size) - ] - ref_image_latents = torch.cat(ref_image_latents, dim=0) - else: - ref_image_latents = self.vae.encode(refimage).latent_dist.sample( - generator=generator - ) - ref_image_latents = self.vae.config.scaling_factor * ref_image_latents - - # duplicate mask and ref_image_latents for each generation per prompt, using mps friendly method - if ref_image_latents.shape[0] < batch_size: - if not batch_size % ref_image_latents.shape[0] == 0: - raise ValueError( - "The passed images and the required batch size don't match. Images are supposed to be duplicated" - f" to a total batch size of {batch_size}, but {ref_image_latents.shape[0]} images were passed." - " Make sure the number of images that you pass is divisible by the total requested batch size." - ) - ref_image_latents = ref_image_latents.repeat( - batch_size // ref_image_latents.shape[0], 1, 1, 1 - ) - - ref_image_latents = ( - torch.cat([ref_image_latents] * 2) - if do_classifier_free_guidance - else ref_image_latents - ) - - # aligning device to prevent device errors when concating it with the latent model input - ref_image_latents = ref_image_latents.to(device=device, dtype=dtype) - return ref_image_latents - - def check_ref_input(self, reference_attn, reference_adain): - assert ( - reference_attn or reference_adain - ), "`reference_attn` or `reference_adain` must be True." - - def redefine_ref_model( - self, model, reference_attn, reference_adain, model_type="unet" - ): - def hacked_basic_transformer_inner_forward( - self, - hidden_states: torch.FloatTensor, - attention_mask: Optional[torch.FloatTensor] = None, - encoder_hidden_states: Optional[torch.FloatTensor] = None, - encoder_attention_mask: Optional[torch.FloatTensor] = None, - timestep: Optional[torch.LongTensor] = None, - cross_attention_kwargs: Dict[str, Any] = None, - class_labels: Optional[torch.LongTensor] = None, - ): - if self.use_ada_layer_norm: - norm_hidden_states = self.norm1(hidden_states, timestep) - elif self.use_ada_layer_norm_zero: - ( - norm_hidden_states, - gate_msa, - shift_mlp, - scale_mlp, - gate_mlp, - ) = self.norm1( - hidden_states, - timestep, - class_labels, - hidden_dtype=hidden_states.dtype, - ) - else: - norm_hidden_states = self.norm1(hidden_states) - - # 1. Self-Attention - cross_attention_kwargs = ( - cross_attention_kwargs if cross_attention_kwargs is not None else {} - ) - if self.only_cross_attention: - attn_output = self.attn1( - norm_hidden_states, - encoder_hidden_states=encoder_hidden_states - if self.only_cross_attention - else None, - attention_mask=attention_mask, - **cross_attention_kwargs, - ) - else: - if self.MODE == "write": - if self.attention_auto_machine_weight > self.attn_weight: - # print("hacked_basic_transformer_inner_forward") - scale_ratio = ( - (self.ref_mask.shape[2] * self.ref_mask.shape[3]) - / norm_hidden_states.shape[1] - ) ** 0.5 - this_ref_mask = F.interpolate( - self.ref_mask.to(norm_hidden_states.device), - scale_factor=1 / scale_ratio, - ) - resize_norm_hidden_states = norm_hidden_states.view( - norm_hidden_states.shape[0], - this_ref_mask.shape[2], - this_ref_mask.shape[3], - -1, - ).permute(0, 3, 1, 2) - - ref_scale = 1.0 - resize_norm_hidden_states = F.interpolate( - resize_norm_hidden_states, - scale_factor=ref_scale, - mode="bilinear", - ) - this_ref_mask = F.interpolate( - this_ref_mask, scale_factor=ref_scale - ) - # print("this_ref_mask",this_ref_mask.shape) - - # this_ref_mask = this_ref_mask.view(1,-1,1) - this_ref_mask = this_ref_mask.repeat( - resize_norm_hidden_states.shape[0], - resize_norm_hidden_states.shape[1], - 1, - 1, - ).bool() - masked_norm_hidden_states = ( - resize_norm_hidden_states[this_ref_mask] - .detach() - .clone() - .view( - resize_norm_hidden_states.shape[0], - resize_norm_hidden_states.shape[1], - -1, - ) - ) - masked_norm_hidden_states = masked_norm_hidden_states.permute( - 0, 2, 1 - ) - self.bank.append(masked_norm_hidden_states) - # self.bank.append(norm_hidden_states.detach().clone()) - attn_output = self.attn1( - norm_hidden_states, - encoder_hidden_states=encoder_hidden_states - if self.only_cross_attention - else None, - attention_mask=attention_mask, - **cross_attention_kwargs, - ) - if self.MODE == "read": - if self.attention_auto_machine_weight > self.attn_weight: - # scale_ratio = ((self.ref_mask.shape[2] * self.ref_mask.shape[3])/norm_hidden_states.shape[1])**0.5 - # print(scale_ratio) - # this_ref_mask = F.interpolate(self.ref_mask.to(norm_hidden_states.device), scale_factor=1/scale_ratio).view(1,1,-1) - # print("resized mask", this_ref_mask.shape, this_ref_mask.max(), this_ref_mask.min(), this_ref_mask.sum()) - # ref_hidden_states = torch.cat([norm_hidden_states] + self.bank, dim=1) - # if attention_mask is None: - # attention_mask = torch.ones( - # norm_hidden_states.shape[0], norm_hidden_states.shape[1], ref_hidden_states.shape[1], dtype=norm_hidden_states.dtype, device=norm_hidden_states.device - # ) - # this_ref_mask = this_ref_mask.repeat(norm_hidden_states.shape[0], norm_hidden_states.shape[1], 1) - # this_ref_mask = torch.zeros( - # norm_hidden_states.shape[0], norm_hidden_states.shape[1], this_ref_mask.shape[1], dtype=norm_hidden_states.dtype, device=norm_hidden_states.device - # ) - # print(attention_mask.shape, this_ref_mask.shape) - # attention_mask = torch.cat((attention_mask, this_ref_mask), dim=-1) - # print("merge", attention_mask.shape) - ref_hidden_states = torch.cat( - [norm_hidden_states] + self.bank, dim=1 - ) - attn_output_uc = self.attn1( - norm_hidden_states, - encoder_hidden_states=ref_hidden_states, - # attention_mask=attention_mask, - **cross_attention_kwargs, - ) - attn_output_c = attn_output_uc.clone() - if self.do_classifier_free_guidance and self.style_fidelity > 0: - attn_output_c[self.uc_mask] = self.attn1( - norm_hidden_states[self.uc_mask], - encoder_hidden_states=norm_hidden_states[self.uc_mask], - **cross_attention_kwargs, - ) - attn_output = ( - self.style_fidelity * attn_output_c - + (1.0 - self.style_fidelity) * attn_output_uc - ) - self.bank.clear() - else: - attn_output = self.attn1( - norm_hidden_states, - encoder_hidden_states=encoder_hidden_states - if self.only_cross_attention - else None, - attention_mask=attention_mask, - **cross_attention_kwargs, - ) - if self.use_ada_layer_norm_zero: - attn_output = gate_msa.unsqueeze(1) * attn_output - hidden_states = attn_output + hidden_states - - if self.attn2 is not None: - norm_hidden_states = ( - self.norm2(hidden_states, timestep) - if self.use_ada_layer_norm - else self.norm2(hidden_states) - ) - - # 2. Cross-Attention - attn_output = self.attn2( - norm_hidden_states, - encoder_hidden_states=encoder_hidden_states, - attention_mask=encoder_attention_mask, - **cross_attention_kwargs, - ) - hidden_states = attn_output + hidden_states - - # 3. Feed-forward - norm_hidden_states = self.norm3(hidden_states) - - if self.use_ada_layer_norm_zero: - norm_hidden_states = ( - norm_hidden_states * - (1 + scale_mlp[:, None]) + shift_mlp[:, None] - ) - - ff_output = self.ff(norm_hidden_states) - - if self.use_ada_layer_norm_zero: - ff_output = gate_mlp.unsqueeze(1) * ff_output - - hidden_states = ff_output + hidden_states - - return hidden_states - - def hacked_mid_forward(self, *args, **kwargs): - eps = 1e-6 - x = self.original_forward(*args, **kwargs) - if self.MODE == "write": - if self.gn_auto_machine_weight >= self.gn_weight: - # mask var mean - scale_ratio = self.ref_mask.shape[2] / x.shape[2] - this_ref_mask = F.interpolate( - self.ref_mask.to(x.device), scale_factor=1 / scale_ratio - ) - this_ref_mask = this_ref_mask.repeat( - x.shape[0], x.shape[1], 1, 1 - ).bool() - masked_x = ( - x[this_ref_mask] - .detach() - .clone() - .view(x.shape[0], x.shape[1], -1, 1) - ) - var, mean = torch.var_mean( - masked_x, dim=(2, 3), keepdim=True, correction=0 - ) - - self.mean_bank.append(mean) - self.var_bank.append(var) - if self.MODE == "read": - if ( - self.gn_auto_machine_weight >= self.gn_weight - and len(self.mean_bank) > 0 - and len(self.var_bank) > 0 - ): - # print("hacked_mid_forward") - scale_ratio = self.inpaint_mask.shape[2] / x.shape[2] - this_inpaint_mask = F.interpolate( - self.inpaint_mask.to(x.device), scale_factor=1 / scale_ratio - ) - this_inpaint_mask = this_inpaint_mask.repeat( - x.shape[0], x.shape[1], 1, 1 - ).bool() - masked_x = ( - x[this_inpaint_mask] - .detach() - .clone() - .view(x.shape[0], x.shape[1], -1, 1) - ) - var, mean = torch.var_mean( - masked_x, dim=(2, 3), keepdim=True, correction=0 - ) - std = torch.maximum( - var, torch.zeros_like(var) + eps) ** 0.5 - mean_acc = sum(self.mean_bank) / float(len(self.mean_bank)) - var_acc = sum(self.var_bank) / float(len(self.var_bank)) - std_acc = ( - torch.maximum(var_acc, torch.zeros_like( - var_acc) + eps) ** 0.5 - ) - x_uc = (((masked_x - mean) / std) * std_acc) + mean_acc - x_c = x_uc.clone() - if self.do_classifier_free_guidance and self.style_fidelity > 0: - x_c[self.uc_mask] = masked_x[self.uc_mask] - masked_x = self.style_fidelity * x_c + \ - (1.0 - self.style_fidelity) * x_uc - x[this_inpaint_mask] = masked_x.view(-1) - self.mean_bank = [] - self.var_bank = [] - return x - - def hack_CrossAttnDownBlock2D_forward( - self, - hidden_states: torch.FloatTensor, - temb: Optional[torch.FloatTensor] = None, - encoder_hidden_states: Optional[torch.FloatTensor] = None, - attention_mask: Optional[torch.FloatTensor] = None, - cross_attention_kwargs: Optional[Dict[str, Any]] = None, - encoder_attention_mask: Optional[torch.FloatTensor] = None, - ): - eps = 1e-6 - # TODO(Patrick, William) - attention mask is not used - output_states = () - - for i, (resnet, attn) in enumerate(zip(self.resnets, self.attentions)): - hidden_states = resnet(hidden_states, temb) - - if self.MODE == "write": - if self.gn_auto_machine_weight >= self.gn_weight: - # var, mean = torch.var_mean(hidden_states, dim=(2, 3), keepdim=True, correction=0) - # mask var mean - scale_ratio = self.ref_mask.shape[2] / \ - hidden_states.shape[2] - this_ref_mask = F.interpolate( - self.ref_mask.to(hidden_states.device), - scale_factor=1 / scale_ratio, - ) - this_ref_mask = this_ref_mask.repeat( - hidden_states.shape[0], hidden_states.shape[1], 1, 1 - ).bool() - masked_hidden_states = ( - hidden_states[this_ref_mask] - .detach() - .clone() - .view(hidden_states.shape[0], hidden_states.shape[1], -1, 1) - ) - var, mean = torch.var_mean( - masked_hidden_states, dim=(2, 3), keepdim=True, correction=0 - ) - self.mean_bank0.append(mean) - self.var_bank0.append(var) - if self.MODE == "read": - if ( - self.gn_auto_machine_weight >= self.gn_weight - and len(self.mean_bank0) > 0 - and len(self.var_bank0) > 0 - ): - # print("hacked_CrossAttnDownBlock2D_forward0") - scale_ratio = self.inpaint_mask.shape[2] / \ - hidden_states.shape[2] - this_inpaint_mask = F.interpolate( - self.inpaint_mask.to(hidden_states.device), scale_factor=1 / scale_ratio - ) - this_inpaint_mask = this_inpaint_mask.repeat( - hidden_states.shape[0], hidden_states.shape[1], 1, 1 - ).bool() - masked_hidden_states = ( - hidden_states[this_inpaint_mask] - .detach() - .clone() - .view(hidden_states.shape[0], hidden_states.shape[1], -1, 1) - ) - var, mean = torch.var_mean( - masked_hidden_states, dim=(2, 3), keepdim=True, correction=0 - ) - std = torch.maximum( - var, torch.zeros_like(var) + eps) ** 0.5 - mean_acc = sum(self.mean_bank0[i]) / float( - len(self.mean_bank0[i]) - ) - var_acc = sum( - self.var_bank0[i]) / float(len(self.var_bank0[i])) - std_acc = ( - torch.maximum( - var_acc, torch.zeros_like(var_acc) + eps) - ** 0.5 - ) - hidden_states_uc = ( - ((masked_hidden_states - mean) / std) * std_acc - ) + mean_acc - hidden_states_c = hidden_states_uc.clone() - if self.do_classifier_free_guidance and self.style_fidelity > 0: - hidden_states_c[self.uc_mask] = masked_hidden_states[self.uc_mask] - masked_hidden_states = ( - self.style_fidelity * hidden_states_c - + (1.0 - self.style_fidelity) * hidden_states_uc - ) - hidden_states[this_inpaint_mask] = masked_hidden_states.view( - -1) - - hidden_states = attn( - hidden_states, - encoder_hidden_states=encoder_hidden_states, - cross_attention_kwargs=cross_attention_kwargs, - # attention_mask=attention_mask, - # encoder_attention_mask=encoder_attention_mask, - return_dict=False, - )[0] - if self.MODE == "write": - if self.gn_auto_machine_weight >= self.gn_weight: - # mask var mean - scale_ratio = self.ref_mask.shape[2] / \ - hidden_states.shape[2] - this_ref_mask = F.interpolate( - self.ref_mask.to(hidden_states.device), - scale_factor=1 / scale_ratio, - ) - this_ref_mask = this_ref_mask.repeat( - hidden_states.shape[0], hidden_states.shape[1], 1, 1 - ).bool() - masked_hidden_states = ( - hidden_states[this_ref_mask] - .detach() - .clone() - .view(hidden_states.shape[0], hidden_states.shape[1], -1, 1) - ) - var, mean = torch.var_mean( - masked_hidden_states, dim=(2, 3), keepdim=True, correction=0 - ) - self.mean_bank.append(mean) - self.var_bank.append(var) - if self.MODE == "read": - if ( - self.gn_auto_machine_weight >= self.gn_weight - and len(self.mean_bank) > 0 - and len(self.var_bank) > 0 - ): - # print("hack_CrossAttnDownBlock2D_forward") - scale_ratio = self.inpaint_mask.shape[2] / \ - hidden_states.shape[2] - this_inpaint_mask = F.interpolate( - self.inpaint_mask.to(hidden_states.device), scale_factor=1 / scale_ratio - ) - this_inpaint_mask = this_inpaint_mask.repeat( - hidden_states.shape[0], hidden_states.shape[1], 1, 1 - ).bool() - masked_hidden_states = ( - hidden_states[this_inpaint_mask] - .detach() - .clone() - .view(hidden_states.shape[0], hidden_states.shape[1], -1, 1) - ) - var, mean = torch.var_mean( - masked_hidden_states, dim=(2, 3), keepdim=True, correction=0 - ) - std = torch.maximum( - var, torch.zeros_like(var) + eps) ** 0.5 - mean_acc = sum(self.mean_bank[i]) / float( - len(self.mean_bank[i]) - ) - var_acc = sum( - self.var_bank[i]) / float(len(self.var_bank[i])) - std_acc = ( - torch.maximum( - var_acc, torch.zeros_like(var_acc) + eps) - ** 0.5 - ) - hidden_states_uc = ( - ((masked_hidden_states - mean) / std) * std_acc - ) + mean_acc - hidden_states_c = hidden_states_uc.clone() - if self.do_classifier_free_guidance and self.style_fidelity > 0: - hidden_states_c[self.uc_mask] = masked_hidden_states[self.uc_mask] - masked_hidden_states = ( - self.style_fidelity * hidden_states_c - + (1.0 - self.style_fidelity) * hidden_states_uc - ) - hidden_states[this_inpaint_mask] = masked_hidden_states.view( - -1) - - output_states = output_states + (hidden_states,) - - if self.MODE == "read": - self.mean_bank0 = [] - self.var_bank0 = [] - self.mean_bank = [] - self.var_bank = [] - - if self.downsamplers is not None: - for downsampler in self.downsamplers: - hidden_states = downsampler(hidden_states) - - output_states = output_states + (hidden_states,) - - return hidden_states, output_states - - def hacked_DownBlock2D_forward(self, hidden_states, temb=None): - eps = 1e-6 - - output_states = () - - for i, resnet in enumerate(self.resnets): - hidden_states = resnet(hidden_states, temb) - - if self.MODE == "write": - if self.gn_auto_machine_weight >= self.gn_weight: - # var, mean = torch.var_mean(hidden_states, dim=(2, 3), keepdim=True, correction=0) - # mask var mean - scale_ratio = self.ref_mask.shape[2] / \ - hidden_states.shape[2] - this_ref_mask = F.interpolate( - self.ref_mask.to(hidden_states.device), - scale_factor=1 / scale_ratio, - ) - this_ref_mask = this_ref_mask.repeat( - hidden_states.shape[0], hidden_states.shape[1], 1, 1 - ).bool() - masked_hidden_states = ( - hidden_states[this_ref_mask] - .detach() - .clone() - .view(hidden_states.shape[0], hidden_states.shape[1], -1, 1) - ) - var, mean = torch.var_mean( - masked_hidden_states, dim=(2, 3), keepdim=True, correction=0 - ) - self.mean_bank.append(mean) - self.var_bank.append(var) - if self.MODE == "read": - if ( - self.gn_auto_machine_weight >= self.gn_weight - and len(self.mean_bank) > 0 - and len(self.var_bank) > 0 - ): - # print("hacked_DownBlock2D_forward") - scale_ratio = self.inpaint_mask.shape[2] / \ - hidden_states.shape[2] - this_inpaint_mask = F.interpolate( - self.inpaint_mask.to(hidden_states.device), scale_factor=1 / scale_ratio - ) - this_inpaint_mask = this_inpaint_mask.repeat( - hidden_states.shape[0], hidden_states.shape[1], 1, 1 - ).bool() - masked_hidden_states = ( - hidden_states[this_inpaint_mask] - .detach() - .clone() - .view(hidden_states.shape[0], hidden_states.shape[1], -1, 1) - ) - var, mean = torch.var_mean( - masked_hidden_states, dim=(2, 3), keepdim=True, correction=0 - ) - std = torch.maximum( - var, torch.zeros_like(var) + eps) ** 0.5 - mean_acc = sum(self.mean_bank[i]) / float( - len(self.mean_bank[i]) - ) - var_acc = sum( - self.var_bank[i]) / float(len(self.var_bank[i])) - std_acc = ( - torch.maximum( - var_acc, torch.zeros_like(var_acc) + eps) - ** 0.5 - ) - hidden_states_uc = ( - ((masked_hidden_states - mean) / std) * std_acc - ) + mean_acc - hidden_states_c = hidden_states_uc.clone() - if self.do_classifier_free_guidance and self.style_fidelity > 0: - hidden_states_c[self.uc_mask] = masked_hidden_states[self.uc_mask] - masked_hidden_states = ( - self.style_fidelity * hidden_states_c - + (1.0 - self.style_fidelity) * hidden_states_uc - ) - hidden_states[this_inpaint_mask] = masked_hidden_states.view( - -1) - - output_states = output_states + (hidden_states,) - - if self.MODE == "read": - self.mean_bank = [] - self.var_bank = [] - - if self.downsamplers is not None: - for downsampler in self.downsamplers: - hidden_states = downsampler(hidden_states) - - output_states = output_states + (hidden_states,) - - return hidden_states, output_states - - def hacked_CrossAttnUpBlock2D_forward( - self, - hidden_states: torch.FloatTensor, - res_hidden_states_tuple: Tuple[torch.FloatTensor, ...], - temb: Optional[torch.FloatTensor] = None, - encoder_hidden_states: Optional[torch.FloatTensor] = None, - cross_attention_kwargs: Optional[Dict[str, Any]] = None, - upsample_size: Optional[int] = None, - attention_mask: Optional[torch.FloatTensor] = None, - encoder_attention_mask: Optional[torch.FloatTensor] = None, - ): - eps = 1e-6 - # TODO(Patrick, William) - attention mask is not used - for i, (resnet, attn) in enumerate(zip(self.resnets, self.attentions)): - # pop res hidden states - res_hidden_states = res_hidden_states_tuple[-1] - res_hidden_states_tuple = res_hidden_states_tuple[:-1] - hidden_states = torch.cat( - [hidden_states, res_hidden_states], dim=1) - hidden_states = resnet(hidden_states, temb) - - if self.MODE == "write": - if self.gn_auto_machine_weight >= self.gn_weight: - # var, mean = torch.var_mean(hidden_states, dim=(2, 3), keepdim=True, correction=0) - # mask var mean - scale_ratio = self.ref_mask.shape[2] / \ - hidden_states.shape[2] - this_ref_mask = F.interpolate( - self.ref_mask.to(hidden_states.device), - scale_factor=1 / scale_ratio, - ) - this_ref_mask = this_ref_mask.repeat( - hidden_states.shape[0], hidden_states.shape[1], 1, 1 - ).bool() - masked_hidden_states = ( - hidden_states[this_ref_mask] - .detach() - .clone() - .view(hidden_states.shape[0], hidden_states.shape[1], -1, 1) - ) - var, mean = torch.var_mean( - masked_hidden_states, dim=(2, 3), keepdim=True, correction=0 - ) - self.mean_bank0.append(mean) - self.var_bank0.append(var) - if self.MODE == "read": - if ( - self.gn_auto_machine_weight >= self.gn_weight - and len(self.mean_bank0) > 0 - and len(self.var_bank0) > 0 - ): - # print("hacked_CrossAttnUpBlock2D_forward1") - scale_ratio = self.inpaint_mask.shape[2] / \ - hidden_states.shape[2] - this_inpaint_mask = F.interpolate( - self.inpaint_mask.to(hidden_states.device), scale_factor=1 / scale_ratio - ) - this_inpaint_mask = this_inpaint_mask.repeat( - hidden_states.shape[0], hidden_states.shape[1], 1, 1 - ).bool() - masked_hidden_states = ( - hidden_states[this_inpaint_mask] - .detach() - .clone() - .view(hidden_states.shape[0], hidden_states.shape[1], -1, 1) - ) - var, mean = torch.var_mean( - masked_hidden_states, dim=(2, 3), keepdim=True, correction=0 - ) - std = torch.maximum( - var, torch.zeros_like(var) + eps) ** 0.5 - mean_acc = sum(self.mean_bank0[i]) / float( - len(self.mean_bank0[i]) - ) - var_acc = sum( - self.var_bank0[i]) / float(len(self.var_bank0[i])) - std_acc = ( - torch.maximum( - var_acc, torch.zeros_like(var_acc) + eps) - ** 0.5 - ) - hidden_states_uc = ( - ((masked_hidden_states - mean) / std) * std_acc - ) + mean_acc - hidden_states_c = hidden_states_uc.clone() - if self.do_classifier_free_guidance and self.style_fidelity > 0: - hidden_states_c[self.uc_mask] = masked_hidden_states[self.uc_mask] - masked_hidden_states = ( - self.style_fidelity * hidden_states_c - + (1.0 - self.style_fidelity) * hidden_states_uc - ) - hidden_states[this_inpaint_mask] = masked_hidden_states.view( - -1) - - hidden_states = attn( - hidden_states, - encoder_hidden_states=encoder_hidden_states, - cross_attention_kwargs=cross_attention_kwargs, - # attention_mask=attention_mask, - # encoder_attention_mask=encoder_attention_mask, - return_dict=False, - )[0] - - if self.MODE == "write": - if self.gn_auto_machine_weight >= self.gn_weight: - # var, mean = torch.var_mean(hidden_states, dim=(2, 3), keepdim=True, correction=0) - # mask var mean - scale_ratio = self.ref_mask.shape[2] / \ - hidden_states.shape[2] - this_ref_mask = F.interpolate( - self.ref_mask.to(hidden_states.device), - scale_factor=1 / scale_ratio, - ) - this_ref_mask = this_ref_mask.repeat( - hidden_states.shape[0], hidden_states.shape[1], 1, 1 - ).bool() - masked_hidden_states = ( - hidden_states[this_ref_mask] - .detach() - .clone() - .view(hidden_states.shape[0], hidden_states.shape[1], -1, 1) - ) - var, mean = torch.var_mean( - masked_hidden_states, dim=(2, 3), keepdim=True, correction=0 - ) - self.mean_bank.append(mean) - self.var_bank.append(var) - if self.MODE == "read": - if ( - self.gn_auto_machine_weight >= self.gn_weight - and len(self.mean_bank) > 0 - and len(self.var_bank) > 0 - ): - # print("hacked_CrossAttnUpBlock2D_forward") - scale_ratio = self.inpaint_mask.shape[2] / \ - hidden_states.shape[2] - this_inpaint_mask = F.interpolate( - self.inpaint_mask.to(hidden_states.device), scale_factor=1 / scale_ratio - ) - this_inpaint_mask = this_inpaint_mask.repeat( - hidden_states.shape[0], hidden_states.shape[1], 1, 1 - ).bool() - masked_hidden_states = ( - hidden_states[this_inpaint_mask] - .detach() - .clone() - .view(hidden_states.shape[0], hidden_states.shape[1], -1, 1) - ) - var, mean = torch.var_mean( - masked_hidden_states, dim=(2, 3), keepdim=True, correction=0 - ) - std = torch.maximum( - var, torch.zeros_like(var) + eps) ** 0.5 - mean_acc = sum(self.mean_bank[i]) / float( - len(self.mean_bank[i]) - ) - var_acc = sum( - self.var_bank[i]) / float(len(self.var_bank[i])) - std_acc = ( - torch.maximum( - var_acc, torch.zeros_like(var_acc) + eps) - ** 0.5 - ) - hidden_states_uc = ( - ((masked_hidden_states - mean) / std) * std_acc - ) + mean_acc - hidden_states_c = hidden_states_uc.clone() - if self.do_classifier_free_guidance and self.style_fidelity > 0: - hidden_states_c[self.uc_mask] = masked_hidden_states[self.uc_mask] - masked_hidden_states = ( - self.style_fidelity * hidden_states_c - + (1.0 - self.style_fidelity) * hidden_states_uc - ) - hidden_states[this_inpaint_mask] = masked_hidden_states.view( - -1) - - if self.MODE == "read": - self.mean_bank0 = [] - self.var_bank0 = [] - self.mean_bank = [] - self.var_bank = [] - - if self.upsamplers is not None: - for upsampler in self.upsamplers: - hidden_states = upsampler(hidden_states, upsample_size) - - return hidden_states - - def hacked_UpBlock2D_forward( - self, hidden_states, res_hidden_states_tuple, temb=None, upsample_size=None - ): - eps = 1e-6 - for i, resnet in enumerate(self.resnets): - # pop res hidden states - res_hidden_states = res_hidden_states_tuple[-1] - res_hidden_states_tuple = res_hidden_states_tuple[:-1] - hidden_states = torch.cat( - [hidden_states, res_hidden_states], dim=1) - hidden_states = resnet(hidden_states, temb) - - if self.MODE == "write": - if self.gn_auto_machine_weight >= self.gn_weight: - # var, mean = torch.var_mean(hidden_states, dim=(2, 3), keepdim=True, correction=0) - # mask var mean - scale_ratio = self.ref_mask.shape[2] / \ - hidden_states.shape[2] - this_ref_mask = F.interpolate( - self.ref_mask.to(hidden_states.device), - scale_factor=1 / scale_ratio, - ) - this_ref_mask = this_ref_mask.repeat( - hidden_states.shape[0], hidden_states.shape[1], 1, 1 - ).bool() - masked_hidden_states = ( - hidden_states[this_ref_mask] - .detach() - .clone() - .view(hidden_states.shape[0], hidden_states.shape[1], -1, 1) - ) - var, mean = torch.var_mean( - masked_hidden_states, dim=(2, 3), keepdim=True, correction=0 - ) - self.mean_bank.append(mean) - self.var_bank.append(var) - if self.MODE == "read": - if ( - self.gn_auto_machine_weight >= self.gn_weight - and len(self.mean_bank) > 0 - and len(self.var_bank) > 0 - ): - # print("hacked_UpBlock2D_forward") - scale_ratio = self.inpaint_mask.shape[2] / \ - hidden_states.shape[2] - this_inpaint_mask = F.interpolate( - self.inpaint_mask.to(hidden_states.device), scale_factor=1 / scale_ratio - ) - this_inpaint_mask = this_inpaint_mask.repeat( - hidden_states.shape[0], hidden_states.shape[1], 1, 1 - ).bool() - masked_hidden_states = ( - hidden_states[this_inpaint_mask] - .detach() - .clone() - .view(hidden_states.shape[0], hidden_states.shape[1], -1, 1) - ) - var, mean = torch.var_mean( - masked_hidden_states, dim=(2, 3), keepdim=True, correction=0 - ) - std = torch.maximum( - var, torch.zeros_like(var) + eps) ** 0.5 - mean_acc = sum(self.mean_bank[i]) / float( - len(self.mean_bank[i]) - ) - var_acc = sum( - self.var_bank[i]) / float(len(self.var_bank[i])) - std_acc = ( - torch.maximum( - var_acc, torch.zeros_like(var_acc) + eps) - ** 0.5 - ) - hidden_states_uc = ( - ((masked_hidden_states - mean) / std) * std_acc - ) + mean_acc - hidden_states_c = hidden_states_uc.clone() - if self.do_classifier_free_guidance and self.style_fidelity > 0: - hidden_states_c[self.uc_mask] = masked_hidden_states[self.uc_mask] - masked_hidden_states = ( - self.style_fidelity * hidden_states_c - + (1.0 - self.style_fidelity) * hidden_states_uc - ) - hidden_states[this_inpaint_mask] = masked_hidden_states.view( - -1) - - if self.MODE == "read": - self.mean_bank = [] - self.var_bank = [] - - if self.upsamplers is not None: - for upsampler in self.upsamplers: - hidden_states = upsampler(hidden_states, upsample_size) - - return hidden_states - - if model_type == "unet": - - if reference_attn: - attn_modules = [ - module - for module in torch_dfs(model) - if isinstance(module, BasicTransformerBlock) - ] - attn_modules = sorted( - attn_modules, key=lambda x: -x.norm1.normalized_shape[0] - ) - - for i, module in enumerate(attn_modules): - module._original_inner_forward = module.forward - module.forward = hacked_basic_transformer_inner_forward.__get__( - module, BasicTransformerBlock - ) - module.bank = [] - module.attn_weight = float(i) / float(len(attn_modules)) - module.attention_auto_machine_weight = ( - self.attention_auto_machine_weight - ) - module.gn_auto_machine_weight = self.gn_auto_machine_weight - module.do_classifier_free_guidance = ( - self.do_classifier_free_guidance - ) - module.do_classifier_free_guidance = ( - self.do_classifier_free_guidance - ) - module.uc_mask = self.uc_mask - module.style_fidelity = self.style_fidelity - module.ref_mask = self.ref_mask - else: - attn_modules = None - if reference_adain: - gn_modules = [model.mid_block] - model.mid_block.gn_weight = 0 - - down_blocks = model.down_blocks - for w, module in enumerate(down_blocks): - module.gn_weight = 1.0 - float(w) / float(len(down_blocks)) - gn_modules.append(module) - # print(module.__class__.__name__,module.gn_weight) - - up_blocks = model.up_blocks - for w, module in enumerate(up_blocks): - module.gn_weight = float(w) / float(len(up_blocks)) - gn_modules.append(module) - # print(module.__class__.__name__,module.gn_weight) - - for i, module in enumerate(gn_modules): - if getattr(module, "original_forward", None) is None: - module.original_forward = module.forward - if i == 0: - # mid_block - module.forward = hacked_mid_forward.__get__( - module, torch.nn.Module - ) - elif isinstance(module, CrossAttnDownBlock2D): - module.forward = hack_CrossAttnDownBlock2D_forward.__get__( - module, CrossAttnDownBlock2D - ) - module.mean_bank0 = [] - module.var_bank0 = [] - elif isinstance(module, DownBlock2D): - module.forward = hacked_DownBlock2D_forward.__get__( - module, DownBlock2D - ) - # elif isinstance(module, CrossAttnUpBlock2D): - # module.forward = hacked_CrossAttnUpBlock2D_forward.__get__(module, CrossAttnUpBlock2D) - # module.mean_bank0 = [] - # module.var_bank0 = [] - elif isinstance(module, UpBlock2D): - module.forward = hacked_UpBlock2D_forward.__get__( - module, UpBlock2D - ) - module.mean_bank0 = [] - module.var_bank0 = [] - module.mean_bank = [] - module.var_bank = [] - module.attention_auto_machine_weight = ( - self.attention_auto_machine_weight - ) - module.gn_auto_machine_weight = self.gn_auto_machine_weight - module.do_classifier_free_guidance = ( - self.do_classifier_free_guidance - ) - module.do_classifier_free_guidance = ( - self.do_classifier_free_guidance - ) - module.uc_mask = self.uc_mask - module.style_fidelity = self.style_fidelity - module.ref_mask = self.ref_mask - module.inpaint_mask = self.inpaint_mask - else: - gn_modules = None - elif model_type == "controlnet": - model = model.nets[-1] # only hack the inpainting controlnet - if reference_attn: - attn_modules = [ - module - for module in torch_dfs(model) - if isinstance(module, BasicTransformerBlock) - ] - attn_modules = sorted( - attn_modules, key=lambda x: -x.norm1.normalized_shape[0] - ) - for i, module in enumerate(attn_modules): - module._original_inner_forward = module.forward - module.forward = hacked_basic_transformer_inner_forward.__get__( - module, BasicTransformerBlock - ) - module.bank = [] - # float(i) / float(len(attn_modules)) - module.attn_weight = 0.0 - module.attention_auto_machine_weight = ( - self.attention_auto_machine_weight - ) - module.gn_auto_machine_weight = self.gn_auto_machine_weight - module.do_classifier_free_guidance = ( - self.do_classifier_free_guidance - ) - module.do_classifier_free_guidance = ( - self.do_classifier_free_guidance - ) - module.uc_mask = self.uc_mask - module.style_fidelity = self.style_fidelity - module.ref_mask = self.ref_mask - else: - attn_modules = None - gn_modules = None - - return attn_modules, gn_modules - - def change_module_mode(self, mode, attn_modules, gn_modules): - if attn_modules is not None: - for i, module in enumerate(attn_modules): - module.MODE = mode - if gn_modules is not None: - for i, module in enumerate(gn_modules): - module.MODE = mode diff --git a/spaces/shi-labs/Matting-Anything/utils/copy_data.py b/spaces/shi-labs/Matting-Anything/utils/copy_data.py deleted file mode 100644 index 44a81926af41d8c5aa8c83aca5af596e3e6b1f5f..0000000000000000000000000000000000000000 --- a/spaces/shi-labs/Matting-Anything/utils/copy_data.py +++ /dev/null @@ -1,24 +0,0 @@ -import os -from shutil import copyfile -#copyfile(src, dst) - -### list based on https://github.com/senguptaumd/Background-Matting/blob/master/Data_adobe/train_data_list.txt -train_list = open('train_data_list.txt').read().splitlines() - -### training -src_fg_path = '/export/ccvl12b/qihang/MGMatting/data/Combined_Dataset/Training_set/fg/' -src_alpha_path = '/export/ccvl12b/qihang/MGMatting/data/Combined_Dataset/Training_set/alpha/' - -dst_fg_path = '/export/ccvl12b/qihang/MGMatting/data/Combined_Dataset_Solid/Training_set/fg/' -dst_alpha_path = '/export/ccvl12b/qihang/MGMatting/data/Combined_Dataset_Solid/Training_set/alpha/' - -if not os.path.exists(dst_fg_path): - os.makedirs(dst_fg_path) -if not os.path.exists(dst_alpha_path): - os.makedirs(dst_alpha_path) - -for f in train_list: - copyfile(src_fg_path + f, dst_fg_path + f) - copyfile(src_alpha_path + f, dst_alpha_path + f) - - diff --git a/spaces/sidharthism/fashion-eye/netdissect/upsegmodel/resnext.py b/spaces/sidharthism/fashion-eye/netdissect/upsegmodel/resnext.py deleted file mode 100644 index 4c618c9da5be17feb975833532e19474fca82dba..0000000000000000000000000000000000000000 --- a/spaces/sidharthism/fashion-eye/netdissect/upsegmodel/resnext.py +++ /dev/null @@ -1,183 +0,0 @@ -import os -import sys -import torch -import torch.nn as nn -import math -try: - from lib.nn import SynchronizedBatchNorm2d -except ImportError: - from torch.nn import BatchNorm2d as SynchronizedBatchNorm2d - -try: - from urllib import urlretrieve -except ImportError: - from urllib.request import urlretrieve - - -__all__ = ['ResNeXt', 'resnext101'] # support resnext 101 - - -model_urls = { - #'resnext50': 'http://sceneparsing.csail.mit.edu/model/pretrained_resnet/resnext50-imagenet.pth', - 'resnext101': 'http://sceneparsing.csail.mit.edu/model/pretrained_resnet/resnext101-imagenet.pth' -} - - -def conv3x3(in_planes, out_planes, stride=1): - "3x3 convolution with padding" - return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride, - padding=1, bias=False) - - -class GroupBottleneck(nn.Module): - expansion = 2 - - def __init__(self, inplanes, planes, stride=1, groups=1, downsample=None): - super(GroupBottleneck, self).__init__() - self.conv1 = nn.Conv2d(inplanes, planes, kernel_size=1, bias=False) - self.bn1 = SynchronizedBatchNorm2d(planes) - self.conv2 = nn.Conv2d(planes, planes, kernel_size=3, stride=stride, - padding=1, groups=groups, bias=False) - self.bn2 = SynchronizedBatchNorm2d(planes) - self.conv3 = nn.Conv2d(planes, planes * 2, kernel_size=1, bias=False) - self.bn3 = SynchronizedBatchNorm2d(planes * 2) - self.relu = nn.ReLU(inplace=True) - self.downsample = downsample - self.stride = stride - - def forward(self, x): - residual = x - - out = self.conv1(x) - out = self.bn1(out) - out = self.relu(out) - - out = self.conv2(out) - out = self.bn2(out) - out = self.relu(out) - - out = self.conv3(out) - out = self.bn3(out) - - if self.downsample is not None: - residual = self.downsample(x) - - out += residual - out = self.relu(out) - - return out - - -class ResNeXt(nn.Module): - - def __init__(self, block, layers, groups=32, num_classes=1000): - self.inplanes = 128 - super(ResNeXt, self).__init__() - self.conv1 = conv3x3(3, 64, stride=2) - self.bn1 = SynchronizedBatchNorm2d(64) - self.relu1 = nn.ReLU(inplace=True) - self.conv2 = conv3x3(64, 64) - self.bn2 = SynchronizedBatchNorm2d(64) - self.relu2 = nn.ReLU(inplace=True) - self.conv3 = conv3x3(64, 128) - self.bn3 = SynchronizedBatchNorm2d(128) - self.relu3 = nn.ReLU(inplace=True) - self.maxpool = nn.MaxPool2d(kernel_size=3, stride=2, padding=1) - - self.layer1 = self._make_layer(block, 128, layers[0], groups=groups) - self.layer2 = self._make_layer(block, 256, layers[1], stride=2, groups=groups) - self.layer3 = self._make_layer(block, 512, layers[2], stride=2, groups=groups) - self.layer4 = self._make_layer(block, 1024, layers[3], stride=2, groups=groups) - self.avgpool = nn.AvgPool2d(7, stride=1) - self.fc = nn.Linear(1024 * block.expansion, num_classes) - - for m in self.modules(): - if isinstance(m, nn.Conv2d): - n = m.kernel_size[0] * m.kernel_size[1] * m.out_channels // m.groups - m.weight.data.normal_(0, math.sqrt(2. / n)) - elif isinstance(m, SynchronizedBatchNorm2d): - m.weight.data.fill_(1) - m.bias.data.zero_() - - def _make_layer(self, block, planes, blocks, stride=1, groups=1): - downsample = None - if stride != 1 or self.inplanes != planes * block.expansion: - downsample = nn.Sequential( - nn.Conv2d(self.inplanes, planes * block.expansion, - kernel_size=1, stride=stride, bias=False), - SynchronizedBatchNorm2d(planes * block.expansion), - ) - - layers = [] - layers.append(block(self.inplanes, planes, stride, groups, downsample)) - self.inplanes = planes * block.expansion - for i in range(1, blocks): - layers.append(block(self.inplanes, planes, groups=groups)) - - return nn.Sequential(*layers) - - def forward(self, x): - x = self.relu1(self.bn1(self.conv1(x))) - x = self.relu2(self.bn2(self.conv2(x))) - x = self.relu3(self.bn3(self.conv3(x))) - x = self.maxpool(x) - - x = self.layer1(x) - x = self.layer2(x) - x = self.layer3(x) - x = self.layer4(x) - - x = self.avgpool(x) - x = x.view(x.size(0), -1) - x = self.fc(x) - - return x - - -''' -def resnext50(pretrained=False, **kwargs): - """Constructs a ResNet-50 model. - - Args: - pretrained (bool): If True, returns a model pre-trained on Places - """ - model = ResNeXt(GroupBottleneck, [3, 4, 6, 3], **kwargs) - if pretrained: - model.load_state_dict(load_url(model_urls['resnext50']), strict=False) - return model -''' - - -def resnext101(pretrained=False, **kwargs): - """Constructs a ResNet-101 model. - - Args: - pretrained (bool): If True, returns a model pre-trained on Places - """ - model = ResNeXt(GroupBottleneck, [3, 4, 23, 3], **kwargs) - if pretrained: - model.load_state_dict(load_url(model_urls['resnext101']), strict=False) - return model - - -# def resnext152(pretrained=False, **kwargs): -# """Constructs a ResNeXt-152 model. -# -# Args: -# pretrained (bool): If True, returns a model pre-trained on Places -# """ -# model = ResNeXt(GroupBottleneck, [3, 8, 36, 3], **kwargs) -# if pretrained: -# model.load_state_dict(load_url(model_urls['resnext152'])) -# return model - - -def load_url(url, model_dir='./pretrained', map_location=None): - if not os.path.exists(model_dir): - os.makedirs(model_dir) - filename = url.split('/')[-1] - cached_file = os.path.join(model_dir, filename) - if not os.path.exists(cached_file): - sys.stderr.write('Downloading: "{}" to {}\n'.format(url, cached_file)) - urlretrieve(url, cached_file) - return torch.load(cached_file, map_location=map_location) diff --git a/spaces/simonduerr/ProteinMPNN/ProteinMPNN/colab_notebooks/README.md b/spaces/simonduerr/ProteinMPNN/ProteinMPNN/colab_notebooks/README.md deleted file mode 100644 index 894645f04740b0dc56805ab58ad2df0556fe29a2..0000000000000000000000000000000000000000 --- a/spaces/simonduerr/ProteinMPNN/ProteinMPNN/colab_notebooks/README.md +++ /dev/null @@ -1 +0,0 @@ -Open In Colab diff --git a/spaces/simonduerr/ProteinMPNN/af_backprop/alphafold/data/tools/hmmbuild.py b/spaces/simonduerr/ProteinMPNN/af_backprop/alphafold/data/tools/hmmbuild.py deleted file mode 100644 index f3c573047450f5f17e791ad9a54f1b436e71b095..0000000000000000000000000000000000000000 --- a/spaces/simonduerr/ProteinMPNN/af_backprop/alphafold/data/tools/hmmbuild.py +++ /dev/null @@ -1,138 +0,0 @@ -# Copyright 2021 DeepMind Technologies Limited -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""A Python wrapper for hmmbuild - construct HMM profiles from MSA.""" - -import os -import re -import subprocess - -from absl import logging -from alphafold.data.tools import utils -# Internal import (7716). - - -class Hmmbuild(object): - """Python wrapper of the hmmbuild binary.""" - - def __init__(self, - *, - binary_path: str, - singlemx: bool = False): - """Initializes the Python hmmbuild wrapper. - - Args: - binary_path: The path to the hmmbuild executable. - singlemx: Whether to use --singlemx flag. If True, it forces HMMBuild to - just use a common substitution score matrix. - - Raises: - RuntimeError: If hmmbuild binary not found within the path. - """ - self.binary_path = binary_path - self.singlemx = singlemx - - def build_profile_from_sto(self, sto: str, model_construction='fast') -> str: - """Builds a HHM for the aligned sequences given as an A3M string. - - Args: - sto: A string with the aligned sequences in the Stockholm format. - model_construction: Whether to use reference annotation in the msa to - determine consensus columns ('hand') or default ('fast'). - - Returns: - A string with the profile in the HMM format. - - Raises: - RuntimeError: If hmmbuild fails. - """ - return self._build_profile(sto, model_construction=model_construction) - - def build_profile_from_a3m(self, a3m: str) -> str: - """Builds a HHM for the aligned sequences given as an A3M string. - - Args: - a3m: A string with the aligned sequences in the A3M format. - - Returns: - A string with the profile in the HMM format. - - Raises: - RuntimeError: If hmmbuild fails. - """ - lines = [] - for line in a3m.splitlines(): - if not line.startswith('>'): - line = re.sub('[a-z]+', '', line) # Remove inserted residues. - lines.append(line + '\n') - msa = ''.join(lines) - return self._build_profile(msa, model_construction='fast') - - def _build_profile(self, msa: str, model_construction: str = 'fast') -> str: - """Builds a HMM for the aligned sequences given as an MSA string. - - Args: - msa: A string with the aligned sequences, in A3M or STO format. - model_construction: Whether to use reference annotation in the msa to - determine consensus columns ('hand') or default ('fast'). - - Returns: - A string with the profile in the HMM format. - - Raises: - RuntimeError: If hmmbuild fails. - ValueError: If unspecified arguments are provided. - """ - if model_construction not in {'hand', 'fast'}: - raise ValueError(f'Invalid model_construction {model_construction} - only' - 'hand and fast supported.') - - with utils.tmpdir_manager(base_dir='/tmp') as query_tmp_dir: - input_query = os.path.join(query_tmp_dir, 'query.msa') - output_hmm_path = os.path.join(query_tmp_dir, 'output.hmm') - - with open(input_query, 'w') as f: - f.write(msa) - - cmd = [self.binary_path] - # If adding flags, we have to do so before the output and input: - - if model_construction == 'hand': - cmd.append(f'--{model_construction}') - if self.singlemx: - cmd.append('--singlemx') - cmd.extend([ - '--amino', - output_hmm_path, - input_query, - ]) - - logging.info('Launching subprocess %s', cmd) - process = subprocess.Popen(cmd, stdout=subprocess.PIPE, - stderr=subprocess.PIPE) - - with utils.timing('hmmbuild query'): - stdout, stderr = process.communicate() - retcode = process.wait() - logging.info('hmmbuild stdout:\n%s\n\nstderr:\n%s\n', - stdout.decode('utf-8'), stderr.decode('utf-8')) - - if retcode: - raise RuntimeError('hmmbuild failed\nstdout:\n%s\n\nstderr:\n%s\n' - % (stdout.decode('utf-8'), stderr.decode('utf-8'))) - - with open(output_hmm_path, encoding='utf-8') as f: - hmm = f.read() - - return hmm diff --git a/spaces/simple0urra/skops-model-card-creator-2a23515a-d54e-4804-b365-27ed6e938735/example/Discover the Secrets of the Runes in Rune Factory 5 PC.md b/spaces/simple0urra/skops-model-card-creator-2a23515a-d54e-4804-b365-27ed6e938735/example/Discover the Secrets of the Runes in Rune Factory 5 PC.md deleted file mode 100644 index 01e6b77a8c725303e9da4be7f5bb12840d9f15b8..0000000000000000000000000000000000000000 --- a/spaces/simple0urra/skops-model-card-creator-2a23515a-d54e-4804-b365-27ed6e938735/example/Discover the Secrets of the Runes in Rune Factory 5 PC.md +++ /dev/null @@ -1,190 +0,0 @@ - -

        How to Download Rune Factory 5 PC

        -

        If you are looking for a game that combines farming, combat, crafting, dating, and exploration in a fantasy world, then you might want to check out Rune Factory 5. This game is the latest entry in the popular Rune Factory series, which is a spin-off of the Harvest Moon franchise. In this article, we will show you how to download Rune Factory 5 PC, and give you some useful information and tips on how to play and enjoy this game.

        -

        What is Rune Factory 5?

        -

        Rune Factory 5 is a hybrid action-JRPG and farming sim game developed by Marvelous Inc. and published by XSEED Games. It was released for Nintendo Switch in Japan in May 2021, and for PC via Steam in July 2022. The game follows the story of a young man or woman who joins a peacekeeping organization called SEED in a town called Rigbarth. There, they discover that they have the power to control runes, which are mysterious forces that govern nature. They also meet various characters who become their friends, allies, or potential love interests.

        -

        download rune factory 5 pc


        Download https://ssurll.com/2uNQo8



        -

        The game features a variety of activities that you can do in your daily life. You can grow crops on your farm, tame monsters that can help you with chores or fight by your side, craft items and equipment using materials you gather or buy, date and marry one of the twelve eligible bachelors or bachelorettes in town, explore dungeons and other locations full of enemies and treasures, complete missions for SEED or other NPCs, participate in festivals and events, and more. The game also has a rich story that unfolds as you progress through the main quests and interact with the characters.

        -

        Why Play Rune Factory 5 on PC?

        -

        Rune Factory 5 was originally designed for Nintendo Switch, but it also has a PC version that offers some advantages over the console version. Here are some reasons why you might want to play Rune Factory 5 on PC:

        -
          -
        • Better graphics: The PC version of Rune Factory 5 supports higher resolutions (up to 4K), higher framerates (up to 120 fps or more), and more graphical options than the Switch version. This means that you can enjoy sharper textures, smoother animations, and more detailed environments on your PC.
        • -
        • Better performance: The Switch version of Rune Factory 5 suffers from some performance issues such as low framerates, long loading times, and occasional crashes. The PC version is more stable and optimized for different hardware configurations. You can also tweak the settings to suit your preferences and

          system requirements. You can also use mods or cheats to enhance your gameplay experience.

        • -
        • Better controls: The PC version of Rune Factory 5 supports both keyboard and mouse and gamepad controls. You can customize the key bindings and sensitivity to your liking. You can also use the mouse to navigate the menus and the UI more easily. The gamepad controls are similar to the Switch version, but you can also use other controllers such as Xbox or PlayStation ones.
        • -
        • Better accessibility: The PC version of Rune Factory 5 is more accessible to players who live in regions where the Switch version is not available or is too expensive. You can also play the game on different devices such as laptops or desktops, as long as they meet the minimum requirements. You can also use Steam's features such as cloud saves, achievements, and community forums.
        • -
        -

        Of course, playing Rune Factory 5 on PC also has some drawbacks, such as needing a decent PC to run the game, having to deal with potential bugs or compatibility issues, and missing out on some exclusive features of the Switch version such as touch screen support and amiibo compatibility. Ultimately, the choice is up to you and your personal preference.

        -

        Where to Buy Rune Factory 5 PC?

        -

        If you decide to play Rune Factory 5 on PC, you need to buy the game from a legitimate and authorized platform. The official and recommended platform is Steam, which is a digital distribution service that offers a variety of games and software. You can buy Rune Factory 5 PC from Steam for $59.99 USD, or your regional equivalent. You can also get a 10% discount if you pre-order the game before its release date.

        -

        To buy Rune Factory 5 PC from Steam, you need to have a Steam account and a valid payment method. You can create a Steam account for free by visiting https://store.steampowered.com/join/ and following the instructions. You can also download the Steam client from https://store.steampowered.com/about/ and install it on your PC. Once you have a Steam account and the Steam client, you can buy Rune Factory 5 PC by visiting https://store.steampowered.com/app/1567890/Rune_Factory_5/ and clicking on the "Add to Cart" button. You can then proceed to checkout and pay with your preferred payment method.

        -

        There are also other platforms that sell Rune Factory 5 PC, such as GOG.com, Humble Bundle, Green Man Gaming, and Fanatical. However, these platforms are not officially endorsed by the developers or publishers of the game, and they may not offer the same features or support as Steam. Therefore, we advise you to be careful and do your research before buying from these platforms. Make sure that they are reputable and trustworthy, and that they provide you with a valid Steam key that you can activate on your Steam account.

        -

        How to Install Rune Factory 5 PC?

        -

        After you buy Rune Factory 5 PC from Steam or another platform, you need to install the game on your PC. The installation process is simple and straightforward, but it may take some time depending on your internet speed and PC specifications. Here are the steps to install Rune Factory 5 PC:

        -

        How to download rune factory 5 pc
        -Rune factory 5 pc free download
        -Rune factory 5 pc steam
        -Rune factory 5 pc release date
        -Rune factory 5 pc gameplay
        -Rune factory 5 pc review
        -Rune factory 5 pc system requirements
        -Rune factory 5 pc mods
        -Rune factory 5 pc cheats
        -Rune factory 5 pc trailer
        -Rune factory 5 pc digital deluxe edition
        -Rune factory 5 pc romance options
        -Rune factory 5 pc farming guide
        -Rune factory 5 pc combat tips
        -Rune factory 5 pc fishing guide
        -Rune factory 5 pc cooking guide
        -Rune factory 5 pc crafting guide
        -Rune factory 5 pc mining guide
        -Rune factory 5 pc festival guide
        -Rune factory 5 pc monster guide
        -Rune factory 5 pc marriage guide
        -Rune factory 5 pc children guide
        -Rune factory 5 pc town development guide
        -Rune factory 5 pc seed organization guide
        -Rune factory 5 pc rune mysteries guide
        -Rune factory 5 pc best weapons and armor
        -Rune factory 5 pc best crops and animals
        -Rune factory 5 pc best gifts and requests
        -Rune factory 5 pc best skills and abilities
        -Rune factory 5 pc best friends and allies
        -Rune factory 5 pc secrets and easter eggs
        -Rune factory 5 pc bugs and glitches
        -Rune factory 5 pc updates and patches
        -Rune factory 5 pc DLC and expansions
        -Rune factory 5 pc crossplay and multiplayer
        -Rune factory 5 pc achievements and trophies
        -Rune factory 5 pc screenshots and wallpapers
        -Rune factory 5 pc fan art and cosplay
        -Rune factory 5 pc fan fiction and comics
        -Rune factory 5 pc merchandise and collectibles
        -Download rune factory 4 special for pc
        -Download rune factory frontier for pc
        -Download rune factory oceans for pc
        -Download rune factory tides of destiny for pc
        -Download rune factory a fantasy harvest moon for pc
        -Download rune factory series for pc
        -Download rune factory emulator for pc
        -Download rune factory roms for pc
        -Download rune factory soundtrack for pc
        -Download rune factory wallpapers for pc

        -
          -
        1. Launch the Steam client on your PC and log in with your Steam account.
        2. -
        3. Go to your Library tab and find Rune Factory 5 in your list of games.
        4. -
        5. Click on the game's name and then click on the "Install" button.
        6. -
        7. Select the destination folder where you want to install the game and click on "Next".
        8. -
        9. Wait for the game to download and install on your PC. You can check the progress bar and the estimated time remaining on the bottom of the screen.
        10. -
        11. Once the installation is complete, click on "Play" to launch the game.
        12. -
        -

        Congratulations! You have successfully installed Rune Factory 5 PC on your PC. You are now ready to start your adventure in Rigbarth.

        -

        How to Optimize Rune Factory 5 PC?

        -

        Rune Factory 5 PC is a relatively demanding game that requires a decent PC to run smoothly and look good. However, you can optimize the game's performance and quality by adjusting some graphical options and settings. Here are some tips on how to optimize Rune Factory 5 PC:

        -
          -
        • Check your system requirements: Before you play Rune Factory 5 PC, make sure that your PC meets the minimum or recommended system requirements for the game. You can

          check the system requirements by visiting https://store.steampowered.com/app/1567890/Rune_Factory_5/ and scrolling down to the bottom of the page. If your PC does not meet the minimum requirements, you may experience low framerates, poor graphics, or crashes. If your PC meets or exceeds the recommended requirements, you can enjoy the game at its best quality and performance.

          -
        • Update your drivers: Make sure that your graphics card and sound card drivers are up to date. You can update your drivers by visiting the official website of your hardware manufacturer and downloading the latest version. Updating your drivers can improve your PC's compatibility and stability with the game.
        • -
        • Adjust your settings: You can access the game's settings by launching the game and clicking on the "Options" button on the main menu. You can then choose from various categories such as "Graphics", "Sound", "Controls", and "Language". You can change the settings to suit your preferences and needs. Here are some of the most important settings that affect the game's performance and quality:

          -
            -
          • Resolution: This setting determines the size and clarity of the game's display on your screen. The higher the resolution, the sharper and more detailed the game will look, but it will also consume more resources and lower your framerate. The lower the resolution, the blurrier and less detailed the game will look, but it will also use less resources and increase your framerate. You should choose a resolution that matches your monitor's native resolution, or a lower one if you have a weak PC.
          • -
          • Fullscreen: This setting determines whether the game will run in fullscreen mode or windowed mode. Fullscreen mode means that the game will occupy the entire screen and block out any other applications or programs. Windowed mode means that the game will run in a smaller window that you can resize or move around. Fullscreen mode usually offers better performance and immersion, but it may also cause some compatibility or alt-tabbing issues. Windowed mode usually offers more flexibility and convenience, but it may also cause some distractions or input lag.
          • -
          • V-sync: This setting determines whether the game will synchronize its framerate with your monitor's refresh rate. V-sync is a feature that prevents screen tearing, which is a visual artifact that occurs when the game's framerate does not match your monitor's refresh rate. Screen tearing can make the game look choppy or distorted. V-sync can eliminate screen tearing, but it can also introduce input lag or stuttering. You should enable v-sync if you experience screen tearing, but disable it if you experience input lag or stuttering.
          • -
          • Anti-aliasing: This setting determines whether the game will smooth out the jagged edges of objects and textures in the game. Anti-aliasing is a technique that reduces aliasing, which is a visual artifact that occurs when the game's resolution is not high enough to render smooth curves and lines. Aliasing can make the game look pixelated or jagged. Anti-aliasing can improve the game's appearance, but it can also reduce its performance. You should enable anti-aliasing if you want a smoother and more realistic look, but disable it if you want a faster and more responsive gameplay.
          • -
          • Shadow quality: This setting determines how detailed and realistic the shadows in the game will be. Shadows are effects that simulate how light interacts with objects and surfaces in the game. Shadows can add depth and realism to the game's graphics, but they can also lower its framerate. You should choose a shadow quality that balances between aesthetics and performance.
          • -
          -

          You can experiment with different settings until you find the optimal combination for your PC and preference. You can also use the "Auto" option to let the game automatically adjust the settings based on your PC's capabilities.

          -
        -

        How to Play Rune Factory 5 PC?

        -

        Rune Factory 5 PC is a fun and addictive game that offers a lot of content and variety for you to enjoy. However, it can also be overwhelming and confusing for new players who are not familiar with its mechanics and features. Here are some basic tips on how to play Rune Factory 5 PC:

        -

        Farming

        -

        Farming is one of the core aspects of Rune Factory 5 PC, as it allows you to grow crops, tame monsters, and manage your farm. Farming is not only a source of income, but also a way to improve your skills, relationships, and reputation in town.

        -

        To start farming, you need to have some seeds, tools, and land. You can buy seeds from shops or get them from other sources such as monsters or chests. You can get tools from quests or crafting them yourself. You

        You can use the land on your farm or rent some fields from other NPCs. To plant seeds, you need to till the soil with your hoe, place the seeds on the tilled spots, and water them with your watering can. You can also use fertilizer or magic to enhance your crops' growth and quality. To harvest crops, you need to use your sickle or your hands, depending on the type of crop. You can then sell your crops, use them for cooking or crafting, or give them as gifts.

        -

        To tame monsters, you need to have some monster treats, which you can buy from shops or make yourself. You can also use other items that the monsters like, such as fruits or flowers. To tame a monster, you need to approach it carefully and throw a treat at it. If the monster likes the treat, it will eat it and become friendly. You can then pet it and talk to it until it agrees to join you. You can also fight the monster until it becomes weak and then throw a treat at it. You can then bring the tamed monster to your barn and name it. You can have up to four monsters in your party at a time, and they will help you with farming or combat.

        -

        To manage your farm, you need to take care of your crops and monsters regularly. You also need to upgrade your tools, barn, and house to unlock more features and options. You can also decorate your farm with furniture, plants, and other items. You can also interact with other farmers and join the Farm Association, which will give you access to more fields, seeds, and events.

        -

        Combat

        -

        Combat is another core aspect of Rune Factory 5 PC, as it allows you to fight enemies, use weapons, and unleash link attacks. Combat is not only a source of excitement, but also a way to improve your skills, obtain materials, and advance the story.

        -

        To start combat, you need to have some weapons, armor, and accessories. You can buy them from shops or craft them yourself. You can also get them from other sources such as monsters or chests. You can equip up to two weapons at a time, one for each hand. You can switch between them by pressing the Q key on your keyboard or the Y button on your gamepad. You can also equip armor and accessories that will increase your defense and provide other benefits.

        -

        To fight enemies, you need to use your weapons or magic. You can attack by pressing the left mouse button or the X button on your gamepad. You can also use special skills by pressing the right mouse button or the A button on your gamepad. You can also use magic by pressing the E key on your keyboard or the B button on your gamepad. You can also dodge by pressing the spacebar on your keyboard or the L1 button on your gamepad. You can also block by pressing the shift key on your keyboard or the R1 button on your gamepad.

        -

        To unleash link attacks, you need to have some allies in your party. You can have up to three allies at a time, which can be either monsters or humans. You can switch between them by pressing the 1-4 keys on your keyboard or the D-pad on your gamepad. You can also command them by pressing the F key on your keyboard or the L2 button on your gamepad. You can also link with them by pressing the R key on your keyboard or the R2 button on your gamepad. Linking with an ally will increase your stats and allow you to perform powerful combo attacks.

        -

        Crafting

        -

        Crafting is another core aspect of Rune Factory 5 PC, as it allows you to create items, equipment, and accessories. Crafting is not only a source of creativity, but also a way to improve your skills, customize your gear, and save money.

        -

        To start crafting, you need to have some materials, recipes, and facilities. You can get materials from shops or gather them from nature or enemies. You can get recipes from books or NPCs or learn them by yourself. You can use facilities such as forge, workshop, kitchen, pharmacy

        and laboratory on your farm or in town. To craft an item, you need to select the facility and the recipe, and then add the required materials. You can also add optional materials to enhance the item's quality or effects. You can then confirm the crafting and wait for the result. You can then use the crafted item, equip it, or sell it.

        -

        Dating

        -

        Dating is another core aspect of Rune Factory 5 PC, as it allows you to romance characters, go on dates, and get married. Dating is not only a source of romance, but also a way to improve your relationships, unlock events, and start a family.

        -

        To start dating, you need to have some gifts, dialogues, and events. You can get gifts from shops or make them yourself. You can also use other items that the characters like, such as flowers or food. To date a character, you need to talk to them regularly and give them gifts until you raise their friendship level to at least 7 hearts. You can also trigger events by visiting certain locations or times with them. You can then confess your feelings to them by giving them a ring or a pendant. If they accept, you will become lovers and unlock more events and options.

        -

        To go on dates, you need to have some invitations, locations, and outfits. You can get invitations from your lover or make them yourself. You can also use other items that they like, such as tickets or letters. To go on a date, you need to give an invitation to your lover and choose a location and a time. You can also choose an outfit for yourself and your lover. You can then enjoy the date and interact with your lover by choosing dialogue options or actions. You can also take pictures or selfies with them.

        -

        To get married, you need to have some requirements, preparations, and ceremonies. You need to meet the following requirements to get married: have at least 10 hearts with your lover, have a double bed in your house, have seen all of their events, have completed the main story, and have obtained a marriage license from the church. To prepare for the wedding, you need to choose a date and a venue for the ceremony. You can also invite guests and choose outfits for yourself and your lover. You can then attend the ceremony and exchange vows with your lover. You can also have a honeymoon and move in together.

        -

        Exploration

        -

        Exploration is another core aspect of Rune Factory 5 PC, as it allows you to discover new areas, complete quests, and uncover secrets. Exploration is not only a source of adventure, but also a way to improve your skills, obtain rewards, and learn more about the world.

        -

        To start exploring, you need to have some maps, equipment, and transportation. You can get maps from shops or NPCs or find them in chests or other places. You can use maps to see the layout of the areas and mark points of interest. You can also use equipment such as weapons, armor, accessories

        and items to protect yourself and enhance your abilities. You can also use transportation such as horses, carts, or airships to travel faster and easier. You can get equipment and transportation from shops or crafting them yourself. You can also get them from other sources such as monsters or events.

        -

        To explore areas, you need to use your senses, skills, and tools. You can use your senses to observe the environment and find clues or hints. You can use your skills to overcome obstacles or challenges. You can use your tools to interact with objects or items. You can also use your map to navigate and locate your destination. You can also encounter enemies, NPCs, or events along the way.

        -

        To complete quests, you need to have some objectives, rewards, and reputation. You can get quests from SEED or other NPCs or find them on bulletin boards or other places. You can also create your own quests by using the quest editor. Quests are tasks that require you to do something specific, such as defeating a certain enemy, delivering an item, or finding a person. Quests will give you rewards such as money, items, or experience. Quests will also affect your reputation with SEED or other factions, which will influence how they treat you and what opportunities they offer you.

        -

        To uncover secrets, you need to have some curiosity, intuition, and luck. You can find secrets by exploring hidden paths, solving puzzles, or triggering events. Secrets are things that are not obvious or easy to find, such as secret rooms, hidden chests, or rare items. Secrets will give you surprises such as new information, extra rewards, or special effects.

        -

        How to Troubleshoot Rune Factory 5 PC?

        -

        Rune Factory 5 PC is a complex and sophisticated game that may encounter some issues or errors during its operation. However, you can troubleshoot these problems by following some simple steps and solutions. Here are some of the common issues and errors that may occur in Rune Factory 5 PC, and how to fix them:

        -
          -
        • Game won't launch: This issue may occur if your PC does not meet the system requirements, if your drivers are outdated or corrupted, if your antivirus software is blocking the game, or if the game files are missing or damaged. To fix this issue, you can try the following solutions:

          -
            -
          • Check your system requirements and make sure that your PC meets the minimum or recommended specifications for the game.
          • -
          • Update your drivers and make sure that they are compatible with the game.
          • -
          • Disable your antivirus software temporarily and see if the game launches. If it does, add the game to the exception list of your antivirus software.
          • -
          • Verify the integrity of the game files by right-clicking on the game in your Steam library, selecting "Properties", clicking on the "Local Files" tab, and clicking on the "Verify Integrity of Game Files" button.
          • -
          -

          If none of these solutions work, you may need to reinstall the game or contact the customer support for further assistance.

          -
        • -
        • Game crashes: This issue may occur if your PC is overheating, if your settings are too high for your hardware, if your mods or cheats are conflicting with the game, or if there is a bug or glitch in the game. To fix this issue, you can try the following solutions:

          -
            -
          • Clean your PC and make sure that it is well-ventilated and cool.
          • -
          • Lower your settings and see if the game runs more smoothly and stably.
          • -
          • Disable any mods or cheats that you are using and see if the game works normally.
          • -
          • Update the game to the latest version and see if there are any patches or fixes for the issue.
          • -
          -

          If none of these solutions work, you may need to report the issue to the developers or wait for a future update that addresses it.

          -
        • -
        • Game lags: This issue may occur if your internet connection is slow or unstable

          that are not essential for your PC's functionality. You can also use a cleaner or optimizer tool to remove any junk or temporary files that are slowing down your PC.

        • -
        • Lower your settings and see if the game runs more smoothly and stably. You can also use the "Auto" option to let the game automatically adjust the settings based on your PC's capabilities.
        • -
        • Check the game's network status and see if there are any issues or maintenance with the servers or the online features. You can also contact the customer support or the community forums for more information or help.
        • -
        -

        If none of these solutions work, you may need to upgrade your PC or internet connection to meet the game's requirements or expectations.

        -
      • -
      -

      How to Enjoy Rune Factory 5 PC?

      -

      Rune Factory 5 PC is a game that offers a lot of fun and enjoyment for players who love farming, combat, crafting, dating, and exploration. However, you can also enhance your gameplay experience by following some tips and advice from experts and veterans. Here are some of the best tips, tricks, and advice on how to enjoy Rune Factory 5 PC:

      -
        -
      • Take your time: Rune Factory 5 PC is a game that does not have a strict time limit or deadline. You can play at your own pace and do whatever you want. You do not have to rush through the main story or complete all the quests. You can also skip or ignore any activities or features that you do not like or care about. You can also take breaks and save your progress whenever you want. The game is meant to be relaxing and enjoyable, not stressful or frustrating.
      • -
      • Experiment with different options: Rune Factory 5 PC is a game that offers a lot of choices and possibilities for you to explore. You can try different weapons, skills, items, equipment, and accessories to see what suits your style and preference. You can also try different crops, monsters, recipes, facilities, and decorations to see what works best for your farm. You can also try different characters, dialogues, events, and outfits to see what sparks your interest and romance. You can also try different areas, quests, secrets, and rewards to see what surprises and challenges you.
      • -
      • Interact with other players: Rune Factory 5 PC is a game that supports online multiplayer features that allow you to interact with other players around the world. You can join or host online sessions where you can chat, trade, cooperate, or compete with other players. You can also join or create online communities where you can share your experiences, opinions, tips, screenshots, videos, fan art, fan fiction, or anything related to the game. You can also participate in online events or contests where you can win prizes or recognition.
      • -
      • Have fun: Rune Factory 5 PC is a game that is designed to be fun and entertaining for players of all ages and backgrounds. You do not have to follow any rules or guidelines on how to play the game. You do not have to worry about any consequences or penalties for your actions or decisions. You do not have to compare yourself or compete with other players or standards. You just have to enjoy the game and have fun.
      • -
      -

      Conclusion

      -

      Rune Factory 5 PC is a game that combines farming, combat, crafting, dating, and exploration in a fantasy world. It is a game that offers a lot of content and variety for you to enjoy. It is a game that allows you to download it from Steam or other platforms, install it on your PC, optimize it for your hardware and preference, play it with your skills and tools, troubleshoot it if you encounter any issues or errors, and enjoy it with your choices and options.

      -

      If you are looking for a game that will keep you entertained and engaged for hours on end, then you should definitely try Rune Factory 5 PC. It is a game that will make you feel happy and satisfied with your gaming experience.

      -

      Frequently Asked Questions

      -

      Here are some of the frequently asked questions about Rune Factory 5 PC:

      -
        -
      • Q: How long is Rune Factory 5 PC?
      • -
      • A: Rune Factory 5 PC does not have a fixed length or duration. It depends on how you play the game and what you do in it. However, according to some estimates from players who have completed the game, it takes about 40-60 hours to finish the main story, about 80-100 hours to complete all the quests and events, and about 120-150 hours to do everything in the game.
      • -
      • Q: How many endings are there in Rune Factory 5 PC?
      • -
      • A: Rune Factory 5 PC has two main endings: a normal ending and a true ending. The normal ending is the default ending that you get by completing the main story. The true ending is a secret ending that you get by fulfilling certain conditions, such as having at least 10 hearts with your spouse, having a child, and completing all the town events. There are also different variations of the endings depending on your spouse and your choices.
      • -
      • Q: How many characters can you date in Rune Factory 5 PC?
      • -
      • A: Rune Factory 5 PC has 12 romanceable characters: six male and six female. You can date any of them regardless of your gender, but you can only marry one of them. The male characters are Lucas, Murakumo, Fuuka, Ludmilla, Reinhard, and Martin. The female characters are Scarlett, Beatrice, Lucy, Misasagi, Livia, and Simone.
      • -
      • Q: How can you get more money in Rune Factory 5 PC?
      • -
      • A: Rune Factory 5 PC has several ways to earn money, such as selling crops, items, or equipment, completing quests or missions, participating in festivals or events, or finding treasures or secrets. However, some of the best and fastest ways to get more money are:

        -
          -
        • Growing and selling golden crops, which are rare and valuable crops that you can get by using golden seeds or fertilizer.
        • -
        • Taming and selling rare monsters, which are powerful and unique monsters that you can find in certain dungeons or locations.
        • -
        • Crafting and selling high-quality equipment or accessories, which are enhanced and customized gear that you can make by using rare materials or skills.
        • -
        -
      • -
      • Q: How can you get more runes in Rune Factory 5 PC?
      • -
      • A: Runes are the energy that you use to perform actions such as farming, combat, crafting, or dating. You have a limited amount of runes that you can replenish by resting, eating, or using items. However, some of the best and easiest ways to get more runes are:

        -
          -
        • Using rune flowers, which are special flowers that grow on your farm or in other areas that restore your runes when you walk over them.
        • -
        • Using rune abilities, which are special skills that you can learn from books or NPCs that increase your rune capacity or regeneration.
        • -
        • Using rune stones, which are rare items that you can find in dungeons or other places that grant you a permanent boost to your runes.
        • -
        -
      • -
      -

      I hope this article has helped you learn how to download Rune Factory 5 PC and enjoy it to the fullest. If you have any questions or feedback, please feel free to leave a comment below. Thank you for reading and have fun!

      197e85843d
      -
      -
      \ No newline at end of file diff --git a/spaces/sinz2002/ChuanhuChatGPT/custom.css b/spaces/sinz2002/ChuanhuChatGPT/custom.css deleted file mode 100644 index 5143eb138ea2469d8c457c71cb210fd3fb7cbe15..0000000000000000000000000000000000000000 --- a/spaces/sinz2002/ChuanhuChatGPT/custom.css +++ /dev/null @@ -1,162 +0,0 @@ -:root { - --chatbot-color-light: #F3F3F3; - --chatbot-color-dark: #121111; -} - -/* status_display */ -#status_display { - display: flex; - min-height: 2.5em; - align-items: flex-end; - justify-content: flex-end; -} -#status_display p { - font-size: .85em; - font-family: monospace; - color: var(--body-text-color-subdued); -} - -#chuanhu_chatbot, #status_display { - transition: all 0.6s; -} -/* list */ -ol:not(.options), ul:not(.options) { - padding-inline-start: 2em !important; -} - -/* 亮色 */ -#chuanhu_chatbot { - background-color: var(--chatbot-color-light) !important; -} -[data-testid = "bot"] { - background-color: #FFFFFF !important; -} -[data-testid = "user"] { - background-color: #95EC69 !important; -} -/* 对话气泡 */ -[class *= "message"] { - border-radius: var(--radius-xl) !important; - border: none; - padding: var(--spacing-xl) !important; - font-size: var(--text-md) !important; - line-height: var(--line-md) !important; - min-height: calc(var(--text-md)*var(--line-md) + 2*var(--spacing-xl)); - min-width: calc(var(--text-md)*var(--line-md) + 2*var(--spacing-xl)); -} -[data-testid = "bot"] { - max-width: 85%; - border-bottom-left-radius: 0 !important; -} -[data-testid = "user"] { - max-width: 85%; - width: auto !important; - border-bottom-right-radius: 0 !important; -} -/* 表格 */ -table { - margin: 1em 0; - border-collapse: collapse; - empty-cells: show; -} -td,th { - border: 1.2px solid var(--border-color-primary) !important; - padding: 0.2em; -} -thead { - background-color: rgba(175,184,193,0.2); -} -thead th { - padding: .5em .2em; -} -/* 行内代码 */ -code { - display: inline; - white-space: break-spaces; - border-radius: 6px; - margin: 0 2px 0 2px; - padding: .2em .4em .1em .4em; - background-color: rgba(175,184,193,0.2); -} -/* 代码块 */ -pre code { - display: block; - overflow: auto; - white-space: pre; - background-color: hsla(0, 0%, 0%, 80%)!important; - border-radius: 10px; - padding: 1.4em 1.2em 0em 1.4em; - margin: 1.2em 2em 1.2em 0.5em; - color: #FFF; - box-shadow: 6px 6px 16px hsla(0, 0%, 0%, 0.2); -} -/* 代码高亮样式 */ -.highlight .hll { background-color: #49483e } -.highlight .c { color: #75715e } /* Comment */ -.highlight .err { color: #960050; background-color: #1e0010 } /* Error */ -.highlight .k { color: #66d9ef } /* Keyword */ -.highlight .l { color: #ae81ff } /* Literal */ -.highlight .n { color: #f8f8f2 } /* Name */ -.highlight .o { color: #f92672 } /* Operator */ -.highlight .p { color: #f8f8f2 } /* Punctuation */ -.highlight .ch { color: #75715e } /* Comment.Hashbang */ -.highlight .cm { color: #75715e } /* Comment.Multiline */ -.highlight .cp { color: #75715e } /* Comment.Preproc */ -.highlight .cpf { color: #75715e } /* Comment.PreprocFile */ -.highlight .c1 { color: #75715e } /* Comment.Single */ -.highlight .cs { color: #75715e } /* Comment.Special */ -.highlight .gd { color: #f92672 } /* Generic.Deleted */ -.highlight .ge { font-style: italic } /* Generic.Emph */ -.highlight .gi { color: #a6e22e } /* Generic.Inserted */ -.highlight .gs { font-weight: bold } /* Generic.Strong */ -.highlight .gu { color: #75715e } /* Generic.Subheading */ -.highlight .kc { color: #66d9ef } /* Keyword.Constant */ -.highlight .kd { color: #66d9ef } /* Keyword.Declaration */ -.highlight .kn { color: #f92672 } /* Keyword.Namespace */ -.highlight .kp { color: #66d9ef } /* Keyword.Pseudo */ -.highlight .kr { color: #66d9ef } /* Keyword.Reserved */ -.highlight .kt { color: #66d9ef } /* Keyword.Type */ -.highlight .ld { color: #e6db74 } /* Literal.Date */ -.highlight .m { color: #ae81ff } /* Literal.Number */ -.highlight .s { color: #e6db74 } /* Literal.String */ -.highlight .na { color: #a6e22e } /* Name.Attribute */ -.highlight .nb { color: #f8f8f2 } /* Name.Builtin */ -.highlight .nc { color: #a6e22e } /* Name.Class */ -.highlight .no { color: #66d9ef } /* Name.Constant */ -.highlight .nd { color: #a6e22e } /* Name.Decorator */ -.highlight .ni { color: #f8f8f2 } /* Name.Entity */ -.highlight .ne { color: #a6e22e } /* Name.Exception */ -.highlight .nf { color: #a6e22e } /* Name.Function */ -.highlight .nl { color: #f8f8f2 } /* Name.Label */ -.highlight .nn { color: #f8f8f2 } /* Name.Namespace */ -.highlight .nx { color: #a6e22e } /* Name.Other */ -.highlight .py { color: #f8f8f2 } /* Name.Property */ -.highlight .nt { color: #f92672 } /* Name.Tag */ -.highlight .nv { color: #f8f8f2 } /* Name.Variable */ -.highlight .ow { color: #f92672 } /* Operator.Word */ -.highlight .w { color: #f8f8f2 } /* Text.Whitespace */ -.highlight .mb { color: #ae81ff } /* Literal.Number.Bin */ -.highlight .mf { color: #ae81ff } /* Literal.Number.Float */ -.highlight .mh { color: #ae81ff } /* Literal.Number.Hex */ -.highlight .mi { color: #ae81ff } /* Literal.Number.Integer */ -.highlight .mo { color: #ae81ff } /* Literal.Number.Oct */ -.highlight .sa { color: #e6db74 } /* Literal.String.Affix */ -.highlight .sb { color: #e6db74 } /* Literal.String.Backtick */ -.highlight .sc { color: #e6db74 } /* Literal.String.Char */ -.highlight .dl { color: #e6db74 } /* Literal.String.Delimiter */ -.highlight .sd { color: #e6db74 } /* Literal.String.Doc */ -.highlight .s2 { color: #e6db74 } /* Literal.String.Double */ -.highlight .se { color: #ae81ff } /* Literal.String.Escape */ -.highlight .sh { color: #e6db74 } /* Literal.String.Heredoc */ -.highlight .si { color: #e6db74 } /* Literal.String.Interpol */ -.highlight .sx { color: #e6db74 } /* Literal.String.Other */ -.highlight .sr { color: #e6db74 } /* Literal.String.Regex */ -.highlight .s1 { color: #e6db74 } /* Literal.String.Single */ -.highlight .ss { color: #e6db74 } /* Literal.String.Symbol */ -.highlight .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */ -.highlight .fm { color: #a6e22e } /* Name.Function.Magic */ -.highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */ -.highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */ -.highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */ -.highlight .vm { color: #f8f8f2 } /* Name.Variable.Magic */ -.highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */ diff --git a/spaces/skf15963/summary/fengshen/examples/classification/finetune_classification.py b/spaces/skf15963/summary/fengshen/examples/classification/finetune_classification.py deleted file mode 100644 index 2e643f2fcf560b6c817d22946ad4a6610b647e13..0000000000000000000000000000000000000000 --- a/spaces/skf15963/summary/fengshen/examples/classification/finetune_classification.py +++ /dev/null @@ -1,389 +0,0 @@ -# coding=utf-8 -# Copyright 2021 The IDEA Authors. All rights reserved. - -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# from fengshen.models.zen1 import ZenModel -from dataclasses import dataclass -from fengshen.models.megatron_t5 import T5EncoderModel -from fengshen.models.roformer import RoFormerModel -from fengshen.models.longformer import LongformerModel -# from fengshen.models.cocolm.modeling_cocolm import COCOLMForSequenceClassification -import numpy as np -import os -from tqdm import tqdm -import json -import torch -import pytorch_lightning as pl -import argparse -from pytorch_lightning.callbacks import ModelCheckpoint, EarlyStopping, LearningRateMonitor -from torch.utils.data import Dataset, DataLoader -from torch.utils.data._utils.collate import default_collate -from transformers import ( - BertModel, - BertConfig, - MegatronBertModel, - MegatronBertConfig, - AutoModel, - AutoConfig, - AutoTokenizer, - AutoModelForSequenceClassification, -) -# os.environ["CUDA_VISIBLE_DEVICES"] = '6' - - -model_dict = {'huggingface-bert': BertModel, - 'fengshen-roformer': RoFormerModel, - 'huggingface-megatron_bert': MegatronBertModel, - 'fengshen-megatron_t5': T5EncoderModel, - 'fengshen-longformer': LongformerModel, - # 'fengshen-zen1': ZenModel, - 'huggingface-auto': AutoModelForSequenceClassification, - } - - -class TaskDataset(Dataset): - def __init__(self, data_path, args, label2id): - super().__init__() - self.args = args - self.label2id = label2id - self.max_length = args.max_length - self.data = self.load_data(data_path, args) - - def __len__(self): - return len(self.data) - - def __getitem__(self, index): - return self.data[index] - - def load_data(self, data_path, args): - with open(data_path, 'r', encoding='utf8') as f: - lines = f.readlines() - samples = [] - for line in tqdm(lines): - data = json.loads(line) - text_id = int(data[args.id_name] - ) if args.id_name in data.keys() else 0 - texta = data[args.texta_name] if args.texta_name in data.keys( - ) else '' - textb = data[args.textb_name] if args.textb_name in data.keys( - ) else '' - labels = self.label2id[data[args.label_name] - ] if args.label_name in data.keys() else 0 - samples.append({args.texta_name: texta, args.textb_name: textb, - args.label_name: labels, 'id': text_id}) - return samples - - -@dataclass -class TaskCollator: - args = None - tokenizer = None - - def __call__(self, samples): - sample_list = [] - for item in samples: - if item[self.args.texta_name] != '' and item[self.args.textb_name] != '': - if self.args.model_type != 'fengshen-roformer': - encode_dict = self.tokenizer.encode_plus( - [item[self.args.texta_name], item[self.args.textb_name]], - max_length=self.args.max_length, - padding='max_length', - truncation='longest_first') - else: - encode_dict = self.tokenizer.encode_plus( - [item[self.args.texta_name] + - self.tokenizer.eos_token+item[self.args.textb_name]], - max_length=self.args.max_length, - padding='max_length', - truncation='longest_first') - else: - encode_dict = self.tokenizer.encode_plus( - item[self.args.texta_name], - max_length=self.args.max_length, - padding='max_length', - truncation='longest_first') - sample = {} - for k, v in encode_dict.items(): - sample[k] = torch.tensor(v) - sample['labels'] = torch.tensor(item[self.args.label_name]).long() - sample['id'] = item['id'] - sample_list.append(sample) - return default_collate(sample_list) - - -class TaskDataModel(pl.LightningDataModule): - @staticmethod - def add_data_specific_args(parent_args): - parser = parent_args.add_argument_group('TASK NAME DataModel') - parser.add_argument('--data_dir', default='./data', type=str) - parser.add_argument('--num_workers', default=8, type=int) - parser.add_argument('--train_data', default='train.json', type=str) - parser.add_argument('--valid_data', default='dev.json', type=str) - parser.add_argument('--test_data', default='test.json', type=str) - parser.add_argument('--train_batchsize', default=16, type=int) - parser.add_argument('--valid_batchsize', default=32, type=int) - parser.add_argument('--max_length', default=128, type=int) - - parser.add_argument('--texta_name', default='text', type=str) - parser.add_argument('--textb_name', default='sentence2', type=str) - parser.add_argument('--label_name', default='label', type=str) - parser.add_argument('--id_name', default='id', type=str) - - parser.add_argument('--dataset_name', default=None, type=str) - - return parent_args - - def __init__(self, args): - super().__init__() - self.train_batchsize = args.train_batchsize - self.valid_batchsize = args.valid_batchsize - self.tokenizer = AutoTokenizer.from_pretrained( - args.pretrained_model_path) - self.collator = TaskCollator() - self.collator.args = args - self.collator.tokenizer = self.tokenizer - if args.dataset_name is None: - self.label2id, self.id2label = self.load_schema(os.path.join( - args.data_dir, args.train_data), args) - self.train_data = TaskDataset(os.path.join( - args.data_dir, args.train_data), args, self.label2id) - self.valid_data = TaskDataset(os.path.join( - args.data_dir, args.valid_data), args, self.label2id) - self.test_data = TaskDataset(os.path.join( - args.data_dir, args.test_data), args, self.label2id) - else: - import datasets - ds = datasets.load_dataset(args.dataset_name) - self.train_data = ds['train'] - self.valid_data = ds['validation'] - self.test_data = ds['test'] - self.save_hyperparameters(args) - - def train_dataloader(self): - return DataLoader(self.train_data, shuffle=True, batch_size=self.train_batchsize, pin_memory=False, - collate_fn=self.collator) - - def val_dataloader(self): - return DataLoader(self.valid_data, shuffle=False, batch_size=self.valid_batchsize, pin_memory=False, - collate_fn=self.collator) - - def predict_dataloader(self): - return DataLoader(self.test_data, shuffle=False, batch_size=self.valid_batchsize, pin_memory=False, - collate_fn=self.collator) - - def load_schema(self, data_path, args): - with open(data_path, 'r', encoding='utf8') as f: - lines = f.readlines() - label_list = [] - for line in tqdm(lines): - data = json.loads(line) - labels = data[args.label_name] if args.label_name in data.keys( - ) else 0 - if labels not in label_list: - label_list.append(labels) - - label2id, id2label = {}, {} - for i, k in enumerate(label_list): - label2id[k] = i - id2label[i] = k - return label2id, id2label - - -class taskModel(torch.nn.Module): - def __init__(self, args): - super().__init__() - self.args = args - print('args mode type:', args.model_type) - self.bert_encoder = model_dict[args.model_type].from_pretrained( - args.pretrained_model_path) - self.config = self.bert_encoder.config - self.cls_layer = torch.nn.Linear( - in_features=self.config.hidden_size, out_features=self.args.num_labels) - self.loss_func = torch.nn.CrossEntropyLoss() - - def forward(self, input_ids, attention_mask, token_type_ids, labels=None): - if self.args.model_type == 'fengshen-megatron_t5': - bert_output = self.bert_encoder( - input_ids=input_ids, attention_mask=attention_mask) # (bsz, seq, dim) - encode = bert_output.last_hidden_state[:, 0, :] - else: - bert_output = self.bert_encoder( - input_ids=input_ids, attention_mask=attention_mask, token_type_ids=token_type_ids) # (bsz, seq, dim) - encode = bert_output[1] - logits = self.cls_layer(encode) - if labels is not None: - loss = self.loss_func(logits, labels.view(-1,)) - return loss, logits - else: - return 0, logits - - -class LitModel(pl.LightningModule): - - @staticmethod - def add_model_specific_args(parent_args): - parser = parent_args.add_argument_group('BaseModel') - parser.add_argument('--num_labels', default=2, type=int) - - return parent_args - - def __init__(self, args, num_data): - super().__init__() - self.args = args - self.num_data = num_data - self.model = model_dict[args.model_type].from_pretrained( - args.pretrained_model_path) - self.save_hyperparameters(args) - - def setup(self, stage) -> None: - train_loader = self.trainer._data_connector._train_dataloader_source.dataloader() - - # Calculate total steps - if self.trainer.max_epochs > 0: - world_size = self.trainer.world_size - tb_size = self.hparams.train_batchsize * max(1, world_size) - ab_size = self.trainer.accumulate_grad_batches - self.total_steps = (len(train_loader.dataset) * - self.trainer.max_epochs // tb_size) // ab_size - else: - self.total_steps = self.trainer.max_steps // self.trainer.accumulate_grad_batches - - print('Total steps: {}' .format(self.total_steps)) - - def training_step(self, batch, batch_idx): - del batch['id'] - output = self.model(**batch) - loss, logits = output[0], output[1] - acc = self.comput_metrix(logits, batch['labels']) - self.log('train_loss', loss) - self.log('train_acc', acc) - return loss - - def comput_metrix(self, logits, labels): - y_pred = torch.argmax(logits, dim=-1) - y_pred = y_pred.view(size=(-1,)) - y_true = labels.view(size=(-1,)).float() - corr = torch.eq(y_pred, y_true) - acc = torch.sum(corr.float())/labels.size()[0] - return acc - - def validation_step(self, batch, batch_idx): - del batch['id'] - output = self.model(**batch) - loss, logits = output[0], output[1] - acc = self.comput_metrix(logits, batch['labels']) - self.log('val_loss', loss) - self.log('val_acc', acc, sync_dist=True) - - def predict_step(self, batch, batch_idx): - ids = batch['id'] - del batch['id'] - output = self.model(**batch) - return {ids, output.logits} - - def configure_optimizers(self): - from fengshen.models.model_utils import configure_optimizers - return configure_optimizers(self) - - -class TaskModelCheckpoint: - @staticmethod - def add_argparse_args(parent_args): - parser = parent_args.add_argument_group('BaseModel') - - parser.add_argument('--monitor', default='train_loss', type=str) - parser.add_argument('--mode', default='min', type=str) - parser.add_argument('--dirpath', default='./log/', type=str) - parser.add_argument( - '--filename', default='model-{epoch:02d}-{train_loss:.4f}', type=str) - - parser.add_argument('--save_top_k', default=3, type=float) - parser.add_argument('--every_n_train_steps', default=100, type=float) - parser.add_argument('--save_weights_only', default=True, type=bool) - - return parent_args - - def __init__(self, args): - self.callbacks = ModelCheckpoint(monitor=args.monitor, - save_top_k=args.save_top_k, - mode=args.mode, - every_n_train_steps=args.every_n_train_steps, - save_weights_only=args.save_weights_only, - dirpath=args.dirpath, - every_n_epochs=1, - filename=args.filename) - - -def save_test(data, args, data_model, rank): - file_name = args.output_save_path + f'.{rank}' - with open(file_name, 'w', encoding='utf-8') as f: - idx = 0 - for i in range(len(data)): - ids, batch = data[i] - for id, sample in zip(ids, batch): - tmp_result = dict() - label_id = np.argmax(sample.cpu().numpy()) - tmp_result['id'] = id.item() - tmp_result['label'] = data_model.id2label[label_id] - json_data = json.dumps(tmp_result, ensure_ascii=False) - f.write(json_data+'\n') - idx += 1 - print('save the result to '+file_name) - - -def main(): - pl.seed_everything(42) - - total_parser = argparse.ArgumentParser("TASK NAME") - total_parser.add_argument('--pretrained_model_path', default='', type=str) - total_parser.add_argument('--output_save_path', - default='./predict.json', type=str) - total_parser.add_argument('--model_type', - default='huggingface-bert', type=str) - - # * Args for data preprocessing - total_parser = TaskDataModel.add_data_specific_args(total_parser) - # * Args for training - total_parser = pl.Trainer.add_argparse_args(total_parser) - total_parser = TaskModelCheckpoint.add_argparse_args(total_parser) - - # * Args for base model - from fengshen.models.model_utils import add_module_args - total_parser = add_module_args(total_parser) - total_parser = LitModel.add_model_specific_args(total_parser) - - args = total_parser.parse_args() - print(args.pretrained_model_path) - - checkpoint_callback = TaskModelCheckpoint(args).callbacks - early_stop_callback = EarlyStopping( - monitor="val_acc", min_delta=0.00, patience=5, verbose=False, mode="max") - lr_monitor = LearningRateMonitor(logging_interval='step') - trainer = pl.Trainer.from_argparse_args(args, - callbacks=[ - checkpoint_callback, - lr_monitor, - early_stop_callback] - ) - - data_model = TaskDataModel(args) - model = LitModel(args, len(data_model.train_dataloader())) - - trainer.fit(model, data_model) - result = trainer.predict( - model, data_model, ckpt_path=trainer.checkpoint_callback.best_model_path) - save_test(result, args, data_model, trainer.global_rank) - - -if __name__ == "__main__": - main() diff --git a/spaces/sklearn-docs/Nearest_Neighbor_Regression/README.md b/spaces/sklearn-docs/Nearest_Neighbor_Regression/README.md deleted file mode 100644 index 6f1723139a613525d829f29682aae444c2809ab9..0000000000000000000000000000000000000000 --- a/spaces/sklearn-docs/Nearest_Neighbor_Regression/README.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -title: Nearest Neighbor Regression -emoji: 🏢 -colorFrom: green -colorTo: red -sdk: gradio -sdk_version: 3.29.0 -app_file: app.py -pinned: false -license: apache-2.0 ---- - -Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference diff --git a/spaces/spark-ds549/fal2022-videoanalysis-v2/slowfast.py b/spaces/spark-ds549/fal2022-videoanalysis-v2/slowfast.py deleted file mode 100644 index b438c4344c8583c5e0872b1612582c3dfeddb58a..0000000000000000000000000000000000000000 --- a/spaces/spark-ds549/fal2022-videoanalysis-v2/slowfast.py +++ /dev/null @@ -1,191 +0,0 @@ -import numpy as np -import pandas as pd -import cv2 -import torch -import warnings -from detectron2.config import get_cfg -from detectron2 import model_zoo -from detectron2.engine import DefaultPredictor -import ffmpeg -import pytorchvideo -from pytorchvideo.transforms.functional import ( - uniform_temporal_subsample, - short_side_scale_with_boxes, - clip_boxes_to_image -) -from torchvision.transforms._functional_video import normalize -from pytorchvideo.data.ava import AvaLabeledVideoFramePaths -from pytorchvideo.models.hub import slowfast_r50_detection # Another option is slow_r50_detection -from visualization import VideoVisualizer - - -# This method takes in an image and generates the bounding boxes for people in the image. -def get_person_bboxes(inp_img, predictor): - predictions = predictor(inp_img.cpu().detach().numpy())['instances'].to('cpu') - boxes = predictions.pred_boxes if predictions.has("pred_boxes") else None - scores = predictions.scores if predictions.has("scores") else None - classes = np.array(predictions.pred_classes.tolist() if predictions.has("pred_classes") else None) - predicted_boxes = boxes[np.logical_and(classes==0, scores>0.75 )].tensor.cpu() # only person - return predicted_boxes - - -def ava_inference_transform( - clip, - boxes, - num_frames = 32, # 4 if using slowfast_r50_detection, change this to 32 - crop_size = 256, - data_mean = [0.45, 0.45, 0.45], - data_std = [0.225, 0.225, 0.225], - slow_fast_alpha = 4, # if using slowfast_r50_detection, change None to 4 - device = 'cpu'): - - boxes = np.array(boxes) - ori_boxes = boxes.copy() - - # Image [0, 255] -> [0, 1]. - clip = uniform_temporal_subsample(clip, num_frames) - clip = clip.float() - clip = clip / 255.0 - - height, width = clip.shape[2], clip.shape[3] - # The format of boxes is [x1, y1, x2, y2]. The input boxes are in the - # range of [0, width] for x and [0,height] for y - boxes = clip_boxes_to_image(boxes, height, width) - - # Resize short side to crop_size. Non-local and STRG uses 256. - clip, boxes = short_side_scale_with_boxes(clip, size=crop_size, boxes=boxes) - - # Normalize images by mean and std. - clip = normalize(clip, np.array(data_mean, dtype=np.float32), np.array(data_std, dtype=np.float32)) - - boxes = clip_boxes_to_image(boxes, clip.shape[2], clip.shape[3]) - - # Incase of slowfast, generate both pathways - if slow_fast_alpha is not None: - fast_pathway = clip - # Perform temporal sampling from the fast pathway. - slow_pathway = torch.index_select(clip, 1, torch.linspace( - 0, clip.shape[1] - 1, clip.shape[1] // slow_fast_alpha).long()) - clip = [slow_pathway.unsqueeze(0).to(device), fast_pathway.unsqueeze(0).to(device)] - - return clip, torch.from_numpy(boxes), ori_boxes - -# get video info -def with_opencv(filename): - video = cv2.VideoCapture(filename) - frame_count = video.get(cv2.CAP_PROP_FRAME_COUNT) - fps = video.get(cv2.CAP_PROP_FPS) - s = round(frame_count / fps) - video.release() - return int(s), fps - - -def slow_fast_train(file_path, gpu=False): - device = 'cuda' if gpu else 'cpu' - top_k = 1 - - video_model = slowfast_r50_detection(True) # Another option is slow_r50_detection(True) - video_model = video_model.eval().to(device) - cfg = get_cfg() - cfg.merge_from_file(model_zoo.get_config_file("COCO-Detection/faster_rcnn_R_50_FPN_3x.yaml")) - cfg.MODEL.ROI_HEADS.SCORE_THRESH_TEST = 0.55 # set threshold for this model - cfg.MODEL.WEIGHTS = model_zoo.get_checkpoint_url("COCO-Detection/faster_rcnn_R_50_FPN_3x.yaml") - cfg.MODEL.DEVICE = device - predictor = DefaultPredictor(cfg) - # Create an id to label name mapping - label_map, allowed_class_ids = AvaLabeledVideoFramePaths.read_label_map('ava_action_list.pbtxt') - # Create a video visualizer that can plot bounding boxes and visualize actions on bboxes. - video_visualizer = VideoVisualizer(81, label_map, top_k=top_k, mode="thres",thres=0.5) #get top3 predictions show in each bounding box - - #preprocess video data - encoded_vid = pytorchvideo.data.encoded_video.EncodedVideo.from_path(file_path) - - # Video predictions are generated each frame/second for the wholevideo. - total_sec, fps = with_opencv(file_path) - time_stamp_range = range(0, total_sec) # time stamps in video for which clip is sampled - clip_duration = 1.0 # Duration of clip used for each inference step. - gif_imgs = [] - xleft, ytop, xright, ybottom = [], [], [], [] - labels = [] - time_frame = [] - scores = [] - - for time_stamp in time_stamp_range: - - # Generate clip around the designated time stamps - inp_imgs = encoded_vid.get_clip( - time_stamp - clip_duration/2.0, - time_stamp + clip_duration/2.0) - inp_imgs = inp_imgs['video'] - - #if time_stamp % 15 == 0: - # Generate people bbox predictions using Detectron2's off the self pre-trained predictor - # We use the the middle image in each clip to generate the bounding boxes. - inp_img = inp_imgs[:,inp_imgs.shape[1]//2,:,:] - inp_img = inp_img.permute(1,2,0) - - # Predicted boxes are of the form List[(x_1, y_1, x_2, y_2)] - predicted_boxes = get_person_bboxes(inp_img, predictor) - if len(predicted_boxes) == 0: - print("Skipping clip no frames detected at time stamp: ", time_stamp) - continue - - # Preprocess clip and bounding boxes for video action recognition. - inputs, inp_boxes, _ = ava_inference_transform(inp_imgs, predicted_boxes.numpy(), device=device) - # Prepend data sample id for each bounding box. - # For more details refere to the RoIAlign in Detectron2 - inp_boxes = torch.cat([torch.zeros(inp_boxes.shape[0],1), inp_boxes], dim=1) - - # Generate actions predictions for the bounding boxes in the clip. - # The model here takes in the pre-processed video clip and the detected bounding boxes. - preds = video_model(inputs, inp_boxes.to(device)) #change inputs to inputs.unsqueeze(0).to(device) if using slow_r50 - - preds = preds.to('cpu') - # The model is trained on AVA and AVA labels are 1 indexed so, prepend 0 to convert to 0 index. - preds = torch.cat([torch.zeros(preds.shape[0],1), preds], dim=1) - - # Plot predictions on the video and save for later visualization. - inp_imgs = inp_imgs.permute(1,2,3,0) - inp_imgs = inp_imgs/255.0 - out_img_pred = video_visualizer.draw_clip_range(inp_imgs, preds, predicted_boxes) - gif_imgs += out_img_pred - - #format of bboxes(x_left, y_top, x_right, y_bottom) - predicted_boxes_lst = predicted_boxes.tolist() - topscores, topclasses = torch.topk(preds, k=1) - topscores, topclasses = topscores.tolist(), topclasses.tolist() - topclasses = np.concatenate(topclasses) - topscores = np.concatenate(topscores) - - #add top 1 prediction of behaviors in each time step - for i in range(len(predicted_boxes_lst)): - xleft.append(predicted_boxes_lst[i][0]) - ytop.append(predicted_boxes_lst[i][1]) - xright.append(predicted_boxes_lst[i][2]) - ybottom.append(predicted_boxes_lst[i][3]) - labels.append(label_map.get(topclasses[i])) - time_frame.append(time_stamp) - scores.append(topscores[i]) - - print("Finished generating predictions.") - # Generate Metadata file - metadata = pd.DataFrame() - metadata['frame'] = time_frame - metadata['x_left'] = xleft - metadata['y_top'] = ytop - metadata['x_right'] = xright - metadata['y_bottom'] = ybottom - metadata['label'] = labels - metadata['confidence'] = scores - - height, width = gif_imgs[0].shape[0], gif_imgs[0].shape[1] - video_save_path = 'activity_recognition.mp4' - video = cv2.VideoWriter(video_save_path, cv2.VideoWriter_fourcc(*'mp4v'), int(fps), (width, height)) - - for image in gif_imgs: - img = (255*image).astype(np.uint8) - img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) - video.write(img) - video.release() - - return video_save_path, metadata diff --git a/spaces/sriramelango/Social_Classification_Public/fairseq/examples/textless_nlp/gslm/speech2unit/clustering/quantize_with_kmeans.py b/spaces/sriramelango/Social_Classification_Public/fairseq/examples/textless_nlp/gslm/speech2unit/clustering/quantize_with_kmeans.py deleted file mode 100644 index 2c87445d810cd790f887d1a135287a334cbdf223..0000000000000000000000000000000000000000 --- a/spaces/sriramelango/Social_Classification_Public/fairseq/examples/textless_nlp/gslm/speech2unit/clustering/quantize_with_kmeans.py +++ /dev/null @@ -1,125 +0,0 @@ -# Copyright (c) Facebook, Inc. and its affiliates. -# -# This source code is licensed under the MIT license found in the -# LICENSE file in the root directory of this source tree. - -import argparse -import logging -import os - -import numpy as np - -import joblib -from examples.textless_nlp.gslm.speech2unit.clustering.utils import ( - get_audio_files, -) -from examples.textless_nlp.gslm.speech2unit.pretrained.utils import ( - get_features, -) - - -def get_logger(): - log_format = "[%(asctime)s] [%(levelname)s]: %(message)s" - logging.basicConfig(format=log_format, level=logging.INFO) - logger = logging.getLogger(__name__) - return logger - - -def get_parser(): - parser = argparse.ArgumentParser( - description="Quantize using K-means clustering over acoustic features." - ) - parser.add_argument( - "--feature_type", - type=str, - choices=["logmel", "hubert", "w2v2", "cpc"], - default=None, - required=True, - help="Acoustic feature type", - ) - parser.add_argument( - "--acoustic_model_path", - type=str, - help="Pretrained acoustic model checkpoint" - ) - parser.add_argument( - "--layer", - type=int, - help="The layer of the pretrained model to extract features from", - default=-1, - ) - parser.add_argument( - "--kmeans_model_path", - type=str, - required=True, - help="K-means model file path to use for inference", - ) - parser.add_argument( - "--features_path", - type=str, - default=None, - help="Features file path. You don't need to enter acoustic model details if you have dumped features", - ) - parser.add_argument( - "--manifest_path", - type=str, - default=None, - help="Manifest file containing the root dir and file names", - ) - parser.add_argument( - "--out_quantized_file_path", - required=True, - type=str, - help="File path of quantized output.", - ) - parser.add_argument( - "--extension", type=str, default=".flac", help="Features file path" - ) - return parser - - -def main(args, logger): - # Feature extraction - if args.features_path is not None: - logger.info(f"Loading acoustic features from {args.features_path}...") - features_batch = np.load(args.features_path) - else: - logger.info(f"Extracting {args.feature_type} acoustic features...") - features_batch = get_features( - feature_type=args.feature_type, - checkpoint_path=args.acoustic_model_path, - layer=args.layer, - manifest_path=args.manifest_path, - sample_pct=1.0, - flatten=False, - ) - logger.info( - f"Features extracted for {len(features_batch)} utterances.\n" - ) - logger.info( - f"Dimensionality of representation = {features_batch[0].shape[1]}" - ) - - # K-means model - logger.info(f"Loading K-means model from {args.kmeans_model_path} ...") - kmeans_model = joblib.load(open(args.kmeans_model_path, "rb")) - kmeans_model.verbose = False - - _, fnames, _ = get_audio_files(args.manifest_path) - - os.makedirs(os.path.dirname(args.out_quantized_file_path), exist_ok=True) - print(f"Writing quantized predictions to {args.out_quantized_file_path}") - with open(args.out_quantized_file_path, "w") as fout: - for i, feats in enumerate(features_batch): - pred = kmeans_model.predict(feats) - pred_str = " ".join(str(p) for p in pred) - base_fname = os.path.basename(fnames[i]).rstrip(args.extension) - fout.write(f"{base_fname}|{pred_str}\n") - - -if __name__ == "__main__": - parser = get_parser() - args = parser.parse_args() - logger = get_logger() - logger.info(args) - main(args, logger) diff --git a/spaces/stabilityai/stable-diffusion/share_btn.py b/spaces/stabilityai/stable-diffusion/share_btn.py deleted file mode 100644 index 4c9aa8a91b1d0f86746fb118c19b03df86d424a3..0000000000000000000000000000000000000000 --- a/spaces/stabilityai/stable-diffusion/share_btn.py +++ /dev/null @@ -1,60 +0,0 @@ -community_icon_html = """""" - -loading_icon_html = """""" - -share_js = """async () => { - async function uploadFile(file){ - const UPLOAD_URL = 'https://huggingface.co/uploads'; - const response = await fetch(UPLOAD_URL, { - method: 'POST', - headers: { - 'Content-Type': file.type, - 'X-Requested-With': 'XMLHttpRequest', - }, - body: file, /// <- File inherits from Blob - }); - const url = await response.text(); - return url; - } - const gradioEl = document.querySelector('body > gradio-app'); - const imgEls = gradioEl.querySelectorAll('#gallery img'); - const promptTxt = gradioEl.querySelector('#prompt-text-input input').value; - const shareBtnEl = gradioEl.querySelector('#share-btn'); - const shareIconEl = gradioEl.querySelector('#share-btn-share-icon'); - const loadingIconEl = gradioEl.querySelector('#share-btn-loading-icon'); - if(!imgEls.length){ - return; - }; - shareBtnEl.style.pointerEvents = 'none'; - shareIconEl.style.display = 'none'; - loadingIconEl.style.removeProperty('display'); - const files = await Promise.all( - [...imgEls].map(async (imgEl) => { - const res = await fetch(imgEl.src); - const blob = await res.blob(); - const imgId = Date.now() % 200; - const fileName = `diffuse-the-rest-${{imgId}}.jpg`; - return new File([blob], fileName, { type: 'image/jpeg' }); - }) - ); - const urls = await Promise.all(files.map((f) => uploadFile(f))); - const htmlImgs = urls.map(url => ``); - const descriptionMd = `
      -${htmlImgs.join(`\n`)} -
      `; - const params = new URLSearchParams({ - title: promptTxt, - description: descriptionMd, - }); - const paramsStr = params.toString(); - window.open(`https://huggingface.co/spaces/stabilityai/stable-diffusion/discussions/new?${paramsStr}`, '_blank'); - shareBtnEl.style.removeProperty('pointer-events'); - shareIconEl.style.removeProperty('display'); - loadingIconEl.style.display = 'none'; -}""" \ No newline at end of file diff --git a/spaces/stomexserde/gpt4-ui/Examples/Bhaag Milkha Bhaag Hindi Dubbed 720p Movies.md b/spaces/stomexserde/gpt4-ui/Examples/Bhaag Milkha Bhaag Hindi Dubbed 720p Movies.md deleted file mode 100644 index fea62ab5a4793d6bd67ef9eb3ce80b161e3d748f..0000000000000000000000000000000000000000 --- a/spaces/stomexserde/gpt4-ui/Examples/Bhaag Milkha Bhaag Hindi Dubbed 720p Movies.md +++ /dev/null @@ -1,25 +0,0 @@ -
      -Here is a possible title and article with SEO optimization and HTML formatting for the keyword "Bhaag Milkha Bhaag Hindi Dubbed 720p Movies": - -

      Bhaag Milkha Bhaag Hindi Dubbed 720p Movies: Where to Watch Online?

      - -

      Bhaag Milkha Bhaag is a 2013 biographical sports drama film based on the life of Milkha Singh, one of India's most celebrated athletes. The film stars Farhan Akhtar as Milkha Singh, Sonam Kapoor as his love interest, and Pawan Malhotra as his coach. The film was directed by Rakeysh Omprakash Mehra and written by Prasoon Joshi.

      -

      Bhaag Milkha Bhaag Hindi Dubbed 720p Movies


      DOWNLOADhttps://urlgoal.com/2uI6lc



      - -

      The film chronicles Milkha Singh's journey from being an orphan who survived the partition of India and Pakistan, to becoming a national champion and an Olympian. The film also depicts his personal struggles with trauma, loss, and identity. The film was praised for its performances, direction, cinematography, music, and emotional impact. It was also a commercial success, becoming one of the highest-grossing Indian films of 2013.

      - -

      If you are looking for Bhaag Milkha Bhaag Hindi dubbed 720p movies, you might be wondering where to watch them online. Here are some of the options you can try:

      - -
        -
      • Disney+ Hotstar: This is the official streaming platform for Bhaag Milkha Bhaag. You can watch the film in Hindi with English subtitles, or in other languages like Tamil, Telugu, Malayalam, and Bengali. You will need a subscription to access the film on Disney+ Hotstar.
      • -
      • Masti Moviez365: This is a blog that provides download links for various movies, including Bhaag Milkha Bhaag Hindi dubbed 720p movies. However, this is an illegal and unsafe way to watch the film, as it may contain viruses or malware. We do not recommend using this site or any other similar sites.
      • -
      • Dailymotion: This is a video-sharing platform that hosts user-generated content. You might be able to find some clips or parts of Bhaag Milkha Bhaag Hindi dubbed 720p movies on Dailymotion. However, this is also an unauthorized and unreliable way to watch the film, as it may be incomplete, low-quality, or removed at any time.
      • -
      • Filmywap: This is another website that claims to offer Bhaag Milkha Bhaag Hindi dubbed 720p movies for free download. However, this is also an illegal and risky way to watch the film, as it may violate copyright laws or expose you to harmful content. We do not advise using this site or any other similar sites.
      • -
      - -

      The best and safest way to watch Bhaag Milkha Bhaag Hindi dubbed 720p movies is to use Disney+ Hotstar, which is the official and legal source for the film. You can enjoy the film in high-quality and with subtitles on your preferred device. You can also support the filmmakers and actors by paying for their work.

      -

      - -

      Bhaag Milkha Bhaag is a inspiring and entertaining film that showcases the life and achievements of Milkha Singh, one of India's greatest sports icons. If you are interested in watching Bhaag Milkha Bhaag Hindi dubbed 720p movies online, we hope this article has helped you find the best option for you.

      7196e7f11a
      -
      -
      \ No newline at end of file diff --git a/spaces/stratussox/yolov5_inference/utils/aws/resume.py b/spaces/stratussox/yolov5_inference/utils/aws/resume.py deleted file mode 100644 index b21731c979a121ab8227280351b70d6062efd983..0000000000000000000000000000000000000000 --- a/spaces/stratussox/yolov5_inference/utils/aws/resume.py +++ /dev/null @@ -1,40 +0,0 @@ -# Resume all interrupted trainings in yolov5/ dir including DDP trainings -# Usage: $ python utils/aws/resume.py - -import os -import sys -from pathlib import Path - -import torch -import yaml - -FILE = Path(__file__).resolve() -ROOT = FILE.parents[2] # YOLOv5 root directory -if str(ROOT) not in sys.path: - sys.path.append(str(ROOT)) # add ROOT to PATH - -port = 0 # --master_port -path = Path('').resolve() -for last in path.rglob('*/**/last.pt'): - ckpt = torch.load(last) - if ckpt['optimizer'] is None: - continue - - # Load opt.yaml - with open(last.parent.parent / 'opt.yaml', errors='ignore') as f: - opt = yaml.safe_load(f) - - # Get device count - d = opt['device'].split(',') # devices - nd = len(d) # number of devices - ddp = nd > 1 or (nd == 0 and torch.cuda.device_count() > 1) # distributed data parallel - - if ddp: # multi-GPU - port += 1 - cmd = f'python -m torch.distributed.run --nproc_per_node {nd} --master_port {port} train.py --resume {last}' - else: # single-GPU - cmd = f'python train.py --resume {last}' - - cmd += ' > /dev/null 2>&1 &' # redirect output to dev/null and run in daemon thread - print(cmd) - os.system(cmd) diff --git a/spaces/sub314xxl/MusicGen-Continuation/audiocraft/models/__init__.py b/spaces/sub314xxl/MusicGen-Continuation/audiocraft/models/__init__.py deleted file mode 100644 index 92c7a48a200eba455044cd66e0d2c1efe6494f5c..0000000000000000000000000000000000000000 --- a/spaces/sub314xxl/MusicGen-Continuation/audiocraft/models/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. -# -# This source code is licensed under the license found in the -# LICENSE file in the root directory of this source tree. - -# flake8: noqa -from .musicgen import MusicGen -from .lm import LMModel -from .encodec import CompressionModel, EncodecModel diff --git a/spaces/sub314xxl/MusicGen-Continuation/audiocraft/modules/streaming.py b/spaces/sub314xxl/MusicGen-Continuation/audiocraft/modules/streaming.py deleted file mode 100644 index fdbdf5e90fc0c6560873d66bf273460b38e5ed7e..0000000000000000000000000000000000000000 --- a/spaces/sub314xxl/MusicGen-Continuation/audiocraft/modules/streaming.py +++ /dev/null @@ -1,135 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. -# -# This source code is licensed under the license found in the -# LICENSE file in the root directory of this source tree. - -""" -Streaming module API that should be implemented by all Streaming components, -""" - -from contextlib import contextmanager -import typing as tp -from torch import nn -import torch - - -State = tp.Dict[str, torch.Tensor] - - -class StreamingModule(nn.Module): - """Common API for streaming components. - - Each streaming component has a streaming state, which is just a dict[str, Tensor]. - By convention, the first dim of each tensor must be the batch size. - Don't use dots in the key names, as this would clash with submodules - (like in state_dict). - - If `self._is_streaming` is True, the component should use and remember - the proper state inside `self._streaming_state`. - - To set a streaming component in streaming state, use - - with module.streaming(): - ... - - This will automatically reset the streaming state when exiting the context manager. - This also automatically propagates to all streaming children module. - - Some module might also implement the `StreamingModule.flush` method, although - this one is trickier, as all parents module must be StreamingModule and implement - it as well for it to work properly. See `StreamingSequential` after. - """ - def __init__(self) -> None: - super().__init__() - self._streaming_state: State = {} - self._is_streaming = False - - def _apply_named_streaming(self, fn: tp.Any): - for name, module in self.named_modules(): - if isinstance(module, StreamingModule): - fn(name, module) - - def _set_streaming(self, streaming: bool): - def _set_streaming(name, module): - module._is_streaming = streaming - self._apply_named_streaming(_set_streaming) - - @contextmanager - def streaming(self): - """Context manager to enter streaming mode. Reset streaming state on exit. - """ - self._set_streaming(True) - try: - yield - finally: - self._set_streaming(False) - self.reset_streaming() - - def reset_streaming(self): - """Reset the streaming state. - """ - def _reset(name: str, module: StreamingModule): - module._streaming_state.clear() - - self._apply_named_streaming(_reset) - - def get_streaming_state(self) -> State: - """Return the streaming state, including that of sub-modules. - """ - state: State = {} - - def _add(name: str, module: StreamingModule): - if name: - name += "." - for key, value in module._streaming_state.items(): - state[name + key] = value - - self._apply_named_streaming(_add) - return state - - def set_streaming_state(self, state: State): - """Set the streaming state, including that of sub-modules. - """ - state = dict(state) - - def _set(name: str, module: StreamingModule): - if name: - name += "." - module._streaming_state.clear() - for key, value in list(state.items()): - # complexity is not ideal here, but probably fine. - if key.startswith(name): - local_key = key[len(name):] - if '.' not in local_key: - module._streaming_state[local_key] = value - del state[key] - - self._apply_named_streaming(_set) - assert len(state) == 0, list(state.keys()) - - def flush(self, x: tp.Optional[torch.Tensor] = None): - """Flush any remaining outputs that were waiting for completion. - Typically, for convolutions, this will add the final padding - and process the last buffer. - - This should take an optional argument `x`, which will be provided - if a module before this one in the streaming pipeline has already - spitted out a flushed out buffer. - """ - if x is None: - return None - else: - return self(x) - - -class StreamingSequential(StreamingModule, nn.Sequential): - """A streaming compatible alternative of `nn.Sequential`. - """ - def flush(self, x: tp.Optional[torch.Tensor] = None): - for module in self: - if isinstance(module, StreamingModule): - x = module.flush(x) - elif x is not None: - x = module(x) - return x diff --git a/spaces/suppsumstagza/text-to-image-stable-diffusion-v1-5/scripts/Ample Sound Keygen Challenge Code. Mexico Visible Trulia Mejores.md b/spaces/suppsumstagza/text-to-image-stable-diffusion-v1-5/scripts/Ample Sound Keygen Challenge Code. Mexico Visible Trulia Mejores.md deleted file mode 100644 index 2902ba891d8794ce7573867d30c71e45511a9593..0000000000000000000000000000000000000000 --- a/spaces/suppsumstagza/text-to-image-stable-diffusion-v1-5/scripts/Ample Sound Keygen Challenge Code. Mexico Visible Trulia Mejores.md +++ /dev/null @@ -1,6 +0,0 @@ -

      Ample Sound Keygen Challenge Code. Mexico Visible Trulia Mejores


      Download Filehttps://cinurl.com/2uEXGV



      - - 4d29de3e1b
      -
      -
      -

      diff --git a/spaces/suppsumstagza/text-to-image-stable-diffusion-v1-5/scripts/Bartender Barcode Software Crack Keygen __TOP__.md b/spaces/suppsumstagza/text-to-image-stable-diffusion-v1-5/scripts/Bartender Barcode Software Crack Keygen __TOP__.md deleted file mode 100644 index 6ead89b84916e3fdfe47dae583602301dad4114f..0000000000000000000000000000000000000000 --- a/spaces/suppsumstagza/text-to-image-stable-diffusion-v1-5/scripts/Bartender Barcode Software Crack Keygen __TOP__.md +++ /dev/null @@ -1,9 +0,0 @@ -

      bartender barcode software crack keygen


      DOWNLOADhttps://cinurl.com/2uEYm7



      - -February 14, 2022 — BarTender Crack protects feature software that's used to security. with it you can create barcodes & more plastic cards & RFID tags. In 2017, BarTender Crack was installed in over 100,000 retail and logistics businesses, warehouses, shops, and more in over 100 countries around the world. -BarTender Crack is the fastest and most secure barcode technology for the retail and logistics sector to be used in 2020. -Compared to most barcode barcode software. -It is the easiest to read barcode program designed specifically for barcode. 8a78ff9644
      -
      -
      -

      diff --git a/spaces/surmensipa/VITS-Umamusume-voice-synthesizer/Free Download Simapro 7.1 39l UPDATED.md b/spaces/surmensipa/VITS-Umamusume-voice-synthesizer/Free Download Simapro 7.1 39l UPDATED.md deleted file mode 100644 index c9758658c42a6cda1d221112661b50474f715f79..0000000000000000000000000000000000000000 --- a/spaces/surmensipa/VITS-Umamusume-voice-synthesizer/Free Download Simapro 7.1 39l UPDATED.md +++ /dev/null @@ -1,64 +0,0 @@ -## Free Download Simapro 7.1 39l - - - - - - - - - -**Download ->>> [https://cayseypisi.blogspot.com/?c=2tyeXC](https://cayseypisi.blogspot.com/?c=2tyeXC)** - - - - - - - - - - - - Here is a possible title and article with html formatting for the keyword "Free Download SimaPro 7.1 39l": - -# How to Get SimaPro 7.1 39l for Free - - - -SimaPro is a powerful software for life cycle assessment (LCA) and sustainability analysis. It helps you measure the environmental and social impacts of your products and services, and identify improvement opportunities. SimaPro is used by thousands of professionals and researchers worldwide, from product designers to decision-makers. - - - -If you want to try SimaPro for free, you can download a 30-day trial version from the official website[^1^]. This version allows you to access all the features and databases of SimaPro, except for the ability to save projects and export results. You can also request a demo or a quote from the website. - - - -If you have purchased SimaPro, you can download the full version from the same website[^1^]. You will need to enter your registration code during the installation process. The full version lets you save and export your projects, and access updates and support. - - - -SimaPro 7.1 39l is an older version of the software, released in 2010. It may not be compatible with newer operating systems or databases. If you have a valid license for SimaPro 7.1 39l, you can download it from this link: [https://www.simapro.com/wp-content/uploads/2019/10/SimaPro-7.1-Setup.exe](https://www.simapro.com/wp-content/uploads/2019/10/SimaPro-7.1-Setup.exe). However, we recommend that you upgrade to the latest version of SimaPro, which is currently SimaPro 9.2. - - - -If you do not have a valid license for SimaPro 7.1 39l, you cannot legally download it for free. SimaPro is a proprietary software that requires a license agreement and payment. Downloading it without permission may violate intellectual property rights and expose you to legal risks. Please respect the work of the developers and support the sustainability community by purchasing a license or using the trial version. - -Here are a few more paragraphs for the article: - -Why use SimaPro for LCA and sustainability analysis? SimaPro is based on robust science and life cycle thinking. It helps you understand the full life cycle impacts of your products and services, from raw material extraction to end-of-life disposal. It also helps you compare different scenarios and alternatives, and communicate your results to stakeholders. - - - -SimaPro comes with a comprehensive set of databases and methods, covering various environmental and social indicators. You can choose from over 10,000 ready-to-use processes and materials, or create your own custom ones. You can also select from over 100 impact assessment methods, or define your own indicators and criteria. - - - -SimaPro has a user-friendly interface and a flexible structure. You can easily model complex systems and processes, and perform sensitivity and uncertainty analysis. You can also export your results to various formats, such as Excel, Word, PDF, or HTML. You can also use SimaPro Connect, a web-based platform that allows you to share your projects and results online. - - dfd1c89656 - - - - - diff --git a/spaces/surmensipa/VITS-Umamusume-voice-synthesizer/logs/Assassinscreedunitysavegamefixcrack.md b/spaces/surmensipa/VITS-Umamusume-voice-synthesizer/logs/Assassinscreedunitysavegamefixcrack.md deleted file mode 100644 index 0e89d793c45daa58a0553c3f6b57eb39855b869b..0000000000000000000000000000000000000000 --- a/spaces/surmensipa/VITS-Umamusume-voice-synthesizer/logs/Assassinscreedunitysavegamefixcrack.md +++ /dev/null @@ -1,6 +0,0 @@ -

      assassinscreedunitysavegamefixcrack


      Download Zip 🗸 https://urluss.com/2uCFvP



      - -Bangalore Days Malayalam Movie English Subtitles Download - shorl.c ni L o Usotsuki wa Omae da full movie hd 1080p download kickass movie theory. Synopsis ... 1fdad05405
      -
      -
      -

      diff --git a/spaces/svjack/ControlNet-Face-Chinese/SPIGA/spiga/demo/visualize/layouts/plot_bbox.py b/spaces/svjack/ControlNet-Face-Chinese/SPIGA/spiga/demo/visualize/layouts/plot_bbox.py deleted file mode 100644 index 96911b41fe4f678ae41d5a7eac1484700952b99e..0000000000000000000000000000000000000000 --- a/spaces/svjack/ControlNet-Face-Chinese/SPIGA/spiga/demo/visualize/layouts/plot_bbox.py +++ /dev/null @@ -1,53 +0,0 @@ -import cv2 - -# Demo libs -from spiga.demo.visualize.layouts.plot_basics import BasicLayout - - -class BboxLayout(BasicLayout): - - BasicLayout.thickness_dft['bbox'] = 2 - - def __init__(self): - super().__init__() - - def draw_bbox(self, canvas, bbox, score_thr=0, show_score=True, thick=None, color=BasicLayout.colors['blue']): - - if thick is None: - thick = self.thickness['bbox'] - - if bbox[4] > score_thr: - text = "{:.4f}".format(bbox[4]) - b = list(map(int, bbox)) - cv2.rectangle(canvas, (b[0], b[1]), (b[2], b[3]), color, thick) - if show_score: - self.draw_bbox_text(canvas, b, text, offset=(0, 12), color=color) - return canvas - - def draw_bbox_line(self, canvas, bbox, score_thr=0, show_score=True, thick=None, color=BasicLayout.colors['blue']): - - if thick is None: - thick = self.thickness['bbox'] - - if bbox[4] > score_thr: - text = "{:.4f}".format(bbox[4]) - b = list(map(int, bbox)) - cv2.line(canvas, (b[0], b[1]), (b[0], b[1] + 15), color, thick) - cv2.line(canvas, (b[0], b[1]), (b[0] + 100, b[1]), color, thick) - if show_score: - self.draw_bbox_text(canvas, b, text, offset=(0, 12), color=color) - return canvas - - def draw_bbox_text(self, canvas, bbox, text, offset=(0, 0), color=BasicLayout.colors['white']): - b = list(map(int, bbox)) - cx = b[0] + offset[0] - cy = b[1] + offset[1] - cv2.putText(canvas, text, (cx, cy), cv2.FONT_HERSHEY_DUPLEX, 0.5, color) - return canvas - - def draw_bboxes(self, canvas, dets, score_thr=0, show_score=True, thick=None, colors=(BasicLayout.colors['blue'])): - num_colors = len(colors) - for idx, bbox in enumerate(dets): - color = colors[idx % num_colors] - canvas = self.draw_bbox(canvas, bbox, score_thr=score_thr, show_score=show_score, thick=thick, color=color) - return canvas diff --git a/spaces/svjack/ControlNet-Pose-Chinese/annotator/openpose/body.py b/spaces/svjack/ControlNet-Pose-Chinese/annotator/openpose/body.py deleted file mode 100644 index 7c3cf7a388b4ac81004524e64125e383bdd455bd..0000000000000000000000000000000000000000 --- a/spaces/svjack/ControlNet-Pose-Chinese/annotator/openpose/body.py +++ /dev/null @@ -1,219 +0,0 @@ -import cv2 -import numpy as np -import math -import time -from scipy.ndimage.filters import gaussian_filter -import matplotlib.pyplot as plt -import matplotlib -import torch -from torchvision import transforms - -from . import util -from .model import bodypose_model - -class Body(object): - def __init__(self, model_path): - self.model = bodypose_model() - if torch.cuda.is_available(): - self.model = self.model.cuda() - print('cuda') - model_dict = util.transfer(self.model, torch.load(model_path)) - self.model.load_state_dict(model_dict) - self.model.eval() - - def __call__(self, oriImg): - # scale_search = [0.5, 1.0, 1.5, 2.0] - scale_search = [0.5] - boxsize = 368 - stride = 8 - padValue = 128 - thre1 = 0.1 - thre2 = 0.05 - multiplier = [x * boxsize / oriImg.shape[0] for x in scale_search] - heatmap_avg = np.zeros((oriImg.shape[0], oriImg.shape[1], 19)) - paf_avg = np.zeros((oriImg.shape[0], oriImg.shape[1], 38)) - - for m in range(len(multiplier)): - scale = multiplier[m] - imageToTest = cv2.resize(oriImg, (0, 0), fx=scale, fy=scale, interpolation=cv2.INTER_CUBIC) - imageToTest_padded, pad = util.padRightDownCorner(imageToTest, stride, padValue) - im = np.transpose(np.float32(imageToTest_padded[:, :, :, np.newaxis]), (3, 2, 0, 1)) / 256 - 0.5 - im = np.ascontiguousarray(im) - - data = torch.from_numpy(im).float() - if torch.cuda.is_available(): - data = data.cuda() - # data = data.permute([2, 0, 1]).unsqueeze(0).float() - with torch.no_grad(): - Mconv7_stage6_L1, Mconv7_stage6_L2 = self.model(data) - Mconv7_stage6_L1 = Mconv7_stage6_L1.cpu().numpy() - Mconv7_stage6_L2 = Mconv7_stage6_L2.cpu().numpy() - - # extract outputs, resize, and remove padding - # heatmap = np.transpose(np.squeeze(net.blobs[output_blobs.keys()[1]].data), (1, 2, 0)) # output 1 is heatmaps - heatmap = np.transpose(np.squeeze(Mconv7_stage6_L2), (1, 2, 0)) # output 1 is heatmaps - heatmap = cv2.resize(heatmap, (0, 0), fx=stride, fy=stride, interpolation=cv2.INTER_CUBIC) - heatmap = heatmap[:imageToTest_padded.shape[0] - pad[2], :imageToTest_padded.shape[1] - pad[3], :] - heatmap = cv2.resize(heatmap, (oriImg.shape[1], oriImg.shape[0]), interpolation=cv2.INTER_CUBIC) - - # paf = np.transpose(np.squeeze(net.blobs[output_blobs.keys()[0]].data), (1, 2, 0)) # output 0 is PAFs - paf = np.transpose(np.squeeze(Mconv7_stage6_L1), (1, 2, 0)) # output 0 is PAFs - paf = cv2.resize(paf, (0, 0), fx=stride, fy=stride, interpolation=cv2.INTER_CUBIC) - paf = paf[:imageToTest_padded.shape[0] - pad[2], :imageToTest_padded.shape[1] - pad[3], :] - paf = cv2.resize(paf, (oriImg.shape[1], oriImg.shape[0]), interpolation=cv2.INTER_CUBIC) - - heatmap_avg += heatmap_avg + heatmap / len(multiplier) - paf_avg += + paf / len(multiplier) - - all_peaks = [] - peak_counter = 0 - - for part in range(18): - map_ori = heatmap_avg[:, :, part] - one_heatmap = gaussian_filter(map_ori, sigma=3) - - map_left = np.zeros(one_heatmap.shape) - map_left[1:, :] = one_heatmap[:-1, :] - map_right = np.zeros(one_heatmap.shape) - map_right[:-1, :] = one_heatmap[1:, :] - map_up = np.zeros(one_heatmap.shape) - map_up[:, 1:] = one_heatmap[:, :-1] - map_down = np.zeros(one_heatmap.shape) - map_down[:, :-1] = one_heatmap[:, 1:] - - peaks_binary = np.logical_and.reduce( - (one_heatmap >= map_left, one_heatmap >= map_right, one_heatmap >= map_up, one_heatmap >= map_down, one_heatmap > thre1)) - peaks = list(zip(np.nonzero(peaks_binary)[1], np.nonzero(peaks_binary)[0])) # note reverse - peaks_with_score = [x + (map_ori[x[1], x[0]],) for x in peaks] - peak_id = range(peak_counter, peak_counter + len(peaks)) - peaks_with_score_and_id = [peaks_with_score[i] + (peak_id[i],) for i in range(len(peak_id))] - - all_peaks.append(peaks_with_score_and_id) - peak_counter += len(peaks) - - # find connection in the specified sequence, center 29 is in the position 15 - limbSeq = [[2, 3], [2, 6], [3, 4], [4, 5], [6, 7], [7, 8], [2, 9], [9, 10], \ - [10, 11], [2, 12], [12, 13], [13, 14], [2, 1], [1, 15], [15, 17], \ - [1, 16], [16, 18], [3, 17], [6, 18]] - # the middle joints heatmap correpondence - mapIdx = [[31, 32], [39, 40], [33, 34], [35, 36], [41, 42], [43, 44], [19, 20], [21, 22], \ - [23, 24], [25, 26], [27, 28], [29, 30], [47, 48], [49, 50], [53, 54], [51, 52], \ - [55, 56], [37, 38], [45, 46]] - - connection_all = [] - special_k = [] - mid_num = 10 - - for k in range(len(mapIdx)): - score_mid = paf_avg[:, :, [x - 19 for x in mapIdx[k]]] - candA = all_peaks[limbSeq[k][0] - 1] - candB = all_peaks[limbSeq[k][1] - 1] - nA = len(candA) - nB = len(candB) - indexA, indexB = limbSeq[k] - if (nA != 0 and nB != 0): - connection_candidate = [] - for i in range(nA): - for j in range(nB): - vec = np.subtract(candB[j][:2], candA[i][:2]) - norm = math.sqrt(vec[0] * vec[0] + vec[1] * vec[1]) - norm = max(0.001, norm) - vec = np.divide(vec, norm) - - startend = list(zip(np.linspace(candA[i][0], candB[j][0], num=mid_num), \ - np.linspace(candA[i][1], candB[j][1], num=mid_num))) - - vec_x = np.array([score_mid[int(round(startend[I][1])), int(round(startend[I][0])), 0] \ - for I in range(len(startend))]) - vec_y = np.array([score_mid[int(round(startend[I][1])), int(round(startend[I][0])), 1] \ - for I in range(len(startend))]) - - score_midpts = np.multiply(vec_x, vec[0]) + np.multiply(vec_y, vec[1]) - score_with_dist_prior = sum(score_midpts) / len(score_midpts) + min( - 0.5 * oriImg.shape[0] / norm - 1, 0) - criterion1 = len(np.nonzero(score_midpts > thre2)[0]) > 0.8 * len(score_midpts) - criterion2 = score_with_dist_prior > 0 - if criterion1 and criterion2: - connection_candidate.append( - [i, j, score_with_dist_prior, score_with_dist_prior + candA[i][2] + candB[j][2]]) - - connection_candidate = sorted(connection_candidate, key=lambda x: x[2], reverse=True) - connection = np.zeros((0, 5)) - for c in range(len(connection_candidate)): - i, j, s = connection_candidate[c][0:3] - if (i not in connection[:, 3] and j not in connection[:, 4]): - connection = np.vstack([connection, [candA[i][3], candB[j][3], s, i, j]]) - if (len(connection) >= min(nA, nB)): - break - - connection_all.append(connection) - else: - special_k.append(k) - connection_all.append([]) - - # last number in each row is the total parts number of that person - # the second last number in each row is the score of the overall configuration - subset = -1 * np.ones((0, 20)) - candidate = np.array([item for sublist in all_peaks for item in sublist]) - - for k in range(len(mapIdx)): - if k not in special_k: - partAs = connection_all[k][:, 0] - partBs = connection_all[k][:, 1] - indexA, indexB = np.array(limbSeq[k]) - 1 - - for i in range(len(connection_all[k])): # = 1:size(temp,1) - found = 0 - subset_idx = [-1, -1] - for j in range(len(subset)): # 1:size(subset,1): - if subset[j][indexA] == partAs[i] or subset[j][indexB] == partBs[i]: - subset_idx[found] = j - found += 1 - - if found == 1: - j = subset_idx[0] - if subset[j][indexB] != partBs[i]: - subset[j][indexB] = partBs[i] - subset[j][-1] += 1 - subset[j][-2] += candidate[partBs[i].astype(int), 2] + connection_all[k][i][2] - elif found == 2: # if found 2 and disjoint, merge them - j1, j2 = subset_idx - membership = ((subset[j1] >= 0).astype(int) + (subset[j2] >= 0).astype(int))[:-2] - if len(np.nonzero(membership == 2)[0]) == 0: # merge - subset[j1][:-2] += (subset[j2][:-2] + 1) - subset[j1][-2:] += subset[j2][-2:] - subset[j1][-2] += connection_all[k][i][2] - subset = np.delete(subset, j2, 0) - else: # as like found == 1 - subset[j1][indexB] = partBs[i] - subset[j1][-1] += 1 - subset[j1][-2] += candidate[partBs[i].astype(int), 2] + connection_all[k][i][2] - - # if find no partA in the subset, create a new subset - elif not found and k < 17: - row = -1 * np.ones(20) - row[indexA] = partAs[i] - row[indexB] = partBs[i] - row[-1] = 2 - row[-2] = sum(candidate[connection_all[k][i, :2].astype(int), 2]) + connection_all[k][i][2] - subset = np.vstack([subset, row]) - # delete some rows of subset which has few parts occur - deleteIdx = [] - for i in range(len(subset)): - if subset[i][-1] < 4 or subset[i][-2] / subset[i][-1] < 0.4: - deleteIdx.append(i) - subset = np.delete(subset, deleteIdx, axis=0) - - # subset: n*20 array, 0-17 is the index in candidate, 18 is the total score, 19 is the total parts - # candidate: x, y, score, id - return candidate, subset - -if __name__ == "__main__": - body_estimation = Body('../model/body_pose_model.pth') - - test_image = '../images/ski.jpg' - oriImg = cv2.imread(test_image) # B,G,R order - candidate, subset = body_estimation(oriImg) - canvas = util.draw_bodypose(oriImg, candidate, subset) - plt.imshow(canvas[:, :, [2, 1, 0]]) - plt.show() diff --git a/spaces/svjack/ControlNet-Pose-Chinese/annotator/uniformer/mmcv/runner/builder.py b/spaces/svjack/ControlNet-Pose-Chinese/annotator/uniformer/mmcv/runner/builder.py deleted file mode 100644 index 77c96ba0b2f30ead9da23f293c5dc84dd3e4a74f..0000000000000000000000000000000000000000 --- a/spaces/svjack/ControlNet-Pose-Chinese/annotator/uniformer/mmcv/runner/builder.py +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright (c) OpenMMLab. All rights reserved. -import copy - -from ..utils import Registry - -RUNNERS = Registry('runner') -RUNNER_BUILDERS = Registry('runner builder') - - -def build_runner_constructor(cfg): - return RUNNER_BUILDERS.build(cfg) - - -def build_runner(cfg, default_args=None): - runner_cfg = copy.deepcopy(cfg) - constructor_type = runner_cfg.pop('constructor', - 'DefaultRunnerConstructor') - runner_constructor = build_runner_constructor( - dict( - type=constructor_type, - runner_cfg=runner_cfg, - default_args=default_args)) - runner = runner_constructor() - return runner diff --git a/spaces/t110-ai-admin/InspectLens/video_llama/tasks/image_text_pretrain.py b/spaces/t110-ai-admin/InspectLens/video_llama/tasks/image_text_pretrain.py deleted file mode 100644 index db955f27bb7dc8093cffd95b3a26917bb681c846..0000000000000000000000000000000000000000 --- a/spaces/t110-ai-admin/InspectLens/video_llama/tasks/image_text_pretrain.py +++ /dev/null @@ -1,18 +0,0 @@ -""" - Copyright (c) 2022, salesforce.com, inc. - All rights reserved. - SPDX-License-Identifier: BSD-3-Clause - For full license text, see the LICENSE_Lavis file in the repo root or https://opensource.org/licenses/BSD-3-Clause -""" - -from video_llama.common.registry import registry -from video_llama.tasks.base_task import BaseTask - - -@registry.register_task("image_text_pretrain") -class ImageTextPretrainTask(BaseTask): - def __init__(self): - super().__init__() - - def evaluation(self, model, data_loader, cuda_enabled=True): - pass diff --git a/spaces/t13718236382/bingoGPT4/src/lib/hooks/chat-history.ts b/spaces/t13718236382/bingoGPT4/src/lib/hooks/chat-history.ts deleted file mode 100644 index c6fbf3fecfa86fe553f56acc8253236b8f22a775..0000000000000000000000000000000000000000 --- a/spaces/t13718236382/bingoGPT4/src/lib/hooks/chat-history.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { zip } from 'lodash-es' -import { ChatMessageModel, BotId } from '@/lib/bots/bing/types' -import { Storage } from '../storage' - -/** - * conversations:$botId => Conversation[] - * conversation:$botId:$cid:messages => ChatMessageModel[] - */ - -interface Conversation { - id: string - createdAt: number -} - -type ConversationWithMessages = Conversation & { messages: ChatMessageModel[] } - -async function loadHistoryConversations(botId: BotId): Promise { - const key = `conversations:${botId}` - const { [key]: value } = await Storage.get(key) - return value || [] -} - -async function deleteHistoryConversation(botId: BotId, cid: string) { - const conversations = await loadHistoryConversations(botId) - const newConversations = conversations.filter((c) => c.id !== cid) - await Storage.set({ [`conversations:${botId}`]: newConversations }) -} - -async function loadConversationMessages(botId: BotId, cid: string): Promise { - const key = `conversation:${botId}:${cid}:messages` - const { [key]: value } = await Storage.get(key) - return value || [] -} - -export async function setConversationMessages(botId: BotId, cid: string, messages: ChatMessageModel[]) { - const conversations = await loadHistoryConversations(botId) - if (!conversations.some((c) => c.id === cid)) { - conversations.unshift({ id: cid, createdAt: Date.now() }) - await Storage.set({ [`conversations:${botId}`]: conversations }) - } - const key = `conversation:${botId}:${cid}:messages` - await Storage.set({ [key]: messages }) -} - -export async function loadHistoryMessages(botId: BotId): Promise { - const conversations = await loadHistoryConversations(botId) - const messagesList = await Promise.all(conversations.map((c) => loadConversationMessages(botId, c.id))) - return zip(conversations, messagesList).map(([c, messages]) => ({ - id: c!.id, - createdAt: c!.createdAt, - messages: messages!, - })) -} - -export async function deleteHistoryMessage(botId: BotId, conversationId: string, messageId: string) { - const messages = await loadConversationMessages(botId, conversationId) - const newMessages = messages.filter((m) => m.id !== messageId) - await setConversationMessages(botId, conversationId, newMessages) - if (!newMessages.length) { - await deleteHistoryConversation(botId, conversationId) - } -} diff --git a/spaces/tengxiu/img-to-music/constants.py b/spaces/tengxiu/img-to-music/constants.py deleted file mode 100644 index 86863d1b778d4c66f0d8e1e0b699f1bb937c1d50..0000000000000000000000000000000000000000 --- a/spaces/tengxiu/img-to-music/constants.py +++ /dev/null @@ -1,9 +0,0 @@ -import numpy as np -import os - -MUBERT_LICENSE = os.environ.get('MUBERT_LICENSE') -MUBERT_TOKEN = os.environ.get('MUBERT_TOKEN') - -MUBERT_MODE = "loop" -MUBERT_TAGS_STRING = 'tribal,action,kids,neo-classic,run 130,pumped,jazz / funk,ethnic,dubtechno,reggae,acid jazz,liquidfunk,funk,witch house,tech house,underground,artists,mystical,disco,sensorium,r&b,agender,psychedelic trance / psytrance,peaceful,run 140,piano,run 160,setting,meditation,christmas,ambient,horror,cinematic,electro house,idm,bass,minimal,underscore,drums,glitchy,beautiful,technology,tribal house,country pop,jazz & funk,documentary,space,classical,valentines,chillstep,experimental,trap,new jack swing,drama,post-rock,tense,corporate,neutral,happy,analog,funky,spiritual,sberzvuk special,chill hop,dramatic,catchy,holidays,fitness 90,optimistic,orchestra,acid techno,energizing,romantic,minimal house,breaks,hyper pop,warm up,dreamy,dark,urban,microfunk,dub,nu disco,vogue,keys,hardcore,aggressive,indie,electro funk,beauty,relaxing,trance,pop,hiphop,soft,acoustic,chillrave / ethno-house,deep techno,angry,dance,fun,dubstep,tropical,latin pop,heroic,world music,inspirational,uplifting,atmosphere,art,epic,advertising,chillout,scary,spooky,slow ballad,saxophone,summer,erotic,jazzy,energy 100,kara mar,xmas,atmospheric,indie pop,hip-hop,yoga,reggaeton,lounge,travel,running,folk,chillrave & ethno-house,detective,darkambient,chill,fantasy,minimal techno,special,night,tropical house,downtempo,lullaby,meditative,upbeat,glitch hop,fitness,neurofunk,sexual,indie rock,future pop,jazz,cyberpunk,melancholic,happy hardcore,family / kids,synths,electric guitar,comedy,psychedelic trance & psytrance,edm,psychedelic rock,calm,zen,bells,podcast,melodic house,ethnic percussion,nature,heavy,bassline,indie dance,techno,drumnbass,synth pop,vaporwave,sad,8-bit,chillgressive,deep,orchestral,futuristic,hardtechno,nostalgic,big room,sci-fi,tutorial,joyful,pads,minimal 170,drill,ethnic 108,amusing,sleepy ambient,psychill,italo disco,lofi,house,acoustic guitar,bassline house,rock,k-pop,synthwave,deep house,electronica,gabber,nightlife,sport & fitness,road trip,celebration,electro,disco house,electronic' -MUBERT_TAGS = np.array(MUBERT_TAGS_STRING.split(',')) \ No newline at end of file diff --git a/spaces/terfces0erbo/CollegeProjectV2/Bmw Dis V57 Download Free.md b/spaces/terfces0erbo/CollegeProjectV2/Bmw Dis V57 Download Free.md deleted file mode 100644 index dcbfe50673f1bf0be7b2e0d047a10510ea28a47a..0000000000000000000000000000000000000000 --- a/spaces/terfces0erbo/CollegeProjectV2/Bmw Dis V57 Download Free.md +++ /dev/null @@ -1,6 +0,0 @@ -

      bmw dis v57 download free


      Download File ····· https://bytlly.com/2uGlW1



      -
      -Ediabas Custom INPA NCS Expert ETK GT1 TIS DIS V57 V44 Rheingold ISTA-P ISTA-D E-SYS ... 1 System 20cm 8" Active Bass. ibus bmw free download. 1fdad05405
      -
      -
      -

      diff --git a/spaces/terfces0erbo/CollegeProjectV2/Buku Tahunan Sekolah Pdf Download TOP.md b/spaces/terfces0erbo/CollegeProjectV2/Buku Tahunan Sekolah Pdf Download TOP.md deleted file mode 100644 index 8821562d070624101d73985e23f4cebcd55da564..0000000000000000000000000000000000000000 --- a/spaces/terfces0erbo/CollegeProjectV2/Buku Tahunan Sekolah Pdf Download TOP.md +++ /dev/null @@ -1,6 +0,0 @@ -

      buku tahunan sekolah pdf download


      Download File 🔗 https://bytlly.com/2uGkK0



      - - 4d29de3e1b
      -
      -
      -

      diff --git a/spaces/tialenAdioni/chat-gpt-api/logs/Aankhon Mein Tera Hi Chehra Hd Full Song Video 720p Vs 1080p.md b/spaces/tialenAdioni/chat-gpt-api/logs/Aankhon Mein Tera Hi Chehra Hd Full Song Video 720p Vs 1080p.md deleted file mode 100644 index f330ef1c4de426fd114290d10ee28b2aad19a281..0000000000000000000000000000000000000000 --- a/spaces/tialenAdioni/chat-gpt-api/logs/Aankhon Mein Tera Hi Chehra Hd Full Song Video 720p Vs 1080p.md +++ /dev/null @@ -1,15 +0,0 @@ -
      -

      Aankhon Mein Tera Hi Chehra: A Romantic Song by Kumar Sanu

      -

      Aankhon Mein Tera Hi Chehra is a classic Hindi song from the film Aryan: Unbreakable, released in 2006. The song is sung by the legendary singer Kumar Sanu, who is known for his melodious voice and romantic songs. The song features Shahid Kapoor and Hrishitaa Bhatt as the lead pair, who fall in love at first sight. The song is composed by Anand Raj Anand and written by Anand Bakshi.

      -

      Aankhon Mein Tera Hi Chehra Hd Full Song Video 720p Vs 1080p


      Download File · https://urlcod.com/2uKa5G



      -

      The song is a beautiful expression of love and longing, as the lyrics describe how the lover sees his beloved's face in his eyes, hears her voice in his heartbeat, and feels her presence in his fragrance. The song also conveys the pain of separation, as the lover wishes to meet his beloved again and relive the sweet moments they shared. The song is a perfect blend of emotion and melody, and has a catchy tune that stays with the listener.

      -

      The song was a huge hit when it was released, and became one of the most popular songs of Kumar Sanu. The song also marked the debut of Shahid Kapoor as an actor, who later went on to become one of the leading stars of Bollywood. The song also showcased the chemistry between Shahid and Hrishitaa, who looked adorable together on screen. The song was also praised for its video, which was shot in scenic locations and had a vibrant feel.

      -

      Aankhon Mein Tera Hi Chehra is a timeless song that still resonates with the audience today. It is a song that can make anyone fall in love, and feel the magic of romance. It is a song that has become a part of the musical legacy of Kumar Sanu, who has given us many memorable songs over the years. It is a song that deserves to be heard and enjoyed in high definition, as it enhances the quality and clarity of the sound and visuals.

      -

      If you are a fan of Kumar Sanu, or romantic songs in general, you should definitely check out this song. You can watch the official music video of Aankhon Mein Tera Hi Chehra on YouTube[^1^], or listen to it on any music streaming platform. You can also read the lyrics of the song on LyricsMaza.com[^2^]. You will surely fall in love with this song, and feel its charm and beauty.

      -

      - -

      Aankhon Mein Tera Hi Chehra is not just a song, but a feeling. It is a feeling that many people can relate to, as they have experienced love and longing in their lives. It is a feeling that can make anyone smile, cry, or sing along. It is a feeling that can touch anyone's heart, and make them feel alive.

      -

      The song has also inspired many covers and remixes by various artists, who have given their own twist to the song. Some of the notable covers are by Aryans, who originally composed the song for their album Yeh Hawa Kehti Hai Kya in 1999, and by Indian Juke Box, who added subtitles and lyrics to the song in their YouTube video. The song has also been used in many memes and videos on social media, where people have expressed their love and humor using the song.

      -

      Aankhon Mein Tera Hi Chehra is a song that will never get old, as it has a timeless appeal and charm. It is a song that will always remain in our hearts, and in our eyes. It is a song that will always remind us of the power and beauty of love.

      7196e7f11a
      -
      -
      \ No newline at end of file diff --git a/spaces/tialenAdioni/chat-gpt-api/logs/Blade And Soul Command List LINK.md b/spaces/tialenAdioni/chat-gpt-api/logs/Blade And Soul Command List LINK.md deleted file mode 100644 index e3b24ea2d48ccb3d538dac01705d54c0eda9ad95..0000000000000000000000000000000000000000 --- a/spaces/tialenAdioni/chat-gpt-api/logs/Blade And Soul Command List LINK.md +++ /dev/null @@ -1,202 +0,0 @@ - -

      Blade And Soul Command List: A Guide to Emotes and Chat Commands

      - -

      Blade And Soul is a popular MMORPG that features a dynamic combat system and a rich world of martial arts. Whether you want to express yourself, communicate with other players, or perform some actions, you can use various commands in the game. In this article, we will show you a Blade And Soul command list that covers emotes and chat commands.

      - -

      Emotes

      - -

      Emotes are animations that your character can perform to show different emotions or gestures. You can use emotes by typing a slash (/) followed by the name of the emote, or by using some keywords without a slash in the chat. You can also press F12 to open the emote menu and select an emote from there.

      -

      Blade And Soul Command List


      DOWNLOADhttps://urlcod.com/2uK5ne



      - -

      Here is a Blade And Soul command list of emotes and their triggers:

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      EmoteCommandTrigger
      Bow/bow or /greetHi or Hello
      Applause/applauseN/A
      Tease/flirt or /loveLove or Kiss
      Love/loveN/A
      Wave/waveN/A
      Kiss/kissN/A
      Sorry/sorrySorry
      Cry or Sad/cry or /sadN/A
      Sigh or Bored/sigh or /boredBored or Sigh
      Scare or Afraid/scare or /afraid or /scary N/A
      Cheer or Bravo /cheer or /bravo Haha, Lol, Yes, Yay, Woot
      Grr or Angry /grr Angry or Mad
      Scary /scary N/A
      Charge /charge Charge
      Stop or Wait < - td>/stop < - td>Stop or Wait < - tr>< - td>Look < - td>/look < - td>N/A < - tr>< - td>Honor < - td>/honor < - td>Honor < - tr>< - td>Dance 1 < - td>/dance < - td>N/A < - tr>< - td>Dance 2 < - td>/dance2 < - td>N/A
      - -

      Chat Commands< - -/h2> - -

      Chat commands are commands that you can use in the chat window to perform some actions or access some features. You can use chat commands by typing a slash (/) followed by the name of the command and any parameters if needed.

      - -

      Here is a Blade And Soul command list of chat commands and their functions:

      - - - - - - - - - -
      Command - -/th> - -Function - -/th> - -/tr> - -
      /w [name] [message] - -/td> - -Sends a whisper message to another player. - -/ - -/ - -/ - -/ - -/ - -/ - -/ - -/ - -/ - -/ - -/ - -/ - -/ - -/ - -/ - -/ - -/ - -/ - -/ - -/ - -/ - -/ - -/ - -/ - -/tr> - -
      / - -

      Gameplay Tips

      - -

      Blade And Soul is not your typical MMORPG that relies on stats and gear to determine your success. Instead, it requires skill, timing, and strategy to master the combat system and overcome the challenges. Here are some gameplay tips that can help you improve your performance and enjoy the game more.

      - -
        -
      • Learn your class skills and combos. Each class in Blade And Soul has a unique set of skills and combos that can be customized and upgraded through the skill tree. You can view your skill tree in icon mode by pressing K and selecting the icon layout on the top right corner of the screen. You should experiment with different skills and combos to find out what works best for your playstyle and situation. Some skills and combos are triggered by certain conditions, such as knocking down or stunning your enemy, or blocking or evading their attacks. You should pay attention to these conditions and react accordingly to unleash powerful attacks.
      • -
      • Use your environment and movement abilities. Blade And Soul features a fluid and dynamic movement system that allows you to run, jump, glide, dash, and wall-run across the game world. You can use these movement abilities to explore the environment, find hidden secrets, reach advantageous positions, or escape from danger. You can also use the environment to your advantage, such as hiding behind objects, luring enemies into traps, or knocking them off cliffs.
      • -
      • Engage with all pop-up content. As you progress through the game, you will encounter various pop-up content that can offer you extra rewards, challenges, or fun activities. These include dynamic quests, world bosses, faction wars, PvP arenas, dungeons, raids, events, and more. You should try to engage with all pop-up content as much as possible, as they can provide you with valuable experience, items, gold, reputation, achievements, and fun.
      • -
      • Be thrifty with coins and resources. Blade And Soul has a complex economy system that involves various currencies and resources that are used for different purposes. Some of these include coins, NCoins, Hongmoon Coins, gold bars, soulstones, moonstones, sacred orbs, elysian orbs, unsealing charms, keys, transformation stones, and more. You should be careful with how you spend your coins and resources, as they can be hard to come by or expensive to buy. You should also look for ways to earn more coins and resources, such as completing quests, selling items, crafting goods, participating in events, or exchanging currencies.
      • -
      • Get a job and join a clan. Blade And Soul offers you the opportunity to learn various professions and join a clan. Professions allow you to craft or gather useful items that can help you or other players in the game. There are four types of professions: gathering guilds (collect materials), crafting guilds (produce goods), combat guilds (provide buffs), and social guilds (offer services). You can join up to four guilds at a time (two gathering and two crafting), but you can only craft one item per guild at a time. Clans are player-made groups that can offer you social interaction, cooperation, support, benefits, and fun. You can join a clan by applying to one or creating your own.
      • -
      - -

      These are some of the basic tips that can help you get started in Blade And Soul. There are many more aspects of the game that you can discover and enjoy as you play. Blade And Soul is a game that rewards skillful play and exploration, so don't be afraid to try new things and challenge yourself.

      -

      e93f5a0c3f
      -
      -
      \ No newline at end of file diff --git a/spaces/tialenAdioni/chat-gpt-api/logs/How to Download and Install PTC Creo 8 for Free (No Crack Needed).md b/spaces/tialenAdioni/chat-gpt-api/logs/How to Download and Install PTC Creo 8 for Free (No Crack Needed).md deleted file mode 100644 index f7dec8ed55a5a9f69e71ca12085fb8d42ed722eb..0000000000000000000000000000000000000000 --- a/spaces/tialenAdioni/chat-gpt-api/logs/How to Download and Install PTC Creo 8 for Free (No Crack Needed).md +++ /dev/null @@ -1,43 +0,0 @@ -
      -

      How to Download and Install PTC Creo 8 for Free

      -

      If you are looking for a powerful and comprehensive CAD solution that can handle complex product designs, you might want to try PTC Creo 8. This software suite provides a wide range of advanced design, analysis and simulation tools that can help you create smart and fully-featured products faster and easier. In this article, we will show you how to download and install PTC Creo 8 for free.

      -

      creo 8 download crack


      Download Zip ✓✓✓ https://urlcod.com/2uK9s1



      -

      What is PTC Creo 8?

      -

      PTC Creo 8 is the latest version of the popular 3D CAD software from PTC. It offers new and improved features that can enhance your productivity, creativity and collaboration. Some of the highlights of PTC Creo 8 are:

      -
        -
      • Generative design: You can use artificial intelligence to automatically generate optimal designs based on your goals and constraints.
      • -
      • Augmented reality: You can view, share and interact with your digital product data in the real world using your smartphone or tablet.
      • -
      • Real-time simulation: You can perform fast and accurate analyses of your designs without leaving the modeling environment.
      • -
      • Additive manufacturing: You can design, optimize and print complex parts using various 3D printing technologies.
      • -
      • IoT: You can connect your products to the cloud and access real-time data and insights.
      • -
      -

      PTC Creo 8 also supports a wide range of 2D and 3D file types, including major CAD formats like SolidWorks, CATIA and Inventor. You can easily import and export data from different sources and collaborate with anyone using the Unite technology. Additionally, you can access and share information with various stakeholders using role-based data access and augmented reality.

      -

      How to Download PTC Creo 8 for Free?

      -

      If you want to try PTC Creo 8 for free, you can download the trial version from the official website. The trial version will give you access to all the features of PTC Creo 8 for 30 days. To download the trial version, you need to follow these steps:

      -

      -
        -
      1. Go to https://www.ptc.com/en/products/cad/creo/trial and fill out the form with your personal and professional details.
      2. -
      3. Click on "Start Your Trial" and wait for an email from PTC with a link to download the software.
      4. -
      5. Click on the link in the email and choose the option "Download Now".
      6. -
      7. Select the language and platform of your choice and click on "Download".
      8. -
      9. Save the zip file on your computer and extract it to a folder.
      10. -
      -

      How to Install PTC Creo 8?

      -

      Once you have downloaded the zip file, you need to install PTC Creo 8 on your computer. To install PTC Creo 8, you need to follow these steps:

      -
        -
      1. Open the folder where you extracted the zip file and run the setup.exe file as an administrator.
      2. -
      3. Accept the license agreement and click on "Next".
      4. -
      5. Select the installation type as "Typical" or "Custom" depending on your preferences and click on "Next".
      6. -
      7. Select the installation directory and click on "Next".
      8. -
      9. Select the products and features that you want to install and click on "Next".
      10. -
      11. Review the installation summary and click on "Install".
      12. -
      13. Wait for the installation process to complete and click on "Finish".
      14. -
      -

      How to Activate PTC Creo 8?

      -

      To activate PTC Creo 8, you need to have a valid license key that you can obtain from PTC after registering for the trial version. To activate PTC Creo 8, you need to follow these steps:

      -
        -
      1. Launch PTC Creo 8 from your desktop or start menu.
      2. -
      3. Select the option "Use a license file" and click on "OK".
      4. -
      5. Browse to the folder where you saved the license file that you received from PTC via email

        ddb901b051
        -
        -
        \ No newline at end of file diff --git a/spaces/ticomspire/turkey-syria-earthquake-tweets/logs/Clash Royale Simulator APK The Ultimate Guide to Mastering the Game.md b/spaces/ticomspire/turkey-syria-earthquake-tweets/logs/Clash Royale Simulator APK The Ultimate Guide to Mastering the Game.md deleted file mode 100644 index e07f8a8b901ea0325cfa504978df52fe50543c71..0000000000000000000000000000000000000000 --- a/spaces/ticomspire/turkey-syria-earthquake-tweets/logs/Clash Royale Simulator APK The Ultimate Guide to Mastering the Game.md +++ /dev/null @@ -1,155 +0,0 @@ - -

        Clash Royale Simulator Download APK: How to Test Your Strategies in a Sandbox Mode

        -

        Clash Royale is one of the most popular and addictive mobile games in the world, with millions of players competing in real-time battles. But what if you want to test your strategies and skills without risking your trophies, chests, or gems? What if you want to experiment with different cards, decks, and scenarios without spending any money or time? That's where Clash Royale Simulator comes in.

        -

        clash royale simulator download apk


        Download ››› https://bltlly.com/2uOkhC



        -

        What is Clash Royale Simulator?

        -

        A fan-made app that lets you simulate battles in Clash Royale

        -

        Clash Royale Simulator is a fan-made app that lets you simulate battles in Clash Royale. It is not affiliated with or endorsed by Supercell, the developer of the original game. It is a standalone app that does not require you to have Clash Royale installed on your device. You can use it to create and customize your own decks and cards, simulate battles against different opponents and scenarios, analyze your performance and improve your skills, and more.

        -

        The features and benefits of using Clash Royale Simulator

        -

        Some of the features and benefits of using Clash Royale Simulator are:

        -
          -
        • You can access all the cards in Clash Royale, including the ones you don't have or haven't unlocked yet.
        • -
        • You can upgrade your cards to any level you want, without spending any gold or gems.
        • -
        • You can create unlimited decks and save them for later use.
        • -
        • You can simulate battles against different types of opponents, such as bots, friends, or top players.
        • -
        • You can simulate battles in different arenas, game modes, challenges, and events.
        • -
        • You can pause, resume, rewind, fast-forward, or replay any battle at any time.
        • -
        • You can view detailed statistics and analytics of your battles, such as elixir usage, damage dealt, damage received, cards played, cards cycle, etc.
        • -
        • You can learn from the best players by watching their replays and copying their decks.
        • -
        • You can have fun and enjoy the game without any pressure, stress, or frustration.
        • -
        -

        How to Download and Install Clash Royale Simulator APK on Your Android Device

        -

        The steps to download the APK file from a trusted source

        -

        An APK file is an Android application package file that contains all the files needed to install an app on your device. To download and install Clash Royale Simulator APK on your Android device, you need to follow these steps:

        -

        clash royale simulator apk free download
        -download clash royale simulator mod apk
        -clash royale simulator android apk download
        -clash royale simulator hack apk download
        -clash royale simulator 2023 apk download
        -clash royale simulator online no download apk
        -clash royale simulator offline apk download
        -clash royale simulator pc download apk
        -clash royale simulator latest version apk download
        -clash royale simulator unlimited gems apk download
        -clash royale simulator 3d apk download
        -clash royale simulator update apk download
        -clash royale simulator beta apk download
        -clash royale simulator cheats apk download
        -clash royale simulator private server apk download
        -clash royale simulator sandbox mode apk download
        -clash royale simulator new cards apk download
        -clash royale simulator old version apk download
        -clash royale simulator original apk download
        -clash royale simulator full version apk download
        -clash royale simulator cracked apk download
        -clash royale simulator pro apk download
        -clash royale simulator premium apk download
        -clash royale simulator mega mod apk download
        -clash royale simulator best decks apk download
        -clash royale simulator realistic battles apk download
        -clash royale simulator custom cards apk download
        -clash royale simulator unlimited elixir apk download
        -clash royale simulator all cards unlocked apk download
        -clash royale simulator draft mode apk download
        -clash royale simulator 2v2 mode apk download
        -clash royale simulator clan wars apk download
        -clash royale simulator tournament mode apk download
        -clash royale simulator challenge mode apk download
        -clash royale simulator ladder mode apk download
        -clash royale simulator stats tracker apk download
        -clash royale simulator card maker apk download
        -clash royale simulator deck builder apk download
        -clash royale simulator chest opener apk download
        -clash royale simulator card generator apk download

        -
          -
        1. Go to a trusted source that provides the latest version of Clash Royale Simulator APK.
        2. One of the trusted sources that provides the latest version of Clash Royale Simulator APK is Uptodown. You can visit their website and search for Clash Royale Simulator or click on this link: [Clash Royale for Android - Download the APK from Uptodown](^1^).
        3. -
        4. Another trusted source that provides the latest version of Clash Royale Simulator APK is GitHub. You can visit their repository and download the APK file from the releases section or click on this link: [GitHub - royale-proxy/cr-patcher: A small utility to patch and sign the Clash Royale APK](^2^).
        5. -
        6. A third trusted source that provides the latest version of Clash Royale Simulator APK is apkonline.net. You can visit their website and search for Battle Simulator for Clash Royale or click on this link: [Battle Simulator for Clash Royale Download - apkonline.net](^3^).
        7. -
        -

        The steps to install the APK file on your device

        -

        After you have downloaded the APK file from one of the trusted sources, you need to install it on your device. To do that, you need to follow these steps:

        -
          -
        1. Go to your device settings and enable the option to install apps from unknown sources. This may vary depending on your device model and Android version, but you can usually find it under security or privacy settings.
        2. -
        3. Locate the APK file on your device using a file manager app or your browser's downloads folder.
        4. -
        5. Tap on the APK file and follow the instructions to install it. You may need to grant some permissions to the app during the installation process.
        6. -
        7. Once the installation is complete, you can launch the app from your app drawer or home screen.
        8. -
        -

        The precautions and risks of installing APK files from unknown sources

        -

        While installing APK files from unknown sources can be useful for accessing apps that are not available on the official app store, it also comes with some risks and precautions. Some of them are:

        -
          -
        • You may expose your device to malware, viruses, or spyware that can harm your device or steal your personal information.
        • -
        • You may violate the terms of service or end-user license agreement of the original app or game, which may result in legal actions or account bans.
        • -
        • You may encounter compatibility issues, bugs, crashes, or performance problems that may affect your user experience or damage your device.
        • -
        • You may not receive updates, support, or security patches from the original app or game developer, which may leave your app or game outdated or vulnerable.
        • -
        -

        Therefore, you should always be careful and cautious when installing APK files from unknown sources. You should only download them from trusted and reputable sources, scan them with an antivirus app before installing them, and backup your device data regularly.

        How to Use Clash Royale Simulator to Test Your Strategies

        -

        How to create and customize your own decks and cards

        -

        One of the main advantages of using Clash Royale Simulator is that you can create and customize your own decks and cards. You can access all the cards in the game, including the ones you don't have or haven't unlocked yet. You can also upgrade your cards to any level you want, without spending any gold or gems. Here is how you can create and customize your own decks and cards:

        -
          -
        1. Open the app and tap on the "Decks" button on the bottom menu.
        2. -
        3. Tap on the "+" button on the top right corner to create a new deck.
        4. -
        5. Select the cards you want to add to your deck from the list. You can filter the cards by rarity, type, or elixir cost.
        6. -
        7. Tap on the "Save" button to save your deck. You can also edit, delete, or rename your deck by tapping on the "Edit" button.
        8. -
        9. To customize your cards, tap on the "Cards" button on the bottom menu.
        10. -
        11. Select the card you want to customize from the list. You can filter the cards by rarity, type, or elixir cost.
        12. -
        13. Tap on the "Upgrade" button to upgrade your card to any level you want. You can also view the stats and description of your card by tapping on the "Info" button.
        14. -
        -

        How to simulate battles against different opponents and scenarios

        -

        Another advantage of using Clash Royale Simulator is that you can simulate battles against different opponents and scenarios. You can choose from different types of opponents, such as bots, friends, or top players. You can also choose from different arenas, game modes, challenges, and events. Here is how you can simulate battles against different opponents and scenarios:

        -
          -
        1. Open the app and tap on the "Battle" button on the bottom menu.
        2. -
        3. Select the deck you want to use for your battle from the list. You can also create a new deck by tapping on the "+" button.
        4. -
        5. Select the opponent you want to face from the list. You can choose from bots, friends, or top players. You can also filter the opponents by arena, level, or trophies.
        6. -
        7. Select the arena you want to battle in from the list. You can choose from any arena in the game, including special arenas for events and challenges.
        8. -
        9. Select the game mode you want to play from the list. You can choose from any game mode in the game, such as 1v1, 2v2, draft, touchdown, etc.
        10. -
        11. Select the challenge or event you want to participate in from the list. You can choose from any challenge or event in the game, such as clan wars, global tournaments, special challenges, etc.
        12. -
        13. Tap on the "Start" button to start your battle. You can also adjust some settings for your battle by tapping on the "Settings" button.
        14. -

        How to analyze your performance and improve your skills

        -

        The final advantage of using Clash Royale Simulator is that you can analyze your performance and improve your skills. You can view detailed statistics and analytics of your battles, such as elixir usage, damage dealt, damage received, cards played, cards cycle, etc. You can also pause, resume, rewind, fast-forward, or replay any battle at any time. Here is how you can analyze your performance and improve your skills:

        -
          -
        1. Open the app and tap on the "History" button on the bottom menu.
        2. -
        3. Select the battle you want to analyze from the list. You can also filter the battles by date, opponent, arena, game mode, challenge, or event.
        4. -
        5. Tap on the "Stats" button to view the statistics and analytics of your battle. You can see the elixir usage, damage dealt, damage received, cards played, cards cycle, etc. of both you and your opponent.
        6. -
        7. Tap on the "Replay" button to watch the replay of your battle. You can pause, resume, rewind, fast-forward, or replay any battle at any time. You can also change the speed and perspective of the replay.
        8. -
        9. Use the statistics and analytics to identify your strengths and weaknesses, and use the replay to learn from your mistakes and successes.
        10. -
        11. Apply what you have learned to your next battles and see how you improve over time.
        12. -
        -

        Tips and Tricks for Using Clash Royale Simulator Effectively

        -

        How to use the simulator to practice different game modes and challenges

        -

        One of the tips and tricks for using Clash Royale Simulator effectively is to use it to practice different game modes and challenges. You can choose from any game mode in the game, such as 1v1, 2v2, draft, touchdown, etc. You can also choose from any challenge or event in the game, such as clan wars, global tournaments, special challenges, etc. Here is how you can use the simulator to practice different game modes and challenges:

        -
          -
        • Use the simulator to familiarize yourself with the rules and objectives of each game mode and challenge.
        • -
        • Use the simulator to test different decks and strategies for each game mode and challenge.
        • -
        • Use the simulator to practice against different types of opponents and scenarios for each game mode and challenge.
        • -
        • Use the simulator to prepare yourself for the real battles in the original game.
        • -
        -

        How to use the simulator to experiment with new cards and combinations

        -

        Another tip and trick for using Clash Royale Simulator effectively is to use it to experiment with new cards and combinations. You can access all the cards in the game, including the ones you don't have or haven't unlocked yet. You can also upgrade your cards to any level you want, without spending any gold or gems. Here is how you can use the simulator to experiment with new cards and combinations:

        -
          -
        • Use the simulator to explore all the cards in the game and learn their stats, abilities, synergies, counters, etc.
        • -
        • Use the simulator to create new decks with different cards and combinations that suit your playstyle and preferences.
        • -
        • Use the simulator to test your new decks against different opponents and scenarios and see how they perform.
        • -
        • Use the simulator to fine-tune your new decks by making adjustments and improvements based on your results.
        • -

        How to use the simulator to learn from the best players and watch replays

        -

        The final tip and trick for using Clash Royale Simulator effectively is to use it to learn from the best players and watch replays. You can choose from different types of opponents, such as bots, friends, or top players. You can also watch their replays and copy their decks. Here is how you can use the simulator to learn from the best players and watch replays:

        -
          -
        • Use the simulator to find and select the top players in the game. You can filter them by arena, level, or trophies.
        • -
        • Use the simulator to watch their replays and observe their strategies, tactics, moves, and decisions.
        • -
        • Use the simulator to copy their decks and try them out for yourself.
        • -
        • Use the simulator to compare your performance with theirs and see what you can learn from them.
        • -
        -

        Conclusion

        -

        Clash Royale Simulator is a fan-made app that lets you simulate battles in Clash Royale. It is a great tool for testing your strategies and skills without risking your trophies, chests, or gems. It is also a fun way to experiment with different cards, decks, and scenarios without spending any money or time. You can download and install Clash Royale Simulator APK on your Android device from one of the trusted sources mentioned above. You can also use the tips and tricks provided in this article to use Clash Royale Simulator effectively and improve your game. So what are you waiting for? Download Clash Royale Simulator APK today and unleash your creativity and potential in Clash Royale!

        -

        FAQs

        -

        Is Clash Royale Simulator safe and legal to use?

        -

        Clash Royale Simulator is safe and legal to use as long as you download it from a trusted source and scan it with an antivirus app before installing it. However, you should be aware that it is not affiliated with or endorsed by Supercell, the developer of the original game. You should also be careful not to violate the terms of service or end-user license agreement of the original game by using Clash Royale Simulator.

        -

        Does Clash Royale Simulator require an internet connection?

        -

        Clash Royale Simulator does not require an internet connection to run. You can use it offline without any problem. However, you may need an internet connection to download the APK file from a trusted source or to update the app to the latest version.

        -

        Can I use Clash Royale Simulator on other devices besides Android?

        -

        Clash Royale Simulator is currently only available for Android devices. There is no official version for iOS, Windows, Mac, or other platforms. However, you may be able to use an emulator or a virtual machine to run Clash Royale Simulator on other devices. However, this may not be optimal or stable and may cause compatibility issues or performance problems.

        -

        Will using Clash Royale Simulator affect my progress in the original game?

        -

        No, using Clash Royale Simulator will not affect your progress in the original game. Clash Royale Simulator is a standalone app that does not require you to have Clash Royale installed on your device. It does not sync with your Clash Royale account or data. It does not interfere with your trophies, chests, gems, cards, decks, or anything else in the original game. You can use Clash Royale Simulator independently without any worry.

        -

        Where can I find more information and support for Clash Royale Simulator?

        -

        You can find more information and support for Clash Royale Simulator by visiting their official website, their GitHub repository, their Uptodown page, or their apkonline.net page. You can also contact them by email at clashroyalesimulator@gmail.com or by joining their Discord server. You can also leave a comment or a review on their website or app page and share your feedback and suggestions.

        401be4b1e0
        -
        -
        \ No newline at end of file diff --git a/spaces/timbrooks/instruct-pix2pix/edit_app.py b/spaces/timbrooks/instruct-pix2pix/edit_app.py deleted file mode 100644 index 0359e815ad51b1a2291dd8943555568e452981ad..0000000000000000000000000000000000000000 --- a/spaces/timbrooks/instruct-pix2pix/edit_app.py +++ /dev/null @@ -1,192 +0,0 @@ -from __future__ import annotations - -import math -import random - -import gradio as gr -import torch -from PIL import Image, ImageOps -from diffusers import StableDiffusionInstructPix2PixPipeline - - -help_text = """ -If you're not getting what you want, there may be a few reasons: -1. Is the image not changing enough? Your Image CFG weight may be too high. This value dictates how similar the output should be to the input. It's possible your edit requires larger changes from the original image, and your Image CFG weight isn't allowing that. Alternatively, your Text CFG weight may be too low. This value dictates how much to listen to the text instruction. The default Image CFG of 1.5 and Text CFG of 7.5 are a good starting point, but aren't necessarily optimal for each edit. Try: - * Decreasing the Image CFG weight, or - * Increasing the Text CFG weight, or -2. Conversely, is the image changing too much, such that the details in the original image aren't preserved? Try: - * Increasing the Image CFG weight, or - * Decreasing the Text CFG weight -3. Try generating results with different random seeds by setting "Randomize Seed" and running generation multiple times. You can also try setting "Randomize CFG" to sample new Text CFG and Image CFG values each time. -4. Rephrasing the instruction sometimes improves results (e.g., "turn him into a dog" vs. "make him a dog" vs. "as a dog"). -5. Increasing the number of steps sometimes improves results. -6. Do faces look weird? The Stable Diffusion autoencoder has a hard time with faces that are small in the image. Try: - * Cropping the image so the face takes up a larger portion of the frame. -""" - - -example_instructions = [ - "Make it a picasso painting", - "as if it were by modigliani", - "convert to a bronze statue", - "Turn it into an anime.", - "have it look like a graphic novel", - "make him gain weight", - "what would he look like bald?", - "Have him smile", - "Put him in a cocktail party.", - "move him at the beach.", - "add dramatic lighting", - "Convert to black and white", - "What if it were snowing?", - "Give him a leather jacket", - "Turn him into a cyborg!", - "make him wear a beanie", -] - -model_id = "timbrooks/instruct-pix2pix" - -def main(): - pipe = StableDiffusionInstructPix2PixPipeline.from_pretrained(model_id, torch_dtype=torch.float16, safety_checker=None).to("cuda") - example_image = Image.open("imgs/example.jpg").convert("RGB") - - def load_example( - steps: int, - randomize_seed: bool, - seed: int, - randomize_cfg: bool, - text_cfg_scale: float, - image_cfg_scale: float, - ): - example_instruction = random.choice(example_instructions) - return [example_image, example_instruction] + generate( - example_image, - example_instruction, - steps, - randomize_seed, - seed, - randomize_cfg, - text_cfg_scale, - image_cfg_scale, - ) - - def generate( - input_image: Image.Image, - instruction: str, - steps: int, - randomize_seed: bool, - seed: int, - randomize_cfg: bool, - text_cfg_scale: float, - image_cfg_scale: float, - ): - seed = random.randint(0, 100000) if randomize_seed else seed - text_cfg_scale = round(random.uniform(6.0, 9.0), ndigits=2) if randomize_cfg else text_cfg_scale - image_cfg_scale = round(random.uniform(1.2, 1.8), ndigits=2) if randomize_cfg else image_cfg_scale - - width, height = input_image.size - factor = 512 / max(width, height) - factor = math.ceil(min(width, height) * factor / 64) * 64 / min(width, height) - width = int((width * factor) // 64) * 64 - height = int((height * factor) // 64) * 64 - input_image = ImageOps.fit(input_image, (width, height), method=Image.Resampling.LANCZOS) - - if instruction == "": - return [input_image, seed] - - generator = torch.manual_seed(seed) - edited_image = pipe( - instruction, image=input_image, - guidance_scale=text_cfg_scale, image_guidance_scale=image_cfg_scale, - num_inference_steps=steps, generator=generator, - ).images[0] - return [seed, text_cfg_scale, image_cfg_scale, edited_image] - - def reset(): - return [0, "Randomize Seed", 1371, "Fix CFG", 7.5, 1.5, None] - - with gr.Blocks() as demo: - gr.HTML("""

        - InstructPix2Pix: Learning to Follow Image Editing Instructions -

        -

        For faster inference without waiting in queue, you may duplicate the space and upgrade to GPU in settings. -
        - -Duplicate Space -

        """) - with gr.Row(): - with gr.Column(scale=1, min_width=100): - generate_button = gr.Button("Generate") - with gr.Column(scale=1, min_width=100): - load_button = gr.Button("Load Example") - with gr.Column(scale=1, min_width=100): - reset_button = gr.Button("Reset") - with gr.Column(scale=3): - instruction = gr.Textbox(lines=1, label="Edit Instruction", interactive=True) - - with gr.Row(): - input_image = gr.Image(label="Input Image", type="pil", interactive=True) - edited_image = gr.Image(label=f"Edited Image", type="pil", interactive=False) - input_image.style(height=512, width=512) - edited_image.style(height=512, width=512) - - with gr.Row(): - steps = gr.Number(value=50, precision=0, label="Steps", interactive=True) - randomize_seed = gr.Radio( - ["Fix Seed", "Randomize Seed"], - value="Randomize Seed", - type="index", - show_label=False, - interactive=True, - ) - seed = gr.Number(value=1371, precision=0, label="Seed", interactive=True) - randomize_cfg = gr.Radio( - ["Fix CFG", "Randomize CFG"], - value="Fix CFG", - type="index", - show_label=False, - interactive=True, - ) - text_cfg_scale = gr.Number(value=7.5, label=f"Text CFG", interactive=True) - image_cfg_scale = gr.Number(value=1.5, label=f"Image CFG", interactive=True) - - gr.Markdown(help_text) - - load_button.click( - fn=load_example, - inputs=[ - steps, - randomize_seed, - seed, - randomize_cfg, - text_cfg_scale, - image_cfg_scale, - ], - outputs=[input_image, instruction, seed, text_cfg_scale, image_cfg_scale, edited_image], - ) - generate_button.click( - fn=generate, - inputs=[ - input_image, - instruction, - steps, - randomize_seed, - seed, - randomize_cfg, - text_cfg_scale, - image_cfg_scale, - ], - outputs=[seed, text_cfg_scale, image_cfg_scale, edited_image], - ) - reset_button.click( - fn=reset, - inputs=[], - outputs=[steps, randomize_seed, seed, randomize_cfg, text_cfg_scale, image_cfg_scale, edited_image], - ) - - demo.queue(concurrency_count=1) - demo.launch(share=False) - - -if __name__ == "__main__": - main() diff --git a/spaces/tioseFevbu/cartoon-converter/IEC INTERNATIONAL 27031 STANDARDpdf.md b/spaces/tioseFevbu/cartoon-converter/IEC INTERNATIONAL 27031 STANDARDpdf.md deleted file mode 100644 index 20cab06b0b61fe8d1f9f89fe4ac1235f362b4941..0000000000000000000000000000000000000000 --- a/spaces/tioseFevbu/cartoon-converter/IEC INTERNATIONAL 27031 STANDARDpdf.md +++ /dev/null @@ -1,70 +0,0 @@ -## IEC INTERNATIONAL 27031 STANDARDpdf - - - - - - ![IEC INTERNATIONAL 27031 STANDARDpdf](https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcSiS5zphrJkpL-BXnkRmPL1O6B-xHsuUALz00wKG-278jEnAegztTTgPoE) - - - - - -**CLICK HERE >>> [https://tinourl.com/2txBqE](https://tinourl.com/2txBqE)** - - - - - - - - - - - - - -# What is IEC International 27031 Standard and Why You Need It - - - -IEC International 27031 Standard is a global standard that provides guidelines for information and communication technology (ICT) readiness for business continuity. It helps organizations to plan, implement and maintain their ICT systems and services to ensure they can support their critical business functions in the event of any disruption, such as natural disasters, cyberattacks, power outages or human errors. - - - -Business continuity is the ability of an organization to continue delivering its products or services at acceptable predefined levels following a disruptive incident. It is essential for any organization that relies on ICT to operate effectively and efficiently. ICT readiness for business continuity is the capability of the ICT infrastructure and systems to be prepared for and to withstand any disruption, and to recover quickly and resume normal operations. - - - -IEC International 27031 Standard describes the concepts and principles of ICT readiness for business continuity, and provides a framework of methods and processes to identify and specify all aspects (such as performance criteria, design and implementation) for improving an organization's ICT readiness to ensure business continuity. It applies to any organization (private, governmental or non-governmental, irrespective of size) developing its ICT readiness for business continuity program (IRBC), and requiring its ICT services/infrastructures to be ready to support business operations in the event of emerging events and incidents, and related disruptions, that could affect continuity (including security) of critical business functions[^1^]. - - - -Some of the benefits of implementing IEC International 27031 Standard are: - - - -- It helps organizations to align their ICT strategy with their business continuity strategy, and to integrate their ICT readiness activities with their overall business continuity management system. - -- It helps organizations to identify and prioritize their critical ICT assets and dependencies, and to assess their current level of ICT readiness. - -- It helps organizations to develop and implement appropriate ICT readiness strategies and plans, based on their specific needs and objectives. - -- It helps organizations to monitor and measure their ICT readiness performance, and to continually improve their ICT readiness capability. - -- It helps organizations to demonstrate their compliance with relevant laws, regulations and standards, and to enhance their reputation and trust among their stakeholders. - - - -If you want to learn more about IEC International 27031 Standard, you can download the PDF version from the official website of ISO[^2^], the International Organization for Standardization. ISO is an independent, non-governmental organization that develops and publishes international standards in collaboration with IEC, the International Electrotechnical Commission. ISO/IEC 27031:2011 is the current edition of the standard[^1^], which was last reviewed and confirmed in 2020. However, a new edition is under development as ISO/IEC DIS 27031[^3^], which is expected to be published soon. - - - -IEC International 27031 Standard is a valuable tool for any organization that wants to ensure its ICT readiness for business continuity. By following its guidelines, you can improve your resilience, reduce your risks and protect your assets from any disruption. Don't wait until it's too late. Start your IRBC journey today! - - dfd1c89656 - - - - - diff --git a/spaces/tioseFevbu/cartoon-converter/Tracktion Software Collective V1.2.2 Incl Patched And Keygen-R2R [VERIFIED].md b/spaces/tioseFevbu/cartoon-converter/Tracktion Software Collective V1.2.2 Incl Patched And Keygen-R2R [VERIFIED].md deleted file mode 100644 index 1626a13cfc49787a0a949d586d3282840d50d048..0000000000000000000000000000000000000000 --- a/spaces/tioseFevbu/cartoon-converter/Tracktion Software Collective V1.2.2 Incl Patched And Keygen-R2R [VERIFIED].md +++ /dev/null @@ -1,82 +0,0 @@ -## Tracktion Software Collective V1.2.2 Incl Patched And Keygen-R2R - - - - - - - - - -**CLICK HERE ☆ [https://tinourl.com/2txBqG](https://tinourl.com/2txBqG)** - - - - - - - - - - - - - -# Tracktion Software Collective v1.2.2: A Powerful Sampler and Synth - - - -Tracktion Software Collective v1.2.2 is the latest version of the versatile and creative sampler and synth plugin from Tracktion Software. It includes a patch and a keygen to unlock the full potential of this amazing instrument. - - - -Collective v1.2.2 offers over 600 presets, ranging from acoustic and electric pianos, guitars, basses, drums, orchestral instruments, synths, pads, leads, effects and more. You can also create your own sounds by combining up to 256 layers of samples and synthesis, with extensive modulation and processing options. - - - -Collective v1.2.2 also features a new browser interface that makes it easier to find and load sounds, as well as a redesigned mixer section that gives you more control over the levels, panning, filters and effects of each layer. You can also drag and drop samples from your computer or other plugins into Collective v1.2.2 and use them as sound sources. - - - -Collective v1.2.2 is compatible with Windows and Mac OS X, and supports VST, AU and AAX formats. It requires a 64-bit host application and at least 4 GB of RAM. You can download it from the official website or from various torrent sites. - - - -If you are looking for a powerful sampler and synth plugin that can handle any genre and style of music, you should definitely check out Tracktion Software Collective v1.2.2. - - - -In this article, we will explore some of the features and benefits of Tracktion Software Collective v1.2.2 in more detail. We will also provide some tips and tricks on how to use it effectively and creatively. - - - -## Features and Benefits of Tracktion Software Collective v1.2.2 - - - -Tracktion Software Collective v1.2.2 is a sampler and synth plugin that can produce a wide range of sounds, from realistic acoustic instruments to futuristic electronic sounds. Here are some of the main features and benefits of this plugin: - - - -- It has over 600 presets that cover various musical genres and styles. You can use them as they are or tweak them to suit your needs. - -- It allows you to create your own sounds by combining up to 256 layers of samples and synthesis. You can choose from different types of synthesis engines, such as wavetable, FM, subtractive, additive and granular. You can also import your own samples or use samples from other plugins as sound sources. - -- It has a flexible modulation system that lets you modulate almost any parameter with various sources, such as envelopes, LFOs, step sequencers, MIDI controllers and more. You can also assign macros to control multiple parameters at once. - -- It has a powerful processing section that includes filters, distortion, compression, EQ, chorus, flanger, phaser, delay, reverb and more. You can apply effects to each layer individually or to the whole sound globally. - -- It has a new browser interface that makes it easy to find and load sounds. You can browse by category, subcategory, tag or keyword. You can also create your own folders and favorites for quick access. - -- It has a redesigned mixer section that gives you more control over the levels, panning, filters and effects of each layer. You can also solo and mute layers, as well as adjust the overall volume and balance of the sound. - -- It has a drag and drop feature that lets you drag and drop samples from your computer or other plugins into Collective v1.2.2 and use them as sound sources. You can also drag and drop presets from Collective v1.2.2 into your host application or other plugins. - - - - 1b8d091108 - - - - - diff --git a/spaces/tioseFevbu/cartoon-converter/scripts/Adobe.dreamweaver.cc.crack.amtlib.dll.md b/spaces/tioseFevbu/cartoon-converter/scripts/Adobe.dreamweaver.cc.crack.amtlib.dll.md deleted file mode 100644 index 6f459d4acc7319da3665be35a278b0809c367017..0000000000000000000000000000000000000000 --- a/spaces/tioseFevbu/cartoon-converter/scripts/Adobe.dreamweaver.cc.crack.amtlib.dll.md +++ /dev/null @@ -1,85 +0,0 @@ - - - - - -
        -

        Adobe.dreamweaver.cc.crack.amtlib.dll: What Is It and How to Use It?

        -

        Adobe Dreamweaver is a popular web design and development software that allows you to create, code, and manage websites with ease. It supports various web standards such as HTML, CSS, JavaScript, PHP, and more. It also offers a visual interface that lets you see your web pages as you create them.

        -

        Adobe.dreamweaver.cc.crack.amtlib.dll


        Download Zip > https://urlcod.com/2uHyRY



        -

        amtlib.dll is a dynamic link library file that is part of the AMT Licensing system of Adobe products. It is responsible for verifying that your Adobe software is genuine and activated.

        -

        Cracking is a process of modifying or bypassing the software's security features and activation mechanisms. Cracking allows you to use the software without paying for it or following the license terms. Cracking is illegal and unethical, and it may expose your computer to malware or viruses.

        -

        In this article, we will explain what Adobe.dreamweaver.cc.crack.amtlib.dll is and how to use it to crack Adobe Dreamweaver CC. We will also discuss the risks of cracking Adobe Dreamweaver CC using amtlib.dll and the alternatives to cracking Adobe Dreamweaver CC using amtlib.dll.

        -

        Why Do People Crack Adobe Dreamweaver?

        -

        Adobe Dreamweaver is a premium software that requires a subscription fee to use. The subscription fee varies depending on the plan you choose, but it can range from $9.99 to $52.99 per month. Some people may find this fee too expensive or unreasonable, especially if they only use Adobe Dreamweaver occasionally or for personal projects.

        -

        -

        By cracking Adobe Dreamweaver using amtlib.dll, people can save money and access the full features of the software without any limitations or restrictions. They can also bypass the activation process and avoid registering their software with Adobe. Cracking Adobe Dreamweaver using amtlib.dll may seem like a convenient and easy way to use the software for free, but it comes with many drawbacks and dangers that we will discuss later in this article.

        -

        How to Crack Adobe Dreamweaver Using amtlib.dll?

        -

        The basic steps to crack Adobe Dreamweaver using amtlib.dll are as follows:

        -

        Step 1: Download Adobe Dreamweaver CC from the official website.

        -

        The first step is to download Adobe Dreamweaver CC from the official website. You can choose the trial version or the full version, depending on your preference. The trial version will give you access to the software for 7 days, while the full version will require you to sign in with your Adobe ID and enter your payment details.

        -

        After downloading the software, install it on your computer by following the instructions on the screen. You may need to restart your computer after the installation is complete.

        -

        Step 2: Download amtlib.dll from a reliable source.

        -

        The next step is to download amtlib.dll from a reliable source. amtlib.dll is a file that contains the cracked code that will override the original code of the AMT Licensing system of Adobe products. There are many websites that offer amtlib.dll files for different Adobe products, but not all of them are trustworthy or safe.

        -

        You should be careful when downloading amtlib.dll files from unknown or suspicious sources, as they may contain malware or viruses that can harm your computer or steal your personal information. You should also scan the file with an antivirus program before using it.

        -

        One of the websites that claims to provide safe and working amtlib.dll files for various Adobe products is [amtlibdll.com]. You can visit this website and search for Adobe Dreamweaver CC in the list of products. You will see different versions of Adobe Dreamweaver CC, such as 2020, 2019, 2018, etc. Choose the version that matches your installed software and click on the download button.

        -

        You will be redirected to another page where you will see a download link for amtlib.dll. Click on the link and save the file on your computer. Remember the location where you saved the file, as you will need it in the next step.

        -

        Step 3: Replace the original amtlib.dll file with the cracked one.

        -

        The third step is to replace the original amtlib.dll file with the cracked one. The original amtlib.dll file is located in the installation folder of Adobe Dreamweaver CC on your computer. The installation folder may vary depending on your operating system and settings, but it is usually found in one of these paths:

        -
          -
        • C:\Program Files\Adobe\Adobe Dreamweaver CC
        • -
        • C:\Program Files (x86)\Adobe\Adobe Dreamweaver CC
        • -
        -

        Navigate to the installation folder of Adobe Dreamweaver CC and look for a file named amtlib.dll. This is the file that you need to replace with the cracked one that you downloaded in the previous step.

        -

        Before you replace the file, make sure that you backup or rename the original file, in case something goes wrong or you want to restore it later. You can either copy and paste the file to another location, or rename it to something like amtlib.dll.bak or amtlib.dll.old.

        -

        After you backup or rename the original file, copy and paste the cracked file that you downloaded in the previous step to the installation folder of Adobe Dreamweaver CC. You may need to provide administrative permission to do this. Make sure that the cracked file has the same name as the original file, which is amtlib.dll.

        -

        Step 4: Launch Adobe Dreamweaver CC and enjoy its full features.

        -

        The final step is to launch Adobe Dreamweaver CC and enjoy its full features. You can open the software from your desktop shortcut or your start menu. You should not see any activation or registration prompts when you launch the software. You should also be able to access all the premium features and tools of Adobe Dreamweaver CC without any limitations or restrictions.

        -

        You can verify that your software is cracked successfully by checking the Help menu and clicking on About Adobe Dreamweaver CC. You should see a message that says "Adobe Dreamweaver CC - Cracked by amtlib.dll" or something similar.

        -

        Congratulations! You have successfully cracked Adobe Dreamweaver CC using amtlib.dll. You can now use the software for free and create amazing websites with ease.

        -

        What Are the Risks of Cracking Adobe Dreamweaver Using amtlib.dll?

        -

        While cracking Adobe Dreamweaver using amtlib.dll may seem like a tempting and convenient option, it is not without risks and consequences. Here are some of the risks of cracking Adobe Dreamweaver using amtlib.dll:

        -
          -
        • Legal issues: Cracking Adobe Dreamweaver using amtlib.dll is illegal and violates the terms and conditions of Adobe. By cracking Adobe Dreamweaver using amtlib.dll, you are infringing on the intellectual property rights of Adobe and committing software piracy. Software piracy is a serious crime that can result in fines, lawsuits, or even jail time. You are also exposing yourself to potential legal action from Adobe or other parties who may detect your cracked software.
        • -
        • Security threats: Cracking Adobe Dreamweaver using amtlib.dll is risky and unsafe for your computer and your personal information. By downloading and using amtlib.dll files from unknown or suspicious sources, you are putting your computer at risk of malware or viruses that can damage your system, corrupt your files, steal your data, or hijack your online accounts. You are also compromising the security of your software, as cracked software may contain backdoors, spyware, or trojans that can allow hackers or cybercriminals to access your computer remotely or monitor your online activities.
        • -
        • Performance issues: Cracking Adobe Dreamweaver using amtlib.dll is unreliable and unstable for your software and your web projects. By replacing the original amtlib.dll file with a cracked one, you are altering the functionality and compatibility of your software, which may cause errors, bugs, crashes, or glitches. You may also experience reduced performance, speed, or quality of your software, as cracked software may not be optimized or updated for your system or web standards. You may also lose some features or functions of your software, as cracked software may not support all the plugins, extensions, or integrations that you need for your web projects.
        • -
        • Update issues: Cracking Adobe Dreamweaver using amtlib.dll is problematic and inconvenient for your software and your web projects. By cracking Adobe Dreamweaver using amtlib.dll, you are preventing your software from receiving updates from Adobe, which may include bug fixes, security patches, feature enhancements, or performance improvements. You may also miss out on new features or tools that Adobe may release for its software in the future. You may also face compatibility issues with other software or web standards that may change or evolve over time. You may also have to repeat the cracking process every time you update your software, which can be tedious and time-consuming.
        • -
        -

        As you can see, cracking Adobe Dreamweaver using amtlib.dll is not worth it in the long run. It may save you some money in the short term, but it will cost you more in terms of legal troubles, security risks, performance problems, and update difficulties in the long term. It is better to use Adobe Dreamweaver legally and ethically than to crack it illegally and unethically.

        -

        What Are the Alternatives to Cracking Adobe Dreamweaver Using amtlib.dll?

        -

        If you want to use Adobe Dreamweaver without cracking it using amtlib.dll, you have some alternatives that are legal and ethical. Here are some of the alternatives to cracking Adobe Dreamweaver using amtlib.dll :

        -

        Alternative 1: Use a free trial version of Adobe Dreamweaver CC.

        -

        One of the alternatives to cracking Adobe Dreamweaver using amtlib.dll is to use a free trial version of Adobe Dreamweaver CC. Adobe offers a 7-day free trial for its software, which you can download from the official website. The free trial version will give you access to all the features and tools of Adobe Dreamweaver CC, but it will expire after 7 days. You can use the free trial version to test the software and see if it meets your needs and expectations.

        -

        The free trial version is a legal and ethical way to use Adobe Dreamweaver CC, but it has some limitations. You can only use the free trial version once per Adobe ID, and you cannot extend or renew it. You also need to have an internet connection and an Adobe ID to use the free trial version. You also need to uninstall the free trial version after it expires, or else it may interfere with other Adobe products on your computer.

        -

        Alternative 2: Use a student or teacher discount for Adobe Dreamweaver CC.

        -

        Another alternative to cracking Adobe Dreamweaver using amtlib.dll is to use a student or teacher discount for Adobe Dreamweaver CC. Adobe offers a special discount for students and teachers who want to use its software for educational purposes. The student or teacher discount will give you access to the full version of Adobe Dreamweaver CC, as well as other Adobe products, for a reduced price. The student or teacher discount can save you up to 60% off the regular price of the software.

        -

        The student or teacher discount is a legal and ethical way to use Adobe Dreamweaver CC, but it has some requirements and benefits. You need to be at least 13 years old and enrolled in an accredited school or institution to qualify for the student or teacher discount. You also need to provide proof of eligibility, such as a school email address, a school ID card, or a transcript. You also need to renew your subscription every year to maintain your eligibility. The student or teacher discount will give you access to the latest updates and features of Adobe Dreamweaver CC, as well as online storage, cloud services, and technical support.

        -

        Alternative 3: Use a free or open-source web design software.

        -

        A third alternative to cracking Adobe Dreamweaver using amtlib.dll is to use a free or open-source web design software. There are many web design software that are similar to Adobe Dreamweaver CC, but they are free or open-source, which means that you can use them without paying any fees or following any license terms. Some examples of free or open-source web design software are:

        -
          -
        • Brackets: Brackets is a lightweight and powerful web design software that is developed by Adobe. It supports HTML, CSS, JavaScript, and other web languages. It also offers a live preview feature that lets you see your web pages as you code them.
        • -
        • BlueGriffon: BlueGriffon is a user-friendly and versatile web design software that is based on the Firefox browser engine. It supports HTML5, CSS3, SVG, and other web standards. It also offers a visual interface that lets you create and edit your web pages with ease.
        • -
        • KompoZer: KompoZer is a simple and reliable web design software that is based on the Mozilla Composer project. It supports HTML4, CSS2, JavaScript, and other web languages. It also offers a visual interface that lets you see your web pages as you create them.
        • -
        -

        The free or open-source web design software are legal and ethical ways to use web design software, but they have some advantages and disadvantages. The advantages are that they are free or low-cost, easy to use, compatible with various platforms, and customizable with plugins or extensions. The disadvantages are that they may not have all the features or tools that Adobe Dreamweaver CC has, they may not be updated or supported regularly, they may have bugs or errors, and they may not be compatible with some web standards or browsers.

        -

        Conclusion

        -

        In conclusion, Adobe.dreamweaver.cc.crack.amtlib.dll is a file that can be used to crack Adobe Dreamweaver CC using amtlib.dll. Cracking Adobe Dreamweaver CC using amtlib.dll can give you access to the full features of the software without paying for it or following the license terms. However, cracking Adobe Dreamweaver CC using amtlib.dll is illegal and unethical, and it comes with many risks and consequences, such as legal issues, security threats, performance issues, and update issues.

        -

        If you want to use Adobe Dreamweaver without cracking it using amtlib.dll, you have some alternatives that are legal and ethical, such as using a free trial version of Adobe Dreamweaver CC, using a student or teacher discount for Adobe Dreamweaver CC, or using a free or open-source web design software. These alternatives may not have all the benefits of cracking Adobe Dreamweaver CC using amtlib.dll, but they will also not have all the drawbacks and dangers of cracking Adobe Dreamweaver CC using amtlib.dll.

        -

        We hope that this article has helped you understand what Adobe.dreamweaver.cc.crack.amtlib.dll is and how to use it to crack Adobe Dreamweaver CC. We also hope that this article has helped you realize the risks of cracking Adobe Dreamweaver CC using amtlib.dll and the alternatives to cracking Adobe Dreamweaver CC using amtlib.dll. We recommend that you use Adobe Dreamweaver legally and ethically, and respect the intellectual property rights of Adobe and other software developers.

        -

        FAQs

        -

        Here are some frequently asked questions related to the topic of this article and their answers:

        -
          -
        • Q: Is cracking Adobe Dreamweaver CC using amtlib.dll safe?
        • -
        • A: No, cracking Adobe Dreamweaver CC using amtlib.dll is not safe. It is illegal and unethical, and it may expose your computer to malware or viruses. It may also compromise the security, performance, and compatibility of your software and your web projects.
        • -
        • Q: How can I get Adobe Dreamweaver CC for free?
        • -
        • A: You can get Adobe Dreamweaver CC for free by using a free trial version of the software, which you can download from the official website. The free trial version will give you access to all the features and tools of the software for 7 days, but it will expire after that. You can also use a free or open-source web design software that is similar to Adobe Dreamweaver CC, such as Brackets, BlueGriffon, or KompoZer.
        • -
        • Q: How can I get Adobe Dreamweaver CC for cheap?
        • -
        • A: You can get Adobe Dreamweaver CC for cheap by using a student or teacher discount for the software, which you can apply for on the official website. The student or teacher discount will give you access to the full version of the software, as well as other Adobe products, for a reduced price. The student or teacher discount can save you up to 60% off the regular price of the software.
        • -
        • Q: How can I update my cracked Adobe Dreamweaver CC using amtlib.dll?
        • -
        • A: You cannot update your cracked Adobe Dreamweaver CC using amtlib.dll, as cracking prevents your software from receiving updates from Adobe. If you try to update your cracked software, you may lose your crack or face errors or crashes. You may also have to repeat the cracking process every time you update your software, which can be tedious and time-consuming.
        • -
        • Q: How can I restore my original amtlib.dll file after cracking Adobe Dreamweaver CC using amtlib.dll?
        • -
        • A: You can restore your original amtlib.dll file after cracking Adobe Dreamweaver CC using amtlib.dll by deleting or renaming the cracked file and replacing it with the original file that you backed up or renamed before cracking. You may need to provide administrative permission to do this. You may also need to uninstall and reinstall your software to restore its original functionality and compatibility.
        • -
        -

        b2dd77e56b
        -
        -
        \ No newline at end of file diff --git a/spaces/tioseFevbu/cartoon-converter/scripts/Autodesk Inventor HSM Pro 2017 Crack 101 __EXCLUSIVE__.md b/spaces/tioseFevbu/cartoon-converter/scripts/Autodesk Inventor HSM Pro 2017 Crack 101 __EXCLUSIVE__.md deleted file mode 100644 index 8b085dde381c701bec74a54ba56a28b6e8d2a7f8..0000000000000000000000000000000000000000 --- a/spaces/tioseFevbu/cartoon-converter/scripts/Autodesk Inventor HSM Pro 2017 Crack 101 __EXCLUSIVE__.md +++ /dev/null @@ -1,38 +0,0 @@ -
        -Here is a possible article: - -

        How to Crack Autodesk Inventor HSM Pro 2017 in 5 Easy Steps

        -

        Autodesk Inventor HSM Pro 2017 is a powerful software for computer-aided design and manufacturing (CAD/CAM) that integrates seamlessly with Autodesk Inventor. It allows you to create high-quality toolpaths for 2.5D, 3D, and 5-axis milling, turning, and mill-turn applications. However, it is also a pricey software that requires a license to use. If you want to use it for free, you might be tempted to look for a crack online. But beware, cracking software is illegal and risky, and you might end up with malware, viruses, or legal troubles.

        -

        Autodesk Inventor HSM Pro 2017 Crack~ 101


        Downloadhttps://urlcod.com/2uHxq0



        -

        That being said, if you are still determined to crack Autodesk Inventor HSM Pro 2017, here are the steps you need to follow:

        -
          -
        1. Download the trial version of Autodesk Inventor HSM Pro 2017 from the official website and install it on your computer.
        2. -
        3. Download the crack file from a reliable source. Make sure it is compatible with your system and has positive feedback from other users.
        4. -
        5. Disable your antivirus and firewall software temporarily. This is to prevent them from interfering with the cracking process or deleting the crack file.
        6. -
        7. Extract the crack file and copy the contents to the installation folder of Autodesk Inventor HSM Pro 2017. Usually, this is located at C:\Program Files\Autodesk\Inventor HSM Pro 2017. Overwrite any existing files if prompted.
        8. -
        9. Run the crack file as administrator and follow the instructions on the screen. Wait for the cracking process to finish and then restart your computer.
        10. -
        -

        Congratulations! You have successfully cracked Autodesk Inventor HSM Pro 2017 and can now use it without any limitations. However, remember that this is not a legal or ethical way of using software and you might face serious consequences if you get caught. Therefore, we recommend that you purchase a legitimate license from Autodesk or use an alternative software that is free or open-source.

        - -

        Why Crack Autodesk Inventor HSM Pro 2017?

        -

        Autodesk Inventor HSM Pro 2017 is a popular software among engineers, designers, and manufacturers who need to create complex and precise parts and products. It offers a range of features and benefits that make it a superior choice for CAD/CAM. Some of these are:

        -
          -
        • It integrates seamlessly with Autodesk Inventor, allowing you to design and manufacture in one environment.
        • -
        • It supports multiple types of machining operations, including 2.5D, 3D, and 5-axis milling, turning, and mill-turn.
        • -
        • It provides advanced simulation and verification tools that help you optimize your toolpaths and avoid errors and collisions.
        • -
        • It generates high-quality NC code that is compatible with most CNC machines and controllers.
        • -
        • It has a user-friendly interface and a comprehensive online help system that guides you through the workflow.
        • -
        -

        However, Autodesk Inventor HSM Pro 2017 is also a very expensive software that requires a yearly subscription or a perpetual license to use. Depending on the type of license and the number of users, the cost can range from hundreds to thousands of dollars. For many individuals and small businesses, this can be a prohibitive expense that limits their access to the software. Therefore, some people resort to cracking the software to bypass the license activation and use it for free.

        - -

        The Risks of Cracking Autodesk Inventor HSM Pro 2017

        -

        While cracking Autodesk Inventor HSM Pro 2017 might seem like a tempting option to save money and enjoy the software without any restrictions, it is also a very risky and illegal activity that can have serious consequences. Some of the risks of cracking Autodesk Inventor HSM Pro 2017 are:

        -
          -
        • You might violate the intellectual property rights of Autodesk and face legal action from them. Autodesk has a strict policy against piracy and cracking and actively monitors the use of its software. If they detect that you are using a cracked version of their software, they might sue you for damages or report you to the authorities.
        • -
        • You might expose your computer and data to malware, viruses, or hackers. The crack file that you download from the internet might contain malicious code that can harm your computer or steal your information. You might also compromise your security by disabling your antivirus and firewall software during the cracking process.
        • -
        • You might experience poor performance, errors, or crashes while using the software. The crack file might not be compatible with your system or might interfere with the normal functioning of the software. You might also miss out on important updates, patches, or bug fixes that Autodesk releases for its software.
        • -
        • You might lose access to customer support, online resources, or community forums that Autodesk provides for its software. If you encounter any problems or need any assistance while using the software, you might not be able to get help from Autodesk or other users who have legitimate licenses.
        • -
        -

        Therefore, cracking Autodesk Inventor HSM Pro 2017 is not worth the risk and hassle. You might end up losing more than you gain by doing so. Instead, you should consider buying a legitimate license from Autodesk or using an alternative software that is free or open-source.

        e93f5a0c3f
        -
        -
        \ No newline at end of file diff --git a/spaces/tioseFevbu/cartoon-converter/scripts/Ebp Devis Facturation 2012 Crack.md b/spaces/tioseFevbu/cartoon-converter/scripts/Ebp Devis Facturation 2012 Crack.md deleted file mode 100644 index 2aff95d7b8dd75bb6f30c7db66467ff4bee6b293..0000000000000000000000000000000000000000 --- a/spaces/tioseFevbu/cartoon-converter/scripts/Ebp Devis Facturation 2012 Crack.md +++ /dev/null @@ -1,20 +0,0 @@ -
        -

        Ebp Devis Facturation 2012: A Simple and Effective Solution for Invoicing and Business Management

        -

        Ebp Devis Facturation 2012 is a software that helps you create invoices and manage your commercial activity. It is designed to be easy to use and to adapt to your specific needs. With Ebp Devis Facturation 2012, you can:

        -

        Ebp Devis Facturation 2012 Crack


        Download Filehttps://urlcod.com/2uHwH1



        -
          -
        • Create professional invoices and quotes with customizable templates and logos.
        • -
        • Track your payments, reminders, and outstanding balances.
        • -
        • Manage your stock, purchases, and suppliers.
        • -
        • Analyze your sales, margins, and profitability with various reports and statistics.
        • -
        • Export your data to other Ebp software or to Excel, Word, or PDF formats.
        • -
        -

        Ebp Devis Facturation 2012 is a reliable and secure solution that complies with the legal requirements and the anti-fraud law. It also offers a technical support service and regular updates. Ebp Devis Facturation 2012 is compatible with Windows XP, Vista, 7, 8, and 10 operating systems.

        -

        If you are looking for a simple and effective solution for invoicing and business management, Ebp Devis Facturation 2012 is the software for you. You can download a free trial version from the official website[^2^] or buy the full version for 149€ (VAT included).

        Ebp Devis Facturation 2012 is a software that can help you save time and money in your invoicing and business management. You can create invoices and quotes in a few clicks, and send them by email or print them. You can also automate your reminders and follow-ups, and avoid late payments and bad debts. You can also manage your stock and purchases efficiently, and avoid stock-outs and overstocks. You can also monitor your business performance and make informed decisions with the help of various reports and statistics.

        -

        -

        Ebp Devis Facturation 2012 is a software that can help you grow your business and satisfy your customers. You can customize your invoices and quotes with your own logo and colors, and create a professional image for your company. You can also offer different payment methods and discounts to your customers, and increase their loyalty and satisfaction. You can also integrate your data with other Ebp software or with other applications, and streamline your workflow and collaboration.

        -

        Ebp Devis Facturation 2012 is a software that can help you comply with the legal requirements and the anti-fraud law. You can generate invoices that respect the mandatory mentions and the VAT rules. You can also secure your data with encryption and backups, and prevent any fraud or manipulation. You can also benefit from the technical support service and the regular updates from Ebp, and stay up to date with the latest changes and features.

        Ebp Devis Facturation 2012 is a software that can help you improve your productivity and profitability in your invoicing and business management. You can create invoices and quotes quickly and easily, and track your payments and balances. You can also manage your stock and purchases effectively, and optimize your inventory and costs. You can also analyze your sales and margins, and identify your strengths and weaknesses.

        -

        Ebp Devis Facturation 2012 is a software that can help you enhance your reputation and customer service in your invoicing and business management. You can create invoices and quotes that reflect your brand identity and professionalism, and impress your customers. You can also offer flexible payment options and incentives to your customers, and increase their trust and loyalty. You can also connect your data with other Ebp software or with other tools, and improve your communication and collaboration.

        -

        Ebp Devis Facturation 2012 is a software that can help you comply with the legal obligations and the anti-fraud law in your invoicing and business management. You can create invoices that follow the legal standards and the VAT regulations. You can also protect your data with encryption and backups, and prevent any fraud or tampering. You can also benefit from the technical support service and the regular updates from Ebp, and stay current with the latest changes and features.

        7196e7f11a
        -
        -
        \ No newline at end of file diff --git a/spaces/tobiascz/demotime/pytorch_grad_cam/activations_and_gradients.py b/spaces/tobiascz/demotime/pytorch_grad_cam/activations_and_gradients.py deleted file mode 100644 index f6f2c09d8c2941757e0356a619d0b4e7ed44a64f..0000000000000000000000000000000000000000 --- a/spaces/tobiascz/demotime/pytorch_grad_cam/activations_and_gradients.py +++ /dev/null @@ -1,46 +0,0 @@ -class ActivationsAndGradients: - """ Class for extracting activations and - registering gradients from targetted intermediate layers """ - - def __init__(self, model, target_layers, reshape_transform): - self.model = model - self.gradients = [] - self.activations = [] - self.reshape_transform = reshape_transform - self.handles = [] - for target_layer in target_layers: - self.handles.append( - target_layer.register_forward_hook(self.save_activation)) - # Because of https://github.com/pytorch/pytorch/issues/61519, - # we don't use backward hook to record gradients. - self.handles.append( - target_layer.register_forward_hook(self.save_gradient)) - - def save_activation(self, module, input, output): - activation = output - - if self.reshape_transform is not None: - activation = self.reshape_transform(activation) - self.activations.append(activation.cpu().detach()) - - def save_gradient(self, module, input, output): - if not hasattr(output, "requires_grad") or not output.requires_grad: - # You can only register hooks on tensor requires grad. - return - - # Gradients are computed in reverse order - def _store_grad(grad): - if self.reshape_transform is not None: - grad = self.reshape_transform(grad) - self.gradients = [grad.cpu().detach()] + self.gradients - - output.register_hook(_store_grad) - - def __call__(self, x): - self.gradients = [] - self.activations = [] - return self.model(x) - - def release(self): - for handle in self.handles: - handle.remove() diff --git a/spaces/tomandandy/MusicGen3/tests/data/test_audio.py b/spaces/tomandandy/MusicGen3/tests/data/test_audio.py deleted file mode 100644 index 40c0d5ed69eff92a766dc6d176e532f0df6c2b5e..0000000000000000000000000000000000000000 --- a/spaces/tomandandy/MusicGen3/tests/data/test_audio.py +++ /dev/null @@ -1,239 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. -# -# This source code is licensed under the license found in the -# LICENSE file in the root directory of this source tree. - -from itertools import product -import random - -import numpy as np -import torch -import torchaudio - -from audiocraft.data.audio import audio_info, audio_read, audio_write, _av_read - -from ..common_utils import TempDirMixin, get_white_noise, save_wav - - -class TestInfo(TempDirMixin): - - def test_info_mp3(self): - sample_rates = [8000, 16_000] - channels = [1, 2] - duration = 1. - for sample_rate, ch in product(sample_rates, channels): - wav = get_white_noise(ch, int(sample_rate * duration)) - path = self.get_temp_path('sample_wav.mp3') - save_wav(path, wav, sample_rate) - info = audio_info(path) - assert info.sample_rate == sample_rate - assert info.channels == ch - # we cannot trust torchaudio for num_frames, so we don't check - - def _test_info_format(self, ext: str): - sample_rates = [8000, 16_000] - channels = [1, 2] - duration = 1. - for sample_rate, ch in product(sample_rates, channels): - n_frames = int(sample_rate * duration) - wav = get_white_noise(ch, n_frames) - path = self.get_temp_path(f'sample_wav{ext}') - save_wav(path, wav, sample_rate) - info = audio_info(path) - assert info.sample_rate == sample_rate - assert info.channels == ch - assert np.isclose(info.duration, duration, atol=1e-5) - - def test_info_wav(self): - self._test_info_format('.wav') - - def test_info_flac(self): - self._test_info_format('.flac') - - def test_info_ogg(self): - self._test_info_format('.ogg') - - def test_info_m4a(self): - # TODO: generate m4a file programmatically - # self._test_info_format('.m4a') - pass - - -class TestRead(TempDirMixin): - - def test_read_full_wav(self): - sample_rates = [8000, 16_000] - channels = [1, 2] - duration = 1. - for sample_rate, ch in product(sample_rates, channels): - n_frames = int(sample_rate * duration) - wav = get_white_noise(ch, n_frames).clamp(-0.99, 0.99) - path = self.get_temp_path('sample_wav.wav') - save_wav(path, wav, sample_rate) - read_wav, read_sr = audio_read(path) - assert read_sr == sample_rate - assert read_wav.shape[0] == wav.shape[0] - assert read_wav.shape[1] == wav.shape[1] - assert torch.allclose(read_wav, wav, rtol=1e-03, atol=1e-04) - - def test_read_partial_wav(self): - sample_rates = [8000, 16_000] - channels = [1, 2] - duration = 1. - read_duration = torch.rand(1).item() - for sample_rate, ch in product(sample_rates, channels): - n_frames = int(sample_rate * duration) - read_frames = int(sample_rate * read_duration) - wav = get_white_noise(ch, n_frames).clamp(-0.99, 0.99) - path = self.get_temp_path('sample_wav.wav') - save_wav(path, wav, sample_rate) - read_wav, read_sr = audio_read(path, 0, read_duration) - assert read_sr == sample_rate - assert read_wav.shape[0] == wav.shape[0] - assert read_wav.shape[1] == read_frames - assert torch.allclose(read_wav[..., 0:read_frames], wav[..., 0:read_frames], rtol=1e-03, atol=1e-04) - - def test_read_seek_time_wav(self): - sample_rates = [8000, 16_000] - channels = [1, 2] - duration = 1. - read_duration = 1. - for sample_rate, ch in product(sample_rates, channels): - n_frames = int(sample_rate * duration) - wav = get_white_noise(ch, n_frames).clamp(-0.99, 0.99) - path = self.get_temp_path('sample_wav.wav') - save_wav(path, wav, sample_rate) - seek_time = torch.rand(1).item() - read_wav, read_sr = audio_read(path, seek_time, read_duration) - seek_frames = int(sample_rate * seek_time) - expected_frames = n_frames - seek_frames - assert read_sr == sample_rate - assert read_wav.shape[0] == wav.shape[0] - assert read_wav.shape[1] == expected_frames - assert torch.allclose(read_wav, wav[..., seek_frames:], rtol=1e-03, atol=1e-04) - - def test_read_seek_time_wav_padded(self): - sample_rates = [8000, 16_000] - channels = [1, 2] - duration = 1. - read_duration = 1. - for sample_rate, ch in product(sample_rates, channels): - n_frames = int(sample_rate * duration) - read_frames = int(sample_rate * read_duration) - wav = get_white_noise(ch, n_frames).clamp(-0.99, 0.99) - path = self.get_temp_path('sample_wav.wav') - save_wav(path, wav, sample_rate) - seek_time = torch.rand(1).item() - seek_frames = int(sample_rate * seek_time) - expected_frames = n_frames - seek_frames - read_wav, read_sr = audio_read(path, seek_time, read_duration, pad=True) - expected_pad_wav = torch.zeros(wav.shape[0], read_frames - expected_frames) - assert read_sr == sample_rate - assert read_wav.shape[0] == wav.shape[0] - assert read_wav.shape[1] == read_frames - assert torch.allclose(read_wav[..., :expected_frames], wav[..., seek_frames:], rtol=1e-03, atol=1e-04) - assert torch.allclose(read_wav[..., expected_frames:], expected_pad_wav) - - -class TestAvRead(TempDirMixin): - - def test_avread_seek_base(self): - sample_rates = [8000, 16_000] - channels = [1, 2] - duration = 2. - for sample_rate, ch in product(sample_rates, channels): - n_frames = int(sample_rate * duration) - wav = get_white_noise(ch, n_frames) - path = self.get_temp_path(f'reference_a_{sample_rate}_{ch}.wav') - save_wav(path, wav, sample_rate) - for _ in range(100): - # seek will always load a full duration segment in the file - seek_time = random.uniform(0.0, 1.0) - seek_duration = random.uniform(0.001, 1.0) - read_wav, read_sr = _av_read(path, seek_time, seek_duration) - assert read_sr == sample_rate - assert read_wav.shape[0] == wav.shape[0] - assert read_wav.shape[-1] == int(seek_duration * sample_rate) - - def test_avread_seek_partial(self): - sample_rates = [8000, 16_000] - channels = [1, 2] - duration = 1. - for sample_rate, ch in product(sample_rates, channels): - n_frames = int(sample_rate * duration) - wav = get_white_noise(ch, n_frames) - path = self.get_temp_path(f'reference_b_{sample_rate}_{ch}.wav') - save_wav(path, wav, sample_rate) - for _ in range(100): - # seek will always load a partial segment - seek_time = random.uniform(0.5, 1.) - seek_duration = 1. - expected_num_frames = n_frames - int(seek_time * sample_rate) - read_wav, read_sr = _av_read(path, seek_time, seek_duration) - assert read_sr == sample_rate - assert read_wav.shape[0] == wav.shape[0] - assert read_wav.shape[-1] == expected_num_frames - - def test_avread_seek_outofbound(self): - sample_rates = [8000, 16_000] - channels = [1, 2] - duration = 1. - for sample_rate, ch in product(sample_rates, channels): - n_frames = int(sample_rate * duration) - wav = get_white_noise(ch, n_frames) - path = self.get_temp_path(f'reference_c_{sample_rate}_{ch}.wav') - save_wav(path, wav, sample_rate) - seek_time = 1.5 - read_wav, read_sr = _av_read(path, seek_time, 1.) - assert read_sr == sample_rate - assert read_wav.shape[0] == wav.shape[0] - assert read_wav.shape[-1] == 0 - - def test_avread_seek_edge(self): - sample_rates = [8000, 16_000] - # some of these values will have - # int(((frames - 1) / sample_rate) * sample_rate) != (frames - 1) - n_frames = [1000, 1001, 1002] - channels = [1, 2] - for sample_rate, ch, frames in product(sample_rates, channels, n_frames): - duration = frames / sample_rate - wav = get_white_noise(ch, frames) - path = self.get_temp_path(f'reference_d_{sample_rate}_{ch}.wav') - save_wav(path, wav, sample_rate) - seek_time = (frames - 1) / sample_rate - seek_frames = int(seek_time * sample_rate) - read_wav, read_sr = _av_read(path, seek_time, duration) - assert read_sr == sample_rate - assert read_wav.shape[0] == wav.shape[0] - assert read_wav.shape[-1] == (frames - seek_frames) - - -class TestAudioWrite(TempDirMixin): - - def test_audio_write_wav(self): - torch.manual_seed(1234) - sample_rates = [8000, 16_000] - n_frames = [1000, 1001, 1002] - channels = [1, 2] - strategies = ["peak", "clip", "rms"] - formats = ["wav", "mp3"] - for sample_rate, ch, frames in product(sample_rates, channels, n_frames): - for format_, strategy in product(formats, strategies): - wav = get_white_noise(ch, frames) - path = self.get_temp_path(f'pred_{sample_rate}_{ch}') - audio_write(path, wav, sample_rate, format_, strategy=strategy) - read_wav, read_sr = torchaudio.load(f'{path}.{format_}') - if format_ == "wav": - assert read_wav.shape == wav.shape - - if format_ == "wav" and strategy in ["peak", "rms"]: - rescaled_read_wav = read_wav / read_wav.abs().max() * wav.abs().max() - # for a Gaussian, the typical max scale will be less than ~5x the std. - # The error when writing to disk will ~ 1/2**15, and when rescaling, 5x that. - # For RMS target, rescaling leaves more headroom by default, leading - # to a 20x rescaling typically - atol = (5 if strategy == "peak" else 20) / 2**15 - delta = (rescaled_read_wav - wav).abs().max() - assert torch.allclose(wav, rescaled_read_wav, rtol=0, atol=atol), (delta, atol) - formats = ["wav"] # faster unit tests diff --git a/spaces/tomofi/MMOCR/configs/_base_/recog_models/robust_scanner.py b/spaces/tomofi/MMOCR/configs/_base_/recog_models/robust_scanner.py deleted file mode 100644 index 4cc2fa108855a102e1f4e48b6f94bac3b7f7d644..0000000000000000000000000000000000000000 --- a/spaces/tomofi/MMOCR/configs/_base_/recog_models/robust_scanner.py +++ /dev/null @@ -1,24 +0,0 @@ -label_convertor = dict( - type='AttnConvertor', dict_type='DICT90', with_unknown=True) - -hybrid_decoder = dict(type='SequenceAttentionDecoder') - -position_decoder = dict(type='PositionAttentionDecoder') - -model = dict( - type='RobustScanner', - backbone=dict(type='ResNet31OCR'), - encoder=dict( - type='ChannelReductionEncoder', - in_channels=512, - out_channels=128, - ), - decoder=dict( - type='RobustScannerDecoder', - dim_input=512, - dim_model=128, - hybrid_decoder=hybrid_decoder, - position_decoder=position_decoder), - loss=dict(type='SARLoss'), - label_convertor=label_convertor, - max_seq_len=30) diff --git a/spaces/tomofi/MMOCR/docs/zh_cn/stats.py b/spaces/tomofi/MMOCR/docs/zh_cn/stats.py deleted file mode 100644 index 0d2ece5dd6910446fc896e52027afff78db3e450..0000000000000000000000000000000000000000 --- a/spaces/tomofi/MMOCR/docs/zh_cn/stats.py +++ /dev/null @@ -1,101 +0,0 @@ -#!/usr/bin/env python -# Copyright (c) OpenMMLab. All rights reserved. -import functools as func -import glob -import re -from os.path import basename, splitext - -import numpy as np -import titlecase - - -def title2anchor(name): - return re.sub(r'-+', '-', re.sub(r'[^a-zA-Z0-9]', '-', - name.strip().lower())).strip('-') - - -# Count algorithms - -files = sorted(glob.glob('*_models.md')) - -stats = [] - -for f in files: - with open(f, 'r') as content_file: - content = content_file.read() - - # Remove the blackquote notation from the paper link under the title - # for better layout in readthedocs - expr = r'(^## \s*?.*?\s+?)>\s*?(\[.*?\]\(.*?\))' - content = re.sub(expr, r'\1\2', content, flags=re.MULTILINE) - with open(f, 'w') as content_file: - content_file.write(content) - - # title - title = content.split('\n')[0].replace('#', '') - - # count papers - exclude_papertype = ['ABSTRACT', 'IMAGE'] - exclude_expr = ''.join(f'(?!{s})' for s in exclude_papertype) - expr = rf''\ - r'\s*\n.*?\btitle\s*=\s*{(.*?)}' - papers = set( - (papertype, titlecase.titlecase(paper.lower().strip())) - for (papertype, paper) in re.findall(expr, content, re.DOTALL)) - print(papers) - # paper links - revcontent = '\n'.join(list(reversed(content.splitlines()))) - paperlinks = {} - for _, p in papers: - q = p.replace('\\', '\\\\').replace('?', '\\?') - paper_link = title2anchor( - re.search( - rf'\btitle\s*=\s*{{\s*{q}\s*}}.*?\n## (.*?)\s*[,;]?\s*\n', - revcontent, re.DOTALL | re.IGNORECASE).group(1)) - paperlinks[p] = f'[{p}]({splitext(basename(f))[0]}.html#{paper_link})' - paperlist = '\n'.join( - sorted(f' - [{t}] {paperlinks[x]}' for t, x in papers)) - # count configs - configs = set(x.lower().strip() - for x in re.findall(r'https.*configs/.*\.py', content)) - - # count ckpts - ckpts = set(x.lower().strip() - for x in re.findall(r'https://download.*\.pth', content) - if 'mmocr' in x) - - statsmsg = f""" -## [{title}]({f}) - -* 模型权重文件数量: {len(ckpts)} -* 配置文件数量: {len(configs)} -* 论文数量: {len(papers)} -{paperlist} - - """ - - stats.append((papers, configs, ckpts, statsmsg)) - -allpapers = func.reduce(lambda a, b: a.union(b), [p for p, _, _, _ in stats]) -allconfigs = func.reduce(lambda a, b: a.union(b), [c for _, c, _, _ in stats]) -allckpts = func.reduce(lambda a, b: a.union(b), [c for _, _, c, _ in stats]) -msglist = '\n'.join(x for _, _, _, x in stats) - -papertypes, papercounts = np.unique([t for t, _ in allpapers], - return_counts=True) -countstr = '\n'.join( - [f' - {t}: {c}' for t, c in zip(papertypes, papercounts)]) - -modelzoo = f""" -# 统计数据 - -* 模型权重文件数量: {len(allckpts)} -* 配置文件数量: {len(allconfigs)} -* 论文数量: {len(allpapers)} -{countstr} - -{msglist} -""" - -with open('modelzoo.md', 'w') as f: - f.write(modelzoo) diff --git a/spaces/tomofi/MMOCR/mmocr/models/textrecog/decoders/__init__.py b/spaces/tomofi/MMOCR/mmocr/models/textrecog/decoders/__init__.py deleted file mode 100644 index ae91b8bb8571736d74a63a820257dc42700a725f..0000000000000000000000000000000000000000 --- a/spaces/tomofi/MMOCR/mmocr/models/textrecog/decoders/__init__.py +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright (c) OpenMMLab. All rights reserved. -from .abinet_language_decoder import ABILanguageDecoder -from .abinet_vision_decoder import ABIVisionDecoder -from .base_decoder import BaseDecoder -from .crnn_decoder import CRNNDecoder -from .nrtr_decoder import NRTRDecoder -from .position_attention_decoder import PositionAttentionDecoder -from .robust_scanner_decoder import RobustScannerDecoder -from .sar_decoder import ParallelSARDecoder, SequentialSARDecoder -from .sar_decoder_with_bs import ParallelSARDecoderWithBS -from .sequence_attention_decoder import SequenceAttentionDecoder - -__all__ = [ - 'CRNNDecoder', 'ParallelSARDecoder', 'SequentialSARDecoder', - 'ParallelSARDecoderWithBS', 'NRTRDecoder', 'BaseDecoder', - 'SequenceAttentionDecoder', 'PositionAttentionDecoder', - 'RobustScannerDecoder', 'ABILanguageDecoder', 'ABIVisionDecoder' -] diff --git a/spaces/tomofi/MaskTextSpotterV3-OCR/maskrcnn_benchmark/structures/segmentation_mask.py b/spaces/tomofi/MaskTextSpotterV3-OCR/maskrcnn_benchmark/structures/segmentation_mask.py deleted file mode 100644 index 0d1b0722d4f3366de11166dca7803dd914ef6bd7..0000000000000000000000000000000000000000 --- a/spaces/tomofi/MaskTextSpotterV3-OCR/maskrcnn_benchmark/structures/segmentation_mask.py +++ /dev/null @@ -1,766 +0,0 @@ -#!/usr/bin/env python3 -# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. -import cv2 -import numpy as np -import pycocotools.mask as mask_utils -import torch -from maskrcnn_benchmark.utils.chars import char2num -import pyclipper -# from PIL import Image -from shapely import affinity -from shapely.geometry import Polygon as ShapePolygon - - -# transpose -FLIP_LEFT_RIGHT = 0 -FLIP_TOP_BOTTOM = 1 - - -def convert_2d_tuple(t): - a = [] - for i in t: - a.extend(list(i)) - return a - - -class Mask(object): - """ - This class is unfinished and not meant for use yet - It is supposed to contain the mask for an object as - a 2d tensor - """ - - def __init__(self, masks, size, mode): - self.masks = masks - self.size = size - self.mode = mode - - def transpose(self, method): - if method not in (FLIP_LEFT_RIGHT, FLIP_TOP_BOTTOM): - raise NotImplementedError( - "Only FLIP_LEFT_RIGHT and FLIP_TOP_BOTTOM implemented" - ) - - width, height = self.size - if method == FLIP_LEFT_RIGHT: - dim = width - # idx = 2 - elif method == FLIP_TOP_BOTTOM: - dim = height - # idx = 1 - - flip_idx = list(range(dim)[::-1]) - flipped_masks = self.masks.index_select(dim, flip_idx) - return Mask(flipped_masks, self.size, self.mode) - - def crop(self, box): - w, h = box[2] - box[0], box[3] - box[1] - - cropped_masks = self.masks[:, box[1] : box[3], box[0] : box[2]] - return Mask(cropped_masks, size=(w, h), mode=self.mode) - - def resize(self, size, *args, **kwargs): - pass - - -class SegmentationMask(object): - """ - This class stores the segmentations for all objects in the image - """ - - def __init__(self, polygons, size, mode=None): - """ - Arguments: - polygons: a list of list of lists of numbers. The first - level of the list correspond to individual instances, - the second level to all the polygons that compose the - object, and the third level to the polygon coordinates. - """ - assert isinstance(polygons, list) - - self.polygons = [Polygons(p, size, mode) for p in polygons] - self.size = size - self.mode = mode - - def transpose(self, method): - if method not in (FLIP_LEFT_RIGHT, FLIP_TOP_BOTTOM): - raise NotImplementedError( - "Only FLIP_LEFT_RIGHT and FLIP_TOP_BOTTOM implemented" - ) - - flipped = [] - for polygon in self.polygons: - flipped.append(polygon.transpose(method)) - return SegmentationMask(flipped, size=self.size, mode=self.mode) - - def crop(self, box, keep_ind=None): - w, h = box[2] - box[0], box[3] - box[1] - if keep_ind is not None: - self.polygons = np.array(self.polygons) - self.polygons = self.polygons[keep_ind] - cropped = [] - for polygon in self.polygons: - cropped.append(polygon.crop(box)) - return SegmentationMask(cropped, size=(w, h), mode=self.mode) - - def rotate(self, angle, r_c, start_h, start_w): - rotated = [] - for polygon in self.polygons: - rotated.append(polygon.rotate(angle, r_c, start_h, start_w)) - return SegmentationMask(rotated, size=(r_c[0] * 2, r_c[1] * 2), mode=self.mode) - - def resize(self, size, *args, **kwargs): - scaled = [] - for polygon in self.polygons: - scaled.append(polygon.resize(size, *args, **kwargs)) - return SegmentationMask(scaled, size=size, mode=self.mode) - - def set_size(self, size): - self.size = size - for polygon in self.polygons: - polygon.set_size(size) - - def to(self, *args, **kwargs): - return self - - def __getitem__(self, item): - if isinstance(item, (int, slice)): - selected_polygons = [self.polygons[item]] - else: - # advanced indexing on a single dimension - selected_polygons = [] - if isinstance(item, torch.Tensor) and item.dtype == torch.bool: - item = item.nonzero() - item = item.squeeze(1) if item.numel() > 0 else item - item = item.tolist() - for i in item: - selected_polygons.append(self.polygons[i]) - return SegmentationMask(selected_polygons, size=self.size, mode=self.mode) - - def __iter__(self): - return iter(self.polygons) - - def __repr__(self): - s = self.__class__.__name__ + "(" - s += "num_instances={}, ".format(len(self.polygons)) - s += "image_width={}, ".format(self.size[0]) - s += "image_height={})".format(self.size[1]) - return s - - def size(self): - return self.size - - def get_polygons(self): - return self.polygons - - def to_np_polygon(self): - np_polygons = [] - for polygon in self.polygons: - polys = polygon.get_polygons() - for poly in polys: - np_poly = poly.numpy() - np_polygons.append(np_poly) - return np_polygons - - - def convert_seg_map(self, labels, shrink_ratio, seg_size, ignore_difficult=True): - # width, height = self.size - # assert self.size[0] == seg_size[1] - # assert self.size[1] == seg_size[0] - height, width = seg_size[0], seg_size[1] - seg_map = np.zeros((1, height, width), dtype=np.uint8) - training_mask = np.ones((height, width), dtype=np.uint8) - for poly, label in zip(self.polygons, labels): - poly = poly.get_polygons()[0] - poly = poly.reshape((-1, 2)).numpy() - if ignore_difficult and label.item() == -1: - cv2.fillPoly(training_mask, poly.astype(np.int32)[np.newaxis, :, :], 0) - continue - if poly.shape[0] < 4: - continue - p = ShapePolygon(poly) - if p.length == 0: - continue - try: - d = p.area * (1 - np.power(shrink_ratio, 2)) / p.length - except: - continue - subj = [tuple(s) for s in poly] - pco = pyclipper.PyclipperOffset() - pco.AddPath(subj, pyclipper.JT_ROUND, pyclipper.ET_CLOSEDPOLYGON) - s = pco.Execute(-d) - if s == []: - cv2.fillPoly(training_mask, poly.astype(np.int32)[np.newaxis, :, :], 0) - continue - out = convert_2d_tuple(s[0]) - out = np.array(out).reshape(-1, 2) - cv2.fillPoly(seg_map[0, :, :], [out.astype(np.int32)], 1) - return seg_map, training_mask - - -class Polygons(object): - """ - This class holds a set of polygons that represents a single instance - of an object mask. The object can be represented as a set of - polygons - """ - - def __init__(self, polygons, size, mode): - # assert isinstance(polygons, list), '{}'.format(polygons) - if isinstance(polygons, list): - polygons = [torch.as_tensor(p, dtype=torch.float32) for p in polygons] - elif isinstance(polygons, Polygons): - polygons = polygons.polygons - - self.polygons = polygons - self.size = size - self.mode = mode - - def transpose(self, method): - if method not in (FLIP_LEFT_RIGHT, FLIP_TOP_BOTTOM): - raise NotImplementedError( - "Only FLIP_LEFT_RIGHT and FLIP_TOP_BOTTOM implemented" - ) - - flipped_polygons = [] - width, height = self.size - if method == FLIP_LEFT_RIGHT: - dim = width - idx = 0 - elif method == FLIP_TOP_BOTTOM: - dim = height - idx = 1 - - for poly in self.polygons: - p = poly.clone() - TO_REMOVE = 1 - p[idx::2] = dim - poly[idx::2] - TO_REMOVE - flipped_polygons.append(p) - - return Polygons(flipped_polygons, size=self.size, mode=self.mode) - - def rotate(self, angle, r_c, start_h, start_w): - poly = self.polygons[0].numpy().reshape(-1, 2) - poly[:, 0] += start_w - poly[:, 1] += start_h - polys = ShapePolygon(poly) - r_polys = list(affinity.rotate(polys, angle, r_c).boundary.coords[:-1]) - p = [] - for r in r_polys: - p += list(r) - return Polygons([p], size=self.size, mode=self.mode) - - def crop(self, box): - w, h = box[2] - box[0], box[3] - box[1] - - # TODO chck if necessary - w = max(w, 1) - h = max(h, 1) - - cropped_polygons = [] - - for poly in self.polygons: - p = poly.clone() - p[0::2] = p[0::2] - box[0] # .clamp(min=0, max=w) - p[1::2] = p[1::2] - box[1] # .clamp(min=0, max=h) - cropped_polygons.append(p) - - return Polygons(cropped_polygons, size=(w, h), mode=self.mode) - - def resize(self, size, *args, **kwargs): - ratios = tuple(float(s) / float(s_orig) for s, s_orig in zip(size, self.size)) - if ratios[0] == ratios[1]: - ratio = ratios[0] - scaled_polys = [p * ratio for p in self.polygons] - return Polygons(scaled_polys, size, mode=self.mode) - - ratio_w, ratio_h = ratios - scaled_polygons = [] - for poly in self.polygons: - p = poly.clone() - p[0::2] *= ratio_w - p[1::2] *= ratio_h - scaled_polygons.append(p) - - return Polygons(scaled_polygons, size=size, mode=self.mode) - - def convert(self, mode): - width, height = self.size - if mode == "mask": - # print([p.numpy() for p in self.polygons]) - try: - rles = mask_utils.frPyObjects( - [p.numpy() for p in self.polygons], height, width - ) - except: - print([p.numpy() for p in self.polygons]) - mask = torch.ones((height, width), dtype=torch.uint8) - return mask - rle = mask_utils.merge(rles) - mask = mask_utils.decode(rle) - mask = torch.from_numpy(mask) - # TODO add squeeze? - return mask - - def set_size(self, size): - self.size = size - - def get_polygons(self): - return self.polygons - - def __repr__(self): - s = self.__class__.__name__ + "(" - s += "num_polygons={}, ".format(len(self.polygons)) - s += "image_width={}, ".format(self.size[0]) - s += "image_height={}, ".format(self.size[1]) - s += "mode={})".format(self.mode) - return s - - -class CharPolygons(object): - """ - This class holds a set of polygons that represents a single instance - of an object mask. The object can be represented as a set of - polygons - """ - - def __init__( - self, - char_boxes, - word=None, - use_char_ann=False, - char_classes=None, - size=None, - mode=None, - char_num_classes=37, - ): - if isinstance(char_boxes, CharPolygons): - if char_classes is None: - char_classes = char_boxes.char_classes - self.word = char_boxes.word - char_boxes = char_boxes.char_boxes - else: - if char_classes is None: - char_classes = [ - torch.as_tensor(p[8], dtype=torch.float32) for p in char_boxes - ] - char_boxes = [ - torch.as_tensor(p[:8], dtype=torch.float32) for p in char_boxes - ] - self.word = word - self.char_boxes = char_boxes - self.char_classes = char_classes - self.size = size - self.mode = mode - self.use_char_ann = use_char_ann - self.char_num_classes = char_num_classes - - def transpose(self, method): - if method not in (FLIP_LEFT_RIGHT, FLIP_TOP_BOTTOM): - raise NotImplementedError( - "Only FLIP_LEFT_RIGHT and FLIP_TOP_BOTTOM implemented" - ) - - flipped_polygons = [] - width, height = self.size - if method == FLIP_LEFT_RIGHT: - dim = width - idx = 0 - elif method == FLIP_TOP_BOTTOM: - dim = height - idx = 1 - - for char_box in self.char_boxes: - p = char_box.clone() - TO_REMOVE = 1 - p[idx::2] = dim - char_box[idx::2] - TO_REMOVE - flipped_polygons.append(p) - - return CharPolygons( - flipped_polygons, - word=self.word, - use_char_ann=self.use_char_ann, - char_classes=self.char_classes, - size=self.size, - mode=self.mode, - char_num_classes=self.char_num_classes, - ) - - def crop(self, box): - w, h = box[2] - box[0], box[3] - box[1] - - # TODO chck if necessary - w = max(w, 1) - h = max(h, 1) - cropped_polygons = [] - for char_box in self.char_boxes: - p = char_box.clone() - p[0::2] = p[0::2] - box[0] # .clamp(min=0, max=w) - p[1::2] = p[1::2] - box[1] # .clamp(min=0, max=h) - cropped_polygons.append(p) - - return CharPolygons( - cropped_polygons, - word=self.word, - use_char_ann=self.use_char_ann, - char_classes=self.char_classes, - size=(w, h), - mode=self.mode, - char_num_classes=self.char_num_classes, - ) - - def rotate(self, angle, r_c, start_h, start_w): - r_polys = [] - for poly in self.char_boxes: - poly = poly.numpy() - poly[0::2] += start_w - poly[1::2] += start_h - poly = ShapePolygon(np.array(poly).reshape(4, 2)) - r_poly = np.array( - list(affinity.rotate(poly, angle, r_c).boundary.coords[:-1]) - ).reshape(-1, 8) - r_polys.append(r_poly[0]) - return CharPolygons( - r_polys, - word=self.word, - use_char_ann=self.use_char_ann, - char_classes=self.char_classes, - size=(r_c[0] * 2, r_c[1] * 2), - mode=self.mode, - char_num_classes=self.char_num_classes, - ) - - def resize(self, size, *args, **kwargs): - ratios = tuple(float(s) / float(s_orig) for s, s_orig in zip(size, self.size)) - if ratios[0] == ratios[1]: - ratio = ratios[0] - scaled_polys = [p * ratio for p in self.char_boxes] - return CharPolygons( - scaled_polys, - word=self.word, - use_char_ann=self.use_char_ann, - char_classes=self.char_classes, - size=size, - mode=self.mode, - char_num_classes=self.char_num_classes, - ) - - ratio_w, ratio_h = ratios - scaled_polygons = [] - for poly in self.char_boxes: - p = poly.clone() - p[0::2] *= ratio_w - p[1::2] *= ratio_h - scaled_polygons.append(p) - - return CharPolygons( - scaled_polygons, - word=self.word, - use_char_ann=self.use_char_ann, - char_classes=self.char_classes, - size=size, - mode=self.mode, - char_num_classes=self.char_num_classes, - ) - - def set_size(self, size): - self.size = size - - def convert(self, mode): - width, height = self.size - if mode == "char_mask": - if not self.use_char_ann: - char_map = -np.ones((height, width)) - char_map_weight = np.zeros((self.char_num_classes,)) - else: - char_map = np.zeros((height, width)) - char_map_weight = np.ones((self.char_num_classes,)) - for i, p in enumerate(self.char_boxes): - poly = p.numpy().reshape(4, 2) - poly = shrink_poly(poly, 0.25) - cv2.fillPoly( - char_map, [poly.astype(np.int32)], int(self.char_classes[i]) - ) - pos_index = np.where(char_map > 0) - pos_num = pos_index[0].size - if pos_num > 0: - pos_weight = 1.0 * (height * width - pos_num) / pos_num - char_map_weight[1:] = pos_weight - return torch.from_numpy(char_map), torch.from_numpy(char_map_weight) - elif mode == "seq_char_mask": - decoder_target = self.char_num_classes * np.ones((32,)) - word_target = -np.ones((32,)) - if not self.use_char_ann: - char_map = -np.ones((height, width)) - char_map_weight = np.zeros((self.char_num_classes,)) - for i, char in enumerate(self.word): - if i > 31: - break - decoder_target[i] = char2num(char) - word_target[i] = char2num(char) - end_point = min(max(1, len(self.word)), 31) - word_target[end_point] = self.char_num_classes - else: - char_map = np.zeros((height, width)) - char_map_weight = np.ones((self.char_num_classes,)) - word_length = 0 - for i, p in enumerate(self.char_boxes): - poly = p.numpy().reshape(4, 2) - if i < 32: - decoder_target[i] = int(self.char_classes[i]) - word_target[i] = int(self.char_classes[i]) - word_length += 1 - poly = shrink_poly(poly, 0.25) - cv2.fillPoly( - char_map, [poly.astype(np.int32)], int(self.char_classes[i]) - ) - end_point = min(max(1, word_length), 31) - word_target[end_point] = self.char_num_classes - pos_index = np.where(char_map > 0) - pos_num = pos_index[0].size - if pos_num > 0: - pos_weight = 1.0 * (height * width - pos_num) / pos_num - char_map_weight[1:] = pos_weight - return ( - torch.from_numpy(char_map), - torch.from_numpy(char_map_weight), - torch.from_numpy(decoder_target), - torch.from_numpy(word_target), - ) - - def creat_color_map(self, n_class, width): - splits = int(np.ceil(np.power((n_class * 1.0), 1.0 / 3))) - maps = [] - for i in range(splits): - r = int(i * width * 1.0 / (splits - 1)) - for j in range(splits): - g = int(j * width * 1.0 / (splits - 1)) - for k in range(splits - 1): - b = int(k * width * 1.0 / (splits - 1)) - maps.append([r, g, b]) - return np.array(maps) - - def __repr__(self): - s = self.__class__.__name__ + "(" - s += "num_char_boxes={}, ".format(len(self.char_boxes)) - s += "num_char_classes={}, ".format(len(self.char_classes)) - s += "image_width={}, ".format(self.size[0]) - s += "image_height={}, ".format(self.size[1]) - s += "mode={})".format(self.mode) - return s - - -class SegmentationCharMask(object): - def __init__( - self, chars_boxes, words=None, use_char_ann=True, size=None, mode=None, char_num_classes=37 - ): - # self.chars_boxes=[CharPolygons(char_boxes, word=word, use_char_ann=use_char_ann, size=size, mode=mode) for char_boxes, word in zip(chars_boxes, words)] - if words is None: - self.chars_boxes = [ - CharPolygons( - char_boxes, - word=None, - use_char_ann=use_char_ann, - size=size, - mode=mode, - char_num_classes=char_num_classes, - ) - for char_boxes in chars_boxes - ] - else: - self.chars_boxes = [ - CharPolygons( - char_boxes, - word=words[i], - use_char_ann=use_char_ann, - size=size, - mode=mode, - char_num_classes=char_num_classes, - ) - for i, char_boxes in enumerate(chars_boxes) - ] - self.size = size - self.mode = mode - self.use_char_ann = use_char_ann - self.char_num_classes = char_num_classes - - def transpose(self, method): - if method not in (FLIP_LEFT_RIGHT, FLIP_TOP_BOTTOM): - raise NotImplementedError( - "Only FLIP_LEFT_RIGHT and FLIP_TOP_BOTTOM implemented" - ) - - flipped = [] - for char_boxes in self.chars_boxes: - flipped.append(char_boxes.transpose(method)) - return SegmentationCharMask( - flipped, use_char_ann=self.use_char_ann, size=self.size, mode=self.mode, char_num_classes=self.char_num_classes - ) - - def crop(self, box, keep_ind): - cropped = [] - w, h = box[2] - box[0], box[3] - box[1] - if keep_ind is not None: - self.chars_boxes = np.array(self.chars_boxes) - self.chars_boxes = self.chars_boxes[keep_ind] - for char_boxes in self.chars_boxes: - cropped.append(char_boxes.crop(box)) - return SegmentationCharMask( - cropped, use_char_ann=self.use_char_ann, size=(w, h), mode=self.mode - ) - - def resize(self, size, *args, **kwargs): - scaled = [] - for char_boxes in self.chars_boxes: - scaled.append(char_boxes.resize(size, *args, **kwargs)) - return SegmentationCharMask( - scaled, use_char_ann=self.use_char_ann, size=size, mode=self.mode, char_num_classes=self.char_num_classes - ) - - def set_size(self, size): - self.size = size - for char_box in self.chars_boxes: - char_box.set_size(size) - - def rotate(self, angle, r_c, start_h, start_w): - rotated = [] - for char_boxes in self.chars_boxes: - rotated.append(char_boxes.rotate(angle, r_c, start_h, start_w)) - return SegmentationCharMask( - rotated, - use_char_ann=self.use_char_ann, - size=(r_c[0] * 2, r_c[1] * 2), - mode=self.mode, - char_num_classes=self.char_num_classes, - ) - - def __iter__(self): - return iter(self.chars_boxes) - - def __getitem__(self, item): - if isinstance(item, (int, slice)): - selected_chars_boxes = [self.chars_boxes[item]] - else: - # advanced indexing on a single dimension - selected_chars_boxes = [] - if isinstance(item, torch.Tensor) and item.dtype == torch.bool: - item = item.nonzero() - item = item.squeeze(1) if item.numel() > 0 else item - item = item.tolist() - for i in item: - if i >= len(self.chars_boxes): - print(i) - print("chars_boxes.shape: ", len(self.chars_boxes)) - input() - selected_chars_boxes.append(self.chars_boxes[i]) - return SegmentationCharMask( - selected_chars_boxes, - use_char_ann=self.use_char_ann, - size=self.size, - mode=self.mode, - char_num_classes=self.char_num_classes, - ) - - def __repr__(self): - s = self.__class__.__name__ + "(" - s += "num_char_boxes={}, ".format(len(self.chars_boxes)) - s += "image_width={}, ".format(self.size[0]) - s += "image_height={})".format(self.size[1]) - return s - - -def shrink_poly(poly, shrink): - # shrink ratio - R = shrink - r = [None, None, None, None] - for i in range(4): - r[i] = min( - np.linalg.norm(poly[i] - poly[(i + 1) % 4]), - np.linalg.norm(poly[i] - poly[(i - 1) % 4]), - ) - # find the longer pair - if np.linalg.norm(poly[0] - poly[1]) + np.linalg.norm( - poly[2] - poly[3] - ) > np.linalg.norm(poly[0] - poly[3]) + np.linalg.norm(poly[1] - poly[2]): - # first move (p0, p1), (p2, p3), then (p0, p3), (p1, p2) - ## p0, p1 - theta = np.arctan2((poly[1][1] - poly[0][1]), (poly[1][0] - poly[0][0])) - poly[0][0] += R * r[0] * np.cos(theta) - poly[0][1] += R * r[0] * np.sin(theta) - poly[1][0] -= R * r[1] * np.cos(theta) - poly[1][1] -= R * r[1] * np.sin(theta) - ## p2, p3 - theta = np.arctan2((poly[2][1] - poly[3][1]), (poly[2][0] - poly[3][0])) - poly[3][0] += R * r[3] * np.cos(theta) - poly[3][1] += R * r[3] * np.sin(theta) - poly[2][0] -= R * r[2] * np.cos(theta) - poly[2][1] -= R * r[2] * np.sin(theta) - ## p0, p3 - theta = np.arctan2((poly[3][0] - poly[0][0]), (poly[3][1] - poly[0][1])) - poly[0][0] += R * r[0] * np.sin(theta) - poly[0][1] += R * r[0] * np.cos(theta) - poly[3][0] -= R * r[3] * np.sin(theta) - poly[3][1] -= R * r[3] * np.cos(theta) - ## p1, p2 - theta = np.arctan2((poly[2][0] - poly[1][0]), (poly[2][1] - poly[1][1])) - poly[1][0] += R * r[1] * np.sin(theta) - poly[1][1] += R * r[1] * np.cos(theta) - poly[2][0] -= R * r[2] * np.sin(theta) - poly[2][1] -= R * r[2] * np.cos(theta) - else: - ## p0, p3 - # print poly - theta = np.arctan2((poly[3][0] - poly[0][0]), (poly[3][1] - poly[0][1])) - poly[0][0] += R * r[0] * np.sin(theta) - poly[0][1] += R * r[0] * np.cos(theta) - poly[3][0] -= R * r[3] * np.sin(theta) - poly[3][1] -= R * r[3] * np.cos(theta) - ## p1, p2 - theta = np.arctan2((poly[2][0] - poly[1][0]), (poly[2][1] - poly[1][1])) - poly[1][0] += R * r[1] * np.sin(theta) - poly[1][1] += R * r[1] * np.cos(theta) - poly[2][0] -= R * r[2] * np.sin(theta) - poly[2][1] -= R * r[2] * np.cos(theta) - ## p0, p1 - theta = np.arctan2((poly[1][1] - poly[0][1]), (poly[1][0] - poly[0][0])) - poly[0][0] += R * r[0] * np.cos(theta) - poly[0][1] += R * r[0] * np.sin(theta) - poly[1][0] -= R * r[1] * np.cos(theta) - poly[1][1] -= R * r[1] * np.sin(theta) - ## p2, p3 - theta = np.arctan2((poly[2][1] - poly[3][1]), (poly[2][0] - poly[3][0])) - poly[3][0] += R * r[3] * np.cos(theta) - poly[3][1] += R * r[3] * np.sin(theta) - poly[2][0] -= R * r[2] * np.cos(theta) - poly[2][1] -= R * r[2] * np.sin(theta) - return poly - - -def shrink_rect(poly, shrink): - xmin = min(poly[:, 0]) - xmax = max(poly[:, 0]) - ymin = min(poly[:, 1]) - ymax = max(poly[:, 1]) - # assert xmax > xmin and ymax > ymin - xc = (xmax + xmin) / 2 - yc = (ymax + ymin) / 2 - w = xmax - xmin - h = ymax - ymin - sxmin = xc - w / 2 * shrink - sxmax = xc + w / 2 * shrink - symin = yc - h / 2 * shrink - symax = yc + h / 2 * shrink - return np.array([sxmin, symin, sxmax, symin, sxmax, symax, sxmin, symax]).reshape( - (4, 2) - ) - - -def is_poly_inbox(poly, height, width): - min_x = min(poly[:, 0]) - min_y = min(poly[:, 1]) - max_x = max(poly[:, 0]) - max_y = max(poly[:, 1]) - if (max_x < 0 and max_y < 0) or (min_x > width and min_y > height): - return False - else: - return True diff --git a/spaces/tomofi/NDLOCR/src/ndl_layout/mmdetection/configs/instaboost/README.md b/spaces/tomofi/NDLOCR/src/ndl_layout/mmdetection/configs/instaboost/README.md deleted file mode 100644 index 4755073f4b77091a4e992c626f9129f96359829f..0000000000000000000000000000000000000000 --- a/spaces/tomofi/NDLOCR/src/ndl_layout/mmdetection/configs/instaboost/README.md +++ /dev/null @@ -1,44 +0,0 @@ -# InstaBoost for MMDetection - - - -Configs in this directory is the implementation for ICCV2019 paper "InstaBoost: Boosting Instance Segmentation Via Probability Map Guided Copy-Pasting" and provided by the authors of the paper. InstaBoost is a data augmentation method for object detection and instance segmentation. The paper has been released on [`arXiv`](https://arxiv.org/abs/1908.07801). - -```latex -@inproceedings{fang2019instaboost, - title={Instaboost: Boosting instance segmentation via probability map guided copy-pasting}, - author={Fang, Hao-Shu and Sun, Jianhua and Wang, Runzhong and Gou, Minghao and Li, Yong-Lu and Lu, Cewu}, - booktitle={Proceedings of the IEEE International Conference on Computer Vision}, - pages={682--691}, - year={2019} -} -``` - -## Usage - -### Requirements - -You need to install `instaboostfast` before using it. - -```shell -pip install instaboostfast -``` - -The code and more details can be found [here](https://github.com/GothicAi/Instaboost). - -### Integration with MMDetection - -InstaBoost have been already integrated in the data pipeline, thus all you need is to add or change **InstaBoost** configurations after **LoadImageFromFile**. We have provided examples like [this](mask_rcnn_r50_fpn_instaboost_4x#L121). You can refer to [`InstaBoostConfig`](https://github.com/GothicAi/InstaBoost-pypi#instaboostconfig) for more details. - -## Results and Models - -- All models were trained on `coco_2017_train` and tested on `coco_2017_val` for conveinience of evaluation and comparison. In the paper, the results are obtained from `test-dev`. -- To balance accuracy and training time when using InstaBoost, models released in this page are all trained for 48 Epochs. Other training and testing configs strictly follow the original framework. -- For results and models in MMDetection V1.x, please refer to [Instaboost](https://github.com/GothicAi/Instaboost). - -| Network | Backbone | Lr schd | Mem (GB) | Inf time (fps) | box AP | mask AP | Config | Download | -| :-------------: | :--------: | :-----: | :------: | :------------: | :------:| :-----: | :------: | :-----------------: | -| Mask R-CNN | R-50-FPN | 4x | 4.4 | 17.5 | 40.6 | 36.6 | [config](https://github.com/open-mmlab/mmdetection/tree/master/configs/instaboost/mask_rcnn_r50_fpn_instaboost_4x_coco.py) | [model](http://download.openmmlab.com/mmdetection/v2.0/instaboost/mask_rcnn_r50_fpn_instaboost_4x_coco/mask_rcnn_r50_fpn_instaboost_4x_coco_20200307-d025f83a.pth) | [log](http://download.openmmlab.com/mmdetection/v2.0/instaboost/mask_rcnn_r50_fpn_instaboost_4x_coco/mask_rcnn_r50_fpn_instaboost_4x_coco_20200307_223635.log.json) | -| Mask R-CNN | R-101-FPN | 4x | 6.4 | | 42.5 | 38.0 | [config](https://github.com/open-mmlab/mmdetection/tree/master/configs/instaboost/mask_rcnn_r101_fpn_instaboost_4x_coco.py) | [model](http://download.openmmlab.com/mmdetection/v2.0/instaboost/mask_rcnn_r101_fpn_instaboost_4x_coco/mask_rcnn_r101_fpn_instaboost_4x_coco_20200703_235738-f23f3a5f.pth) | [log](http://download.openmmlab.com/mmdetection/v2.0/instaboost/mask_rcnn_r101_fpn_instaboost_4x_coco/mask_rcnn_r101_fpn_instaboost_4x_coco_20200703_235738.log.json) | -| Mask R-CNN | X-101-64x4d-FPN | 4x | 10.7 | | 44.7 | 39.7 | [config](https://github.com/open-mmlab/mmdetection/tree/master/configs/instaboost/mask_rcnn_x101_64x4d_fpn_instaboost_4x_coco.py) | [model](http://download.openmmlab.com/mmdetection/v2.0/instaboost/mask_rcnn_x101_64x4d_fpn_instaboost_4x_coco/mask_rcnn_x101_64x4d_fpn_instaboost_4x_coco_20200515_080947-8ed58c1b.pth) | [log](http://download.openmmlab.com/mmdetection/v2.0/instaboost/mask_rcnn_x101_64x4d_fpn_instaboost_4x_coco/mask_rcnn_x101_64x4d_fpn_instaboost_4x_coco_20200515_080947.log.json) | -| Cascade R-CNN | R-101-FPN | 4x | 6.0 | 12.0 | 43.7 | 38.0 | [config](https://github.com/open-mmlab/mmdetection/tree/master/configs/instaboost/cascade_mask_rcnn_r50_fpn_instaboost_4x_coco.py) | [model](http://download.openmmlab.com/mmdetection/v2.0/instaboost/cascade_mask_rcnn_r50_fpn_instaboost_4x_coco/cascade_mask_rcnn_r50_fpn_instaboost_4x_coco_20200307-c19d98d9.pth) | [log](http://download.openmmlab.com/mmdetection/v2.0/instaboost/cascade_mask_rcnn_r50_fpn_instaboost_4x_coco/cascade_mask_rcnn_r50_fpn_instaboost_4x_coco_20200307_223646.log.json) | diff --git a/spaces/tracinginsights/F1-analysis/pages/Top_Speed_at_Speed_Trap.py b/spaces/tracinginsights/F1-analysis/pages/Top_Speed_at_Speed_Trap.py deleted file mode 100644 index a87d65873bb61728a4409ceb19c1a0a07b1e281e..0000000000000000000000000000000000000000 --- a/spaces/tracinginsights/F1-analysis/pages/Top_Speed_at_Speed_Trap.py +++ /dev/null @@ -1,24 +0,0 @@ -import streamlit as st -from repo_directory import Top_Speed_at_Speed_Trap -from repo_directory import button - -YEAR = st.selectbox( - 'Select Year', - (2023, 2022, 2021, 2020, 2019, 2018)) - -RACE = st.selectbox( - 'Select Race', - (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23)) - - -SESSION = st.selectbox( - 'Select Session', - ('FP1', 'FP2', 'FP3', 'Q', 'SQ', 'R')) - -laps = Top_Speed_at_Speed_Trap.get_laps(YEAR, RACE, SESSION) - -fastest_st = Top_Speed_at_Speed_Trap.get_fastest_speedtrap(laps) - -max_speeds = Top_Speed_at_Speed_Trap.get_max_speeds(fastest_st, laps,YEAR) - -Top_Speed_at_Speed_Trap.plot(max_speeds, fastest_st, YEAR, RACE, SESSION) \ No newline at end of file diff --git a/spaces/trttung1610/musicgen/audiocraft/data/audio.py b/spaces/trttung1610/musicgen/audiocraft/data/audio.py deleted file mode 100644 index 39c87047f5033d0016200df77004a9536e06e81a..0000000000000000000000000000000000000000 --- a/spaces/trttung1610/musicgen/audiocraft/data/audio.py +++ /dev/null @@ -1,216 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. -# -# This source code is licensed under the license found in the -# LICENSE file in the root directory of this source tree. - -""" -Audio IO methods are defined in this module (info, read, write), -We rely on av library for faster read when possible, otherwise on torchaudio. -""" - -from dataclasses import dataclass -from pathlib import Path -import logging -import typing as tp - -import numpy as np -import soundfile -import torch -from torch.nn import functional as F -import torchaudio as ta - -import av - -from .audio_utils import f32_pcm, i16_pcm, normalize_audio - - -_av_initialized = False - - -def _init_av(): - global _av_initialized - if _av_initialized: - return - logger = logging.getLogger('libav.mp3') - logger.setLevel(logging.ERROR) - _av_initialized = True - - -@dataclass(frozen=True) -class AudioFileInfo: - sample_rate: int - duration: float - channels: int - - -def _av_info(filepath: tp.Union[str, Path]) -> AudioFileInfo: - _init_av() - with av.open(str(filepath)) as af: - stream = af.streams.audio[0] - sample_rate = stream.codec_context.sample_rate - duration = float(stream.duration * stream.time_base) - channels = stream.channels - return AudioFileInfo(sample_rate, duration, channels) - - -def _soundfile_info(filepath: tp.Union[str, Path]) -> AudioFileInfo: - info = soundfile.info(filepath) - return AudioFileInfo(info.samplerate, info.duration, info.channels) - - -def audio_info(filepath: tp.Union[str, Path]) -> AudioFileInfo: - # torchaudio no longer returns useful duration informations for some formats like mp3s. - filepath = Path(filepath) - if filepath.suffix in ['.flac', '.ogg']: # TODO: Validate .ogg can be safely read with av_info - # ffmpeg has some weird issue with flac. - return _soundfile_info(filepath) - else: - return _av_info(filepath) - - -def _av_read(filepath: tp.Union[str, Path], seek_time: float = 0, duration: float = -1.) -> tp.Tuple[torch.Tensor, int]: - """FFMPEG-based audio file reading using PyAV bindings. - Soundfile cannot read mp3 and av_read is more efficient than torchaudio. - - Args: - filepath (str or Path): Path to audio file to read. - seek_time (float): Time at which to start reading in the file. - duration (float): Duration to read from the file. If set to -1, the whole file is read. - Returns: - tuple of torch.Tensor, int: Tuple containing audio data and sample rate - """ - _init_av() - with av.open(str(filepath)) as af: - stream = af.streams.audio[0] - sr = stream.codec_context.sample_rate - num_frames = int(sr * duration) if duration >= 0 else -1 - frame_offset = int(sr * seek_time) - # we need a small negative offset otherwise we get some edge artifact - # from the mp3 decoder. - af.seek(int(max(0, (seek_time - 0.1)) / stream.time_base), stream=stream) - frames = [] - length = 0 - for frame in af.decode(streams=stream.index): - current_offset = int(frame.rate * frame.pts * frame.time_base) - strip = max(0, frame_offset - current_offset) - buf = torch.from_numpy(frame.to_ndarray()) - if buf.shape[0] != stream.channels: - buf = buf.view(-1, stream.channels).t() - buf = buf[:, strip:] - frames.append(buf) - length += buf.shape[1] - if num_frames > 0 and length >= num_frames: - break - assert frames - # If the above assert fails, it is likely because we seeked past the end of file point, - # in which case ffmpeg returns a single frame with only zeros, and a weird timestamp. - # This will need proper debugging, in due time. - wav = torch.cat(frames, dim=1) - assert wav.shape[0] == stream.channels - if num_frames > 0: - wav = wav[:, :num_frames] - return f32_pcm(wav), sr - - -def audio_read(filepath: tp.Union[str, Path], seek_time: float = 0., - duration: float = -1., pad: bool = False) -> tp.Tuple[torch.Tensor, int]: - """Read audio by picking the most appropriate backend tool based on the audio format. - - Args: - filepath (str or Path): Path to audio file to read. - seek_time (float): Time at which to start reading in the file. - duration (float): Duration to read from the file. If set to -1, the whole file is read. - pad (bool): Pad output audio if not reaching expected duration. - Returns: - tuple of torch.Tensor, int: Tuple containing audio data and sample rate. - """ - fp = Path(filepath) - if fp.suffix in ['.flac', '.ogg']: # TODO: check if we can safely use av_read for .ogg - # There is some bug with ffmpeg and reading flac - info = _soundfile_info(filepath) - frames = -1 if duration <= 0 else int(duration * info.sample_rate) - frame_offset = int(seek_time * info.sample_rate) - wav, sr = soundfile.read(filepath, start=frame_offset, frames=frames, dtype=np.float32) - assert info.sample_rate == sr, f"Mismatch of sample rates {info.sample_rate} {sr}" - wav = torch.from_numpy(wav).t().contiguous() - if len(wav.shape) == 1: - wav = torch.unsqueeze(wav, 0) - elif ( - fp.suffix in ['.wav', '.mp3'] and fp.suffix[1:] in ta.utils.sox_utils.list_read_formats() - and duration <= 0 and seek_time == 0 - ): - # Torchaudio is faster if we load an entire file at once. - wav, sr = ta.load(fp) - else: - wav, sr = _av_read(filepath, seek_time, duration) - if pad and duration > 0: - expected_frames = int(duration * sr) - wav = F.pad(wav, (0, expected_frames - wav.shape[-1])) - return wav, sr - - -def audio_write(stem_name: tp.Union[str, Path], - wav: torch.Tensor, sample_rate: int, - format: str = 'wav', mp3_rate: int = 320, normalize: bool = True, - strategy: str = 'peak', peak_clip_headroom_db: float = 1, - rms_headroom_db: float = 18, loudness_headroom_db: float = 14, - loudness_compressor: bool = False, - log_clipping: bool = True, make_parent_dir: bool = True, - add_suffix: bool = True) -> Path: - """Convenience function for saving audio to disk. Returns the filename the audio was written to. - - Args: - stem_name (str or Path): Filename without extension which will be added automatically. - format (str): Either "wav" or "mp3". - mp3_rate (int): kbps when using mp3s. - normalize (bool): if `True` (default), normalizes according to the prescribed - strategy (see after). If `False`, the strategy is only used in case clipping - would happen. - strategy (str): Can be either 'clip', 'peak', or 'rms'. Default is 'peak', - i.e. audio is normalized by its largest value. RMS normalizes by root-mean-square - with extra headroom to avoid clipping. 'clip' just clips. - peak_clip_headroom_db (float): Headroom in dB when doing 'peak' or 'clip' strategy. - rms_headroom_db (float): Headroom in dB when doing 'rms' strategy. This must be much larger - than the `peak_clip` one to avoid further clipping. - loudness_headroom_db (float): Target loudness for loudness normalization. - loudness_compressor (bool): Uses tanh for soft clipping when strategy is 'loudness'. - when strategy is 'loudness' log_clipping (bool): If True, basic logging on stderr when clipping still - occurs despite strategy (only for 'rms'). - make_parent_dir (bool): Make parent directory if it doesn't exist. - Returns: - Path: Path of the saved audio. - """ - assert wav.dtype.is_floating_point, "wav is not floating point" - if wav.dim() == 1: - wav = wav[None] - elif wav.dim() > 2: - raise ValueError("Input wav should be at most 2 dimension.") - assert wav.isfinite().all() - wav = normalize_audio(wav, normalize, strategy, peak_clip_headroom_db, - rms_headroom_db, loudness_headroom_db, loudness_compressor, - log_clipping=log_clipping, sample_rate=sample_rate, - stem_name=str(stem_name)) - kwargs: dict = {} - if format == 'mp3': - suffix = '.mp3' - kwargs.update({"compression": mp3_rate}) - elif format == 'wav': - wav = i16_pcm(wav) - suffix = '.wav' - kwargs.update({"encoding": "PCM_S", "bits_per_sample": 16}) - else: - raise RuntimeError(f"Invalid format {format}. Only wav or mp3 are supported.") - if not add_suffix: - suffix = '' - path = Path(str(stem_name) + suffix) - if make_parent_dir: - path.parent.mkdir(exist_ok=True, parents=True) - try: - ta.save(path, wav, sample_rate, **kwargs) - except Exception: - if path.exists(): - # we do not want to leave half written files around. - path.unlink() - raise - return path diff --git a/spaces/ucalyptus/PTI/dnnlib/util.py b/spaces/ucalyptus/PTI/dnnlib/util.py deleted file mode 100644 index 76725336d01e75e1c68daa88be47f4fde0bbc63b..0000000000000000000000000000000000000000 --- a/spaces/ucalyptus/PTI/dnnlib/util.py +++ /dev/null @@ -1,477 +0,0 @@ -# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. -# -# NVIDIA CORPORATION and its licensors retain all intellectual property -# and proprietary rights in and to this software, related documentation -# and any modifications thereto. Any use, reproduction, disclosure or -# distribution of this software and related documentation without an express -# license agreement from NVIDIA CORPORATION is strictly prohibited. - -"""Miscellaneous utility classes and functions.""" - -import ctypes -import fnmatch -import importlib -import inspect -import numpy as np -import os -import shutil -import sys -import types -import io -import pickle -import re -import requests -import html -import hashlib -import glob -import tempfile -import urllib -import urllib.request -import uuid - -from distutils.util import strtobool -from typing import Any, List, Tuple, Union - - -# Util classes -# ------------------------------------------------------------------------------------------ - - -class EasyDict(dict): - """Convenience class that behaves like a dict but allows access with the attribute syntax.""" - - def __getattr__(self, name: str) -> Any: - try: - return self[name] - except KeyError: - raise AttributeError(name) - - def __setattr__(self, name: str, value: Any) -> None: - self[name] = value - - def __delattr__(self, name: str) -> None: - del self[name] - - -class Logger(object): - """Redirect stderr to stdout, optionally print stdout to a file, and optionally force flushing on both stdout and the file.""" - - def __init__(self, file_name: str = None, file_mode: str = "w", should_flush: bool = True): - self.file = None - - if file_name is not None: - self.file = open(file_name, file_mode) - - self.should_flush = should_flush - self.stdout = sys.stdout - self.stderr = sys.stderr - - sys.stdout = self - sys.stderr = self - - def __enter__(self) -> "Logger": - return self - - def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> None: - self.close() - - def write(self, text: Union[str, bytes]) -> None: - """Write text to stdout (and a file) and optionally flush.""" - if isinstance(text, bytes): - text = text.decode() - if len(text) == 0: # workaround for a bug in VSCode debugger: sys.stdout.write(''); sys.stdout.flush() => crash - return - - if self.file is not None: - self.file.write(text) - - self.stdout.write(text) - - if self.should_flush: - self.flush() - - def flush(self) -> None: - """Flush written text to both stdout and a file, if open.""" - if self.file is not None: - self.file.flush() - - self.stdout.flush() - - def close(self) -> None: - """Flush, close possible files, and remove stdout/stderr mirroring.""" - self.flush() - - # if using multiple loggers, prevent closing in wrong order - if sys.stdout is self: - sys.stdout = self.stdout - if sys.stderr is self: - sys.stderr = self.stderr - - if self.file is not None: - self.file.close() - self.file = None - - -# Cache directories -# ------------------------------------------------------------------------------------------ - -_dnnlib_cache_dir = None - -def set_cache_dir(path: str) -> None: - global _dnnlib_cache_dir - _dnnlib_cache_dir = path - -def make_cache_dir_path(*paths: str) -> str: - if _dnnlib_cache_dir is not None: - return os.path.join(_dnnlib_cache_dir, *paths) - if 'DNNLIB_CACHE_DIR' in os.environ: - return os.path.join(os.environ['DNNLIB_CACHE_DIR'], *paths) - if 'HOME' in os.environ: - return os.path.join(os.environ['HOME'], '.cache', 'dnnlib', *paths) - if 'USERPROFILE' in os.environ: - return os.path.join(os.environ['USERPROFILE'], '.cache', 'dnnlib', *paths) - return os.path.join(tempfile.gettempdir(), '.cache', 'dnnlib', *paths) - -# Small util functions -# ------------------------------------------------------------------------------------------ - - -def format_time(seconds: Union[int, float]) -> str: - """Convert the seconds to human readable string with days, hours, minutes and seconds.""" - s = int(np.rint(seconds)) - - if s < 60: - return "{0}s".format(s) - elif s < 60 * 60: - return "{0}m {1:02}s".format(s // 60, s % 60) - elif s < 24 * 60 * 60: - return "{0}h {1:02}m {2:02}s".format(s // (60 * 60), (s // 60) % 60, s % 60) - else: - return "{0}d {1:02}h {2:02}m".format(s // (24 * 60 * 60), (s // (60 * 60)) % 24, (s // 60) % 60) - - -def ask_yes_no(question: str) -> bool: - """Ask the user the question until the user inputs a valid answer.""" - while True: - try: - print("{0} [y/n]".format(question)) - return strtobool(input().lower()) - except ValueError: - pass - - -def tuple_product(t: Tuple) -> Any: - """Calculate the product of the tuple elements.""" - result = 1 - - for v in t: - result *= v - - return result - - -_str_to_ctype = { - "uint8": ctypes.c_ubyte, - "uint16": ctypes.c_uint16, - "uint32": ctypes.c_uint32, - "uint64": ctypes.c_uint64, - "int8": ctypes.c_byte, - "int16": ctypes.c_int16, - "int32": ctypes.c_int32, - "int64": ctypes.c_int64, - "float32": ctypes.c_float, - "float64": ctypes.c_double -} - - -def get_dtype_and_ctype(type_obj: Any) -> Tuple[np.dtype, Any]: - """Given a type name string (or an object having a __name__ attribute), return matching Numpy and ctypes types that have the same size in bytes.""" - type_str = None - - if isinstance(type_obj, str): - type_str = type_obj - elif hasattr(type_obj, "__name__"): - type_str = type_obj.__name__ - elif hasattr(type_obj, "name"): - type_str = type_obj.name - else: - raise RuntimeError("Cannot infer type name from input") - - assert type_str in _str_to_ctype.keys() - - my_dtype = np.dtype(type_str) - my_ctype = _str_to_ctype[type_str] - - assert my_dtype.itemsize == ctypes.sizeof(my_ctype) - - return my_dtype, my_ctype - - -def is_pickleable(obj: Any) -> bool: - try: - with io.BytesIO() as stream: - pickle.dump(obj, stream) - return True - except: - return False - - -# Functionality to import modules/objects by name, and call functions by name -# ------------------------------------------------------------------------------------------ - -def get_module_from_obj_name(obj_name: str) -> Tuple[types.ModuleType, str]: - """Searches for the underlying module behind the name to some python object. - Returns the module and the object name (original name with module part removed).""" - - # allow convenience shorthands, substitute them by full names - obj_name = re.sub("^np.", "numpy.", obj_name) - obj_name = re.sub("^tf.", "tensorflow.", obj_name) - - # list alternatives for (module_name, local_obj_name) - parts = obj_name.split(".") - name_pairs = [(".".join(parts[:i]), ".".join(parts[i:])) for i in range(len(parts), 0, -1)] - - # try each alternative in turn - for module_name, local_obj_name in name_pairs: - try: - module = importlib.import_module(module_name) # may raise ImportError - get_obj_from_module(module, local_obj_name) # may raise AttributeError - return module, local_obj_name - except: - pass - - # maybe some of the modules themselves contain errors? - for module_name, _local_obj_name in name_pairs: - try: - importlib.import_module(module_name) # may raise ImportError - except ImportError: - if not str(sys.exc_info()[1]).startswith("No module named '" + module_name + "'"): - raise - - # maybe the requested attribute is missing? - for module_name, local_obj_name in name_pairs: - try: - module = importlib.import_module(module_name) # may raise ImportError - get_obj_from_module(module, local_obj_name) # may raise AttributeError - except ImportError: - pass - - # we are out of luck, but we have no idea why - raise ImportError(obj_name) - - -def get_obj_from_module(module: types.ModuleType, obj_name: str) -> Any: - """Traverses the object name and returns the last (rightmost) python object.""" - if obj_name == '': - return module - obj = module - for part in obj_name.split("."): - obj = getattr(obj, part) - return obj - - -def get_obj_by_name(name: str) -> Any: - """Finds the python object with the given name.""" - module, obj_name = get_module_from_obj_name(name) - return get_obj_from_module(module, obj_name) - - -def call_func_by_name(*args, func_name: str = None, **kwargs) -> Any: - """Finds the python object with the given name and calls it as a function.""" - assert func_name is not None - func_obj = get_obj_by_name(func_name) - assert callable(func_obj) - return func_obj(*args, **kwargs) - - -def construct_class_by_name(*args, class_name: str = None, **kwargs) -> Any: - """Finds the python class with the given name and constructs it with the given arguments.""" - return call_func_by_name(*args, func_name=class_name, **kwargs) - - -def get_module_dir_by_obj_name(obj_name: str) -> str: - """Get the directory path of the module containing the given object name.""" - module, _ = get_module_from_obj_name(obj_name) - return os.path.dirname(inspect.getfile(module)) - - -def is_top_level_function(obj: Any) -> bool: - """Determine whether the given object is a top-level function, i.e., defined at module scope using 'def'.""" - return callable(obj) and obj.__name__ in sys.modules[obj.__module__].__dict__ - - -def get_top_level_function_name(obj: Any) -> str: - """Return the fully-qualified name of a top-level function.""" - assert is_top_level_function(obj) - module = obj.__module__ - if module == '__main__': - module = os.path.splitext(os.path.basename(sys.modules[module].__file__))[0] - return module + "." + obj.__name__ - - -# File system helpers -# ------------------------------------------------------------------------------------------ - -def list_dir_recursively_with_ignore(dir_path: str, ignores: List[str] = None, add_base_to_relative: bool = False) -> List[Tuple[str, str]]: - """List all files recursively in a given directory while ignoring given file and directory names. - Returns list of tuples containing both absolute and relative paths.""" - assert os.path.isdir(dir_path) - base_name = os.path.basename(os.path.normpath(dir_path)) - - if ignores is None: - ignores = [] - - result = [] - - for root, dirs, files in os.walk(dir_path, topdown=True): - for ignore_ in ignores: - dirs_to_remove = [d for d in dirs if fnmatch.fnmatch(d, ignore_)] - - # dirs need to be edited in-place - for d in dirs_to_remove: - dirs.remove(d) - - files = [f for f in files if not fnmatch.fnmatch(f, ignore_)] - - absolute_paths = [os.path.join(root, f) for f in files] - relative_paths = [os.path.relpath(p, dir_path) for p in absolute_paths] - - if add_base_to_relative: - relative_paths = [os.path.join(base_name, p) for p in relative_paths] - - assert len(absolute_paths) == len(relative_paths) - result += zip(absolute_paths, relative_paths) - - return result - - -def copy_files_and_create_dirs(files: List[Tuple[str, str]]) -> None: - """Takes in a list of tuples of (src, dst) paths and copies files. - Will create all necessary directories.""" - for file in files: - target_dir_name = os.path.dirname(file[1]) - - # will create all intermediate-level directories - if not os.path.exists(target_dir_name): - os.makedirs(target_dir_name) - - shutil.copyfile(file[0], file[1]) - - -# URL helpers -# ------------------------------------------------------------------------------------------ - -def is_url(obj: Any, allow_file_urls: bool = False) -> bool: - """Determine whether the given object is a valid URL string.""" - if not isinstance(obj, str) or not "://" in obj: - return False - if allow_file_urls and obj.startswith('file://'): - return True - try: - res = requests.compat.urlparse(obj) - if not res.scheme or not res.netloc or not "." in res.netloc: - return False - res = requests.compat.urlparse(requests.compat.urljoin(obj, "/")) - if not res.scheme or not res.netloc or not "." in res.netloc: - return False - except: - return False - return True - - -def open_url(url: str, cache_dir: str = None, num_attempts: int = 10, verbose: bool = True, return_filename: bool = False, cache: bool = True) -> Any: - """Download the given URL and return a binary-mode file object to access the data.""" - assert num_attempts >= 1 - assert not (return_filename and (not cache)) - - # Doesn't look like an URL scheme so interpret it as a local filename. - if not re.match('^[a-z]+://', url): - return url if return_filename else open(url, "rb") - - # Handle file URLs. This code handles unusual file:// patterns that - # arise on Windows: - # - # file:///c:/foo.txt - # - # which would translate to a local '/c:/foo.txt' filename that's - # invalid. Drop the forward slash for such pathnames. - # - # If you touch this code path, you should test it on both Linux and - # Windows. - # - # Some internet resources suggest using urllib.request.url2pathname() but - # but that converts forward slashes to backslashes and this causes - # its own set of problems. - if url.startswith('file://'): - filename = urllib.parse.urlparse(url).path - if re.match(r'^/[a-zA-Z]:', filename): - filename = filename[1:] - return filename if return_filename else open(filename, "rb") - - assert is_url(url) - - # Lookup from cache. - if cache_dir is None: - cache_dir = make_cache_dir_path('downloads') - - url_md5 = hashlib.md5(url.encode("utf-8")).hexdigest() - if cache: - cache_files = glob.glob(os.path.join(cache_dir, url_md5 + "_*")) - if len(cache_files) == 1: - filename = cache_files[0] - return filename if return_filename else open(filename, "rb") - - # Download. - url_name = None - url_data = None - with requests.Session() as session: - if verbose: - print("Downloading %s ..." % url, end="", flush=True) - for attempts_left in reversed(range(num_attempts)): - try: - with session.get(url) as res: - res.raise_for_status() - if len(res.content) == 0: - raise IOError("No data received") - - if len(res.content) < 8192: - content_str = res.content.decode("utf-8") - if "download_warning" in res.headers.get("Set-Cookie", ""): - links = [html.unescape(link) for link in content_str.split('"') if "export=download" in link] - if len(links) == 1: - url = requests.compat.urljoin(url, links[0]) - raise IOError("Google Drive virus checker nag") - if "Google Drive - Quota exceeded" in content_str: - raise IOError("Google Drive download quota exceeded -- please try again later") - - match = re.search(r'filename="([^"]*)"', res.headers.get("Content-Disposition", "")) - url_name = match[1] if match else url - url_data = res.content - if verbose: - print(" done") - break - except KeyboardInterrupt: - raise - except: - if not attempts_left: - if verbose: - print(" failed") - raise - if verbose: - print(".", end="", flush=True) - - # Save to cache. - if cache: - safe_name = re.sub(r"[^0-9a-zA-Z-._]", "_", url_name) - cache_file = os.path.join(cache_dir, url_md5 + "_" + safe_name) - temp_file = os.path.join(cache_dir, "tmp_" + uuid.uuid4().hex + "_" + url_md5 + "_" + safe_name) - os.makedirs(cache_dir, exist_ok=True) - with open(temp_file, "wb") as f: - f.write(url_data) - os.replace(temp_file, cache_file) # atomic - if return_filename: - return cache_file - - # Return data as file object. - assert not return_filename - return io.BytesIO(url_data) diff --git a/spaces/ucalyptus/PTI/scripts/latent_creators/__init__.py b/spaces/ucalyptus/PTI/scripts/latent_creators/__init__.py deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/spaces/vaishanthr/Simultaneous-Segmented-Depth-Prediction/yolov8/ultralytics/yolo/utils/callbacks/wb.py b/spaces/vaishanthr/Simultaneous-Segmented-Depth-Prediction/yolov8/ultralytics/yolo/utils/callbacks/wb.py deleted file mode 100644 index 4b4c29b77d6c193c29f01224fdd102366afd22f1..0000000000000000000000000000000000000000 --- a/spaces/vaishanthr/Simultaneous-Segmented-Depth-Prediction/yolov8/ultralytics/yolo/utils/callbacks/wb.py +++ /dev/null @@ -1,60 +0,0 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 license -from ultralytics.yolo.utils import TESTS_RUNNING -from ultralytics.yolo.utils.torch_utils import model_info_for_loggers - -try: - import wandb as wb - - assert hasattr(wb, '__version__') - assert not TESTS_RUNNING # do not log pytest -except (ImportError, AssertionError): - wb = None - -_processed_plots = {} - - -def _log_plots(plots, step): - for name, params in plots.items(): - timestamp = params['timestamp'] - if _processed_plots.get(name, None) != timestamp: - wb.run.log({name.stem: wb.Image(str(name))}, step=step) - _processed_plots[name] = timestamp - - -def on_pretrain_routine_start(trainer): - """Initiate and start project if module is present.""" - wb.run or wb.init(project=trainer.args.project or 'YOLOv8', name=trainer.args.name, config=vars(trainer.args)) - - -def on_fit_epoch_end(trainer): - """Logs training metrics and model information at the end of an epoch.""" - wb.run.log(trainer.metrics, step=trainer.epoch + 1) - _log_plots(trainer.plots, step=trainer.epoch + 1) - _log_plots(trainer.validator.plots, step=trainer.epoch + 1) - if trainer.epoch == 0: - wb.run.log(model_info_for_loggers(trainer), step=trainer.epoch + 1) - - -def on_train_epoch_end(trainer): - """Log metrics and save images at the end of each training epoch.""" - wb.run.log(trainer.label_loss_items(trainer.tloss, prefix='train'), step=trainer.epoch + 1) - wb.run.log(trainer.lr, step=trainer.epoch + 1) - if trainer.epoch == 1: - _log_plots(trainer.plots, step=trainer.epoch + 1) - - -def on_train_end(trainer): - """Save the best model as an artifact at end of training.""" - _log_plots(trainer.validator.plots, step=trainer.epoch + 1) - _log_plots(trainer.plots, step=trainer.epoch + 1) - art = wb.Artifact(type='model', name=f'run_{wb.run.id}_model') - if trainer.best.exists(): - art.add_file(trainer.best) - wb.run.log_artifact(art, aliases=['best']) - - -callbacks = { - 'on_pretrain_routine_start': on_pretrain_routine_start, - 'on_train_epoch_end': on_train_epoch_end, - 'on_fit_epoch_end': on_fit_epoch_end, - 'on_train_end': on_train_end} if wb else {} diff --git a/spaces/videfikri/aicover/train/data_utils.py b/spaces/videfikri/aicover/train/data_utils.py deleted file mode 100644 index 4cf75e1c9a2658499ac51e60fd3efa755cd7c271..0000000000000000000000000000000000000000 --- a/spaces/videfikri/aicover/train/data_utils.py +++ /dev/null @@ -1,512 +0,0 @@ -import os, traceback -import numpy as np -import torch -import torch.utils.data - -from mel_processing import spectrogram_torch -from utils import load_wav_to_torch, load_filepaths_and_text - - -class TextAudioLoaderMultiNSFsid(torch.utils.data.Dataset): - """ - 1) loads audio, text pairs - 2) normalizes text and converts them to sequences of integers - 3) computes spectrograms from audio files. - """ - - def __init__(self, audiopaths_and_text, hparams): - self.audiopaths_and_text = load_filepaths_and_text(audiopaths_and_text) - self.max_wav_value = hparams.max_wav_value - self.sampling_rate = hparams.sampling_rate - self.filter_length = hparams.filter_length - self.hop_length = hparams.hop_length - self.win_length = hparams.win_length - self.sampling_rate = hparams.sampling_rate - self.min_text_len = getattr(hparams, "min_text_len", 1) - self.max_text_len = getattr(hparams, "max_text_len", 5000) - self._filter() - - def _filter(self): - """ - Filter text & store spec lengths - """ - # Store spectrogram lengths for Bucketing - # wav_length ~= file_size / (wav_channels * Bytes per dim) = file_size / (1 * 2) - # spec_length = wav_length // hop_length - audiopaths_and_text_new = [] - lengths = [] - for audiopath, text, pitch, pitchf, dv in self.audiopaths_and_text: - if self.min_text_len <= len(text) and len(text) <= self.max_text_len: - audiopaths_and_text_new.append([audiopath, text, pitch, pitchf, dv]) - lengths.append(os.path.getsize(audiopath) // (2 * self.hop_length)) - self.audiopaths_and_text = audiopaths_and_text_new - self.lengths = lengths - - def get_sid(self, sid): - sid = torch.LongTensor([int(sid)]) - return sid - - def get_audio_text_pair(self, audiopath_and_text): - # separate filename and text - file = audiopath_and_text[0] - phone = audiopath_and_text[1] - pitch = audiopath_and_text[2] - pitchf = audiopath_and_text[3] - dv = audiopath_and_text[4] - - phone, pitch, pitchf = self.get_labels(phone, pitch, pitchf) - spec, wav = self.get_audio(file) - dv = self.get_sid(dv) - - len_phone = phone.size()[0] - len_spec = spec.size()[-1] - # print(123,phone.shape,pitch.shape,spec.shape) - if len_phone != len_spec: - len_min = min(len_phone, len_spec) - # amor - len_wav = len_min * self.hop_length - - spec = spec[:, :len_min] - wav = wav[:, :len_wav] - - phone = phone[:len_min, :] - pitch = pitch[:len_min] - pitchf = pitchf[:len_min] - - return (spec, wav, phone, pitch, pitchf, dv) - - def get_labels(self, phone, pitch, pitchf): - phone = np.load(phone) - phone = np.repeat(phone, 2, axis=0) - pitch = np.load(pitch) - pitchf = np.load(pitchf) - n_num = min(phone.shape[0], 900) # DistributedBucketSampler - # print(234,phone.shape,pitch.shape) - phone = phone[:n_num, :] - pitch = pitch[:n_num] - pitchf = pitchf[:n_num] - phone = torch.FloatTensor(phone) - pitch = torch.LongTensor(pitch) - pitchf = torch.FloatTensor(pitchf) - return phone, pitch, pitchf - - def get_audio(self, filename): - audio, sampling_rate = load_wav_to_torch(filename) - if sampling_rate != self.sampling_rate: - raise ValueError( - "{} SR doesn't match target {} SR".format( - sampling_rate, self.sampling_rate - ) - ) - audio_norm = audio - # audio_norm = audio / self.max_wav_value - # audio_norm = audio / np.abs(audio).max() - - audio_norm = audio_norm.unsqueeze(0) - spec_filename = filename.replace(".wav", ".spec.pt") - if os.path.exists(spec_filename): - try: - spec = torch.load(spec_filename) - except: - print(spec_filename, traceback.format_exc()) - spec = spectrogram_torch( - audio_norm, - self.filter_length, - self.sampling_rate, - self.hop_length, - self.win_length, - center=False, - ) - spec = torch.squeeze(spec, 0) - torch.save(spec, spec_filename, _use_new_zipfile_serialization=False) - else: - spec = spectrogram_torch( - audio_norm, - self.filter_length, - self.sampling_rate, - self.hop_length, - self.win_length, - center=False, - ) - spec = torch.squeeze(spec, 0) - torch.save(spec, spec_filename, _use_new_zipfile_serialization=False) - return spec, audio_norm - - def __getitem__(self, index): - return self.get_audio_text_pair(self.audiopaths_and_text[index]) - - def __len__(self): - return len(self.audiopaths_and_text) - - -class TextAudioCollateMultiNSFsid: - """Zero-pads model inputs and targets""" - - def __init__(self, return_ids=False): - self.return_ids = return_ids - - def __call__(self, batch): - """Collate's training batch from normalized text and aduio - PARAMS - ------ - batch: [text_normalized, spec_normalized, wav_normalized] - """ - # Right zero-pad all one-hot text sequences to max input length - _, ids_sorted_decreasing = torch.sort( - torch.LongTensor([x[0].size(1) for x in batch]), dim=0, descending=True - ) - - max_spec_len = max([x[0].size(1) for x in batch]) - max_wave_len = max([x[1].size(1) for x in batch]) - spec_lengths = torch.LongTensor(len(batch)) - wave_lengths = torch.LongTensor(len(batch)) - spec_padded = torch.FloatTensor(len(batch), batch[0][0].size(0), max_spec_len) - wave_padded = torch.FloatTensor(len(batch), 1, max_wave_len) - spec_padded.zero_() - wave_padded.zero_() - - max_phone_len = max([x[2].size(0) for x in batch]) - phone_lengths = torch.LongTensor(len(batch)) - phone_padded = torch.FloatTensor( - len(batch), max_phone_len, batch[0][2].shape[1] - ) # (spec, wav, phone, pitch) - pitch_padded = torch.LongTensor(len(batch), max_phone_len) - pitchf_padded = torch.FloatTensor(len(batch), max_phone_len) - phone_padded.zero_() - pitch_padded.zero_() - pitchf_padded.zero_() - # dv = torch.FloatTensor(len(batch), 256)#gin=256 - sid = torch.LongTensor(len(batch)) - - for i in range(len(ids_sorted_decreasing)): - row = batch[ids_sorted_decreasing[i]] - - spec = row[0] - spec_padded[i, :, : spec.size(1)] = spec - spec_lengths[i] = spec.size(1) - - wave = row[1] - wave_padded[i, :, : wave.size(1)] = wave - wave_lengths[i] = wave.size(1) - - phone = row[2] - phone_padded[i, : phone.size(0), :] = phone - phone_lengths[i] = phone.size(0) - - pitch = row[3] - pitch_padded[i, : pitch.size(0)] = pitch - pitchf = row[4] - pitchf_padded[i, : pitchf.size(0)] = pitchf - - # dv[i] = row[5] - sid[i] = row[5] - - return ( - phone_padded, - phone_lengths, - pitch_padded, - pitchf_padded, - spec_padded, - spec_lengths, - wave_padded, - wave_lengths, - # dv - sid, - ) - - -class TextAudioLoader(torch.utils.data.Dataset): - """ - 1) loads audio, text pairs - 2) normalizes text and converts them to sequences of integers - 3) computes spectrograms from audio files. - """ - - def __init__(self, audiopaths_and_text, hparams): - self.audiopaths_and_text = load_filepaths_and_text(audiopaths_and_text) - self.max_wav_value = hparams.max_wav_value - self.sampling_rate = hparams.sampling_rate - self.filter_length = hparams.filter_length - self.hop_length = hparams.hop_length - self.win_length = hparams.win_length - self.sampling_rate = hparams.sampling_rate - self.min_text_len = getattr(hparams, "min_text_len", 1) - self.max_text_len = getattr(hparams, "max_text_len", 5000) - self._filter() - - def _filter(self): - """ - Filter text & store spec lengths - """ - # Store spectrogram lengths for Bucketing - # wav_length ~= file_size / (wav_channels * Bytes per dim) = file_size / (1 * 2) - # spec_length = wav_length // hop_length - audiopaths_and_text_new = [] - lengths = [] - for audiopath, text, dv in self.audiopaths_and_text: - if self.min_text_len <= len(text) and len(text) <= self.max_text_len: - audiopaths_and_text_new.append([audiopath, text, dv]) - lengths.append(os.path.getsize(audiopath) // (2 * self.hop_length)) - self.audiopaths_and_text = audiopaths_and_text_new - self.lengths = lengths - - def get_sid(self, sid): - sid = torch.LongTensor([int(sid)]) - return sid - - def get_audio_text_pair(self, audiopath_and_text): - # separate filename and text - file = audiopath_and_text[0] - phone = audiopath_and_text[1] - dv = audiopath_and_text[2] - - phone = self.get_labels(phone) - spec, wav = self.get_audio(file) - dv = self.get_sid(dv) - - len_phone = phone.size()[0] - len_spec = spec.size()[-1] - if len_phone != len_spec: - len_min = min(len_phone, len_spec) - len_wav = len_min * self.hop_length - spec = spec[:, :len_min] - wav = wav[:, :len_wav] - phone = phone[:len_min, :] - return (spec, wav, phone, dv) - - def get_labels(self, phone): - phone = np.load(phone) - phone = np.repeat(phone, 2, axis=0) - n_num = min(phone.shape[0], 900) # DistributedBucketSampler - phone = phone[:n_num, :] - phone = torch.FloatTensor(phone) - return phone - - def get_audio(self, filename): - audio, sampling_rate = load_wav_to_torch(filename) - if sampling_rate != self.sampling_rate: - raise ValueError( - "{} SR doesn't match target {} SR".format( - sampling_rate, self.sampling_rate - ) - ) - audio_norm = audio - # audio_norm = audio / self.max_wav_value - # audio_norm = audio / np.abs(audio).max() - - audio_norm = audio_norm.unsqueeze(0) - spec_filename = filename.replace(".wav", ".spec.pt") - if os.path.exists(spec_filename): - try: - spec = torch.load(spec_filename) - except: - print(spec_filename, traceback.format_exc()) - spec = spectrogram_torch( - audio_norm, - self.filter_length, - self.sampling_rate, - self.hop_length, - self.win_length, - center=False, - ) - spec = torch.squeeze(spec, 0) - torch.save(spec, spec_filename, _use_new_zipfile_serialization=False) - else: - spec = spectrogram_torch( - audio_norm, - self.filter_length, - self.sampling_rate, - self.hop_length, - self.win_length, - center=False, - ) - spec = torch.squeeze(spec, 0) - torch.save(spec, spec_filename, _use_new_zipfile_serialization=False) - return spec, audio_norm - - def __getitem__(self, index): - return self.get_audio_text_pair(self.audiopaths_and_text[index]) - - def __len__(self): - return len(self.audiopaths_and_text) - - -class TextAudioCollate: - """Zero-pads model inputs and targets""" - - def __init__(self, return_ids=False): - self.return_ids = return_ids - - def __call__(self, batch): - """Collate's training batch from normalized text and aduio - PARAMS - ------ - batch: [text_normalized, spec_normalized, wav_normalized] - """ - # Right zero-pad all one-hot text sequences to max input length - _, ids_sorted_decreasing = torch.sort( - torch.LongTensor([x[0].size(1) for x in batch]), dim=0, descending=True - ) - - max_spec_len = max([x[0].size(1) for x in batch]) - max_wave_len = max([x[1].size(1) for x in batch]) - spec_lengths = torch.LongTensor(len(batch)) - wave_lengths = torch.LongTensor(len(batch)) - spec_padded = torch.FloatTensor(len(batch), batch[0][0].size(0), max_spec_len) - wave_padded = torch.FloatTensor(len(batch), 1, max_wave_len) - spec_padded.zero_() - wave_padded.zero_() - - max_phone_len = max([x[2].size(0) for x in batch]) - phone_lengths = torch.LongTensor(len(batch)) - phone_padded = torch.FloatTensor( - len(batch), max_phone_len, batch[0][2].shape[1] - ) - phone_padded.zero_() - sid = torch.LongTensor(len(batch)) - - for i in range(len(ids_sorted_decreasing)): - row = batch[ids_sorted_decreasing[i]] - - spec = row[0] - spec_padded[i, :, : spec.size(1)] = spec - spec_lengths[i] = spec.size(1) - - wave = row[1] - wave_padded[i, :, : wave.size(1)] = wave - wave_lengths[i] = wave.size(1) - - phone = row[2] - phone_padded[i, : phone.size(0), :] = phone - phone_lengths[i] = phone.size(0) - - sid[i] = row[3] - - return ( - phone_padded, - phone_lengths, - spec_padded, - spec_lengths, - wave_padded, - wave_lengths, - sid, - ) - - -class DistributedBucketSampler(torch.utils.data.distributed.DistributedSampler): - """ - Maintain similar input lengths in a batch. - Length groups are specified by boundaries. - Ex) boundaries = [b1, b2, b3] -> any batch is included either {x | b1 < length(x) <=b2} or {x | b2 < length(x) <= b3}. - - It removes samples which are not included in the boundaries. - Ex) boundaries = [b1, b2, b3] -> any x s.t. length(x) <= b1 or length(x) > b3 are discarded. - """ - - def __init__( - self, - dataset, - batch_size, - boundaries, - num_replicas=None, - rank=None, - shuffle=True, - ): - super().__init__(dataset, num_replicas=num_replicas, rank=rank, shuffle=shuffle) - self.lengths = dataset.lengths - self.batch_size = batch_size - self.boundaries = boundaries - - self.buckets, self.num_samples_per_bucket = self._create_buckets() - self.total_size = sum(self.num_samples_per_bucket) - self.num_samples = self.total_size // self.num_replicas - - def _create_buckets(self): - buckets = [[] for _ in range(len(self.boundaries) - 1)] - for i in range(len(self.lengths)): - length = self.lengths[i] - idx_bucket = self._bisect(length) - if idx_bucket != -1: - buckets[idx_bucket].append(i) - - for i in range(len(buckets) - 1, -1, -1): # - if len(buckets[i]) == 0: - buckets.pop(i) - self.boundaries.pop(i + 1) - - num_samples_per_bucket = [] - for i in range(len(buckets)): - len_bucket = len(buckets[i]) - total_batch_size = self.num_replicas * self.batch_size - rem = ( - total_batch_size - (len_bucket % total_batch_size) - ) % total_batch_size - num_samples_per_bucket.append(len_bucket + rem) - return buckets, num_samples_per_bucket - - def __iter__(self): - # deterministically shuffle based on epoch - g = torch.Generator() - g.manual_seed(self.epoch) - - indices = [] - if self.shuffle: - for bucket in self.buckets: - indices.append(torch.randperm(len(bucket), generator=g).tolist()) - else: - for bucket in self.buckets: - indices.append(list(range(len(bucket)))) - - batches = [] - for i in range(len(self.buckets)): - bucket = self.buckets[i] - len_bucket = len(bucket) - ids_bucket = indices[i] - num_samples_bucket = self.num_samples_per_bucket[i] - - # add extra samples to make it evenly divisible - rem = num_samples_bucket - len_bucket - ids_bucket = ( - ids_bucket - + ids_bucket * (rem // len_bucket) - + ids_bucket[: (rem % len_bucket)] - ) - - # subsample - ids_bucket = ids_bucket[self.rank :: self.num_replicas] - - # batching - for j in range(len(ids_bucket) // self.batch_size): - batch = [ - bucket[idx] - for idx in ids_bucket[ - j * self.batch_size : (j + 1) * self.batch_size - ] - ] - batches.append(batch) - - if self.shuffle: - batch_ids = torch.randperm(len(batches), generator=g).tolist() - batches = [batches[i] for i in batch_ids] - self.batches = batches - - assert len(self.batches) * self.batch_size == self.num_samples - return iter(self.batches) - - def _bisect(self, x, lo=0, hi=None): - if hi is None: - hi = len(self.boundaries) - 1 - - if hi > lo: - mid = (hi + lo) // 2 - if self.boundaries[mid] < x and x <= self.boundaries[mid + 1]: - return mid - elif x <= self.boundaries[mid]: - return self._bisect(x, lo, mid) - else: - return self._bisect(x, mid + 1, hi) - else: - return -1 - - def __len__(self): - return self.num_samples // self.batch_size diff --git a/spaces/vishnu0001/text2mesh/shap_e/models/nn/camera.py b/spaces/vishnu0001/text2mesh/shap_e/models/nn/camera.py deleted file mode 100644 index 61d98426ade534daf1edd9f9d0d1bc52b9b884f4..0000000000000000000000000000000000000000 --- a/spaces/vishnu0001/text2mesh/shap_e/models/nn/camera.py +++ /dev/null @@ -1,207 +0,0 @@ -from abc import ABC, abstractmethod -from dataclasses import dataclass -from typing import Optional, Tuple, Union - -import numpy as np -import torch - -from shap_e.rendering.view_data import ProjectiveCamera - - -@dataclass -class DifferentiableCamera(ABC): - """ - An object describing how a camera corresponds to pixels in an image. - """ - - @abstractmethod - def camera_rays(self, coords: torch.Tensor) -> torch.Tensor: - """ - For every (x, y) coordinate in a rendered image, compute the ray of the - corresponding pixel. - - :param coords: an [N x ... x 2] integer array of 2D image coordinates. - :return: an [N x ... x 2 x 3] array of [2 x 3] (origin, direction) tuples. - The direction should always be unit length. - """ - - @abstractmethod - def resize_image(self, width: int, height: int) -> "DifferentiableCamera": - """ - Creates a new camera with the same intrinsics and direction as this one, - but with resized image dimensions. - """ - - -@dataclass -class DifferentiableProjectiveCamera(DifferentiableCamera): - """ - Implements a batch, differentiable, standard pinhole camera - """ - - origin: torch.Tensor # [batch_size x 3] - x: torch.Tensor # [batch_size x 3] - y: torch.Tensor # [batch_size x 3] - z: torch.Tensor # [batch_size x 3] - width: int - height: int - x_fov: float - y_fov: float - - def __post_init__(self): - assert self.x.shape[0] == self.y.shape[0] == self.z.shape[0] == self.origin.shape[0] - assert self.x.shape[1] == self.y.shape[1] == self.z.shape[1] == self.origin.shape[1] == 3 - assert ( - len(self.x.shape) - == len(self.y.shape) - == len(self.z.shape) - == len(self.origin.shape) - == 2 - ) - - def resolution(self): - return torch.from_numpy(np.array([self.width, self.height], dtype=np.float32)) - - def fov(self): - return torch.from_numpy(np.array([self.x_fov, self.y_fov], dtype=np.float32)) - - def image_coords(self) -> torch.Tensor: - """ - :return: coords of shape (width * height, 2) - """ - pixel_indices = torch.arange(self.height * self.width) - coords = torch.stack( - [ - pixel_indices % self.width, - torch.div(pixel_indices, self.width, rounding_mode="trunc"), - ], - axis=1, - ) - return coords - - def camera_rays(self, coords: torch.Tensor) -> torch.Tensor: - batch_size, *shape, n_coords = coords.shape - assert n_coords == 2 - assert batch_size == self.origin.shape[0] - flat = coords.view(batch_size, -1, 2) - - res = self.resolution().to(flat.device) - fov = self.fov().to(flat.device) - - fracs = (flat.float() / (res - 1)) * 2 - 1 - fracs = fracs * torch.tan(fov / 2) - - fracs = fracs.view(batch_size, -1, 2) - directions = ( - self.z.view(batch_size, 1, 3) - + self.x.view(batch_size, 1, 3) * fracs[:, :, :1] - + self.y.view(batch_size, 1, 3) * fracs[:, :, 1:] - ) - directions = directions / directions.norm(dim=-1, keepdim=True) - rays = torch.stack( - [ - torch.broadcast_to( - self.origin.view(batch_size, 1, 3), [batch_size, directions.shape[1], 3] - ), - directions, - ], - dim=2, - ) - return rays.view(batch_size, *shape, 2, 3) - - def resize_image(self, width: int, height: int) -> "DifferentiableProjectiveCamera": - """ - Creates a new camera for the resized view assuming the aspect ratio does not change. - """ - assert width * self.height == height * self.width, "The aspect ratio should not change." - return DifferentiableProjectiveCamera( - origin=self.origin, - x=self.x, - y=self.y, - z=self.z, - width=width, - height=height, - x_fov=self.x_fov, - y_fov=self.y_fov, - ) - - -@dataclass -class DifferentiableCameraBatch(ABC): - """ - Annotate a differentiable camera with a multi-dimensional batch shape. - """ - - shape: Tuple[int] - flat_camera: DifferentiableCamera - - -def normalize(vec: torch.Tensor) -> torch.Tensor: - return vec / vec.norm(dim=-1, keepdim=True) - - -def project_out(vec1: torch.Tensor, vec2: torch.Tensor) -> torch.Tensor: - """ - Removes the vec2 component from vec1 - """ - vec2 = normalize(vec2) - proj = (vec1 * vec2).sum(dim=-1, keepdim=True) - return vec1 - proj * vec2 - - -def camera_orientation(toward: torch.Tensor, up: Optional[torch.Tensor] = None) -> torch.Tensor: - """ - :param toward: [batch_size x 3] unit vector from camera position to the object - :param up: Optional [batch_size x 3] specifying the physical up direction in the world frame. - :return: [batch_size x 3 x 3] - """ - - if up is None: - up = torch.zeros_like(toward) - up[:, 2] = 1 - - assert len(toward.shape) == 2 - assert toward.shape[1] == 3 - - assert len(up.shape) == 2 - assert up.shape[1] == 3 - - z = toward / toward.norm(dim=-1, keepdim=True) - y = -normalize(project_out(up, toward)) - x = torch.cross(y, z, dim=1) - return torch.stack([x, y, z], dim=1) - - -def projective_camera_frame( - origin: torch.Tensor, - toward: torch.Tensor, - camera_params: Union[ProjectiveCamera, DifferentiableProjectiveCamera], -) -> DifferentiableProjectiveCamera: - """ - Given the origin and the direction of a view, return a differentiable - projective camera with the given parameters. - - TODO: We need to support the rotation of the camera frame about the - `toward` vector to fully implement 6 degrees of freedom. - """ - rot = camera_orientation(toward) - camera = DifferentiableProjectiveCamera( - origin=origin, - x=rot[:, 0], - y=rot[:, 1], - z=rot[:, 2], - width=camera_params.width, - height=camera_params.height, - x_fov=camera_params.x_fov, - y_fov=camera_params.y_fov, - ) - return camera - - -@torch.no_grad() -def get_image_coords(width, height) -> torch.Tensor: - pixel_indices = torch.arange(height * width) - # torch throws warnings for pixel_indices // width - pixel_indices_div = torch.div(pixel_indices, width, rounding_mode="trunc") - coords = torch.stack([pixel_indices % width, pixel_indices_div], dim=1) - return coords diff --git a/spaces/vonewman/my-sentiment-analyzer-app/app.py b/spaces/vonewman/my-sentiment-analyzer-app/app.py deleted file mode 100644 index 9703bc937eba94c933666509d97a4c2186b3601b..0000000000000000000000000000000000000000 --- a/spaces/vonewman/my-sentiment-analyzer-app/app.py +++ /dev/null @@ -1,14 +0,0 @@ -import gradio as gr - -from transformers import pipeline - -sentiment = pipeline("sentiment-analysis") - -def get_sentiment(input_text): - return sentiment(input_text) - -iface = gr.Interface(fn = get_sentiment, inputs = 'text', outputs = ['text'], - title = 'Sentiment Analysis', - description="Get sentiment Negatives/Positives for the given input.") - -iface.launch(inline = False) \ No newline at end of file diff --git a/spaces/vumichien/Generate_human_motion/pyrender/pyrender/camera.py b/spaces/vumichien/Generate_human_motion/pyrender/pyrender/camera.py deleted file mode 100644 index e019358039033c3a372c990ebad3151258c3651d..0000000000000000000000000000000000000000 --- a/spaces/vumichien/Generate_human_motion/pyrender/pyrender/camera.py +++ /dev/null @@ -1,437 +0,0 @@ -"""Virtual cameras compliant with the glTF 2.0 specification as described at -https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#reference-camera - -Author: Matthew Matl -""" -import abc -import numpy as np -import six -import sys - -from .constants import DEFAULT_Z_NEAR, DEFAULT_Z_FAR - - -@six.add_metaclass(abc.ABCMeta) -class Camera(object): - """Abstract base class for all cameras. - - Note - ---- - Camera poses are specified in the OpenGL format, - where the z axis points away from the view direction and the - x and y axes point to the right and up in the image plane, respectively. - - Parameters - ---------- - znear : float - The floating-point distance to the near clipping plane. - zfar : float - The floating-point distance to the far clipping plane. - ``zfar`` must be greater than ``znear``. - name : str, optional - The user-defined name of this object. - """ - - def __init__(self, - znear=DEFAULT_Z_NEAR, - zfar=DEFAULT_Z_FAR, - name=None): - self.name = name - self.znear = znear - self.zfar = zfar - - @property - def name(self): - """str : The user-defined name of this object. - """ - return self._name - - @name.setter - def name(self, value): - if value is not None: - value = str(value) - self._name = value - - @property - def znear(self): - """float : The distance to the near clipping plane. - """ - return self._znear - - @znear.setter - def znear(self, value): - value = float(value) - if value < 0: - raise ValueError('z-near must be >= 0.0') - self._znear = value - - @property - def zfar(self): - """float : The distance to the far clipping plane. - """ - return self._zfar - - @zfar.setter - def zfar(self, value): - value = float(value) - if value <= 0 or value <= self.znear: - raise ValueError('zfar must be >0 and >znear') - self._zfar = value - - @abc.abstractmethod - def get_projection_matrix(self, width=None, height=None): - """Return the OpenGL projection matrix for this camera. - - Parameters - ---------- - width : int - Width of the current viewport, in pixels. - height : int - Height of the current viewport, in pixels. - """ - pass - - -class PerspectiveCamera(Camera): - - """A perspective camera for perspective projection. - - Parameters - ---------- - yfov : float - The floating-point vertical field of view in radians. - znear : float - The floating-point distance to the near clipping plane. - If not specified, defaults to 0.05. - zfar : float, optional - The floating-point distance to the far clipping plane. - ``zfar`` must be greater than ``znear``. - If None, the camera uses an infinite projection matrix. - aspectRatio : float, optional - The floating-point aspect ratio of the field of view. - If not specified, the camera uses the viewport's aspect ratio. - name : str, optional - The user-defined name of this object. - """ - - def __init__(self, - yfov, - znear=DEFAULT_Z_NEAR, - zfar=None, - aspectRatio=None, - name=None): - super(PerspectiveCamera, self).__init__( - znear=znear, - zfar=zfar, - name=name, - ) - - self.yfov = yfov - self.aspectRatio = aspectRatio - - @property - def yfov(self): - """float : The vertical field of view in radians. - """ - return self._yfov - - @yfov.setter - def yfov(self, value): - value = float(value) - if value <= 0.0: - raise ValueError('Field of view must be positive') - self._yfov = value - - @property - def zfar(self): - """float : The distance to the far clipping plane. - """ - return self._zfar - - @zfar.setter - def zfar(self, value): - if value is not None: - value = float(value) - if value <= 0 or value <= self.znear: - raise ValueError('zfar must be >0 and >znear') - self._zfar = value - - @property - def aspectRatio(self): - """float : The ratio of the width to the height of the field of view. - """ - return self._aspectRatio - - @aspectRatio.setter - def aspectRatio(self, value): - if value is not None: - value = float(value) - if value <= 0.0: - raise ValueError('Aspect ratio must be positive') - self._aspectRatio = value - - def get_projection_matrix(self, width=None, height=None): - """Return the OpenGL projection matrix for this camera. - - Parameters - ---------- - width : int - Width of the current viewport, in pixels. - height : int - Height of the current viewport, in pixels. - """ - aspect_ratio = self.aspectRatio - if aspect_ratio is None: - if width is None or height is None: - raise ValueError('Aspect ratio of camera must be defined') - aspect_ratio = float(width) / float(height) - - a = aspect_ratio - t = np.tan(self.yfov / 2.0) - n = self.znear - f = self.zfar - - P = np.zeros((4,4)) - P[0][0] = 1.0 / (a * t) - P[1][1] = 1.0 / t - P[3][2] = -1.0 - - if f is None: - P[2][2] = -1.0 - P[2][3] = -2.0 * n - else: - P[2][2] = (f + n) / (n - f) - P[2][3] = (2 * f * n) / (n - f) - - return P - - -class OrthographicCamera(Camera): - """An orthographic camera for orthographic projection. - - Parameters - ---------- - xmag : float - The floating-point horizontal magnification of the view. - ymag : float - The floating-point vertical magnification of the view. - znear : float - The floating-point distance to the near clipping plane. - If not specified, defaults to 0.05. - zfar : float - The floating-point distance to the far clipping plane. - ``zfar`` must be greater than ``znear``. - If not specified, defaults to 100.0. - name : str, optional - The user-defined name of this object. - """ - - def __init__(self, - xmag, - ymag, - znear=DEFAULT_Z_NEAR, - zfar=DEFAULT_Z_FAR, - name=None): - super(OrthographicCamera, self).__init__( - znear=znear, - zfar=zfar, - name=name, - ) - - self.xmag = xmag - self.ymag = ymag - - @property - def xmag(self): - """float : The horizontal magnification of the view. - """ - return self._xmag - - @xmag.setter - def xmag(self, value): - value = float(value) - if value <= 0.0: - raise ValueError('X magnification must be positive') - self._xmag = value - - @property - def ymag(self): - """float : The vertical magnification of the view. - """ - return self._ymag - - @ymag.setter - def ymag(self, value): - value = float(value) - if value <= 0.0: - raise ValueError('Y magnification must be positive') - self._ymag = value - - @property - def znear(self): - """float : The distance to the near clipping plane. - """ - return self._znear - - @znear.setter - def znear(self, value): - value = float(value) - if value <= 0: - raise ValueError('z-near must be > 0.0') - self._znear = value - - def get_projection_matrix(self, width=None, height=None): - """Return the OpenGL projection matrix for this camera. - - Parameters - ---------- - width : int - Width of the current viewport, in pixels. - Unused in this function. - height : int - Height of the current viewport, in pixels. - Unused in this function. - """ - xmag = self.xmag - ymag = self.ymag - - # If screen width/height defined, rescale xmag - if width is not None and height is not None: - xmag = width / height * ymag - - n = self.znear - f = self.zfar - P = np.zeros((4,4)) - P[0][0] = 1.0 / xmag - P[1][1] = 1.0 / ymag - P[2][2] = 2.0 / (n - f) - P[2][3] = (f + n) / (n - f) - P[3][3] = 1.0 - return P - - -class IntrinsicsCamera(Camera): - """A perspective camera with custom intrinsics. - - Parameters - ---------- - fx : float - X-axis focal length in pixels. - fy : float - Y-axis focal length in pixels. - cx : float - X-axis optical center in pixels. - cy : float - Y-axis optical center in pixels. - znear : float - The floating-point distance to the near clipping plane. - If not specified, defaults to 0.05. - zfar : float - The floating-point distance to the far clipping plane. - ``zfar`` must be greater than ``znear``. - If not specified, defaults to 100.0. - name : str, optional - The user-defined name of this object. - """ - - def __init__(self, - fx, - fy, - cx, - cy, - znear=DEFAULT_Z_NEAR, - zfar=DEFAULT_Z_FAR, - name=None): - super(IntrinsicsCamera, self).__init__( - znear=znear, - zfar=zfar, - name=name, - ) - - self.fx = fx - self.fy = fy - self.cx = cx - self.cy = cy - - @property - def fx(self): - """float : X-axis focal length in meters. - """ - return self._fx - - @fx.setter - def fx(self, value): - self._fx = float(value) - - @property - def fy(self): - """float : Y-axis focal length in meters. - """ - return self._fy - - @fy.setter - def fy(self, value): - self._fy = float(value) - - @property - def cx(self): - """float : X-axis optical center in pixels. - """ - return self._cx - - @cx.setter - def cx(self, value): - self._cx = float(value) - - @property - def cy(self): - """float : Y-axis optical center in pixels. - """ - return self._cy - - @cy.setter - def cy(self, value): - self._cy = float(value) - - def get_projection_matrix(self, width, height): - """Return the OpenGL projection matrix for this camera. - - Parameters - ---------- - width : int - Width of the current viewport, in pixels. - height : int - Height of the current viewport, in pixels. - """ - width = float(width) - height = float(height) - - cx, cy = self.cx, self.cy - fx, fy = self.fx, self.fy - if sys.platform == 'darwin': - cx = self.cx * 2.0 - cy = self.cy * 2.0 - fx = self.fx * 2.0 - fy = self.fy * 2.0 - - P = np.zeros((4,4)) - P[0][0] = 2.0 * fx / width - P[1][1] = 2.0 * fy / height - P[0][2] = 1.0 - 2.0 * cx / width - P[1][2] = 2.0 * cy / height - 1.0 - P[3][2] = -1.0 - - n = self.znear - f = self.zfar - if f is None: - P[2][2] = -1.0 - P[2][3] = -2.0 * n - else: - P[2][2] = (f + n) / (n - f) - P[2][3] = (2 * f * n) / (n - f) - - return P - - -__all__ = ['Camera', 'PerspectiveCamera', 'OrthographicCamera', - 'IntrinsicsCamera'] diff --git a/spaces/vumichien/canvas_controlnet/annotator/uniformer/mmseg/core/evaluation/__init__.py b/spaces/vumichien/canvas_controlnet/annotator/uniformer/mmseg/core/evaluation/__init__.py deleted file mode 100644 index f7cc4b23413a0639e9de00eeb0bf600632d2c6cd..0000000000000000000000000000000000000000 --- a/spaces/vumichien/canvas_controlnet/annotator/uniformer/mmseg/core/evaluation/__init__.py +++ /dev/null @@ -1,8 +0,0 @@ -from .class_names import get_classes, get_palette -from .eval_hooks import DistEvalHook, EvalHook -from .metrics import eval_metrics, mean_dice, mean_fscore, mean_iou - -__all__ = [ - 'EvalHook', 'DistEvalHook', 'mean_dice', 'mean_iou', 'mean_fscore', - 'eval_metrics', 'get_classes', 'get_palette' -] diff --git a/spaces/vumichien/canvas_controlnet/annotator/uniformer/mmseg/datasets/pipelines/transforms.py b/spaces/vumichien/canvas_controlnet/annotator/uniformer/mmseg/datasets/pipelines/transforms.py deleted file mode 100644 index 94e869b252ef6d8b43604add2bbc02f034614bfb..0000000000000000000000000000000000000000 --- a/spaces/vumichien/canvas_controlnet/annotator/uniformer/mmseg/datasets/pipelines/transforms.py +++ /dev/null @@ -1,889 +0,0 @@ -import annotator.uniformer.mmcv as mmcv -import numpy as np -from annotator.uniformer.mmcv.utils import deprecated_api_warning, is_tuple_of -from numpy import random - -from ..builder import PIPELINES - - -@PIPELINES.register_module() -class Resize(object): - """Resize images & seg. - - This transform resizes the input image to some scale. If the input dict - contains the key "scale", then the scale in the input dict is used, - otherwise the specified scale in the init method is used. - - ``img_scale`` can be None, a tuple (single-scale) or a list of tuple - (multi-scale). There are 4 multiscale modes: - - - ``ratio_range is not None``: - 1. When img_scale is None, img_scale is the shape of image in results - (img_scale = results['img'].shape[:2]) and the image is resized based - on the original size. (mode 1) - 2. When img_scale is a tuple (single-scale), randomly sample a ratio from - the ratio range and multiply it with the image scale. (mode 2) - - - ``ratio_range is None and multiscale_mode == "range"``: randomly sample a - scale from the a range. (mode 3) - - - ``ratio_range is None and multiscale_mode == "value"``: randomly sample a - scale from multiple scales. (mode 4) - - Args: - img_scale (tuple or list[tuple]): Images scales for resizing. - multiscale_mode (str): Either "range" or "value". - ratio_range (tuple[float]): (min_ratio, max_ratio) - keep_ratio (bool): Whether to keep the aspect ratio when resizing the - image. - """ - - def __init__(self, - img_scale=None, - multiscale_mode='range', - ratio_range=None, - keep_ratio=True): - if img_scale is None: - self.img_scale = None - else: - if isinstance(img_scale, list): - self.img_scale = img_scale - else: - self.img_scale = [img_scale] - assert mmcv.is_list_of(self.img_scale, tuple) - - if ratio_range is not None: - # mode 1: given img_scale=None and a range of image ratio - # mode 2: given a scale and a range of image ratio - assert self.img_scale is None or len(self.img_scale) == 1 - else: - # mode 3 and 4: given multiple scales or a range of scales - assert multiscale_mode in ['value', 'range'] - - self.multiscale_mode = multiscale_mode - self.ratio_range = ratio_range - self.keep_ratio = keep_ratio - - @staticmethod - def random_select(img_scales): - """Randomly select an img_scale from given candidates. - - Args: - img_scales (list[tuple]): Images scales for selection. - - Returns: - (tuple, int): Returns a tuple ``(img_scale, scale_dix)``, - where ``img_scale`` is the selected image scale and - ``scale_idx`` is the selected index in the given candidates. - """ - - assert mmcv.is_list_of(img_scales, tuple) - scale_idx = np.random.randint(len(img_scales)) - img_scale = img_scales[scale_idx] - return img_scale, scale_idx - - @staticmethod - def random_sample(img_scales): - """Randomly sample an img_scale when ``multiscale_mode=='range'``. - - Args: - img_scales (list[tuple]): Images scale range for sampling. - There must be two tuples in img_scales, which specify the lower - and upper bound of image scales. - - Returns: - (tuple, None): Returns a tuple ``(img_scale, None)``, where - ``img_scale`` is sampled scale and None is just a placeholder - to be consistent with :func:`random_select`. - """ - - assert mmcv.is_list_of(img_scales, tuple) and len(img_scales) == 2 - img_scale_long = [max(s) for s in img_scales] - img_scale_short = [min(s) for s in img_scales] - long_edge = np.random.randint( - min(img_scale_long), - max(img_scale_long) + 1) - short_edge = np.random.randint( - min(img_scale_short), - max(img_scale_short) + 1) - img_scale = (long_edge, short_edge) - return img_scale, None - - @staticmethod - def random_sample_ratio(img_scale, ratio_range): - """Randomly sample an img_scale when ``ratio_range`` is specified. - - A ratio will be randomly sampled from the range specified by - ``ratio_range``. Then it would be multiplied with ``img_scale`` to - generate sampled scale. - - Args: - img_scale (tuple): Images scale base to multiply with ratio. - ratio_range (tuple[float]): The minimum and maximum ratio to scale - the ``img_scale``. - - Returns: - (tuple, None): Returns a tuple ``(scale, None)``, where - ``scale`` is sampled ratio multiplied with ``img_scale`` and - None is just a placeholder to be consistent with - :func:`random_select`. - """ - - assert isinstance(img_scale, tuple) and len(img_scale) == 2 - min_ratio, max_ratio = ratio_range - assert min_ratio <= max_ratio - ratio = np.random.random_sample() * (max_ratio - min_ratio) + min_ratio - scale = int(img_scale[0] * ratio), int(img_scale[1] * ratio) - return scale, None - - def _random_scale(self, results): - """Randomly sample an img_scale according to ``ratio_range`` and - ``multiscale_mode``. - - If ``ratio_range`` is specified, a ratio will be sampled and be - multiplied with ``img_scale``. - If multiple scales are specified by ``img_scale``, a scale will be - sampled according to ``multiscale_mode``. - Otherwise, single scale will be used. - - Args: - results (dict): Result dict from :obj:`dataset`. - - Returns: - dict: Two new keys 'scale` and 'scale_idx` are added into - ``results``, which would be used by subsequent pipelines. - """ - - if self.ratio_range is not None: - if self.img_scale is None: - h, w = results['img'].shape[:2] - scale, scale_idx = self.random_sample_ratio((w, h), - self.ratio_range) - else: - scale, scale_idx = self.random_sample_ratio( - self.img_scale[0], self.ratio_range) - elif len(self.img_scale) == 1: - scale, scale_idx = self.img_scale[0], 0 - elif self.multiscale_mode == 'range': - scale, scale_idx = self.random_sample(self.img_scale) - elif self.multiscale_mode == 'value': - scale, scale_idx = self.random_select(self.img_scale) - else: - raise NotImplementedError - - results['scale'] = scale - results['scale_idx'] = scale_idx - - def _resize_img(self, results): - """Resize images with ``results['scale']``.""" - if self.keep_ratio: - img, scale_factor = mmcv.imrescale( - results['img'], results['scale'], return_scale=True) - # the w_scale and h_scale has minor difference - # a real fix should be done in the mmcv.imrescale in the future - new_h, new_w = img.shape[:2] - h, w = results['img'].shape[:2] - w_scale = new_w / w - h_scale = new_h / h - else: - img, w_scale, h_scale = mmcv.imresize( - results['img'], results['scale'], return_scale=True) - scale_factor = np.array([w_scale, h_scale, w_scale, h_scale], - dtype=np.float32) - results['img'] = img - results['img_shape'] = img.shape - results['pad_shape'] = img.shape # in case that there is no padding - results['scale_factor'] = scale_factor - results['keep_ratio'] = self.keep_ratio - - def _resize_seg(self, results): - """Resize semantic segmentation map with ``results['scale']``.""" - for key in results.get('seg_fields', []): - if self.keep_ratio: - gt_seg = mmcv.imrescale( - results[key], results['scale'], interpolation='nearest') - else: - gt_seg = mmcv.imresize( - results[key], results['scale'], interpolation='nearest') - results[key] = gt_seg - - def __call__(self, results): - """Call function to resize images, bounding boxes, masks, semantic - segmentation map. - - Args: - results (dict): Result dict from loading pipeline. - - Returns: - dict: Resized results, 'img_shape', 'pad_shape', 'scale_factor', - 'keep_ratio' keys are added into result dict. - """ - - if 'scale' not in results: - self._random_scale(results) - self._resize_img(results) - self._resize_seg(results) - return results - - def __repr__(self): - repr_str = self.__class__.__name__ - repr_str += (f'(img_scale={self.img_scale}, ' - f'multiscale_mode={self.multiscale_mode}, ' - f'ratio_range={self.ratio_range}, ' - f'keep_ratio={self.keep_ratio})') - return repr_str - - -@PIPELINES.register_module() -class RandomFlip(object): - """Flip the image & seg. - - If the input dict contains the key "flip", then the flag will be used, - otherwise it will be randomly decided by a ratio specified in the init - method. - - Args: - prob (float, optional): The flipping probability. Default: None. - direction(str, optional): The flipping direction. Options are - 'horizontal' and 'vertical'. Default: 'horizontal'. - """ - - @deprecated_api_warning({'flip_ratio': 'prob'}, cls_name='RandomFlip') - def __init__(self, prob=None, direction='horizontal'): - self.prob = prob - self.direction = direction - if prob is not None: - assert prob >= 0 and prob <= 1 - assert direction in ['horizontal', 'vertical'] - - def __call__(self, results): - """Call function to flip bounding boxes, masks, semantic segmentation - maps. - - Args: - results (dict): Result dict from loading pipeline. - - Returns: - dict: Flipped results, 'flip', 'flip_direction' keys are added into - result dict. - """ - - if 'flip' not in results: - flip = True if np.random.rand() < self.prob else False - results['flip'] = flip - if 'flip_direction' not in results: - results['flip_direction'] = self.direction - if results['flip']: - # flip image - results['img'] = mmcv.imflip( - results['img'], direction=results['flip_direction']) - - # flip segs - for key in results.get('seg_fields', []): - # use copy() to make numpy stride positive - results[key] = mmcv.imflip( - results[key], direction=results['flip_direction']).copy() - return results - - def __repr__(self): - return self.__class__.__name__ + f'(prob={self.prob})' - - -@PIPELINES.register_module() -class Pad(object): - """Pad the image & mask. - - There are two padding modes: (1) pad to a fixed size and (2) pad to the - minimum size that is divisible by some number. - Added keys are "pad_shape", "pad_fixed_size", "pad_size_divisor", - - Args: - size (tuple, optional): Fixed padding size. - size_divisor (int, optional): The divisor of padded size. - pad_val (float, optional): Padding value. Default: 0. - seg_pad_val (float, optional): Padding value of segmentation map. - Default: 255. - """ - - def __init__(self, - size=None, - size_divisor=None, - pad_val=0, - seg_pad_val=255): - self.size = size - self.size_divisor = size_divisor - self.pad_val = pad_val - self.seg_pad_val = seg_pad_val - # only one of size and size_divisor should be valid - assert size is not None or size_divisor is not None - assert size is None or size_divisor is None - - def _pad_img(self, results): - """Pad images according to ``self.size``.""" - if self.size is not None: - padded_img = mmcv.impad( - results['img'], shape=self.size, pad_val=self.pad_val) - elif self.size_divisor is not None: - padded_img = mmcv.impad_to_multiple( - results['img'], self.size_divisor, pad_val=self.pad_val) - results['img'] = padded_img - results['pad_shape'] = padded_img.shape - results['pad_fixed_size'] = self.size - results['pad_size_divisor'] = self.size_divisor - - def _pad_seg(self, results): - """Pad masks according to ``results['pad_shape']``.""" - for key in results.get('seg_fields', []): - results[key] = mmcv.impad( - results[key], - shape=results['pad_shape'][:2], - pad_val=self.seg_pad_val) - - def __call__(self, results): - """Call function to pad images, masks, semantic segmentation maps. - - Args: - results (dict): Result dict from loading pipeline. - - Returns: - dict: Updated result dict. - """ - - self._pad_img(results) - self._pad_seg(results) - return results - - def __repr__(self): - repr_str = self.__class__.__name__ - repr_str += f'(size={self.size}, size_divisor={self.size_divisor}, ' \ - f'pad_val={self.pad_val})' - return repr_str - - -@PIPELINES.register_module() -class Normalize(object): - """Normalize the image. - - Added key is "img_norm_cfg". - - Args: - mean (sequence): Mean values of 3 channels. - std (sequence): Std values of 3 channels. - to_rgb (bool): Whether to convert the image from BGR to RGB, - default is true. - """ - - def __init__(self, mean, std, to_rgb=True): - self.mean = np.array(mean, dtype=np.float32) - self.std = np.array(std, dtype=np.float32) - self.to_rgb = to_rgb - - def __call__(self, results): - """Call function to normalize images. - - Args: - results (dict): Result dict from loading pipeline. - - Returns: - dict: Normalized results, 'img_norm_cfg' key is added into - result dict. - """ - - results['img'] = mmcv.imnormalize(results['img'], self.mean, self.std, - self.to_rgb) - results['img_norm_cfg'] = dict( - mean=self.mean, std=self.std, to_rgb=self.to_rgb) - return results - - def __repr__(self): - repr_str = self.__class__.__name__ - repr_str += f'(mean={self.mean}, std={self.std}, to_rgb=' \ - f'{self.to_rgb})' - return repr_str - - -@PIPELINES.register_module() -class Rerange(object): - """Rerange the image pixel value. - - Args: - min_value (float or int): Minimum value of the reranged image. - Default: 0. - max_value (float or int): Maximum value of the reranged image. - Default: 255. - """ - - def __init__(self, min_value=0, max_value=255): - assert isinstance(min_value, float) or isinstance(min_value, int) - assert isinstance(max_value, float) or isinstance(max_value, int) - assert min_value < max_value - self.min_value = min_value - self.max_value = max_value - - def __call__(self, results): - """Call function to rerange images. - - Args: - results (dict): Result dict from loading pipeline. - Returns: - dict: Reranged results. - """ - - img = results['img'] - img_min_value = np.min(img) - img_max_value = np.max(img) - - assert img_min_value < img_max_value - # rerange to [0, 1] - img = (img - img_min_value) / (img_max_value - img_min_value) - # rerange to [min_value, max_value] - img = img * (self.max_value - self.min_value) + self.min_value - results['img'] = img - - return results - - def __repr__(self): - repr_str = self.__class__.__name__ - repr_str += f'(min_value={self.min_value}, max_value={self.max_value})' - return repr_str - - -@PIPELINES.register_module() -class CLAHE(object): - """Use CLAHE method to process the image. - - See `ZUIDERVELD,K. Contrast Limited Adaptive Histogram Equalization[J]. - Graphics Gems, 1994:474-485.` for more information. - - Args: - clip_limit (float): Threshold for contrast limiting. Default: 40.0. - tile_grid_size (tuple[int]): Size of grid for histogram equalization. - Input image will be divided into equally sized rectangular tiles. - It defines the number of tiles in row and column. Default: (8, 8). - """ - - def __init__(self, clip_limit=40.0, tile_grid_size=(8, 8)): - assert isinstance(clip_limit, (float, int)) - self.clip_limit = clip_limit - assert is_tuple_of(tile_grid_size, int) - assert len(tile_grid_size) == 2 - self.tile_grid_size = tile_grid_size - - def __call__(self, results): - """Call function to Use CLAHE method process images. - - Args: - results (dict): Result dict from loading pipeline. - - Returns: - dict: Processed results. - """ - - for i in range(results['img'].shape[2]): - results['img'][:, :, i] = mmcv.clahe( - np.array(results['img'][:, :, i], dtype=np.uint8), - self.clip_limit, self.tile_grid_size) - - return results - - def __repr__(self): - repr_str = self.__class__.__name__ - repr_str += f'(clip_limit={self.clip_limit}, '\ - f'tile_grid_size={self.tile_grid_size})' - return repr_str - - -@PIPELINES.register_module() -class RandomCrop(object): - """Random crop the image & seg. - - Args: - crop_size (tuple): Expected size after cropping, (h, w). - cat_max_ratio (float): The maximum ratio that single category could - occupy. - """ - - def __init__(self, crop_size, cat_max_ratio=1., ignore_index=255): - assert crop_size[0] > 0 and crop_size[1] > 0 - self.crop_size = crop_size - self.cat_max_ratio = cat_max_ratio - self.ignore_index = ignore_index - - def get_crop_bbox(self, img): - """Randomly get a crop bounding box.""" - margin_h = max(img.shape[0] - self.crop_size[0], 0) - margin_w = max(img.shape[1] - self.crop_size[1], 0) - offset_h = np.random.randint(0, margin_h + 1) - offset_w = np.random.randint(0, margin_w + 1) - crop_y1, crop_y2 = offset_h, offset_h + self.crop_size[0] - crop_x1, crop_x2 = offset_w, offset_w + self.crop_size[1] - - return crop_y1, crop_y2, crop_x1, crop_x2 - - def crop(self, img, crop_bbox): - """Crop from ``img``""" - crop_y1, crop_y2, crop_x1, crop_x2 = crop_bbox - img = img[crop_y1:crop_y2, crop_x1:crop_x2, ...] - return img - - def __call__(self, results): - """Call function to randomly crop images, semantic segmentation maps. - - Args: - results (dict): Result dict from loading pipeline. - - Returns: - dict: Randomly cropped results, 'img_shape' key in result dict is - updated according to crop size. - """ - - img = results['img'] - crop_bbox = self.get_crop_bbox(img) - if self.cat_max_ratio < 1.: - # Repeat 10 times - for _ in range(10): - seg_temp = self.crop(results['gt_semantic_seg'], crop_bbox) - labels, cnt = np.unique(seg_temp, return_counts=True) - cnt = cnt[labels != self.ignore_index] - if len(cnt) > 1 and np.max(cnt) / np.sum( - cnt) < self.cat_max_ratio: - break - crop_bbox = self.get_crop_bbox(img) - - # crop the image - img = self.crop(img, crop_bbox) - img_shape = img.shape - results['img'] = img - results['img_shape'] = img_shape - - # crop semantic seg - for key in results.get('seg_fields', []): - results[key] = self.crop(results[key], crop_bbox) - - return results - - def __repr__(self): - return self.__class__.__name__ + f'(crop_size={self.crop_size})' - - -@PIPELINES.register_module() -class RandomRotate(object): - """Rotate the image & seg. - - Args: - prob (float): The rotation probability. - degree (float, tuple[float]): Range of degrees to select from. If - degree is a number instead of tuple like (min, max), - the range of degree will be (``-degree``, ``+degree``) - pad_val (float, optional): Padding value of image. Default: 0. - seg_pad_val (float, optional): Padding value of segmentation map. - Default: 255. - center (tuple[float], optional): Center point (w, h) of the rotation in - the source image. If not specified, the center of the image will be - used. Default: None. - auto_bound (bool): Whether to adjust the image size to cover the whole - rotated image. Default: False - """ - - def __init__(self, - prob, - degree, - pad_val=0, - seg_pad_val=255, - center=None, - auto_bound=False): - self.prob = prob - assert prob >= 0 and prob <= 1 - if isinstance(degree, (float, int)): - assert degree > 0, f'degree {degree} should be positive' - self.degree = (-degree, degree) - else: - self.degree = degree - assert len(self.degree) == 2, f'degree {self.degree} should be a ' \ - f'tuple of (min, max)' - self.pal_val = pad_val - self.seg_pad_val = seg_pad_val - self.center = center - self.auto_bound = auto_bound - - def __call__(self, results): - """Call function to rotate image, semantic segmentation maps. - - Args: - results (dict): Result dict from loading pipeline. - - Returns: - dict: Rotated results. - """ - - rotate = True if np.random.rand() < self.prob else False - degree = np.random.uniform(min(*self.degree), max(*self.degree)) - if rotate: - # rotate image - results['img'] = mmcv.imrotate( - results['img'], - angle=degree, - border_value=self.pal_val, - center=self.center, - auto_bound=self.auto_bound) - - # rotate segs - for key in results.get('seg_fields', []): - results[key] = mmcv.imrotate( - results[key], - angle=degree, - border_value=self.seg_pad_val, - center=self.center, - auto_bound=self.auto_bound, - interpolation='nearest') - return results - - def __repr__(self): - repr_str = self.__class__.__name__ - repr_str += f'(prob={self.prob}, ' \ - f'degree={self.degree}, ' \ - f'pad_val={self.pal_val}, ' \ - f'seg_pad_val={self.seg_pad_val}, ' \ - f'center={self.center}, ' \ - f'auto_bound={self.auto_bound})' - return repr_str - - -@PIPELINES.register_module() -class RGB2Gray(object): - """Convert RGB image to grayscale image. - - This transform calculate the weighted mean of input image channels with - ``weights`` and then expand the channels to ``out_channels``. When - ``out_channels`` is None, the number of output channels is the same as - input channels. - - Args: - out_channels (int): Expected number of output channels after - transforming. Default: None. - weights (tuple[float]): The weights to calculate the weighted mean. - Default: (0.299, 0.587, 0.114). - """ - - def __init__(self, out_channels=None, weights=(0.299, 0.587, 0.114)): - assert out_channels is None or out_channels > 0 - self.out_channels = out_channels - assert isinstance(weights, tuple) - for item in weights: - assert isinstance(item, (float, int)) - self.weights = weights - - def __call__(self, results): - """Call function to convert RGB image to grayscale image. - - Args: - results (dict): Result dict from loading pipeline. - - Returns: - dict: Result dict with grayscale image. - """ - img = results['img'] - assert len(img.shape) == 3 - assert img.shape[2] == len(self.weights) - weights = np.array(self.weights).reshape((1, 1, -1)) - img = (img * weights).sum(2, keepdims=True) - if self.out_channels is None: - img = img.repeat(weights.shape[2], axis=2) - else: - img = img.repeat(self.out_channels, axis=2) - - results['img'] = img - results['img_shape'] = img.shape - - return results - - def __repr__(self): - repr_str = self.__class__.__name__ - repr_str += f'(out_channels={self.out_channels}, ' \ - f'weights={self.weights})' - return repr_str - - -@PIPELINES.register_module() -class AdjustGamma(object): - """Using gamma correction to process the image. - - Args: - gamma (float or int): Gamma value used in gamma correction. - Default: 1.0. - """ - - def __init__(self, gamma=1.0): - assert isinstance(gamma, float) or isinstance(gamma, int) - assert gamma > 0 - self.gamma = gamma - inv_gamma = 1.0 / gamma - self.table = np.array([(i / 255.0)**inv_gamma * 255 - for i in np.arange(256)]).astype('uint8') - - def __call__(self, results): - """Call function to process the image with gamma correction. - - Args: - results (dict): Result dict from loading pipeline. - - Returns: - dict: Processed results. - """ - - results['img'] = mmcv.lut_transform( - np.array(results['img'], dtype=np.uint8), self.table) - - return results - - def __repr__(self): - return self.__class__.__name__ + f'(gamma={self.gamma})' - - -@PIPELINES.register_module() -class SegRescale(object): - """Rescale semantic segmentation maps. - - Args: - scale_factor (float): The scale factor of the final output. - """ - - def __init__(self, scale_factor=1): - self.scale_factor = scale_factor - - def __call__(self, results): - """Call function to scale the semantic segmentation map. - - Args: - results (dict): Result dict from loading pipeline. - - Returns: - dict: Result dict with semantic segmentation map scaled. - """ - for key in results.get('seg_fields', []): - if self.scale_factor != 1: - results[key] = mmcv.imrescale( - results[key], self.scale_factor, interpolation='nearest') - return results - - def __repr__(self): - return self.__class__.__name__ + f'(scale_factor={self.scale_factor})' - - -@PIPELINES.register_module() -class PhotoMetricDistortion(object): - """Apply photometric distortion to image sequentially, every transformation - is applied with a probability of 0.5. The position of random contrast is in - second or second to last. - - 1. random brightness - 2. random contrast (mode 0) - 3. convert color from BGR to HSV - 4. random saturation - 5. random hue - 6. convert color from HSV to BGR - 7. random contrast (mode 1) - - Args: - brightness_delta (int): delta of brightness. - contrast_range (tuple): range of contrast. - saturation_range (tuple): range of saturation. - hue_delta (int): delta of hue. - """ - - def __init__(self, - brightness_delta=32, - contrast_range=(0.5, 1.5), - saturation_range=(0.5, 1.5), - hue_delta=18): - self.brightness_delta = brightness_delta - self.contrast_lower, self.contrast_upper = contrast_range - self.saturation_lower, self.saturation_upper = saturation_range - self.hue_delta = hue_delta - - def convert(self, img, alpha=1, beta=0): - """Multiple with alpha and add beat with clip.""" - img = img.astype(np.float32) * alpha + beta - img = np.clip(img, 0, 255) - return img.astype(np.uint8) - - def brightness(self, img): - """Brightness distortion.""" - if random.randint(2): - return self.convert( - img, - beta=random.uniform(-self.brightness_delta, - self.brightness_delta)) - return img - - def contrast(self, img): - """Contrast distortion.""" - if random.randint(2): - return self.convert( - img, - alpha=random.uniform(self.contrast_lower, self.contrast_upper)) - return img - - def saturation(self, img): - """Saturation distortion.""" - if random.randint(2): - img = mmcv.bgr2hsv(img) - img[:, :, 1] = self.convert( - img[:, :, 1], - alpha=random.uniform(self.saturation_lower, - self.saturation_upper)) - img = mmcv.hsv2bgr(img) - return img - - def hue(self, img): - """Hue distortion.""" - if random.randint(2): - img = mmcv.bgr2hsv(img) - img[:, :, - 0] = (img[:, :, 0].astype(int) + - random.randint(-self.hue_delta, self.hue_delta)) % 180 - img = mmcv.hsv2bgr(img) - return img - - def __call__(self, results): - """Call function to perform photometric distortion on images. - - Args: - results (dict): Result dict from loading pipeline. - - Returns: - dict: Result dict with images distorted. - """ - - img = results['img'] - # random brightness - img = self.brightness(img) - - # mode == 0 --> do random contrast first - # mode == 1 --> do random contrast last - mode = random.randint(2) - if mode == 1: - img = self.contrast(img) - - # random saturation - img = self.saturation(img) - - # random hue - img = self.hue(img) - - # random contrast - if mode == 0: - img = self.contrast(img) - - results['img'] = img - return results - - def __repr__(self): - repr_str = self.__class__.__name__ - repr_str += (f'(brightness_delta={self.brightness_delta}, ' - f'contrast_range=({self.contrast_lower}, ' - f'{self.contrast_upper}), ' - f'saturation_range=({self.saturation_lower}, ' - f'{self.saturation_upper}), ' - f'hue_delta={self.hue_delta})') - return repr_str diff --git a/spaces/weibinke/vits-simple-api/vits/text/mandarin.py b/spaces/weibinke/vits-simple-api/vits/text/mandarin.py deleted file mode 100644 index 80742a394f52165409bd820dc14e3cea6589454b..0000000000000000000000000000000000000000 --- a/spaces/weibinke/vits-simple-api/vits/text/mandarin.py +++ /dev/null @@ -1,365 +0,0 @@ -import config -import re -from pypinyin import lazy_pinyin, BOPOMOFO -import jieba -import cn2an -import logging - -logging.getLogger('jieba').setLevel(logging.WARNING) -jieba.set_dictionary(config.ABS_PATH + '/vits/text/jieba/dict.txt') -jieba.initialize() - -# List of (Latin alphabet, bopomofo) pairs: -_latin_to_bopomofo = [(re.compile('%s' % x[0], re.IGNORECASE), x[1]) for x in [ - ('a', 'ㄟˉ'), - ('b', 'ㄅㄧˋ'), - ('c', 'ㄙㄧˉ'), - ('d', 'ㄉㄧˋ'), - ('e', 'ㄧˋ'), - ('f', 'ㄝˊㄈㄨˋ'), - ('g', 'ㄐㄧˋ'), - ('h', 'ㄝˇㄑㄩˋ'), - ('i', 'ㄞˋ'), - ('j', 'ㄐㄟˋ'), - ('k', 'ㄎㄟˋ'), - ('l', 'ㄝˊㄛˋ'), - ('m', 'ㄝˊㄇㄨˋ'), - ('n', 'ㄣˉ'), - ('o', 'ㄡˉ'), - ('p', 'ㄆㄧˉ'), - ('q', 'ㄎㄧㄡˉ'), - ('r', 'ㄚˋ'), - ('s', 'ㄝˊㄙˋ'), - ('t', 'ㄊㄧˋ'), - ('u', 'ㄧㄡˉ'), - ('v', 'ㄨㄧˉ'), - ('w', 'ㄉㄚˋㄅㄨˋㄌㄧㄡˋ'), - ('x', 'ㄝˉㄎㄨˋㄙˋ'), - ('y', 'ㄨㄞˋ'), - ('z', 'ㄗㄟˋ') -]] - -# List of (bopomofo, romaji) pairs: -_bopomofo_to_romaji = [(re.compile('%s' % x[0]), x[1]) for x in [ - ('ㄅㄛ', 'p⁼wo'), - ('ㄆㄛ', 'pʰwo'), - ('ㄇㄛ', 'mwo'), - ('ㄈㄛ', 'fwo'), - ('ㄅ', 'p⁼'), - ('ㄆ', 'pʰ'), - ('ㄇ', 'm'), - ('ㄈ', 'f'), - ('ㄉ', 't⁼'), - ('ㄊ', 'tʰ'), - ('ㄋ', 'n'), - ('ㄌ', 'l'), - ('ㄍ', 'k⁼'), - ('ㄎ', 'kʰ'), - ('ㄏ', 'h'), - ('ㄐ', 'ʧ⁼'), - ('ㄑ', 'ʧʰ'), - ('ㄒ', 'ʃ'), - ('ㄓ', 'ʦ`⁼'), - ('ㄔ', 'ʦ`ʰ'), - ('ㄕ', 's`'), - ('ㄖ', 'ɹ`'), - ('ㄗ', 'ʦ⁼'), - ('ㄘ', 'ʦʰ'), - ('ㄙ', 's'), - ('ㄚ', 'a'), - ('ㄛ', 'o'), - ('ㄜ', 'ə'), - ('ㄝ', 'e'), - ('ㄞ', 'ai'), - ('ㄟ', 'ei'), - ('ㄠ', 'au'), - ('ㄡ', 'ou'), - ('ㄧㄢ', 'yeNN'), - ('ㄢ', 'aNN'), - ('ㄧㄣ', 'iNN'), - ('ㄣ', 'əNN'), - ('ㄤ', 'aNg'), - ('ㄧㄥ', 'iNg'), - ('ㄨㄥ', 'uNg'), - ('ㄩㄥ', 'yuNg'), - ('ㄥ', 'əNg'), - ('ㄦ', 'əɻ'), - ('ㄧ', 'i'), - ('ㄨ', 'u'), - ('ㄩ', 'ɥ'), - ('ˉ', '→'), - ('ˊ', '↑'), - ('ˇ', '↓↑'), - ('ˋ', '↓'), - ('˙', ''), - (',', ','), - ('。', '.'), - ('!', '!'), - ('?', '?'), - ('—', '-') -]] - -# List of (romaji, ipa) pairs: -_romaji_to_ipa = [(re.compile('%s' % x[0], re.IGNORECASE), x[1]) for x in [ - ('ʃy', 'ʃ'), - ('ʧʰy', 'ʧʰ'), - ('ʧ⁼y', 'ʧ⁼'), - ('NN', 'n'), - ('Ng', 'ŋ'), - ('y', 'j'), - ('h', 'x') -]] - -# List of (bopomofo, ipa) pairs: -_bopomofo_to_ipa = [(re.compile('%s' % x[0]), x[1]) for x in [ - ('ㄅㄛ', 'p⁼wo'), - ('ㄆㄛ', 'pʰwo'), - ('ㄇㄛ', 'mwo'), - ('ㄈㄛ', 'fwo'), - ('ㄅ', 'p⁼'), - ('ㄆ', 'pʰ'), - ('ㄇ', 'm'), - ('ㄈ', 'f'), - ('ㄉ', 't⁼'), - ('ㄊ', 'tʰ'), - ('ㄋ', 'n'), - ('ㄌ', 'l'), - ('ㄍ', 'k⁼'), - ('ㄎ', 'kʰ'), - ('ㄏ', 'x'), - ('ㄐ', 'tʃ⁼'), - ('ㄑ', 'tʃʰ'), - ('ㄒ', 'ʃ'), - ('ㄓ', 'ts`⁼'), - ('ㄔ', 'ts`ʰ'), - ('ㄕ', 's`'), - ('ㄖ', 'ɹ`'), - ('ㄗ', 'ts⁼'), - ('ㄘ', 'tsʰ'), - ('ㄙ', 's'), - ('ㄚ', 'a'), - ('ㄛ', 'o'), - ('ㄜ', 'ə'), - ('ㄝ', 'ɛ'), - ('ㄞ', 'aɪ'), - ('ㄟ', 'eɪ'), - ('ㄠ', 'ɑʊ'), - ('ㄡ', 'oʊ'), - ('ㄧㄢ', 'jɛn'), - ('ㄩㄢ', 'ɥæn'), - ('ㄢ', 'an'), - ('ㄧㄣ', 'in'), - ('ㄩㄣ', 'ɥn'), - ('ㄣ', 'ən'), - ('ㄤ', 'ɑŋ'), - ('ㄧㄥ', 'iŋ'), - ('ㄨㄥ', 'ʊŋ'), - ('ㄩㄥ', 'jʊŋ'), - ('ㄥ', 'əŋ'), - ('ㄦ', 'əɻ'), - ('ㄧ', 'i'), - ('ㄨ', 'u'), - ('ㄩ', 'ɥ'), - ('ˉ', '→'), - ('ˊ', '↑'), - ('ˇ', '↓↑'), - ('ˋ', '↓'), - ('˙', ''), - (',', ','), - ('。', '.'), - ('!', '!'), - ('?', '?'), - ('—', '-') -]] - -# List of (bopomofo, ipa2) pairs: -_bopomofo_to_ipa2 = [(re.compile('%s' % x[0]), x[1]) for x in [ - ('ㄅㄛ', 'pwo'), - ('ㄆㄛ', 'pʰwo'), - ('ㄇㄛ', 'mwo'), - ('ㄈㄛ', 'fwo'), - ('ㄅ', 'p'), - ('ㄆ', 'pʰ'), - ('ㄇ', 'm'), - ('ㄈ', 'f'), - ('ㄉ', 't'), - ('ㄊ', 'tʰ'), - ('ㄋ', 'n'), - ('ㄌ', 'l'), - ('ㄍ', 'k'), - ('ㄎ', 'kʰ'), - ('ㄏ', 'h'), - ('ㄐ', 'tɕ'), - ('ㄑ', 'tɕʰ'), - ('ㄒ', 'ɕ'), - ('ㄓ', 'tʂ'), - ('ㄔ', 'tʂʰ'), - ('ㄕ', 'ʂ'), - ('ㄖ', 'ɻ'), - ('ㄗ', 'ts'), - ('ㄘ', 'tsʰ'), - ('ㄙ', 's'), - ('ㄚ', 'a'), - ('ㄛ', 'o'), - ('ㄜ', 'ɤ'), - ('ㄝ', 'ɛ'), - ('ㄞ', 'aɪ'), - ('ㄟ', 'eɪ'), - ('ㄠ', 'ɑʊ'), - ('ㄡ', 'oʊ'), - ('ㄧㄢ', 'jɛn'), - ('ㄩㄢ', 'yæn'), - ('ㄢ', 'an'), - ('ㄧㄣ', 'in'), - ('ㄩㄣ', 'yn'), - ('ㄣ', 'ən'), - ('ㄤ', 'ɑŋ'), - ('ㄧㄥ', 'iŋ'), - ('ㄨㄥ', 'ʊŋ'), - ('ㄩㄥ', 'jʊŋ'), - ('ㄥ', 'ɤŋ'), - ('ㄦ', 'əɻ'), - ('ㄧ', 'i'), - ('ㄨ', 'u'), - ('ㄩ', 'y'), - ('ˉ', '˥'), - ('ˊ', '˧˥'), - ('ˇ', '˨˩˦'), - ('ˋ', '˥˩'), - ('˙', ''), - (',', ','), - ('。', '.'), - ('!', '!'), - ('?', '?'), - ('—', '-') -]] - -_symbols_to_chinese = [(re.compile(f'{x[0]}'), x[1]) for x in [ - ('([0-9]+(?:\.?[0-9]+)?)%', r'百分之\1'), - ('([0-9]+)/([0-9]+)', r'\2分之\1'), - ('\+', r'加'), - ('([0-9]+)-([0-9]+)', r'\1减\2'), - ('×', r'乘以'), - ('([0-9]+)x([0-9]+)', r'\1乘以\2'), - ('([0-9]+)\*([0-9]+)', r'\1乘以\2'), - ('÷', r'除以'), - ('=', r'等于'), - ('≠', r'不等于'), -]] - - -def symbols_to_chinese(text): - for regex, replacement in _symbols_to_chinese: - text = re.sub(regex, replacement, text) - return text - - -def number_to_chinese(text): - numbers = re.findall(r'[0-9]+(?:\.?[0-9]+)?', text) - for number in numbers: - text = text.replace(number, cn2an.an2cn(number), 1) - return text - - -def number_transform_to_chinese(text): - text = cn2an.transform(text, "an2cn") - return text - - -def chinese_to_bopomofo(text): - text = text.replace('、', ',').replace(';', ',').replace(':', ',') - words = jieba.lcut(text, cut_all=False) - text = '' - for word in words: - bopomofos = lazy_pinyin(word, BOPOMOFO) - if not re.search('[\u4e00-\u9fff]', word): - text += word - continue - for i in range(len(bopomofos)): - bopomofos[i] = re.sub(r'([\u3105-\u3129])$', r'\1ˉ', bopomofos[i]) - if text != '': - text += ' ' - text += ''.join(bopomofos) - return text - - -def latin_to_bopomofo(text): - for regex, replacement in _latin_to_bopomofo: - text = re.sub(regex, replacement, text) - return text - - -def bopomofo_to_romaji(text): - for regex, replacement in _bopomofo_to_romaji: - text = re.sub(regex, replacement, text) - return text - - -def bopomofo_to_ipa(text): - for regex, replacement in _bopomofo_to_ipa: - text = re.sub(regex, replacement, text) - return text - - -def bopomofo_to_ipa2(text): - for regex, replacement in _bopomofo_to_ipa2: - text = re.sub(regex, replacement, text) - return text - - -def chinese_to_romaji(text): - text = symbols_to_chinese(text) - text = number_transform_to_chinese(text) - text = chinese_to_bopomofo(text) - text = latin_to_bopomofo(text) - text = bopomofo_to_romaji(text) - text = re.sub('i([aoe])', r'y\1', text) - text = re.sub('u([aoəe])', r'w\1', text) - text = re.sub('([ʦsɹ]`[⁼ʰ]?)([→↓↑ ]+|$)', - r'\1ɹ`\2', text).replace('ɻ', 'ɹ`') - text = re.sub('([ʦs][⁼ʰ]?)([→↓↑ ]+|$)', r'\1ɹ\2', text) - return text - - -def chinese_to_lazy_ipa(text): - text = chinese_to_romaji(text) - for regex, replacement in _romaji_to_ipa: - text = re.sub(regex, replacement, text) - return text - - -def chinese_to_ipa(text): - text = symbols_to_chinese(text) - text = number_transform_to_chinese(text) - text = chinese_to_bopomofo(text) - text = latin_to_bopomofo(text) - text = bopomofo_to_ipa(text) - text = re.sub('i([aoe])', r'j\1', text) - text = re.sub('u([aoəe])', r'w\1', text) - text = re.sub('([sɹ]`[⁼ʰ]?)([→↓↑ ]+|$)', - r'\1ɹ`\2', text).replace('ɻ', 'ɹ`') - text = re.sub('([s][⁼ʰ]?)([→↓↑ ]+|$)', r'\1ɹ\2', text) - return text - - -def chinese_to_ipa2(text): - text = symbols_to_chinese(text) - text = number_transform_to_chinese(text) - text = chinese_to_bopomofo(text) - text = latin_to_bopomofo(text) - text = bopomofo_to_ipa2(text) - text = re.sub(r'i([aoe])', r'j\1', text) - text = re.sub(r'u([aoəe])', r'w\1', text) - text = re.sub(r'([ʂɹ]ʰ?)([˩˨˧˦˥ ]+|$)', r'\1ʅ\2', text) - text = re.sub(r'(sʰ?)([˩˨˧˦˥ ]+|$)', r'\1ɿ\2', text) - return text - - -def VITS_PinYin_model(): - import torch - import config - from vits.text.vits_pinyin import VITS_PinYin - device = torch.device("cuda" if torch.cuda.is_available() else "cpu") - # pinyin - tts_front = VITS_PinYin(f"{config.ABS_PATH}/vits/bert", device) - return tts_front diff --git a/spaces/wffcyrus/MetaGPT-v1/metagpt/static/assets/home-a1d5c9a6.js b/spaces/wffcyrus/MetaGPT-v1/metagpt/static/assets/home-a1d5c9a6.js deleted file mode 100644 index 850fa15fdf043ed58411c15e63fbeb6d7ca0895a..0000000000000000000000000000000000000000 --- a/spaces/wffcyrus/MetaGPT-v1/metagpt/static/assets/home-a1d5c9a6.js +++ /dev/null @@ -1,335 +0,0 @@ -var Fw=Object.defineProperty;var Bw=(t,e,n)=>e in t?Fw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Mi=(t,e,n)=>(Bw(t,typeof e!="symbol"?e+"":e,n),n);import{d as be,x as yt,c as le,f as V,h as ae,l as B,n as It,k as Bt,r as ee,o as kn,w as Zt,v as ue,$ as q,j as oi,p as ot,q as dt,a2 as wr,a3 as Zi,a4 as Ji,t as vt,F as st,U as Ws,R as $i,H as bm,G as Kn,i as Ft,B as ni,g as $m,K as Pn,a5 as j,J as Gw,A as Ks,a6 as Yw,I as OC,a7 as Hm,Q as si,T as Hi,z as zm,L as Qs,b as Ya,a8 as Vm,P as yn,s as Ge,u as Qe,M as ji,a9 as qw,y as AC,D as Ls,aa as $w,_ as Hw,a as zw,ab as Vw,N as Ww,ac as Kw}from"./vue-e0bc46a9.js";import{_ as Un,j as Fn,k as Bn,m as Qw,o as Ht,e as Rt,M as yC,n as IC,p as Ka,q as Xw,r as Zw,O as Zc,s as Jw,D as DC,u as jw,v as eM,A as tM,T as nM,B as hm,g as xC,w as rM,L as Gf,x as iM,y as aM,z as oM,E as sM,G as lM,S as cM,H as uM}from"./vendor-4cd7d240.js";import{C as Wm,U as dM,t as Km}from"./index-054e9309.js";import{c as La,a as _M,g as Qm}from"./__commonjsHelpers__-042e6b4d.js";const pM="/static/assets/bigTexCard-be1474a9.svg",mM="/static/assets/example-1902a4ef.png",gM="/static/assets/example-c1208c62.mp4",EM=["xlink:href"],ea=be({__name:"Icon",props:{iconId:{},fill:{},size:{},disabled:{type:Boolean}},setup(t){const e=t,n=yt(e,"iconId"),i=yt(e,"fill"),o=le(()=>n.value.split("-").filter(l=>l).map(l=>l[0].toUpperCase()+l.slice(1)).join("")),s=le(()=>`width: ${e.size}px;height:${e.size}px;fill:${i.value}`);return(l,c)=>(V(),ae("svg",{class:It([o.value,n.value,"IconCommon",l.disabled?"iconDisabled":""]),style:Bt(s.value),"aria-hidden":"true"},[B("use",{"xlink:href":`#${n.value}`},null,8,EM)],6))}});const fM="/static/assets/wechat-4dad209c.png",SM=be({name:"IconDownload",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-download`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),bM=["stroke-width","stroke-linecap","stroke-linejoin"],hM=B("path",{d:"m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6"},null,-1),TM=[hM];function vM(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},TM,14,bM)}var Jc=Un(SM,[["render",vM]]);const CM=Object.assign(Jc,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+Jc.name,Jc)}}),RM=be({name:"IconScan",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-scan`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),NM=["stroke-width","stroke-linecap","stroke-linejoin"],OM=B("path",{d:"M7 17V7h10m24 10V7H31m10 24v10H31M7 31v10h10M5 24h38"},null,-1),AM=[OM];function yM(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},AM,14,NM)}var jc=Un(RM,[["render",yM]]);const IM=Object.assign(jc,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+jc.name,jc)}}),DM=be({name:"IconSync",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-sync`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),xM=["stroke-width","stroke-linecap","stroke-linejoin"],wM=B("path",{d:"M11.98 11.703c-6.64 6.64-6.64 17.403 0 24.042a16.922 16.922 0 0 0 8.942 4.7M34.603 37.156l1.414-1.415c6.64-6.639 6.64-17.402 0-24.041A16.922 16.922 0 0 0 27.075 7M14.81 11.982l-1.414-1.414-1.414-1.414h2.829v2.828ZM33.192 36.02l1.414 1.414 1.414 1.415h-2.828V36.02Z"},null,-1),MM=[wM];function LM(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},MM,14,xM)}var eu=Un(DM,[["render",LM]]);const gs=Object.assign(eu,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+eu.name,eu)}}),PM=be({name:"IconVoice",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-voice`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),kM=["stroke-width","stroke-linecap","stroke-linejoin"],UM=B("path",{d:"M41 21v1c0 8.837-7.163 16-16 16h-2c-8.837 0-16-7.163-16-16v-1m17 17v6m0-14a9 9 0 0 1-9-9v-6a9 9 0 1 1 18 0v6a9 9 0 0 1-9 9Z"},null,-1),FM=[UM];function BM(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},FM,14,kM)}var tu=Un(PM,[["render",BM]]);const GM=Object.assign(tu,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+tu.name,tu)}}),YM=be({name:"IconPauseCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-pause-circle-fill`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),qM=["stroke-width","stroke-linecap","stroke-linejoin"],$M=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-6-27a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V18a1 1 0 0 0-1-1h-3Zm9 0a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V18a1 1 0 0 0-1-1h-3Z",fill:"currentColor",stroke:"none"},null,-1),HM=[$M];function zM(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},HM,14,qM)}var nu=Un(YM,[["render",zM]]);const VM=Object.assign(nu,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+nu.name,nu)}}),WM=be({name:"IconPlayCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-play-circle-fill`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),KM=["stroke-width","stroke-linecap","stroke-linejoin"],QM=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M44 24c0 11.046-8.954 20-20 20S4 35.046 4 24 12.954 4 24 4s20 8.954 20 20Zm-23.662-7.783C19.302 15.605 18 16.36 18 17.575v12.85c0 1.214 1.302 1.97 2.338 1.358l10.89-6.425c1.03-.607 1.03-2.11 0-2.716l-10.89-6.425Z",fill:"currentColor",stroke:"none"},null,-1),XM=[QM];function ZM(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},XM,14,KM)}var ru=Un(WM,[["render",ZM]]);const JM=Object.assign(ru,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+ru.name,ru)}}),jM=be({name:"IconRecordStop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-record-stop`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),eL=["stroke-width","stroke-linecap","stroke-linejoin"],tL=B("path",{"clip-rule":"evenodd",d:"M24 6c9.941 0 18 8.059 18 18s-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6Z"},null,-1),nL=B("path",{d:"M19 20a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-8Z",fill:"currentColor",stroke:"none"},null,-1),rL=B("path",{d:"M19 20a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-8Z"},null,-1),iL=[tL,nL,rL];function aL(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},iL,14,eL)}var iu=Un(jM,[["render",aL]]);const oL=Object.assign(iu,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+iu.name,iu)}}),sL=be({name:"IconBook",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-book`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),lL=["stroke-width","stroke-linecap","stroke-linejoin"],cL=B("path",{d:"M24 13 7 7v28l17 6 17-6V7l-17 6Zm0 0v27.5M29 18l7-2.5M29 25l7-2.5M29 32l7-2.5M19 18l-7-2.5m7 9.5-7-2.5m7 9.5-7-2.5"},null,-1),uL=[cL];function dL(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},uL,14,lL)}var au=Un(sL,[["render",dL]]);const _L=Object.assign(au,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+au.name,au)}}),pL=be({name:"IconImage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-image`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),mL=["stroke-width","stroke-linecap","stroke-linejoin"],gL=B("path",{d:"m24 33 9-9v9h-9Zm0 0-3.5-4.5L17 33h7Zm15 8H9a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h30a2 2 0 0 1 2 2v30a2 2 0 0 1-2 2ZM15 15h2v2h-2v-2Z"},null,-1),EL=B("path",{d:"M33 33v-9l-9 9h9ZM23.5 33l-3-4-3 4h6ZM15 15h2v2h-2z",fill:"currentColor",stroke:"none"},null,-1),fL=[gL,EL];function SL(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},fL,14,mL)}var ou=Un(pL,[["render",SL]]);const bL=Object.assign(ou,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+ou.name,ou)}}),hL=be({name:"IconNav",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-nav`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),TL=["stroke-width","stroke-linecap","stroke-linejoin"],vL=B("path",{d:"M6 19h10m0 0h26m-26 0V9m0 10v10m0 0v10m0-10H6m10 0h26M6 9h36v30H6V9Z"},null,-1),CL=[vL];function RL(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},CL,14,TL)}var su=Un(hL,[["render",RL]]);const NL=Object.assign(su,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+su.name,su)}}),OL=be({name:"IconPublic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-public`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),AL=["stroke-width","stroke-linecap","stroke-linejoin"],yL=B("path",{d:"M15 21.5 6.704 19M15 21.5l4.683 5.152a1 1 0 0 1 .25.814L18 40.976l10.918-16.117a1 1 0 0 0-.298-1.409L21.5 19 15 21.5Zm0 0 6.062-6.995a1 1 0 0 0 .138-1.103L18 7.024M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),IL=[yL];function DL(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},IL,14,AL)}var lu=Un(OL,[["render",DL]]);const xL=Object.assign(lu,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+lu.name,lu)}}),wL={class:"header"},ML={class:"content"},LL=be({__name:"modal",props:{visible:{type:Boolean}},emits:["update:visible","close"],setup(t,{emit:e}){const n=t,i=ee(null),o=()=>{e("update:visible",!1),e("close")};return kn(()=>{Zt(()=>n.visible,s=>{var l,c;s?(l=i.value)==null||l.showModal():(c=i.value)==null||c.close()},{immediate:!0})}),(s,l)=>(V(),ae("dialog",{ref_key:"dialogRef",ref:i,class:"customDialog"},[B("div",wL,[ue(q(Qw),{style:{cursor:"pointer"},size:24,onClick:o})]),B("div",ML,[oi(s.$slots,"default",{},void 0,!0)])],512))}});const Dt=(t,e)=>{const n=t.__vccOpts||t;for(const[i,o]of e)n[i]=o;return n},wC=Dt(LL,[["__scopeId","data-v-6fddb6c7"]]),Xs=t=>(Zi("data-v-e442bd8c"),t=t(),Ji(),t),PL={class:"wechatModal"},kL={class:"title"},UL=Xs(()=>B("div",{class:"titleText"},"WeChat",-1)),FL=Xs(()=>B("div",{class:"desc"}," Add the MetaGPT WeChat assistant to get the latest MetaGPT updates. Join the MetaGPT community for more high-quality technical and product discussions. ",-1)),BL={class:"qrCode"},GL=Xs(()=>B("img",{style:{width:"100%"},src:fM,alt:""},null,-1)),YL={class:"scanText"},qL=Xs(()=>B("span",null,"Scan on WeChat to add.",-1)),$L=be({__name:"wechatModal",props:{visible:{type:Boolean}},emits:["update:visible"],setup(t,{emit:e}){const i=yt(t,"visible"),o=()=>{e("update:visible",!1)};return(s,l)=>(V(),ot(wC,{visible:q(i),"onUpdate:visible":l[0]||(l[0]=c=>wr(i)?i.value=c:null),style:{width:"527px"},onClose:o},{default:dt(()=>[B("div",PL,[B("div",kL,[ue(ea,{size:28,fill:"#28C445","icon-id":"icon-wechat2"}),UL]),FL,B("div",BL,[GL,B("span",YL,[ue(q(IM),{size:16}),qL])])])]),_:1},8,["visible"]))}});const HL=Dt($L,[["__scopeId","data-v-e442bd8c"]]),zL="/static/assets/blacklogo-ead63efd.svg",VL={},WL={style:{width:"32px","vertical-align":"middle"},src:zL};function KL(t,e){return V(),ae("img",WL)}const QL=Dt(VL,[["render",KL]]);let Ps=[];const MC=new WeakMap;function XL(){Ps.forEach(t=>t(...MC.get(t))),Ps=[]}function LC(t,...e){MC.set(t,e),!Ps.includes(t)&&Ps.push(t)===1&&requestAnimationFrame(XL)}function ks(t){return t.composedPath()[0]||null}const Yf={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},ta="^\\s*",na="\\s*$",Xr="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",Zr="([0-9A-Fa-f])",Jr="([0-9A-Fa-f]{2})",ZL=new RegExp(`${ta}rgb\\s*\\(${Xr},${Xr},${Xr}\\)${na}`),JL=new RegExp(`${ta}rgba\\s*\\(${Xr},${Xr},${Xr},${Xr}\\)${na}`),jL=new RegExp(`${ta}#${Zr}${Zr}${Zr}${na}`),eP=new RegExp(`${ta}#${Jr}${Jr}${Jr}${na}`),tP=new RegExp(`${ta}#${Zr}${Zr}${Zr}${Zr}${na}`),nP=new RegExp(`${ta}#${Jr}${Jr}${Jr}${Jr}${na}`);function sn(t){return parseInt(t,16)}function Ki(t){try{let e;if(e=eP.exec(t))return[sn(e[1]),sn(e[2]),sn(e[3]),1];if(e=ZL.exec(t))return[Qt(e[1]),Qt(e[5]),Qt(e[9]),1];if(e=JL.exec(t))return[Qt(e[1]),Qt(e[5]),Qt(e[9]),qa(e[13])];if(e=jL.exec(t))return[sn(e[1]+e[1]),sn(e[2]+e[2]),sn(e[3]+e[3]),1];if(e=nP.exec(t))return[sn(e[1]),sn(e[2]),sn(e[3]),qa(sn(e[4])/255)];if(e=tP.exec(t))return[sn(e[1]+e[1]),sn(e[2]+e[2]),sn(e[3]+e[3]),qa(sn(e[4]+e[4])/255)];if(t in Yf)return Ki(Yf[t]);throw new Error(`[seemly/rgba]: Invalid color value ${t}.`)}catch(e){throw e}}function rP(t){return t>1?1:t<0?0:t}function iP(t,e,n,i){return`rgba(${Qt(t)}, ${Qt(e)}, ${Qt(n)}, ${rP(i)})`}function cu(t,e,n,i,o){return Qt((t*e*(1-i)+n*i)/o)}function PC(t,e){Array.isArray(t)||(t=Ki(t)),Array.isArray(e)||(e=Ki(e));const n=t[3],i=e[3],o=qa(n+i-n*i);return iP(cu(t[0],n,e[0],i,o),cu(t[1],n,e[1],i,o),cu(t[2],n,e[2],i,o),o)}function Es(t,e){const[n,i,o,s=1]=Array.isArray(t)?t:Ki(t),{lightness:l=1,alpha:c=1}=e;return aP([n*l,i*l,o*l,s*c])}function qa(t){const e=Math.round(Number(t)*100)/100;return e>1?1:e<0?0:e}function Qt(t){const e=Math.round(Number(t));return e>255?255:e<0?0:e}function aP(t){const[e,n,i]=t;return 3 in t?`rgba(${Qt(e)}, ${Qt(n)}, ${Qt(i)}, ${qa(t[3])})`:`rgba(${Qt(e)}, ${Qt(n)}, ${Qt(i)}, 1)`}function kC(t=8){return Math.random().toString(16).slice(2,2+t)}function oP(t,e=[],n){const i={};return e.forEach(o=>{i[o]=t[o]}),Object.assign(i,n)}function Tm(t,e=!0,n=[]){return t.forEach(i=>{if(i!==null){if(typeof i!="object"){(typeof i=="string"||typeof i=="number")&&n.push(vt(String(i)));return}if(Array.isArray(i)){Tm(i,e,n);return}if(i.type===st){if(i.children===null)return;Array.isArray(i.children)&&Tm(i.children,e,n)}else i.type!==Ws&&n.push(i)}}),n}function Ga(t,...e){if(Array.isArray(t))t.forEach(n=>Ga(n,...e));else return t(...e)}function qf(t,e){console.error(`[naive/${t}]: ${e}`)}function sP(t,e){throw new Error(`[naive/${t}]: ${e}`)}function $f(t,e="default",n=void 0){const i=t[e];if(!i)return qf("getFirstSlotVNode",`slot[${e}] is empty`),null;const o=Tm(i(n));return o.length===1?o[0]:(qf("getFirstSlotVNode",`slot[${e}] should have exactly one child`),null)}function Xm(t){return t.some(e=>$i(e)?!(e.type===Ws||e.type===st&&!Xm(e.children)):!0)?t:null}function uu(t,e){const n=t&&Xm(t());return e(n||null)}function Hf(t){return!(t&&Xm(t()))}const zf=be({render(){var t,e;return(e=(t=this.$slots).default)===null||e===void 0?void 0:e.call(t)}}),lP=/^(\d|\.)+$/,Vf=/(\d|\.)+/;function du(t,{c:e=1,offset:n=0,attachPx:i=!0}={}){if(typeof t=="number"){const o=(t+n)*e;return o===0?"0":`${o}px`}else if(typeof t=="string")if(lP.test(t)){const o=(Number(t)+n)*e;return i?o===0?"0":`${o}px`:`${o}`}else{const o=Vf.exec(t);return o?t.replace(Vf,String((Number(o[0])+n)*e)):t}return t}function cP(t){let e=0;for(let n=0;n{let o=cP(i);if(o){if(o===1){t.forEach(l=>{n.push(i.replace("&",l))});return}}else{t.forEach(l=>{n.push((l&&l+" ")+i)});return}let s=[i];for(;o--;){const l=[];s.forEach(c=>{t.forEach(d=>{l.push(c.replace("&",d))})}),s=l}s.forEach(l=>n.push(l))}),n}function _P(t,e){const n=[];return e.split(UC).forEach(i=>{t.forEach(o=>{n.push((o&&o+" ")+i)})}),n}function pP(t){let e=[""];return t.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?e=dP(e,n):e=_P(e,n))}),e.join(", ").replace(uP," ")}function Wf(t){if(!t)return;const e=t.parentElement;e&&e.removeChild(t)}function Zs(t){return document.querySelector(`style[cssr-id="${t}"]`)}function mP(t){const e=document.createElement("style");return e.setAttribute("cssr-id",t),e}function fs(t){return t?/^\s*@(s|m)/.test(t):!1}const gP=/[A-Z]/g;function FC(t){return t.replace(gP,e=>"-"+e.toLowerCase())}function EP(t,e=" "){return typeof t=="object"&&t!==null?` { -`+Object.entries(t).map(n=>e+` ${FC(n[0])}: ${n[1]};`).join(` -`)+` -`+e+"}":`: ${t};`}function fP(t,e,n){return typeof t=="function"?t({context:e.context,props:n}):t}function Kf(t,e,n,i){if(!e)return"";const o=fP(e,n,i);if(!o)return"";if(typeof o=="string")return`${t} { -${o} -}`;const s=Object.keys(o);if(s.length===0)return n.config.keepEmptyBlock?t+` { -}`:"";const l=t?[t+" {"]:[];return s.forEach(c=>{const d=o[c];if(c==="raw"){l.push(` -`+d+` -`);return}c=FC(c),d!=null&&l.push(` ${c}${EP(d)}`)}),t&&l.push("}"),l.join(` -`)}function vm(t,e,n){t&&t.forEach(i=>{if(Array.isArray(i))vm(i,e,n);else if(typeof i=="function"){const o=i(e);Array.isArray(o)?vm(o,e,n):o&&n(o)}else i&&n(i)})}function BC(t,e,n,i,o,s){const l=t.$;let c="";if(!l||typeof l=="string")fs(l)?c=l:e.push(l);else if(typeof l=="function"){const p=l({context:i.context,props:o});fs(p)?c=p:e.push(p)}else if(l.before&&l.before(i.context),!l.$||typeof l.$=="string")fs(l.$)?c=l.$:e.push(l.$);else if(l.$){const p=l.$({context:i.context,props:o});fs(p)?c=p:e.push(p)}const d=pP(e),_=Kf(d,t.props,i,o);c?(n.push(`${c} {`),s&&_&&s.insertRule(`${c} { -${_} -} -`)):(s&&_&&s.insertRule(_),!s&&_.length&&n.push(_)),t.children&&vm(t.children,{context:i.context,props:o},p=>{if(typeof p=="string"){const g=Kf(d,{raw:p},i,o);s?s.insertRule(g):n.push(g)}else BC(p,e,n,i,o,s)}),e.pop(),c&&n.push("}"),l&&l.after&&l.after(i.context)}function GC(t,e,n,i=!1){const o=[];return BC(t,[],o,e,n,i?t.instance.__styleSheet:void 0),i?"":o.join(` - -`)}function Cm(t){for(var e=0,n,i=0,o=t.length;o>=4;++i,o-=4)n=t.charCodeAt(i)&255|(t.charCodeAt(++i)&255)<<8|(t.charCodeAt(++i)&255)<<16|(t.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(i+2)&255)<<16;case 2:e^=(t.charCodeAt(i+1)&255)<<8;case 1:e^=t.charCodeAt(i)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function SP(t,e,n){const{els:i}=e;if(n===void 0)i.forEach(Wf),e.els=[];else{const o=Zs(n);o&&i.includes(o)&&(Wf(o),e.els=i.filter(s=>s!==o))}}function Qf(t,e){t.push(e)}function bP(t,e,n,i,o,s,l,c,d){if(s&&!d){if(n===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const E=window.__cssrContext;E[n]||(E[n]=!0,GC(e,t,i,s));return}let _;if(n===void 0&&(_=e.render(i),n=Cm(_)),d){d.adapter(n,_??e.render(i));return}const p=Zs(n);if(p!==null&&!l)return p;const g=p??mP(n);if(_===void 0&&(_=e.render(i)),g.textContent=_,p!==null)return p;if(c){const E=document.head.querySelector(`meta[name="${c}"]`);if(E)return document.head.insertBefore(g,E),Qf(e.els,g),g}return o?document.head.insertBefore(g,document.head.querySelector("style, link")):document.head.appendChild(g),Qf(e.els,g),g}function hP(t){return GC(this,this.instance,t)}function TP(t={}){const{id:e,ssr:n,props:i,head:o=!1,silent:s=!1,force:l=!1,anchorMetaName:c}=t;return bP(this.instance,this,e,i,o,s,l,c,n)}function vP(t={}){const{id:e}=t;SP(this.instance,this,e)}const Ss=function(t,e,n,i){return{instance:t,$:e,props:n,children:i,els:[],render:hP,mount:TP,unmount:vP}},CP=function(t,e,n,i){return Array.isArray(e)?Ss(t,{$:null},null,e):Array.isArray(n)?Ss(t,e,null,n):Array.isArray(i)?Ss(t,e,n,i):Ss(t,e,n,null)};function YC(t={}){let e=null;const n={c:(...i)=>CP(n,...i),use:(i,...o)=>i.install(n,...o),find:Zs,context:{},config:t,get __styleSheet(){if(!e){const i=document.createElement("style");return document.head.appendChild(i),e=document.styleSheets[document.styleSheets.length-1],e}return e}};return n}function RP(t,e){if(t===void 0)return!1;if(e){const{context:{ids:n}}=e;return n.has(t)}return Zs(t)!==null}function NP(t){let e=".",n="__",i="--",o;if(t){let S=t.blockPrefix;S&&(e=S),S=t.elementPrefix,S&&(n=S),S=t.modifierPrefix,S&&(i=S)}const s={install(S){o=S.c;const C=S.context;C.bem={},C.bem.b=null,C.bem.els=null}};function l(S){let C,h;return{before(T){C=T.bem.b,h=T.bem.els,T.bem.els=null},after(T){T.bem.b=C,T.bem.els=h},$({context:T,props:N}){return S=typeof S=="string"?S:S({context:T,props:N}),T.bem.b=S,`${(N==null?void 0:N.bPrefix)||e}${T.bem.b}`}}}function c(S){let C;return{before(h){C=h.bem.els},after(h){h.bem.els=C},$({context:h,props:T}){return S=typeof S=="string"?S:S({context:h,props:T}),h.bem.els=S.split(",").map(N=>N.trim()),h.bem.els.map(N=>`${(T==null?void 0:T.bPrefix)||e}${h.bem.b}${n}${N}`).join(", ")}}}function d(S){return{$({context:C,props:h}){S=typeof S=="string"?S:S({context:C,props:h});const T=S.split(",").map(x=>x.trim());function N(x){return T.map(P=>`&${(h==null?void 0:h.bPrefix)||e}${C.bem.b}${x!==void 0?`${n}${x}`:""}${i}${P}`).join(", ")}const y=C.bem.els;return y!==null?N(y[0]):N()}}}function _(S){return{$({context:C,props:h}){S=typeof S=="string"?S:S({context:C,props:h});const T=C.bem.els;return`&:not(${(h==null?void 0:h.bPrefix)||e}${C.bem.b}${T!==null&&T.length>0?`${n}${T[0]}`:""}${i}${S})`}}}return Object.assign(s,{cB:(...S)=>o(l(S[0]),S[1],S[2]),cE:(...S)=>o(c(S[0]),S[1],S[2]),cM:(...S)=>o(d(S[0]),S[1],S[2]),cNotM:(...S)=>o(_(S[0]),S[1],S[2])}),s}const OP="n",AP=`.${OP}-`,yP="__",IP="--",qC=YC(),$C=NP({blockPrefix:AP,elementPrefix:yP,modifierPrefix:IP});qC.use($C);const{c:je,find:qDe}=qC,{cB:St,cE:jr,cM:_r,cNotM:$a}=$C,DP=(...t)=>je(">",[St(...t)]);let _u;function xP(){return _u===void 0&&(_u=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),_u}const wP=typeof document<"u"&&typeof window<"u";function MP(t){const e=ee(!!t.value);if(e.value)return bm(e);const n=Zt(t,i=>{i&&(e.value=!0,n())});return bm(e)}function Qa(t){const e=le(t),n=ee(e.value);return Zt(e,i=>{n.value=i}),typeof t=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(i){t.set(i)}}}const LP=typeof window<"u";let zi,Ha;const PP=()=>{var t,e;zi=LP?(e=(t=document)===null||t===void 0?void 0:t.fonts)===null||e===void 0?void 0:e.ready:void 0,Ha=!1,zi!==void 0?zi.then(()=>{Ha=!0}):Ha=!0};PP();function kP(t){if(Ha)return;let e=!1;kn(()=>{Ha||zi==null||zi.then(()=>{e||t()})}),Kn(()=>{e=!0})}function UP(t,e){return Zt(t,n=>{n!==void 0&&(e.value=n)}),le(()=>t.value===void 0?e.value:t.value)}function Zm(){const t=ee(!1);return kn(()=>{t.value=!0}),bm(t)}function FP(t,e){return le(()=>{for(const n of e)if(t[n]!==void 0)return t[n];return t[e[e.length-1]]})}const BP=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function GP(){return BP}const YP="n-internal-select-menu-body",HC="n-modal-body",zC="n-drawer-body",VC="n-popover-body",WC="__disabled__";function Qi(t){const e=Ft(HC,null),n=Ft(zC,null),i=Ft(VC,null),o=Ft(YP,null),s=ee();if(typeof document<"u"){s.value=document.fullscreenElement;const l=()=>{s.value=document.fullscreenElement};kn(()=>{Ht("fullscreenchange",document,l)}),Kn(()=>{Rt("fullscreenchange",document,l)})}return Qa(()=>{var l;const{to:c}=t;return c!==void 0?c===!1?WC:c===!0?s.value||"body":c:e!=null&&e.value?(l=e.value.$el)!==null&&l!==void 0?l:e.value:n!=null&&n.value?n.value:i!=null&&i.value?i.value:o!=null&&o.value?o.value:c??(s.value||"body")})}Qi.tdkey=WC;Qi.propTo={type:[String,Object,Boolean],default:void 0};function Rm(t,e,n="default"){const i=e[n];if(i===void 0)throw new Error(`[vueuc/${t}]: slot[${n}] is empty.`);return i()}function Nm(t,e=!0,n=[]){return t.forEach(i=>{if(i!==null){if(typeof i!="object"){(typeof i=="string"||typeof i=="number")&&n.push(vt(String(i)));return}if(Array.isArray(i)){Nm(i,e,n);return}if(i.type===st){if(i.children===null)return;Array.isArray(i.children)&&Nm(i.children,e,n)}else i.type!==Ws&&n.push(i)}}),n}function Xf(t,e,n="default"){const i=e[n];if(i===void 0)throw new Error(`[vueuc/${t}]: slot[${n}] is empty.`);const o=Nm(i());if(o.length===1)return o[0];throw new Error(`[vueuc/${t}]: slot[${n}] should have exactly one child.`)}let Nr=null;function KC(){if(Nr===null&&(Nr=document.getElementById("v-binder-view-measurer"),Nr===null)){Nr=document.createElement("div"),Nr.id="v-binder-view-measurer";const{style:t}=Nr;t.position="fixed",t.left="0",t.right="0",t.top="0",t.bottom="0",t.pointerEvents="none",t.visibility="hidden",document.body.appendChild(Nr)}return Nr.getBoundingClientRect()}function qP(t,e){const n=KC();return{top:e,left:t,height:0,width:0,right:n.width-t,bottom:n.height-e}}function pu(t){const e=t.getBoundingClientRect(),n=KC();return{left:e.left-n.left,top:e.top-n.top,bottom:n.height+n.top-e.bottom,right:n.width+n.left-e.right,width:e.width,height:e.height}}function $P(t){return t.nodeType===9?null:t.parentNode}function QC(t){if(t===null)return null;const e=$P(t);if(e===null)return null;if(e.nodeType===9)return document;if(e.nodeType===1){const{overflow:n,overflowX:i,overflowY:o}=getComputedStyle(e);if(/(auto|scroll|overlay)/.test(n+o+i))return e}return QC(e)}const HP=be({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(t){var e;ni("VBinder",(e=$m())===null||e===void 0?void 0:e.proxy);const n=Ft("VBinder",null),i=ee(null),o=T=>{i.value=T,n&&t.syncTargetWithParent&&n.setTargetRef(T)};let s=[];const l=()=>{let T=i.value;for(;T=QC(T),T!==null;)s.push(T);for(const N of s)Ht("scroll",N,g,!0)},c=()=>{for(const T of s)Rt("scroll",T,g,!0);s=[]},d=new Set,_=T=>{d.size===0&&l(),d.has(T)||d.add(T)},p=T=>{d.has(T)&&d.delete(T),d.size===0&&c()},g=()=>{LC(E)},E=()=>{d.forEach(T=>T())},f=new Set,S=T=>{f.size===0&&Ht("resize",window,h),f.has(T)||f.add(T)},C=T=>{f.has(T)&&f.delete(T),f.size===0&&Rt("resize",window,h)},h=()=>{f.forEach(T=>T())};return Kn(()=>{Rt("resize",window,h),c()}),{targetRef:i,setTargetRef:o,addScrollListener:_,removeScrollListener:p,addResizeListener:S,removeResizeListener:C}},render(){return Rm("binder",this.$slots)}}),zP=HP,VP=be({name:"Target",setup(){const{setTargetRef:t,syncTarget:e}=Ft("VBinder");return{syncTarget:e,setTargetDirective:{mounted:t,updated:t}}},render(){const{syncTarget:t,setTargetDirective:e}=this;return t?Pn(Xf("follower",this.$slots),[[e]]):Xf("follower",this.$slots)}}),Li="@@mmoContext",WP={mounted(t,{value:e}){t[Li]={handler:void 0},typeof e=="function"&&(t[Li].handler=e,Ht("mousemoveoutside",t,e))},updated(t,{value:e}){const n=t[Li];typeof e=="function"?n.handler?n.handler!==e&&(Rt("mousemoveoutside",t,n.handler),n.handler=e,Ht("mousemoveoutside",t,e)):(t[Li].handler=e,Ht("mousemoveoutside",t,e)):n.handler&&(Rt("mousemoveoutside",t,n.handler),n.handler=void 0)},unmounted(t){const{handler:e}=t[Li];e&&Rt("mousemoveoutside",t,e),t[Li].handler=void 0}},KP=WP,Pi="@@coContext",QP={mounted(t,{value:e,modifiers:n}){t[Pi]={handler:void 0},typeof e=="function"&&(t[Pi].handler=e,Ht("clickoutside",t,e,{capture:n.capture}))},updated(t,{value:e,modifiers:n}){const i=t[Pi];typeof e=="function"?i.handler?i.handler!==e&&(Rt("clickoutside",t,i.handler,{capture:n.capture}),i.handler=e,Ht("clickoutside",t,e,{capture:n.capture})):(t[Pi].handler=e,Ht("clickoutside",t,e,{capture:n.capture})):i.handler&&(Rt("clickoutside",t,i.handler,{capture:n.capture}),i.handler=void 0)},unmounted(t,{modifiers:e}){const{handler:n}=t[Pi];n&&Rt("clickoutside",t,n,{capture:e.capture}),t[Pi].handler=void 0}},Zf=QP;function XP(t,e){console.error(`[vdirs/${t}]: ${e}`)}class ZP{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(e,n){const{elementZIndex:i}=this;if(n!==void 0){e.style.zIndex=`${n}`,i.delete(e);return}const{nextZIndex:o}=this;i.has(e)&&i.get(e)+1===this.nextZIndex||(e.style.zIndex=`${o}`,i.set(e,o),this.nextZIndex=o+1,this.squashState())}unregister(e,n){const{elementZIndex:i}=this;i.has(e)?i.delete(e):n===void 0&&XP("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:e}=this;e||(this.nextZIndex=2e3),this.nextZIndex-e>2500&&this.rearrange()}rearrange(){const e=Array.from(this.elementZIndex.entries());e.sort((n,i)=>n[1]-i[1]),this.nextZIndex=2e3,e.forEach(n=>{const i=n[0],o=this.nextZIndex++;`${o}`!==i.style.zIndex&&(i.style.zIndex=`${o}`)})}}const mu=new ZP,ki="@@ziContext",JP={mounted(t,e){const{value:n={}}=e,{zIndex:i,enabled:o}=n;t[ki]={enabled:!!o,initialized:!1},o&&(mu.ensureZIndex(t,i),t[ki].initialized=!0)},updated(t,e){const{value:n={}}=e,{zIndex:i,enabled:o}=n,s=t[ki].enabled;o&&!s&&(mu.ensureZIndex(t,i),t[ki].initialized=!0),t[ki].enabled=!!o},unmounted(t,e){if(!t[ki].initialized)return;const{value:n={}}=e,{zIndex:i}=n;mu.unregister(t,i)}},Jm=JP,XC=Symbol("@css-render/vue3-ssr");function jP(t,e){return``}function e0(t,e){const n=Ft(XC,null);if(n===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:i,ids:o}=n;o.has(t)||i!==null&&(o.add(t),i.push(jP(t,e)))}const t0=typeof document<"u";function ro(){if(t0)return;const t=Ft(XC,null);if(t!==null)return{adapter:e0,context:t}}function Jf(t,e){console.error(`[vueuc/${t}]: ${e}`)}const{c:bs}=YC(),n0="vueuc-style";function jf(t){return typeof t=="string"?document.querySelector(t):t()}const ZC=be({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(t){return{showTeleport:MP(yt(t,"show")),mergedTo:le(()=>{const{to:e}=t;return e??"body"})}},render(){return this.showTeleport?this.disabled?Rm("lazy-teleport",this.$slots):j(Gw,{disabled:this.disabled,to:this.mergedTo},Rm("lazy-teleport",this.$slots)):null}}),hs={top:"bottom",bottom:"top",left:"right",right:"left"},eS={start:"end",center:"center",end:"start"},gu={top:"height",bottom:"height",left:"width",right:"width"},r0={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},i0={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},a0={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},tS={top:!0,bottom:!1,left:!0,right:!1},nS={top:"end",bottom:"start",left:"end",right:"start"};function o0(t,e,n,i,o,s){if(!o||s)return{placement:t,top:0,left:0};const[l,c]=t.split("-");let d=c??"center",_={top:0,left:0};const p=(f,S,C)=>{let h=0,T=0;const N=n[f]-e[S]-e[f];return N>0&&i&&(C?T=tS[S]?N:-N:h=tS[S]?N:-N),{left:h,top:T}},g=l==="left"||l==="right";if(d!=="center"){const f=a0[t],S=hs[f],C=gu[f];if(n[C]>e[C]){if(e[f]+e[C]e[S]&&(d=eS[c])}else{const f=l==="bottom"||l==="top"?"left":"top",S=hs[f],C=gu[f],h=(n[C]-e[C])/2;(e[f]e[S]?(d=nS[f],_=p(C,f,g)):(d=nS[S],_=p(C,S,g)))}let E=l;return e[l] *",{pointerEvents:"all"})])]),u0=be({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(t){const e=Ft("VBinder"),n=Qa(()=>t.enabled!==void 0?t.enabled:t.show),i=ee(null),o=ee(null),s=()=>{const{syncTrigger:E}=t;E.includes("scroll")&&e.addScrollListener(d),E.includes("resize")&&e.addResizeListener(d)},l=()=>{e.removeScrollListener(d),e.removeResizeListener(d)};kn(()=>{n.value&&(d(),s())});const c=ro();c0.mount({id:"vueuc/binder",head:!0,anchorMetaName:n0,ssr:c}),Kn(()=>{l()}),kP(()=>{n.value&&d()});const d=()=>{if(!n.value)return;const E=i.value;if(E===null)return;const f=e.targetRef,{x:S,y:C,overlap:h}=t,T=S!==void 0&&C!==void 0?qP(S,C):pu(f);E.style.setProperty("--v-target-width",`${Math.round(T.width)}px`),E.style.setProperty("--v-target-height",`${Math.round(T.height)}px`);const{width:N,minWidth:y,placement:x,internalShift:P,flip:D}=t;E.setAttribute("v-placement",x),h?E.setAttribute("v-overlap",""):E.removeAttribute("v-overlap");const{style:k}=E;N==="target"?k.width=`${T.width}px`:N!==void 0?k.width=N:k.width="",y==="target"?k.minWidth=`${T.width}px`:y!==void 0?k.minWidth=y:k.minWidth="";const U=pu(E),W=pu(o.value),{left:z,top:K,placement:Ee}=o0(x,T,U,P,D,h),oe=s0(Ee,h),{left:L,top:J,transform:re}=l0(Ee,W,T,K,z,h);E.setAttribute("v-placement",Ee),E.style.setProperty("--v-offset-left",`${Math.round(z)}px`),E.style.setProperty("--v-offset-top",`${Math.round(K)}px`),E.style.transform=`translateX(${L}) translateY(${J}) ${re}`,E.style.setProperty("--v-transform-origin",oe),E.style.transformOrigin=oe};Zt(n,E=>{E?(s(),_()):l()});const _=()=>{Ks().then(d).catch(E=>console.error(E))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(E=>{Zt(yt(t,E),d)}),["teleportDisabled"].forEach(E=>{Zt(yt(t,E),_)}),Zt(yt(t,"syncTrigger"),E=>{E.includes("resize")?e.addResizeListener(d):e.removeResizeListener(d),E.includes("scroll")?e.addScrollListener(d):e.removeScrollListener(d)});const p=Zm(),g=Qa(()=>{const{to:E}=t;if(E!==void 0)return E;p.value});return{VBinder:e,mergedEnabled:n,offsetContainerRef:o,followerRef:i,mergedTo:g,syncPosition:d}},render(){return j(ZC,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var t,e;const n=j("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[j("div",{class:"v-binder-follower-content",ref:"followerRef"},(e=(t=this.$slots).default)===null||e===void 0?void 0:e.call(t))]);return this.zindexable?Pn(n,[[Jm,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});var ri=[],d0=function(){return ri.some(function(t){return t.activeTargets.length>0})},_0=function(){return ri.some(function(t){return t.skippedTargets.length>0})},rS="ResizeObserver loop completed with undelivered notifications.",p0=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:rS}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=rS),window.dispatchEvent(t)},Xa;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Xa||(Xa={}));var ii=function(t){return Object.freeze(t)},m0=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,ii(this)}return t}(),JC=function(){function t(e,n,i,o){return this.x=e,this.y=n,this.width=i,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,ii(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,i=e.y,o=e.top,s=e.right,l=e.bottom,c=e.left,d=e.width,_=e.height;return{x:n,y:i,top:o,right:s,bottom:l,left:c,width:d,height:_}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),jm=function(t){return t instanceof SVGElement&&"getBBox"in t},jC=function(t){if(jm(t)){var e=t.getBBox(),n=e.width,i=e.height;return!n&&!i}var o=t,s=o.offsetWidth,l=o.offsetHeight;return!(s||l||t.getClientRects().length)},iS=function(t){var e;if(t instanceof Element)return!0;var n=(e=t==null?void 0:t.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},g0=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},za=typeof window<"u"?window:{},Ts=new WeakMap,aS=/auto|scroll/,E0=/^tb|vertical/,f0=/msie|trident/i.test(za.navigator&&za.navigator.userAgent),Hn=function(t){return parseFloat(t||"0")},Vi=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new m0((n?e:t)||0,(n?t:e)||0)},oS=ii({devicePixelContentBoxSize:Vi(),borderBoxSize:Vi(),contentBoxSize:Vi(),contentRect:new JC(0,0,0,0)}),eR=function(t,e){if(e===void 0&&(e=!1),Ts.has(t)&&!e)return Ts.get(t);if(jC(t))return Ts.set(t,oS),oS;var n=getComputedStyle(t),i=jm(t)&&t.ownerSVGElement&&t.getBBox(),o=!f0&&n.boxSizing==="border-box",s=E0.test(n.writingMode||""),l=!i&&aS.test(n.overflowY||""),c=!i&&aS.test(n.overflowX||""),d=i?0:Hn(n.paddingTop),_=i?0:Hn(n.paddingRight),p=i?0:Hn(n.paddingBottom),g=i?0:Hn(n.paddingLeft),E=i?0:Hn(n.borderTopWidth),f=i?0:Hn(n.borderRightWidth),S=i?0:Hn(n.borderBottomWidth),C=i?0:Hn(n.borderLeftWidth),h=g+_,T=d+p,N=C+f,y=E+S,x=c?t.offsetHeight-y-t.clientHeight:0,P=l?t.offsetWidth-N-t.clientWidth:0,D=o?h+N:0,k=o?T+y:0,U=i?i.width:Hn(n.width)-D-P,W=i?i.height:Hn(n.height)-k-x,z=U+h+P+N,K=W+T+x+y,Ee=ii({devicePixelContentBoxSize:Vi(Math.round(U*devicePixelRatio),Math.round(W*devicePixelRatio),s),borderBoxSize:Vi(z,K,s),contentBoxSize:Vi(U,W,s),contentRect:new JC(g,d,U,W)});return Ts.set(t,Ee),Ee},tR=function(t,e,n){var i=eR(t,n),o=i.borderBoxSize,s=i.contentBoxSize,l=i.devicePixelContentBoxSize;switch(e){case Xa.DEVICE_PIXEL_CONTENT_BOX:return l;case Xa.BORDER_BOX:return o;default:return s}},S0=function(){function t(e){var n=eR(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=ii([n.borderBoxSize]),this.contentBoxSize=ii([n.contentBoxSize]),this.devicePixelContentBoxSize=ii([n.devicePixelContentBoxSize])}return t}(),nR=function(t){if(jC(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},b0=function(){var t=1/0,e=[];ri.forEach(function(l){if(l.activeTargets.length!==0){var c=[];l.activeTargets.forEach(function(_){var p=new S0(_.target),g=nR(_.target);c.push(p),_.lastReportedSize=tR(_.target,_.observedBox),gt?n.activeTargets.push(o):n.skippedTargets.push(o))})})},h0=function(){var t=0;for(sS(t);d0();)t=b0(),sS(t);return _0()&&p0(),t>0},Eu,rR=[],T0=function(){return rR.splice(0).forEach(function(t){return t()})},v0=function(t){if(!Eu){var e=0,n=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return T0()}).observe(n,i),Eu=function(){n.textContent="".concat(e?e--:e++)}}rR.push(t),Eu()},C0=function(t){v0(function(){requestAnimationFrame(t)})},Ms=0,R0=function(){return!!Ms},N0=250,O0={attributes:!0,characterData:!0,childList:!0,subtree:!0},lS=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],cS=function(t){return t===void 0&&(t=0),Date.now()+t},fu=!1,A0=function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=N0),!fu){fu=!0;var i=cS(e);C0(function(){var o=!1;try{o=h0()}finally{if(fu=!1,e=i-cS(),!R0())return;o?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,O0)};document.body?n():za.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),lS.forEach(function(n){return za.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),lS.forEach(function(n){return za.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),Om=new A0,uS=function(t){!Ms&&t>0&&Om.start(),Ms+=t,!Ms&&Om.stop()},y0=function(t){return!jm(t)&&!g0(t)&&getComputedStyle(t).display==="inline"},I0=function(){function t(e,n){this.target=e,this.observedBox=n||Xa.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=tR(this.target,this.observedBox,!0);return y0(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),D0=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),vs=new WeakMap,dS=function(t,e){for(var n=0;n=0&&(s&&ri.splice(ri.indexOf(i),1),i.observationTargets.splice(o,1),uS(-1))},t.disconnect=function(e){var n=this,i=vs.get(e);i.observationTargets.slice().forEach(function(o){return n.unobserve(e,o.target)}),i.activeTargets.splice(0,i.activeTargets.length)},t}(),x0=function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Cs.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!iS(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Cs.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!iS(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Cs.unobserve(this,e)},t.prototype.disconnect=function(){Cs.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();class w0{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||x0)(this.handleResize),this.elHandlersMap=new Map}handleResize(e){for(const n of e){const i=this.elHandlersMap.get(n.target);i!==void 0&&i(n)}}registerHandler(e,n){this.elHandlersMap.set(e,n),this.observer.observe(e)}unregisterHandler(e){this.elHandlersMap.has(e)&&(this.elHandlersMap.delete(e),this.observer.unobserve(e))}}const _S=new w0,pS=be({name:"ResizeObserver",props:{onResize:Function},setup(t){let e=!1;const n=$m().proxy;function i(o){const{onResize:s}=t;s!==void 0&&s(o)}kn(()=>{const o=n.$el;if(o===void 0){Jf("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){Jf("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(_S.registerHandler(o.nextElementSibling,i),e=!0)}),Kn(()=>{e&&_S.unregisterHandler(n.$el.nextElementSibling)})},render(){return oi(this.$slots,"default")}});function iR(t){return t instanceof HTMLElement}function aR(t){for(let e=0;e=0;e--){const n=t.childNodes[e];if(iR(n)&&(sR(n)||oR(n)))return!0}return!1}function sR(t){if(!M0(t))return!1;try{t.focus({preventScroll:!0})}catch{}return document.activeElement===t}function M0(t){if(t.tabIndex>0||t.tabIndex===0&&t.getAttribute("tabIndex")!==null)return!0;if(t.getAttribute("disabled"))return!1;switch(t.nodeName){case"A":return!!t.href&&t.rel!=="ignore";case"INPUT":return t.type!=="hidden"&&t.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let Pa=[];const L0=be({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(t){const e=kC(),n=ee(null),i=ee(null);let o=!1,s=!1;const l=typeof document>"u"?null:document.activeElement;function c(){return Pa[Pa.length-1]===e}function d(h){var T;h.code==="Escape"&&c()&&((T=t.onEsc)===null||T===void 0||T.call(t,h))}kn(()=>{Zt(()=>t.active,h=>{h?(g(),Ht("keydown",document,d)):(Rt("keydown",document,d),o&&E())},{immediate:!0})}),Kn(()=>{Rt("keydown",document,d),o&&E()});function _(h){if(!s&&c()){const T=p();if(T===null||T.contains(ks(h)))return;f("first")}}function p(){const h=n.value;if(h===null)return null;let T=h;for(;T=T.nextSibling,!(T===null||T instanceof Element&&T.tagName==="DIV"););return T}function g(){var h;if(!t.disabled){if(Pa.push(e),t.autoFocus){const{initialFocusTo:T}=t;T===void 0?f("first"):(h=jf(T))===null||h===void 0||h.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",_,!0)}}function E(){var h;if(t.disabled||(document.removeEventListener("focus",_,!0),Pa=Pa.filter(N=>N!==e),c()))return;const{finalFocusTo:T}=t;T!==void 0?(h=jf(T))===null||h===void 0||h.focus({preventScroll:!0}):t.returnFocusOnDeactivated&&l instanceof HTMLElement&&(s=!0,l.focus({preventScroll:!0}),s=!1)}function f(h){if(c()&&t.active){const T=n.value,N=i.value;if(T!==null&&N!==null){const y=p();if(y==null||y===N){s=!0,T.focus({preventScroll:!0}),s=!1;return}s=!0;const x=h==="first"?aR(y):oR(y);s=!1,x||(s=!0,T.focus({preventScroll:!0}),s=!1)}}}function S(h){if(s)return;const T=p();T!==null&&(h.relatedTarget!==null&&T.contains(h.relatedTarget)?f("last"):f("first"))}function C(h){s||(h.relatedTarget!==null&&h.relatedTarget===n.value?f("last"):f("first"))}return{focusableStartRef:n,focusableEndRef:i,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:S,handleEndFocus:C}},render(){const{default:t}=this.$slots;if(t===void 0)return null;if(this.disabled)return t();const{active:e,focusableStyle:n}=this;return j(st,null,[j("div",{"aria-hidden":"true",tabindex:e?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),t(),j("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:e?"0":"-1",onFocus:this.handleEndFocus})])}});function P0(t){const e={isDeactivated:!1};let n=!1;return Yw(()=>{if(e.isDeactivated=!1,!n){n=!0;return}t()}),OC(()=>{e.isDeactivated=!0,n||(n=!0)}),e}var k0=typeof global=="object"&&global&&global.Object===Object&&global;const lR=k0;var U0=typeof self=="object"&&self&&self.Object===Object&&self,F0=lR||U0||Function("return this")();const Qn=F0;var B0=Qn.Symbol;const Mr=B0;var cR=Object.prototype,G0=cR.hasOwnProperty,Y0=cR.toString,ka=Mr?Mr.toStringTag:void 0;function q0(t){var e=G0.call(t,ka),n=t[ka];try{t[ka]=void 0;var i=!0}catch{}var o=Y0.call(t);return i&&(e?t[ka]=n:delete t[ka]),o}var $0=Object.prototype,H0=$0.toString;function z0(t){return H0.call(t)}var V0="[object Null]",W0="[object Undefined]",mS=Mr?Mr.toStringTag:void 0;function ui(t){return t==null?t===void 0?W0:V0:mS&&mS in Object(t)?q0(t):z0(t)}function Lr(t){return t!=null&&typeof t=="object"}var K0="[object Symbol]";function eg(t){return typeof t=="symbol"||Lr(t)&&ui(t)==K0}function uR(t,e){for(var n=-1,i=t==null?0:t.length,o=Array(i);++n0){if(++e>=bk)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Ck(t){return function(){return t}}var Rk=function(){try{var t=_i(Object,"defineProperty");return t({},"",{}),t}catch{}}();const Us=Rk;var Nk=Us?function(t,e){return Us(t,"toString",{configurable:!0,enumerable:!1,value:Ck(e),writable:!0})}:tg;const Ok=Nk;var Ak=vk(Ok);const yk=Ak;var Ik=9007199254740991,Dk=/^(?:0|[1-9]\d*)$/;function rg(t,e){var n=typeof t;return e=e??Ik,!!e&&(n=="number"||n!="symbol"&&Dk.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=Uk}function ra(t){return t!=null&&ag(t.length)&&!ng(t)}function Fk(t,e,n){if(!Pr(n))return!1;var i=typeof e;return(i=="number"?ra(n)&&rg(e,n.length):i=="string"&&e in n)?io(n[e],t):!1}function Bk(t){return kk(function(e,n){var i=-1,o=n.length,s=o>1?n[o-1]:void 0,l=o>2?n[2]:void 0;for(s=t.length>3&&typeof s=="function"?(o--,s):void 0,l&&Fk(n[0],n[1],l)&&(s=o<3?void 0:s,o=1),e=Object(e);++i-1}function nU(t,e){var n=this.__data__,i=Js(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}function pr(t){var e=-1,n=t==null?0:t.length;for(this.clear();++eo?0:o+e),n=n>o?o:n,n<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(o);++i=i?t:AU(t,e,n)}var IU="\\ud800-\\udfff",DU="\\u0300-\\u036f",xU="\\ufe20-\\ufe2f",wU="\\u20d0-\\u20ff",MU=DU+xU+wU,LU="\\ufe0e\\ufe0f",PU="\\u200d",kU=RegExp("["+PU+IU+MU+LU+"]");function vR(t){return kU.test(t)}function UU(t){return t.split("")}var CR="\\ud800-\\udfff",FU="\\u0300-\\u036f",BU="\\ufe20-\\ufe2f",GU="\\u20d0-\\u20ff",YU=FU+BU+GU,qU="\\ufe0e\\ufe0f",$U="["+CR+"]",ym="["+YU+"]",Im="\\ud83c[\\udffb-\\udfff]",HU="(?:"+ym+"|"+Im+")",RR="[^"+CR+"]",NR="(?:\\ud83c[\\udde6-\\uddff]){2}",OR="[\\ud800-\\udbff][\\udc00-\\udfff]",zU="\\u200d",AR=HU+"?",yR="["+qU+"]?",VU="(?:"+zU+"(?:"+[RR,NR,OR].join("|")+")"+yR+AR+")*",WU=yR+AR+VU,KU="(?:"+[RR+ym+"?",ym,NR,OR,$U].join("|")+")",QU=RegExp(Im+"(?="+Im+")|"+KU+WU,"g");function XU(t){return t.match(QU)||[]}function ZU(t){return vR(t)?XU(t):UU(t)}function JU(t){return function(e){e=el(e);var n=vR(e)?ZU(e):void 0,i=n?n[0]:e.charAt(0),o=n?yU(n,1).join(""):e.slice(1);return i[t]()+o}}var jU=JU("toUpperCase");const eF=jU;function tF(t,e,n,i){var o=-1,s=t==null?0:t.length;for(i&&s&&(n=t[++o]);++oc))return!1;var _=s.get(t),p=s.get(e);if(_&&p)return _==e&&p==t;var g=-1,E=!0,f=n&NB?new Ys:void 0;for(s.set(t,e),s.set(e,t);++g{const p=s==null?void 0:s.value;n.mount({id:p===void 0?e:p+e,head:!0,props:{bPrefix:p?`.${p}-`:void 0},anchorMetaName:ja,ssr:l}),c!=null&&c.preflightStyleDisabled||KR.mount({id:"n-global",head:!0,anchorMetaName:ja,ssr:l})};l?_():Hm(_)}return le(()=>{var _;const{theme:{common:p,self:g,peers:E={}}={},themeOverrides:f={},builtinThemeOverrides:S={}}=o,{common:C,peers:h}=f,{common:T=void 0,[t]:{common:N=void 0,self:y=void 0,peers:x={}}={}}=(c==null?void 0:c.mergedThemeRef.value)||{},{common:P=void 0,[t]:D={}}=(c==null?void 0:c.mergedThemeOverridesRef.value)||{},{common:k,peers:U={}}=D,W=Ns({},p||N||T||i.common,P,k,C),z=Ns((_=g||y||i.self)===null||_===void 0?void 0:_(W),S,D,f);return{common:W,self:z,peers:Ns({},i.peers,x,E),peerOverrides:Ns({},S.peers,U,h)}})}fn.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const AG="n";function pi(t={},e={defaultBordered:!0}){const n=Ft(ia,null);return{inlineThemeDisabled:n==null?void 0:n.inlineThemeDisabled,mergedRtlRef:n==null?void 0:n.mergedRtlRef,mergedComponentPropsRef:n==null?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:n==null?void 0:n.mergedBreakpointsRef,mergedBorderedRef:le(()=>{var i,o;const{bordered:s}=t;return s!==void 0?s:(o=(i=n==null?void 0:n.mergedBorderedRef.value)!==null&&i!==void 0?i:e.defaultBordered)!==null&&o!==void 0?o:!0}),mergedClsPrefixRef:le(()=>(n==null?void 0:n.mergedClsPrefixRef.value)||AG),namespaceRef:le(()=>n==null?void 0:n.mergedNamespaceRef.value)}}const yG={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:t=>`Please load all ${t}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:t=>`Total ${t} items`,selected:t=>`${t} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},IG=yG;function Tu(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,i=t.formats[n]||t.formats[t.defaultWidth];return i}}function Ua(t){return function(e,n){var i=n!=null&&n.context?String(n.context):"standalone",o;if(i==="formatting"&&t.formattingValues){var s=t.defaultFormattingWidth||t.defaultWidth,l=n!=null&&n.width?String(n.width):s;o=t.formattingValues[l]||t.formattingValues[s]}else{var c=t.defaultWidth,d=n!=null&&n.width?String(n.width):t.defaultWidth;o=t.values[d]||t.values[c]}var _=t.argumentCallback?t.argumentCallback(e):e;return o[_]}}function Fa(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.width,o=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],s=e.match(o);if(!s)return null;var l=s[0],c=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],d=Array.isArray(c)?xG(c,function(g){return g.test(l)}):DG(c,function(g){return g.test(l)}),_;_=t.valueCallback?t.valueCallback(d):d,_=n.valueCallback?n.valueCallback(_):_;var p=e.slice(l.length);return{value:_,rest:p}}}function DG(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function xG(t,e){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},i=e.match(t.matchPattern);if(!i)return null;var o=i[0],s=e.match(t.parsePattern);if(!s)return null;var l=t.valueCallback?t.valueCallback(s[0]):s[0];l=n.valueCallback?n.valueCallback(l):l;var c=e.slice(o.length);return{value:l,rest:c}}}var MG={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},LG=function(e,n,i){var o,s=MG[e];return typeof s=="string"?o=s:n===1?o=s.one:o=s.other.replace("{{count}}",n.toString()),i!=null&&i.addSuffix?i.comparison&&i.comparison>0?"in "+o:o+" ago":o};const PG=LG;var kG={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},UG={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},FG={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},BG={date:Tu({formats:kG,defaultWidth:"full"}),time:Tu({formats:UG,defaultWidth:"full"}),dateTime:Tu({formats:FG,defaultWidth:"full"})};const GG=BG;var YG={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},qG=function(e,n,i,o){return YG[e]};const $G=qG;var HG={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},zG={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},VG={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},WG={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},KG={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},QG={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},XG=function(e,n){var i=Number(e),o=i%100;if(o>20||o<10)switch(o%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},ZG={ordinalNumber:XG,era:Ua({values:HG,defaultWidth:"wide"}),quarter:Ua({values:zG,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ua({values:VG,defaultWidth:"wide"}),day:Ua({values:WG,defaultWidth:"wide"}),dayPeriod:Ua({values:KG,defaultWidth:"wide",formattingValues:QG,defaultFormattingWidth:"wide"})};const JG=ZG;var jG=/^(\d+)(th|st|nd|rd)?/i,eY=/\d+/i,tY={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},nY={any:[/^b/i,/^(a|c)/i]},rY={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},iY={any:[/1/i,/2/i,/3/i,/4/i]},aY={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},oY={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},sY={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},lY={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},cY={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},uY={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},dY={ordinalNumber:wG({matchPattern:jG,parsePattern:eY,valueCallback:function(e){return parseInt(e,10)}}),era:Fa({matchPatterns:tY,defaultMatchWidth:"wide",parsePatterns:nY,defaultParseWidth:"any"}),quarter:Fa({matchPatterns:rY,defaultMatchWidth:"wide",parsePatterns:iY,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Fa({matchPatterns:aY,defaultMatchWidth:"wide",parsePatterns:oY,defaultParseWidth:"any"}),day:Fa({matchPatterns:sY,defaultMatchWidth:"wide",parsePatterns:lY,defaultParseWidth:"any"}),dayPeriod:Fa({matchPatterns:cY,defaultMatchWidth:"any",parsePatterns:uY,defaultParseWidth:"any"})};const _Y=dY;var pY={code:"en-US",formatDistance:PG,formatLong:GG,formatRelative:$G,localize:JG,match:_Y,options:{weekStartsOn:0,firstWeekContainsDate:1}};const mY=pY,gY={name:"en-US",locale:mY},EY=gY;function fY(t){const{mergedLocaleRef:e,mergedDateLocaleRef:n}=Ft(ia,null)||{},i=le(()=>{var s,l;return(l=(s=e==null?void 0:e.value)===null||s===void 0?void 0:s[t])!==null&&l!==void 0?l:IG[t]});return{dateLocaleRef:le(()=>{var s;return(s=n==null?void 0:n.value)!==null&&s!==void 0?s:EY}),localeRef:i}}function SY(t,e,n){if(!e)return;const i=ro(),o=Ft(ia,null),s=()=>{const l=n==null?void 0:n.value;e.mount({id:l===void 0?t:l+t,head:!0,anchorMetaName:ja,props:{bPrefix:l?`.${l}-`:void 0},ssr:i}),o!=null&&o.preflightStyleDisabled||KR.mount({id:"n-global",head:!0,anchorMetaName:ja,ssr:i})};i?s():Hm(s)}function _g(t,e,n,i){var o;n||sP("useThemeClass","cssVarsRef is not passed");const s=(o=Ft(ia,null))===null||o===void 0?void 0:o.mergedThemeHashRef,l=ee(""),c=ro();let d;const _=`__${t}`,p=()=>{let g=_;const E=e?e.value:void 0,f=s==null?void 0:s.value;f&&(g+="-"+f),E&&(g+="-"+E);const{themeOverrides:S,builtinThemeOverrides:C}=i;S&&(g+="-"+Cm(JSON.stringify(S))),C&&(g+="-"+Cm(JSON.stringify(C))),l.value=g,d=()=>{const h=n.value;let T="";for(const N in h)T+=`${N}: ${h[N]};`;je(`.${g}`,T).mount({id:g,ssr:c}),d=void 0}};return si(()=>{p()}),{themeClass:l,onRender:()=>{d==null||d()}}}function bY(t,e,n){if(!e)return;const i=ro(),o=le(()=>{const{value:l}=e;if(!l)return;const c=l[t];if(c)return c}),s=()=>{si(()=>{const{value:l}=n,c=`${l}${t}Rtl`;if(RP(c,i))return;const{value:d}=o;d&&d.style.mount({id:c,head:!0,anchorMetaName:ja,props:{bPrefix:l?`.${l}-`:void 0},ssr:i})})};return i?s():Hm(s),o}function rl(t,e){return be({name:eF(t),setup(){var n;const i=(n=Ft(ia,null))===null||n===void 0?void 0:n.mergedIconsRef;return()=>{var o;const s=(o=i==null?void 0:i.value)===null||o===void 0?void 0:o[t];return s?s():e}}})}const hY=rl("rotateClockwise",j("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),j("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),TY=rl("rotateClockwise",j("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),j("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),vY=rl("zoomIn",j("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),j("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),CY=rl("zoomOut",j("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),j("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),RY=be({name:"ResizeSmall",render(){return j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},j("g",{fill:"none"},j("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}}),NY=St("base-icon",` - height: 1em; - width: 1em; - line-height: 1em; - text-align: center; - display: inline-block; - position: relative; - fill: currentColor; - transform: translateZ(0); -`,[je("svg",` - height: 1em; - width: 1em; - `)]),Or=be({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(t){SY("-base-icon",NY,yt(t,"clsPrefix"))},render(){return j("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),Se={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},OY=Ki(Se.neutralBase),QR=Ki(Se.neutralInvertBase),AY="rgba("+QR.slice(0,3).join(", ")+", ";function HS(t){return AY+String(t)+")"}function Kt(t){const e=Array.from(QR);return e[3]=Number(t),PC(OY,e)}const yY=Object.assign(Object.assign({name:"common"},nl),{baseColor:Se.neutralBase,primaryColor:Se.primaryDefault,primaryColorHover:Se.primaryHover,primaryColorPressed:Se.primaryActive,primaryColorSuppl:Se.primarySuppl,infoColor:Se.infoDefault,infoColorHover:Se.infoHover,infoColorPressed:Se.infoActive,infoColorSuppl:Se.infoSuppl,successColor:Se.successDefault,successColorHover:Se.successHover,successColorPressed:Se.successActive,successColorSuppl:Se.successSuppl,warningColor:Se.warningDefault,warningColorHover:Se.warningHover,warningColorPressed:Se.warningActive,warningColorSuppl:Se.warningSuppl,errorColor:Se.errorDefault,errorColorHover:Se.errorHover,errorColorPressed:Se.errorActive,errorColorSuppl:Se.errorSuppl,textColorBase:Se.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:Kt(Se.alpha4),placeholderColor:Kt(Se.alpha4),placeholderColorDisabled:Kt(Se.alpha5),iconColor:Kt(Se.alpha4),iconColorHover:Es(Kt(Se.alpha4),{lightness:.75}),iconColorPressed:Es(Kt(Se.alpha4),{lightness:.9}),iconColorDisabled:Kt(Se.alpha5),opacity1:Se.alpha1,opacity2:Se.alpha2,opacity3:Se.alpha3,opacity4:Se.alpha4,opacity5:Se.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:Kt(Number(Se.alphaClose)),closeIconColorHover:Kt(Number(Se.alphaClose)),closeIconColorPressed:Kt(Number(Se.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:Kt(Se.alpha4),clearColorHover:Es(Kt(Se.alpha4),{lightness:.75}),clearColorPressed:Es(Kt(Se.alpha4),{lightness:.9}),scrollbarColor:HS(Se.alphaScrollbar),scrollbarColorHover:HS(Se.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Kt(Se.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:Se.neutralPopover,tableColor:Se.neutralCard,cardColor:Se.neutralCard,modalColor:Se.neutralModal,bodyColor:Se.neutralBody,tagColor:"#eee",avatarColor:Kt(Se.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:Kt(Se.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:Se.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),ao=yY,IY=t=>{const{scrollbarColor:e,scrollbarColorHover:n}=t;return{color:e,colorHover:n}},DY={name:"Scrollbar",common:ao,self:IY},xY=DY,{cubicBezierEaseInOut:zS}=nl;function Pm({name:t="fade-in",enterDuration:e="0.2s",leaveDuration:n="0.2s",enterCubicBezier:i=zS,leaveCubicBezier:o=zS}={}){return[je(`&.${t}-transition-enter-active`,{transition:`all ${e} ${i}!important`}),je(`&.${t}-transition-leave-active`,{transition:`all ${n} ${o}!important`}),je(`&.${t}-transition-enter-from, &.${t}-transition-leave-to`,{opacity:0}),je(`&.${t}-transition-leave-from, &.${t}-transition-enter-to`,{opacity:1})]}const wY=St("scrollbar",` - overflow: hidden; - position: relative; - z-index: auto; - height: 100%; - width: 100%; -`,[je(">",[St("scrollbar-container",` - width: 100%; - overflow: scroll; - height: 100%; - max-height: inherit; - scrollbar-width: none; - `,[je("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `),je(">",[St("scrollbar-content",` - box-sizing: border-box; - min-width: 100%; - `)])])]),je(">, +",[St("scrollbar-rail",` - position: absolute; - pointer-events: none; - user-select: none; - -webkit-user-select: none; - `,[_r("horizontal",` - left: 2px; - right: 2px; - bottom: 4px; - height: var(--n-scrollbar-height); - `,[je(">",[jr("scrollbar",` - height: var(--n-scrollbar-height); - border-radius: var(--n-scrollbar-border-radius); - right: 0; - `)])]),_r("vertical",` - right: 4px; - top: 2px; - bottom: 2px; - width: var(--n-scrollbar-width); - `,[je(">",[jr("scrollbar",` - width: var(--n-scrollbar-width); - border-radius: var(--n-scrollbar-border-radius); - bottom: 0; - `)])]),_r("disabled",[je(">",[jr("scrollbar",{pointerEvents:"none"})])]),je(">",[jr("scrollbar",` - position: absolute; - cursor: pointer; - pointer-events: all; - background-color: var(--n-scrollbar-color); - transition: background-color .2s var(--n-scrollbar-bezier); - `,[Pm(),je("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),MY=Object.assign(Object.assign({},fn.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),XR=be({name:"Scrollbar",props:MY,inheritAttrs:!1,setup(t){const{mergedClsPrefixRef:e,inlineThemeDisabled:n,mergedRtlRef:i}=pi(t),o=bY("Scrollbar",i,e),s=ee(null),l=ee(null),c=ee(null),d=ee(null),_=ee(null),p=ee(null),g=ee(null),E=ee(null),f=ee(null),S=ee(null),C=ee(null),h=ee(0),T=ee(0),N=ee(!1),y=ee(!1);let x=!1,P=!1,D,k,U=0,W=0,z=0,K=0;const Ee=GP(),oe=le(()=>{const{value:Z}=E,{value:ge}=p,{value:Ae}=S;return Z===null||ge===null||Ae===null?0:Math.min(Z,Ae*Z/ge+t.size*1.5)}),L=le(()=>`${oe.value}px`),J=le(()=>{const{value:Z}=f,{value:ge}=g,{value:Ae}=C;return Z===null||ge===null||Ae===null?0:Ae*Z/ge+t.size*1.5}),re=le(()=>`${J.value}px`),G=le(()=>{const{value:Z}=E,{value:ge}=h,{value:Ae}=p,{value:it}=S;if(Z===null||Ae===null||it===null)return 0;{const ht=Ae-Z;return ht?ge/ht*(it-oe.value):0}}),X=le(()=>`${G.value}px`),_e=le(()=>{const{value:Z}=f,{value:ge}=T,{value:Ae}=g,{value:it}=C;if(Z===null||Ae===null||it===null)return 0;{const ht=Ae-Z;return ht?ge/ht*(it-J.value):0}}),ve=le(()=>`${_e.value}px`),he=le(()=>{const{value:Z}=E,{value:ge}=p;return Z!==null&&ge!==null&&ge>Z}),tt=le(()=>{const{value:Z}=f,{value:ge}=g;return Z!==null&&ge!==null&&ge>Z}),lt=le(()=>{const{trigger:Z}=t;return Z==="none"||N.value}),$e=le(()=>{const{trigger:Z}=t;return Z==="none"||y.value}),Ce=le(()=>{const{container:Z}=t;return Z?Z():l.value}),Be=le(()=>{const{content:Z}=t;return Z?Z():c.value}),Ve=P0(()=>{t.container||rt({top:h.value,left:T.value})}),xe=()=>{Ve.isDeactivated||Nt()},He=Z=>{if(Ve.isDeactivated)return;const{onResize:ge}=t;ge&&ge(Z),Nt()},rt=(Z,ge)=>{if(!t.scrollable)return;if(typeof Z=="number"){te(ge??0,Z,0,!1,"auto");return}const{left:Ae,top:it,index:ht,elSize:wt,position:tn,behavior:mt,el:ln,debounce:tr=!0}=Z;(Ae!==void 0||it!==void 0)&&te(Ae??0,it??0,0,!1,mt),ln!==void 0?te(0,ln.offsetTop,ln.offsetHeight,tr,mt):ht!==void 0&&wt!==void 0?te(0,ht*wt,wt,tr,mt):tn==="bottom"?te(0,Number.MAX_SAFE_INTEGER,0,!1,mt):tn==="top"&&te(0,0,0,!1,mt)},We=(Z,ge)=>{if(!t.scrollable)return;const{value:Ae}=Ce;Ae&&(typeof Z=="object"?Ae.scrollBy(Z):Ae.scrollBy(Z,ge||0))};function te(Z,ge,Ae,it,ht){const{value:wt}=Ce;if(wt){if(it){const{scrollTop:tn,offsetHeight:mt}=wt;if(ge>tn){ge+Ae<=tn+mt||wt.scrollTo({left:Z,top:ge+Ae-mt,behavior:ht});return}}wt.scrollTo({left:Z,top:ge,behavior:ht})}}function pe(){pt(),me(),Nt()}function ie(){Pe()}function Pe(){we(),Xe()}function we(){k!==void 0&&window.clearTimeout(k),k=window.setTimeout(()=>{y.value=!1},t.duration)}function Xe(){D!==void 0&&window.clearTimeout(D),D=window.setTimeout(()=>{N.value=!1},t.duration)}function pt(){D!==void 0&&window.clearTimeout(D),N.value=!0}function me(){k!==void 0&&window.clearTimeout(k),y.value=!0}function bt(Z){const{onScroll:ge}=t;ge&&ge(Z),Ue()}function Ue(){const{value:Z}=Ce;Z&&(h.value=Z.scrollTop,T.value=Z.scrollLeft*(o!=null&&o.value?-1:1))}function Ie(){const{value:Z}=Be;Z&&(p.value=Z.offsetHeight,g.value=Z.offsetWidth);const{value:ge}=Ce;ge&&(E.value=ge.offsetHeight,f.value=ge.offsetWidth);const{value:Ae}=_,{value:it}=d;Ae&&(C.value=Ae.offsetWidth),it&&(S.value=it.offsetHeight)}function zt(){const{value:Z}=Ce;Z&&(h.value=Z.scrollTop,T.value=Z.scrollLeft*(o!=null&&o.value?-1:1),E.value=Z.offsetHeight,f.value=Z.offsetWidth,p.value=Z.scrollHeight,g.value=Z.scrollWidth);const{value:ge}=_,{value:Ae}=d;ge&&(C.value=ge.offsetWidth),Ae&&(S.value=Ae.offsetHeight)}function Nt(){t.scrollable&&(t.useUnifiedContainer?zt():(Ie(),Ue()))}function Gt(Z){var ge;return!(!((ge=s.value)===null||ge===void 0)&&ge.contains(ks(Z)))}function Sn(Z){Z.preventDefault(),Z.stopPropagation(),P=!0,Ht("mousemove",window,ne,!0),Ht("mouseup",window,ce,!0),W=T.value,z=o!=null&&o.value?window.innerWidth-Z.clientX:Z.clientX}function ne(Z){if(!P)return;D!==void 0&&window.clearTimeout(D),k!==void 0&&window.clearTimeout(k);const{value:ge}=f,{value:Ae}=g,{value:it}=J;if(ge===null||Ae===null)return;const wt=(o!=null&&o.value?window.innerWidth-Z.clientX-z:Z.clientX-z)*(Ae-ge)/(ge-it),tn=Ae-ge;let mt=W+wt;mt=Math.min(tn,mt),mt=Math.max(mt,0);const{value:ln}=Ce;if(ln){ln.scrollLeft=mt*(o!=null&&o.value?-1:1);const{internalOnUpdateScrollLeft:tr}=t;tr&&tr(mt)}}function ce(Z){Z.preventDefault(),Z.stopPropagation(),Rt("mousemove",window,ne,!0),Rt("mouseup",window,ce,!0),P=!1,Nt(),Gt(Z)&&Pe()}function Oe(Z){Z.preventDefault(),Z.stopPropagation(),x=!0,Ht("mousemove",window,Me,!0),Ht("mouseup",window,ct,!0),U=h.value,K=Z.clientY}function Me(Z){if(!x)return;D!==void 0&&window.clearTimeout(D),k!==void 0&&window.clearTimeout(k);const{value:ge}=E,{value:Ae}=p,{value:it}=oe;if(ge===null||Ae===null)return;const wt=(Z.clientY-K)*(Ae-ge)/(ge-it),tn=Ae-ge;let mt=U+wt;mt=Math.min(tn,mt),mt=Math.max(mt,0);const{value:ln}=Ce;ln&&(ln.scrollTop=mt)}function ct(Z){Z.preventDefault(),Z.stopPropagation(),Rt("mousemove",window,Me,!0),Rt("mouseup",window,ct,!0),x=!1,Nt(),Gt(Z)&&Pe()}si(()=>{const{value:Z}=tt,{value:ge}=he,{value:Ae}=e,{value:it}=_,{value:ht}=d;it&&(Z?it.classList.remove(`${Ae}-scrollbar-rail--disabled`):it.classList.add(`${Ae}-scrollbar-rail--disabled`)),ht&&(ge?ht.classList.remove(`${Ae}-scrollbar-rail--disabled`):ht.classList.add(`${Ae}-scrollbar-rail--disabled`))}),kn(()=>{t.container||Nt()}),Kn(()=>{D!==void 0&&window.clearTimeout(D),k!==void 0&&window.clearTimeout(k),Rt("mousemove",window,Me,!0),Rt("mouseup",window,ct,!0)});const xt=fn("Scrollbar","-scrollbar",wY,xY,t,e),Ze=le(()=>{const{common:{cubicBezierEaseInOut:Z,scrollbarBorderRadius:ge,scrollbarHeight:Ae,scrollbarWidth:it},self:{color:ht,colorHover:wt}}=xt.value;return{"--n-scrollbar-bezier":Z,"--n-scrollbar-color":ht,"--n-scrollbar-color-hover":wt,"--n-scrollbar-border-radius":ge,"--n-scrollbar-width":it,"--n-scrollbar-height":Ae}}),Yt=n?_g("scrollbar",void 0,Ze,t):void 0;return Object.assign(Object.assign({},{scrollTo:rt,scrollBy:We,sync:Nt,syncUnifiedContainer:zt,handleMouseEnterWrapper:pe,handleMouseLeaveWrapper:ie}),{mergedClsPrefix:e,rtlEnabled:o,containerScrollTop:h,wrapperRef:s,containerRef:l,contentRef:c,yRailRef:d,xRailRef:_,needYBar:he,needXBar:tt,yBarSizePx:L,xBarSizePx:re,yBarTopPx:X,xBarLeftPx:ve,isShowXBar:lt,isShowYBar:$e,isIos:Ee,handleScroll:bt,handleContentResize:xe,handleContainerResize:He,handleYScrollMouseDown:Oe,handleXScrollMouseDown:Sn,cssVars:n?void 0:Ze,themeClass:Yt==null?void 0:Yt.themeClass,onRender:Yt==null?void 0:Yt.onRender})},render(){var t;const{$slots:e,mergedClsPrefix:n,triggerDisplayManually:i,rtlEnabled:o,internalHoistYRail:s}=this;if(!this.scrollable)return(t=e.default)===null||t===void 0?void 0:t.call(e);const l=this.trigger==="none",c=()=>j("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},j(l?zf:Hi,l?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?j("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),d=()=>{var p,g;return(p=this.onRender)===null||p===void 0||p.call(this),j("div",zm(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,o&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:i?void 0:this.handleMouseEnterWrapper,onMouseleave:i?void 0:this.handleMouseLeaveWrapper}),[this.container?(g=e.default)===null||g===void 0?void 0:g.call(e):j("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},j(pS,{onResize:this.handleContentResize},{default:()=>j("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},e)})),s?null:c(),this.xScrollable&&j("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},j(l?zf:Hi,l?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?j("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:o?this.xBarLeftPx:void 0,left:o?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},_=this.container?d():j(pS,{onResize:this.handleContainerResize},{default:d});return s?j(st,null,_,c()):_}}),LY=XR,PY=XR,{cubicBezierEaseIn:VS,cubicBezierEaseOut:WS}=nl;function kY({transformOrigin:t="inherit",duration:e=".2s",enterScale:n=".9",originalTransform:i="",originalTransition:o=""}={}){return[je("&.fade-in-scale-up-transition-leave-active",{transformOrigin:t,transition:`opacity ${e} ${VS}, transform ${e} ${VS} ${o&&","+o}`}),je("&.fade-in-scale-up-transition-enter-active",{transformOrigin:t,transition:`opacity ${e} ${WS}, transform ${e} ${WS} ${o&&","+o}`}),je("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${i} scale(${n})`}),je("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${i} scale(1)`})]}const UY={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},FY=t=>{const{boxShadow2:e,popoverColor:n,textColor2:i,borderRadius:o,fontSize:s,dividerColor:l}=t;return Object.assign(Object.assign({},UY),{fontSize:s,borderRadius:o,color:n,dividerColor:l,textColor:i,boxShadow:e})},BY={name:"Popover",common:ao,self:FY},ZR=BY,vu={top:"bottom",bottom:"top",left:"right",right:"left"},Pt="var(--n-arrow-height) * 1.414",GY=je([St("popover",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - position: relative; - font-size: var(--n-font-size); - color: var(--n-text-color); - box-shadow: var(--n-box-shadow); - word-break: break-word; - `,[je(">",[St("scrollbar",` - height: inherit; - max-height: inherit; - `)]),$a("raw",` - background-color: var(--n-color); - border-radius: var(--n-border-radius); - `,[$a("scrollable",[$a("show-header-or-footer","padding: var(--n-padding);")])]),jr("header",` - padding: var(--n-padding); - border-bottom: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),jr("footer",` - padding: var(--n-padding); - border-top: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),_r("scrollable, show-header-or-footer",[jr("content",` - padding: var(--n-padding); - `)])]),St("popover-shared",` - transform-origin: inherit; - `,[St("popover-arrow-wrapper",` - position: absolute; - overflow: hidden; - pointer-events: none; - `,[St("popover-arrow",` - transition: background-color .3s var(--n-bezier); - position: absolute; - display: block; - width: calc(${Pt}); - height: calc(${Pt}); - box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); - transform: rotate(45deg); - background-color: var(--n-color); - pointer-events: all; - `)]),je("&.popover-transition-enter-from, &.popover-transition-leave-to",` - opacity: 0; - transform: scale(.85); - `),je("&.popover-transition-enter-to, &.popover-transition-leave-from",` - transform: scale(1); - opacity: 1; - `),je("&.popover-transition-enter-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-out), - transform .15s var(--n-bezier-ease-out); - `),je("&.popover-transition-leave-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-in), - transform .15s var(--n-bezier-ease-in); - `)]),An("top-start",` - top: calc(${Pt} / -2); - left: calc(${dr("top-start")} - var(--v-offset-left)); - `),An("top",` - top: calc(${Pt} / -2); - transform: translateX(calc(${Pt} / -2)) rotate(45deg); - left: 50%; - `),An("top-end",` - top: calc(${Pt} / -2); - right: calc(${dr("top-end")} + var(--v-offset-left)); - `),An("bottom-start",` - bottom: calc(${Pt} / -2); - left: calc(${dr("bottom-start")} - var(--v-offset-left)); - `),An("bottom",` - bottom: calc(${Pt} / -2); - transform: translateX(calc(${Pt} / -2)) rotate(45deg); - left: 50%; - `),An("bottom-end",` - bottom: calc(${Pt} / -2); - right: calc(${dr("bottom-end")} + var(--v-offset-left)); - `),An("left-start",` - left: calc(${Pt} / -2); - top: calc(${dr("left-start")} - var(--v-offset-top)); - `),An("left",` - left: calc(${Pt} / -2); - transform: translateY(calc(${Pt} / -2)) rotate(45deg); - top: 50%; - `),An("left-end",` - left: calc(${Pt} / -2); - bottom: calc(${dr("left-end")} + var(--v-offset-top)); - `),An("right-start",` - right: calc(${Pt} / -2); - top: calc(${dr("right-start")} - var(--v-offset-top)); - `),An("right",` - right: calc(${Pt} / -2); - transform: translateY(calc(${Pt} / -2)) rotate(45deg); - top: 50%; - `),An("right-end",` - right: calc(${Pt} / -2); - bottom: calc(${dr("right-end")} + var(--v-offset-top)); - `),...hG({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(t,e)=>{const n=["right","left"].includes(e),i=n?"width":"height";return t.map(o=>{const s=o.split("-")[1]==="end",c=`calc((${`var(--v-target-${i}, 0px)`} - ${Pt}) / 2)`,d=dr(o);return je(`[v-placement="${o}"] >`,[St("popover-shared",[_r("center-arrow",[St("popover-arrow",`${e}: calc(max(${c}, ${d}) ${s?"+":"-"} var(--v-offset-${n?"left":"top"}));`)])])])})})]);function dr(t){return["top","bottom"].includes(t.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function An(t,e){const n=t.split("-")[0],i=["top","bottom"].includes(n)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return je(`[v-placement="${t}"] >`,[St("popover-shared",` - margin-${vu[n]}: var(--n-space); - `,[_r("show-arrow",` - margin-${vu[n]}: var(--n-space-arrow); - `),_r("overlap",` - margin: 0; - `),DP("popover-arrow-wrapper",` - right: 0; - left: 0; - top: 0; - bottom: 0; - ${n}: 100%; - ${vu[n]}: auto; - ${i} - `,[St("popover-arrow",e)])])])}const JR=Object.assign(Object.assign({},fn.props),{to:Qi.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),YY=({arrowStyle:t,clsPrefix:e})=>j("div",{key:"__popover-arrow__",class:`${e}-popover-arrow-wrapper`},j("div",{class:`${e}-popover-arrow`,style:t})),qY=be({name:"PopoverBody",inheritAttrs:!1,props:JR,setup(t,{slots:e,attrs:n}){const{namespaceRef:i,mergedClsPrefixRef:o,inlineThemeDisabled:s}=pi(t),l=fn("Popover","-popover",GY,ZR,t,o),c=ee(null),d=Ft("NPopover"),_=ee(null),p=ee(t.show),g=ee(!1);si(()=>{const{show:k}=t;k&&!xP()&&!t.internalDeactivateImmediately&&(g.value=!0)});const E=le(()=>{const{trigger:k,onClickoutside:U}=t,W=[],{positionManuallyRef:{value:z}}=d;return z||(k==="click"&&!U&&W.push([Zf,x,void 0,{capture:!0}]),k==="hover"&&W.push([KP,y])),U&&W.push([Zf,x,void 0,{capture:!0}]),(t.displayDirective==="show"||t.animated&&g.value)&&W.push([Qs,t.show]),W}),f=le(()=>{const k=t.width==="trigger"?void 0:du(t.width),U=[];k&&U.push({width:k});const{maxWidth:W,minWidth:z}=t;return W&&U.push({maxWidth:du(W)}),z&&U.push({maxWidth:du(z)}),s||U.push(S.value),U}),S=le(()=>{const{common:{cubicBezierEaseInOut:k,cubicBezierEaseIn:U,cubicBezierEaseOut:W},self:{space:z,spaceArrow:K,padding:Ee,fontSize:oe,textColor:L,dividerColor:J,color:re,boxShadow:G,borderRadius:X,arrowHeight:_e,arrowOffset:ve,arrowOffsetVertical:he}}=l.value;return{"--n-box-shadow":G,"--n-bezier":k,"--n-bezier-ease-in":U,"--n-bezier-ease-out":W,"--n-font-size":oe,"--n-text-color":L,"--n-color":re,"--n-divider-color":J,"--n-border-radius":X,"--n-arrow-height":_e,"--n-arrow-offset":ve,"--n-arrow-offset-vertical":he,"--n-padding":Ee,"--n-space":z,"--n-space-arrow":K}}),C=s?_g("popover",void 0,S,t):void 0;d.setBodyInstance({syncPosition:h}),Kn(()=>{d.setBodyInstance(null)}),Zt(yt(t,"show"),k=>{t.animated||(k?p.value=!0:p.value=!1)});function h(){var k;(k=c.value)===null||k===void 0||k.syncPosition()}function T(k){t.trigger==="hover"&&t.keepAliveOnHover&&t.show&&d.handleMouseEnter(k)}function N(k){t.trigger==="hover"&&t.keepAliveOnHover&&d.handleMouseLeave(k)}function y(k){t.trigger==="hover"&&!P().contains(ks(k))&&d.handleMouseMoveOutside(k)}function x(k){(t.trigger==="click"&&!P().contains(ks(k))||t.onClickoutside)&&d.handleClickOutside(k)}function P(){return d.getTriggerElement()}ni(VC,_),ni(zC,null),ni(HC,null);function D(){if(C==null||C.onRender(),!(t.displayDirective==="show"||t.show||t.animated&&g.value))return null;let U;const W=d.internalRenderBodyRef.value,{value:z}=o;if(W)U=W([`${z}-popover-shared`,C==null?void 0:C.themeClass.value,t.overlap&&`${z}-popover-shared--overlap`,t.showArrow&&`${z}-popover-shared--show-arrow`,t.arrowPointToCenter&&`${z}-popover-shared--center-arrow`],_,f.value,T,N);else{const{value:K}=d.extraClassRef,{internalTrapFocus:Ee}=t,oe=!Hf(e.header)||!Hf(e.footer),L=()=>{var J;const re=oe?j(st,null,uu(e.header,_e=>_e?j("div",{class:`${z}-popover__header`,style:t.headerStyle},_e):null),uu(e.default,_e=>_e?j("div",{class:`${z}-popover__content`,style:t.contentStyle},e):null),uu(e.footer,_e=>_e?j("div",{class:`${z}-popover__footer`,style:t.footerStyle},_e):null)):t.scrollable?(J=e.default)===null||J===void 0?void 0:J.call(e):j("div",{class:`${z}-popover__content`,style:t.contentStyle},e),G=t.scrollable?j(PY,{contentClass:oe?void 0:`${z}-popover__content`,contentStyle:oe?void 0:t.contentStyle},{default:()=>re}):re,X=t.showArrow?YY({arrowStyle:t.arrowStyle,clsPrefix:z}):null;return[G,X]};U=j("div",zm({class:[`${z}-popover`,`${z}-popover-shared`,C==null?void 0:C.themeClass.value,K.map(J=>`${z}-${J}`),{[`${z}-popover--scrollable`]:t.scrollable,[`${z}-popover--show-header-or-footer`]:oe,[`${z}-popover--raw`]:t.raw,[`${z}-popover-shared--overlap`]:t.overlap,[`${z}-popover-shared--show-arrow`]:t.showArrow,[`${z}-popover-shared--center-arrow`]:t.arrowPointToCenter}],ref:_,style:f.value,onKeydown:d.handleKeydown,onMouseenter:T,onMouseleave:N},n),Ee?j(L0,{active:t.show,autoFocus:!0},{default:L}):L())}return Pn(U,E.value)}return{displayed:g,namespace:i,isMounted:d.isMountedRef,zIndex:d.zIndexRef,followerRef:c,adjustedTo:Qi(t),followerEnabled:p,renderContentNode:D}},render(){return j(u0,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Qi.tdkey},{default:()=>this.animated?j(Hi,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var t;(t=this.internalOnAfterLeave)===null||t===void 0||t.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),$Y=Object.keys(JR),HY={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function zY(t,e,n){HY[e].forEach(i=>{t.props?t.props=Object.assign({},t.props):t.props={};const o=t.props[i],s=n[i];o?t.props[i]=(...l)=>{o(...l),s(...l)}:t.props[i]=s})}const jR={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Qi.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},VY=Object.assign(Object.assign(Object.assign({},fn.props),jR),{internalOnAfterLeave:Function,internalRenderBody:Function}),WY=be({name:"Popover",inheritAttrs:!1,props:VY,__popover__:!0,setup(t){const e=Zm(),n=ee(null),i=le(()=>t.show),o=ee(t.defaultShow),s=UP(i,o),l=Qa(()=>t.disabled?!1:s.value),c=()=>{if(t.disabled)return!0;const{getDisabled:L}=t;return!!(L!=null&&L())},d=()=>c()?!1:s.value,_=FP(t,["arrow","showArrow"]),p=le(()=>t.overlap?!1:_.value);let g=null;const E=ee(null),f=ee(null),S=Qa(()=>t.x!==void 0&&t.y!==void 0);function C(L){const{"onUpdate:show":J,onUpdateShow:re,onShow:G,onHide:X}=t;o.value=L,J&&Ga(J,L),re&&Ga(re,L),L&&G&&Ga(G,!0),L&&X&&Ga(X,!1)}function h(){g&&g.syncPosition()}function T(){const{value:L}=E;L&&(window.clearTimeout(L),E.value=null)}function N(){const{value:L}=f;L&&(window.clearTimeout(L),f.value=null)}function y(){const L=c();if(t.trigger==="focus"&&!L){if(d())return;C(!0)}}function x(){const L=c();if(t.trigger==="focus"&&!L){if(!d())return;C(!1)}}function P(){const L=c();if(t.trigger==="hover"&&!L){if(N(),E.value!==null||d())return;const J=()=>{C(!0),E.value=null},{delay:re}=t;re===0?J():E.value=window.setTimeout(J,re)}}function D(){const L=c();if(t.trigger==="hover"&&!L){if(T(),f.value!==null||!d())return;const J=()=>{C(!1),f.value=null},{duration:re}=t;re===0?J():f.value=window.setTimeout(J,re)}}function k(){D()}function U(L){var J;d()&&(t.trigger==="click"&&(T(),N(),C(!1)),(J=t.onClickoutside)===null||J===void 0||J.call(t,L))}function W(){if(t.trigger==="click"&&!c()){T(),N();const L=!d();C(L)}}function z(L){t.internalTrapFocus&&L.key==="Escape"&&(T(),N(),C(!1))}function K(L){o.value=L}function Ee(){var L;return(L=n.value)===null||L===void 0?void 0:L.targetRef}function oe(L){g=L}return ni("NPopover",{getTriggerElement:Ee,handleKeydown:z,handleMouseEnter:P,handleMouseLeave:D,handleClickOutside:U,handleMouseMoveOutside:k,setBodyInstance:oe,positionManuallyRef:S,isMountedRef:e,zIndexRef:yt(t,"zIndex"),extraClassRef:yt(t,"internalExtraClass"),internalRenderBodyRef:yt(t,"internalRenderBody")}),si(()=>{s.value&&c()&&C(!1)}),{binderInstRef:n,positionManually:S,mergedShowConsideringDisabledProp:l,uncontrolledShow:o,mergedShowArrow:p,getMergedShow:d,setShow:K,handleClick:W,handleMouseEnter:P,handleMouseLeave:D,handleFocus:y,handleBlur:x,syncPosition:h}},render(){var t;const{positionManually:e,$slots:n}=this;let i,o=!1;if(!e&&(n.activator?i=$f(n,"activator"):i=$f(n,"trigger"),i)){i=Ya(i),i=i.type===Vm?j("span",[i]):i;const s={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((t=i.type)===null||t===void 0)&&t.__popover__)o=!0,i.props||(i.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),i.props.internalSyncTargetWithParent=!0,i.props.internalInheritedEventHandlers?i.props.internalInheritedEventHandlers=[s,...i.props.internalInheritedEventHandlers]:i.props.internalInheritedEventHandlers=[s];else{const{internalInheritedEventHandlers:l}=this,c=[s,...l],d={onBlur:_=>{c.forEach(p=>{p.onBlur(_)})},onFocus:_=>{c.forEach(p=>{p.onFocus(_)})},onClick:_=>{c.forEach(p=>{p.onClick(_)})},onMouseenter:_=>{c.forEach(p=>{p.onMouseenter(_)})},onMouseleave:_=>{c.forEach(p=>{p.onMouseleave(_)})}};zY(i,l?"nested":e?"manual":this.trigger,d)}}return j(zP,{ref:"binderInstRef",syncTarget:!o,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const s=this.getMergedShow();return[this.internalTrapFocus&&s?Pn(j("div",{style:{position:"fixed",inset:0}}),[[Jm,{enabled:s,zIndex:this.zIndex}]]):null,e?null:j(VP,null,{default:()=>i}),j(qY,oP(this.$props,$Y,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:s})),{default:()=>{var l,c;return(c=(l=this.$slots).default)===null||c===void 0?void 0:c.call(l)},header:()=>{var l,c;return(c=(l=this.$slots).header)===null||c===void 0?void 0:c.call(l)},footer:()=>{var l,c;return(c=(l=this.$slots).footer)===null||c===void 0?void 0:c.call(l)}})]}})}}),KY=wP&&"loading"in document.createElement("img"),QY=(t={})=>{var e;const{root:n=null}=t;return{hash:`${t.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(t.threshold)?t.threshold.join(","):(e=t.threshold)!==null&&e!==void 0?e:"0"}`,options:Object.assign(Object.assign({},t),{root:(typeof n=="string"?document.querySelector(n):n)||document.documentElement})}},Cu=new WeakMap,Ru=new WeakMap,Nu=new WeakMap,XY=(t,e,n)=>{if(!t)return()=>{};const i=QY(e),{root:o}=i.options;let s;const l=Cu.get(o);l?s=l:(s=new Map,Cu.set(o,s));let c,d;s.has(i.hash)?(d=s.get(i.hash),d[1].has(t)||(c=d[0],d[1].add(t),c.observe(t))):(c=new IntersectionObserver(g=>{g.forEach(E=>{if(E.isIntersecting){const f=Ru.get(E.target),S=Nu.get(E.target);f&&f(),S&&(S.value=!0)}})},i.options),c.observe(t),d=[c,new Set([t])],s.set(i.hash,d));let _=!1;const p=()=>{_||(Ru.delete(t),Nu.delete(t),_=!0,d[1].has(t)&&(d[0].unobserve(t),d[1].delete(t)),d[1].size<=0&&s.delete(i.hash),s.size||Cu.delete(o))};return Ru.set(t,p),Nu.set(t,n),p},ZY={padding:"8px 14px"},JY=t=>{const{borderRadius:e,boxShadow2:n,baseColor:i}=t;return Object.assign(Object.assign({},ZY),{borderRadius:e,boxShadow:n,color:PC(i,"rgba(0, 0, 0, .85)"),textColor:i})},jY={name:"Tooltip",common:ao,peers:{Popover:ZR},self:JY},pg=jY,eq={name:"Ellipsis",common:ao,peers:{Tooltip:pg}},tq=eq,nq=Object.assign(Object.assign({},jR),fn.props),eN=be({name:"Tooltip",props:nq,__popover__:!0,setup(t){const{mergedClsPrefixRef:e}=pi(t),n=fn("Tooltip","-tooltip",void 0,pg,t,e),i=ee(null);return Object.assign(Object.assign({},{syncPosition(){i.value.syncPosition()},setShow(s){i.value.setShow(s)}}),{popoverRef:i,mergedTheme:n,popoverThemeOverrides:le(()=>n.value.self)})},render(){const{mergedTheme:t,internalExtraClass:e}=this;return j(WY,Object.assign(Object.assign({},this.$props),{theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:e.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),rq=St("ellipsis",{overflow:"hidden"},[$a("line-clamp",` - white-space: nowrap; - display: inline-block; - vertical-align: bottom; - max-width: 100%; - `),_r("line-clamp",` - display: -webkit-inline-box; - -webkit-box-orient: vertical; - `),_r("cursor-pointer",` - cursor: pointer; - `)]);function KS(t){return`${t}-ellipsis--line-clamp`}function QS(t,e){return`${t}-ellipsis--cursor-${e}`}const iq=Object.assign(Object.assign({},fn.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),aq=be({name:"Ellipsis",inheritAttrs:!1,props:iq,setup(t,{slots:e,attrs:n}){const{mergedClsPrefixRef:i}=pi(t),o=fn("Ellipsis","-ellipsis",rq,tq,t,i),s=ee(null),l=ee(null),c=ee(null),d=ee(!1),_=le(()=>{const{lineClamp:h}=t,{value:T}=d;return h!==void 0?{textOverflow:"","-webkit-line-clamp":T?"":h}:{textOverflow:T?"":"ellipsis","-webkit-line-clamp":""}});function p(){let h=!1;const{value:T}=d;if(T)return!0;const{value:N}=s;if(N){const{lineClamp:y}=t;if(f(N),y!==void 0)h=N.scrollHeight<=N.offsetHeight;else{const{value:x}=l;x&&(h=x.getBoundingClientRect().width<=N.getBoundingClientRect().width)}S(N,h)}return h}const g=le(()=>t.expandTrigger==="click"?()=>{var h;const{value:T}=d;T&&((h=c.value)===null||h===void 0||h.setShow(!1)),d.value=!T}:void 0);OC(()=>{var h;t.tooltip&&((h=c.value)===null||h===void 0||h.setShow(!1))});const E=()=>j("span",Object.assign({},zm(n,{class:[`${i.value}-ellipsis`,t.lineClamp!==void 0?KS(i.value):void 0,t.expandTrigger==="click"?QS(i.value,"pointer"):void 0],style:_.value}),{ref:"triggerRef",onClick:g.value,onMouseenter:t.expandTrigger==="click"?p:void 0}),t.lineClamp?e:j("span",{ref:"triggerInnerRef"},e));function f(h){if(!h)return;const T=_.value,N=KS(i.value);t.lineClamp!==void 0?C(h,N,"add"):C(h,N,"remove");for(const y in T)h.style[y]!==T[y]&&(h.style[y]=T[y])}function S(h,T){const N=QS(i.value,"pointer");t.expandTrigger==="click"&&!T?C(h,N,"add"):C(h,N,"remove")}function C(h,T,N){N==="add"?h.classList.contains(T)||h.classList.add(T):h.classList.contains(T)&&h.classList.remove(T)}return{mergedTheme:o,triggerRef:s,triggerInnerRef:l,tooltipRef:c,handleClick:g,renderTrigger:E,getTooltipDisabled:p}},render(){var t;const{tooltip:e,renderTrigger:n,$slots:i}=this;if(e){const{mergedTheme:o}=this;return j(eN,Object.assign({ref:"tooltipRef",placement:"top"},e,{getDisabled:this.getTooltipDisabled,theme:o.peers.Tooltip,themeOverrides:o.peerOverrides.Tooltip}),{trigger:n,default:(t=i.tooltip)!==null&&t!==void 0?t:i.default})}else return n()}}),mg=Object.assign(Object.assign({},fn.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),tN="n-image";function oq(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const sq={name:"Image",common:ao,peers:{Tooltip:pg},self:oq},lq=j("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"})),cq=j("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"})),uq=j("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"})),dq=je([je("body >",[St("image-container","position: fixed;")]),St("image-preview-container",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - `),St("image-preview-overlay",` - z-index: -1; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - background: rgba(0, 0, 0, .3); - `,[Pm()]),St("image-preview-toolbar",` - z-index: 1; - position: absolute; - left: 50%; - transform: translateX(-50%); - border-radius: var(--n-toolbar-border-radius); - height: 48px; - bottom: 40px; - padding: 0 12px; - background: var(--n-toolbar-color); - box-shadow: var(--n-toolbar-box-shadow); - color: var(--n-toolbar-icon-color); - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - `,[St("base-icon",` - padding: 0 8px; - font-size: 28px; - cursor: pointer; - `),Pm()]),St("image-preview-wrapper",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - pointer-events: none; - `,[kY()]),St("image-preview",` - user-select: none; - -webkit-user-select: none; - pointer-events: all; - margin: auto; - max-height: calc(100vh - 32px); - max-width: calc(100vw - 32px); - transition: transform .3s var(--n-bezier); - `),St("image",` - display: inline-flex; - max-height: 100%; - max-width: 100%; - `,[$a("preview-disabled",` - cursor: pointer; - `),je("img",` - border-radius: inherit; - `)])]),Os=32,nN=be({name:"ImagePreview",props:Object.assign(Object.assign({},mg),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(t){const e=fn("Image","-image",dq,sq,t,yt(t,"clsPrefix"));let n=null;const i=ee(null),o=ee(null),s=ee(void 0),l=ee(!1),c=ee(!1),{localeRef:d}=fY("Image");function _(){const{value:te}=o;if(!n||!te)return;const{style:pe}=te,ie=n.getBoundingClientRect(),Pe=ie.left+ie.width/2,we=ie.top+ie.height/2;pe.transformOrigin=`${Pe}px ${we}px`}function p(te){var pe,ie;switch(te.key){case" ":te.preventDefault();break;case"ArrowLeft":(pe=t.onPrev)===null||pe===void 0||pe.call(t);break;case"ArrowRight":(ie=t.onNext)===null||ie===void 0||ie.call(t);break;case"Escape":Ce();break}}Zt(l,te=>{te?Ht("keydown",document,p):Rt("keydown",document,p)}),Kn(()=>{Rt("keydown",document,p)});let g=0,E=0,f=0,S=0,C=0,h=0,T=0,N=0,y=!1;function x(te){const{clientX:pe,clientY:ie}=te;f=pe-g,S=ie-E,LC($e)}function P(te){const{mouseUpClientX:pe,mouseUpClientY:ie,mouseDownClientX:Pe,mouseDownClientY:we}=te,Xe=Pe-pe,pt=we-ie,me=`vertical${pt>0?"Top":"Bottom"}`,bt=`horizontal${Xe>0?"Left":"Right"}`;return{moveVerticalDirection:me,moveHorizontalDirection:bt,deltaHorizontal:Xe,deltaVertical:pt}}function D(te){const{value:pe}=i;if(!pe)return{offsetX:0,offsetY:0};const ie=pe.getBoundingClientRect(),{moveVerticalDirection:Pe,moveHorizontalDirection:we,deltaHorizontal:Xe,deltaVertical:pt}=te||{};let me=0,bt=0;return ie.width<=window.innerWidth?me=0:ie.left>0?me=(ie.width-window.innerWidth)/2:ie.right0?bt=(ie.height-window.innerHeight)/2:ie.bottom.5){const te=oe;Ee-=1,oe=Math.max(.5,Math.pow(K,Ee));const pe=te-oe;$e(!1);const ie=D();oe+=pe,$e(!1),oe-=pe,f=ie.offsetX,S=ie.offsetY,$e()}}function $e(te=!0){var pe;const{value:ie}=i;if(!ie)return;const{style:Pe}=ie,we=Bt((pe=U==null?void 0:U.previewedImgPropsRef.value)===null||pe===void 0?void 0:pe.style);let Xe="";if(typeof we=="string")Xe=we+";";else for(const me in we)Xe+=`${vG(me)}: ${we[me]};`;const pt=`transform-origin: center; transform: translateX(${f}px) translateY(${S}px) rotate(${L}deg) scale(${oe});`;y?Pe.cssText=Xe+"cursor: grabbing; transition: none;"+pt:Pe.cssText=Xe+"cursor: grab;"+pt+(te?"":"transition: none;"),te||ie.offsetHeight}function Ce(){l.value=!l.value,c.value=!0}function Be(){oe=he(),Ee=Math.ceil(Math.log(oe)/Math.log(K)),f=0,S=0,$e()}const Ve={setPreviewSrc:te=>{s.value=te},setThumbnailEl:te=>{n=te},toggleShow:Ce};function xe(te,pe){if(t.showToolbarTooltip){const{value:ie}=e;return j(eN,{to:!1,theme:ie.peers.Tooltip,themeOverrides:ie.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>d.value[pe],trigger:()=>te})}else return te}const He=le(()=>{const{common:{cubicBezierEaseInOut:te},self:{toolbarIconColor:pe,toolbarBorderRadius:ie,toolbarBoxShadow:Pe,toolbarColor:we}}=e.value;return{"--n-bezier":te,"--n-toolbar-icon-color":pe,"--n-toolbar-color":we,"--n-toolbar-border-radius":ie,"--n-toolbar-box-shadow":Pe}}),{inlineThemeDisabled:rt}=pi(),We=rt?_g("image-preview",void 0,He,t):void 0;return Object.assign({previewRef:i,previewWrapperRef:o,previewSrc:s,show:l,appear:Zm(),displayed:c,previewedImgProps:U==null?void 0:U.previewedImgPropsRef,handleWheel(te){te.preventDefault()},handlePreviewMousedown:W,handlePreviewDblclick:z,syncTransformOrigin:_,handleAfterLeave:()=>{J(),L=0,c.value=!1},handleDragStart:te=>{var pe,ie;(ie=(pe=U==null?void 0:U.previewedImgPropsRef.value)===null||pe===void 0?void 0:pe.onDragstart)===null||ie===void 0||ie.call(pe,te),te.preventDefault()},zoomIn:tt,zoomOut:lt,rotateCounterclockwise:X,rotateClockwise:_e,handleSwitchPrev:re,handleSwitchNext:G,withTooltip:xe,resizeToOrignalImageSize:Be,cssVars:rt?void 0:He,themeClass:We==null?void 0:We.themeClass,onRender:We==null?void 0:We.onRender},Ve)},render(){var t,e;const{clsPrefix:n}=this;return j(st,null,(e=(t=this.$slots).default)===null||e===void 0?void 0:e.call(t),j(ZC,{show:this.show},{default:()=>{var i;return this.show||this.displayed?((i=this.onRender)===null||i===void 0||i.call(this),Pn(j("div",{class:[`${n}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},j(Hi,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?j("div",{class:`${n}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?j(Hi,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:o}=this;return j("div",{class:`${n}-image-preview-toolbar`},this.onPrev?j(st,null,o(j(Or,{clsPrefix:n,onClick:this.handleSwitchPrev},{default:()=>lq}),"tipPrevious"),o(j(Or,{clsPrefix:n,onClick:this.handleSwitchNext},{default:()=>cq}),"tipNext")):null,o(j(Or,{clsPrefix:n,onClick:this.rotateCounterclockwise},{default:()=>j(TY,null)}),"tipCounterclockwise"),o(j(Or,{clsPrefix:n,onClick:this.rotateClockwise},{default:()=>j(hY,null)}),"tipClockwise"),o(j(Or,{clsPrefix:n,onClick:this.resizeToOrignalImageSize},{default:()=>j(RY,null)}),"tipOriginalSize"),o(j(Or,{clsPrefix:n,onClick:this.zoomOut},{default:()=>j(CY,null)}),"tipZoomOut"),o(j(Or,{clsPrefix:n,onClick:this.zoomIn},{default:()=>j(vY,null)}),"tipZoomIn"),o(j(Or,{clsPrefix:n,onClick:this.toggleShow},{default:()=>uq}),"tipClose"))}}):null,j(Hi,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:o={}}=this;return Pn(j("div",{class:`${n}-image-preview-wrapper`,ref:"previewWrapperRef"},j("img",Object.assign({},o,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${n}-image-preview`,o.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[Qs,this.show]])}})),[[Jm,{enabled:this.show}]])):null}}))}}),rN="n-image-group",_q=mg,pq=be({name:"ImageGroup",props:_q,setup(t){let e;const{mergedClsPrefixRef:n}=pi(t),i=`c${kC()}`,o=$m(),s=d=>{var _;e=d,(_=c.value)===null||_===void 0||_.setPreviewSrc(d)};function l(d){if(!(o!=null&&o.proxy))return;const p=o.proxy.$el.parentElement.querySelectorAll(`[data-group-id=${i}]:not([data-error=true])`);if(!p.length)return;const g=Array.from(p).findIndex(E=>E.dataset.previewSrc===e);~g?s(p[(g+d+p.length)%p.length].dataset.previewSrc):s(p[0].dataset.previewSrc)}ni(rN,{mergedClsPrefixRef:n,setPreviewSrc:s,setThumbnailEl:d=>{var _;(_=c.value)===null||_===void 0||_.setThumbnailEl(d)},toggleShow:()=>{var d;(d=c.value)===null||d===void 0||d.toggleShow()},groupId:i});const c=ee(null);return{mergedClsPrefix:n,previewInstRef:c,next:()=>{l(1)},prev:()=>{l(-1)}}},render(){return j(nN,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:this.mergedClsPrefix,ref:"previewInstRef",onPrev:this.prev,onNext:this.next,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},this.$slots)}}),mq=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},mg),gq=be({name:"Image",props:mq,inheritAttrs:!1,setup(t){const e=ee(null),n=ee(!1),i=ee(null),o=Ft(rN,null),{mergedClsPrefixRef:s}=o||pi(t),l={click:()=>{if(t.previewDisabled||n.value)return;const _=t.previewSrc||t.src;if(o){o.setPreviewSrc(_),o.setThumbnailEl(e.value),o.toggleShow();return}const{value:p}=i;p&&(p.setPreviewSrc(_),p.setThumbnailEl(e.value),p.toggleShow())}},c=ee(!t.lazy);kn(()=>{var _;(_=e.value)===null||_===void 0||_.setAttribute("data-group-id",(o==null?void 0:o.groupId)||"")}),kn(()=>{if(t.lazy&&t.intersectionObserverOptions){let _;const p=si(()=>{_==null||_(),_=void 0,_=XY(e.value,t.intersectionObserverOptions,c)});Kn(()=>{p(),_==null||_()})}}),si(()=>{var _;t.src,(_=t.imgProps)===null||_===void 0||_.src,n.value=!1});const d=ee(!1);return ni(tN,{previewedImgPropsRef:yt(t,"previewedImgProps")}),Object.assign({mergedClsPrefix:s,groupId:o==null?void 0:o.groupId,previewInstRef:i,imageRef:e,showError:n,shouldStartLoading:c,loaded:d,mergedOnClick:_=>{var p,g;l.click(),(g=(p=t.imgProps)===null||p===void 0?void 0:p.onClick)===null||g===void 0||g.call(p,_)},mergedOnError:_=>{if(!c.value)return;n.value=!0;const{onError:p,imgProps:{onError:g}={}}=t;p==null||p(_),g==null||g(_)},mergedOnLoad:_=>{const{onLoad:p,imgProps:{onLoad:g}={}}=t;p==null||p(_),g==null||g(_),d.value=!0}},l)},render(){var t,e;const{mergedClsPrefix:n,imgProps:i={},loaded:o,$attrs:s,lazy:l}=this,c=(e=(t=this.$slots).placeholder)===null||e===void 0?void 0:e.call(t),d=this.src||i.src,_=j("img",Object.assign(Object.assign({},i),{ref:"imageRef",width:this.width||i.width,height:this.height||i.height,src:this.showError?this.fallbackSrc:l&&this.intersectionObserverOptions?this.shouldStartLoading?d:void 0:d,alt:this.alt||i.alt,"aria-label":this.alt||i.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:KY&&l&&!this.intersectionObserverOptions?"lazy":"eager",style:[i.style||"",c&&!o?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return j("div",Object.assign({},s,{role:"none",class:[s.class,`${n}-image`,(this.previewDisabled||this.showError)&&`${n}-image--preview-disabled`]}),this.groupId?_:j(nN,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:n,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>_}),!o&&c)}}),Eq=Object.assign(Object.assign({},fn.props),{trigger:String,xScrollable:Boolean,onScroll:Function,size:Number}),fq=be({name:"Scrollbar",props:Eq,setup(){const t=ee(null);return Object.assign(Object.assign({},{scrollTo:(...n)=>{var i;(i=t.value)===null||i===void 0||i.scrollTo(n[0],n[1])},scrollBy:(...n)=>{var i;(i=t.value)===null||i===void 0||i.scrollBy(n[0],n[1])}}),{scrollbarInstRef:t})},render(){return j(LY,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),iN=fq,Xn=t=>(Zi("data-v-01535cfb"),t=t(),Ji(),t),Sq={class:"heroWrapper"},bq=Xn(()=>B("h1",null,[vt("MetaGPT: Meta Programming for"),B("br"),vt("Multi-Agent Collaborative Framework.")],-1)),hq={class:"contributors"},Tq={class:"contributor"},vq={class:"affiliationIndex"},Cq={key:0},Rq={class:"affiliations"},Nq={class:"affiliationIndex"},Oq={key:0},Aq={class:"links"},yq=["onClick"],Iq={class:"linkIcon"},Dq={class:"linkName"},xq={class:"bigTex"},wq=Xn(()=>B("div",{class:"header"},"Citation",-1)),Mq={class:"copyBtn"},Lq={class:"bigTexContent"},Pq=Xn(()=>B("br",null,null,-1)),kq=Xn(()=>B("br",null,null,-1)),Uq=Xn(()=>B("br",null,null,-1)),Fq=Xn(()=>B("br",null,null,-1)),Bq=Xn(()=>B("br",null,null,-1)),Gq=Xn(()=>B("br",null,null,-1)),Yq=Xn(()=>B("br",null,null,-1)),qq=Xn(()=>B("img",{style:{"margin-left":"-1px",position:"absolute"},src:pM,alt:""},null,-1)),$q={class:"galance"},Hq={key:0,style:{width:"100%","border-radius":"20px"},src:mM,alt:""},Ui="      ",zq=be({__name:"heroPage",setup(t){const e=[{name:"Sirui Hong",affiliation:"1, "},{name:"Xiawu Zheng",affiliation:"2, "},{name:"Jonathan Chen",affiliation:"1, "},{name:"Yuheng Cheng",affiliation:"3, "},{name:"Jinlin Wang",affiliation:"1, "},{name:"Ceyao Zhang",affiliation:"3, "},{name:"Zili Wang",affiliation:"1, "},{name:"Steven Ka Shing Yau",affiliation:"4, "},{name:"Zijuan Lin",affiliation:"2, "},{name:"Liyang Zhou",affiliation:"5, "},{name:"Chenyu Ran",affiliation:"1, "},{name:"Lingfeng Xiao",affiliation:"1, "},{name:"Chenglin Wu",affiliation:"1*."}],n=["1DeepWisdom, ","2Xiamen University, ","3The Chinese University of Hong Kong,Shenzhen, ","4Nanjing University, ","5University of Pennsylvania, ","6University of California, Berkeley."],i=ee(!1),o=E=>{window.open(E,"_blank")},s=E=>ue(ea,{style:"vertical-align:middle",size:26,iconId:E},null),l=[{name:"Paper",icon:s("icon-paper1"),action:()=>{o("https://arxiv.org/abs/2308.00352")}},{name:"Code",icon:s("icon-github-fill"),action:()=>{o("https://github.com/geekan/MetaGPT")}},{name:"Discord",icon:s("icon-Discord"),action:()=>{o("https://discord.gg/ZRHeExS6xv")}},{name:"Twitter",icon:s("icon-twitter2"),action:()=>{o("https://twitter.com/DeepWisdom2019")}},{name:"AgentStore(Waitlist)",icon:ue(QL,null,null),action:()=>{o("https://airtable.com/appInfdG0eJ9J4NNL/shrEd9DrwVE3jX6oz")}}],c=ee(),d=()=>{var E;(E=c.value)==null||E.play()};kn(()=>{d()});const _=ee(!1),p=E=>{_.value=!0},g=()=>{yC.success("Copy Success"),Wm(`@misc{hong2023metagpt, - title={MetaGPT: Meta Programming for Multi-Agent Collaborative Framework}, - author={Sirui Hong and Xiawu Zheng and Jonathan Chen and Yuheng Cheng and Jinlin Wang and Ceyao Zhang and Zili Wang and Steven KaShing Yau and Zijuan Lin and Liyang Zhou and Chenyu Ran and Lingfeng Xiao and Chenglin Wu}, - year={2023}, - eprint={2308.00352}, - archivePrefix={arXiv}, - primaryClass={cs.AI} -}`)};return(E,f)=>(V(),ae(st,null,[B("div",Sq,[bq,B("span",hq,[(V(),ae(st,null,yn(e,(S,C)=>B("span",{key:C},[B("span",Tq,Qe(S.name),1),B("span",vq,Qe(S.affiliation),1),C===5?(V(),ae("br",Cq)):Ge("",!0)])),64))]),B("span",Rq,[(V(),ae(st,null,yn(n,(S,C)=>B("span",{key:C},[B("span",Nq,Qe(S),1),C===2?(V(),ae("br",Oq)):Ge("",!0)])),64))]),B("div",Aq,[(V(),ae(st,null,yn(l,(S,C)=>B("div",{key:C,class:It({link:!0,enabled:S.action}),onClick:S.action},[B("span",Iq,[(V(),ot(ji(S.icon)))]),B("span",Dq,Qe(S.name),1)],10,yq)),64))]),B("div",xq,[wq,B("div",Mq,[ue(q(IC),{onClick:g})]),B("div",Lq,[ue(q(iN),{style:{"max-height":"100%"}},{default:dt(()=>[vt(" @misc{hong2023metagpt,"),Pq,B("span",{innerHTML:Ui}),vt("title={MetaGPT: Meta Programming for Multi-Agent Collaborative Framework},"),kq,B("span",{innerHTML:Ui}),vt("author={Sirui Hong and Xiawu Zheng and Jonathan Chen and Yuheng Cheng and Jinlin Wang and Ceyao Zhang and Zili Wang and Steven KaShing Yau and Zijuan Lin and Liyang Zhou and Chenyu Ran and Lingfeng Xiao and Chenglin Wu}, "),Uq,B("span",{innerHTML:Ui}),vt("year={2023},"),Fq,B("span",{innerHTML:Ui}),vt("eprint={2308.00352},"),Bq,B("span",{innerHTML:Ui}),vt("archivePrefix={arXiv},"),Gq,B("span",{innerHTML:Ui}),vt("primaryClass={cs.AI}"),Yq,vt(" } ")]),_:1})]),qq]),B("div",$q,[q(_)?Ge("",!0):(V(),ae("img",Hq)),Pn(B("video",{ref_key:"videoRef",ref:c,muted:"",src:gM,style:{width:"100%","border-radius":"20px"},autoplay:!0,playsinline:!0,loop:!0,"x-webkit-airplay":"deny",onloadeddata:p},null,512),[[Qs,q(_)]])])]),ue(HL,{visible:q(i),"onUpdate:visible":f[0]||(f[0]=S=>wr(i)?i.value=S:null)},null,8,["visible"])],64))}});const Vq=Dt(zq,[["__scopeId","data-v-01535cfb"]]),Wq="/static/assets/sparkles-50d190d6.svg",aN="/static/assets/role0-73c01153.png",oN="/static/assets/role1-8fd25a72.png",sN="/static/assets/role2-d49c6a81.png",lN="/static/assets/role3-d2c54a2d.png",Kq="/static/assets/role4-a6ccbb5f.png",Qq="/static/assets/role5-16fddacc.png",Xq="/static/assets/role6-c9a82246.png",Zq="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADEAAAAxCAYAAABznEEcAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA3bSURBVHgB7VkJdJXlmX6+f7/7zXKTsCdkgChCpcKgJgwgglNcwAVcqhaKA2gRONZljl3mOp4RcCnVEWdadXCsBTFQFbEMYtkElMqASFUEKiEhCQlZ7n7/+29f33uVNrUBEog9PT2+Of+5ud//v9/3P9/3vs+7XOBr+Vr+dqRm69Vl/MiMYHd0xi3fGxyz/rPh6CERcA6y+blLfxpA7DMuGweTNXNHdFWvFeJbcU/Jvqn70y+iB+SsQbwybZrIDPtuwVLADDWkCYlru6jKMo5vlGZqaDPVCvSAnDWI6dXVtpWQd7TV20h81ox0bfr3XdG7fMnGCocrgANkMmhED4iEc5BkpGJak5UeE0/4Twy/67+2dkUnJrgHMkEGoz/HdBrQA3JOIKY88lwTfazujk6Ga4OzIHKLZ4w96AE5axBHLgwHJUEd7w369uRtmne0q3oOwwRZVGDT/6qoHfzy/R3Df3B9hVJ0Q35e3ga28fYXujJnl0BMIyeuJh84+f2Nixb0b4/z/x/iKSh0Cf7axLTlo73VM4931BkXXq6l+lbcyCXPQJnxJsVJ/Tr067q6faJruEeRYdtOqm7Hi7s66rx6wX3lrpR7tUsMANx9U+rKXxx0v3nbzjO932lBbK5YWFrCCreX1hb2eXnilQ+IG2c8mh1X4solmukqZE6WmcT+clSdT8MP/hHAovWlLXmhTVwJlbnJdCzLQMYWdGNs/3Wc+fpJkkRj5paa8Ey943pBx+NTTBecNJlblNZRRT+6IKdlJwfa9zXT20c0VfCM8+8nx926+JbuGKmUroPrFmRbXMDHLf9jwGsT3P8NV1GZh3kRb7ORbjahNxtaU0q9QXYFYEkMqiNWf3m98R+HPzAhP94a12ua26PLpO23/B/OGYSjfUo0iGgkg7a2RO3J8TG1i9t1QX8ibiZgZgwwnbvTEpuZvTct/EqJJXmuKNTcaM+ka9xNzdex43VrYu0xcCUAl+oGd1CTV3NkZWdrjjh6930D6meVFR+eNQ9dlNOCmHgw/HRcYrcft/X7a2BO6HivVW77WdxJWLpBp2HY0DPmDdnxeEIocmwBKduET0zW7vmPi14V/OwOJeCD5smHI4pwpfXl6+cPyqCHhOEc5P3y+7f3E/pW5nkDiMjp9KGSaPGSkqB9tM8F9anikiBTOHgytRYGqxJdoXyfKwTmYijxxya8MTm4CT0k5xQnuGRsNy290ra9tBuCyxcXzn9j7Zxd/3TfhiWWFF9keHxgQuAaRXHDiwBMgyMQdKAzFHRl/o9GPVqiymahZoliO4sdH7brkSb0NAhDMA5Zjk6+Y0NkDHIGZTS8a9tjVyy+7N6tWiyJhYaSF1AkDp23RtIeFvSJRVlfi3c2316KPSqX5/gtbaIqKFWaoaiSJebmLiY9c/TzHG5pp6SJN7H1tx47qdet3GnPmu8NaFw/o/SdZ+7My35nolXHYSHLYxItJNl/osRNj48Nl0UO9tUSkYEFLbW9nejv16mSAIszeCy9peO8y0tnaB8MfeiBvIzvSC87tLhAKpzgF/JUhdNJWkQERLs8o1Hm6GaS4a2E7ZrVUb9LJ/Hu8qmlpX3cv/BpJ6pES8eQ3sBnL1//fupDo5GtdGgnOAQmQmGi01Gv+pnpCfrIXrj0nh2H00kH6TajZu3M4O6Tz2yuCJfmc2F1sV14kU/xQOASMR6gGw4yjgWLcYNxJoicSdmMy5u2uJlJ7O02CAo6zxb60lVW+zEKRGkYERuxCB/FWvrQCfSHIAh0Mbgcoe5Uc+z8SeVDVz5w4L1kRt31JwD/Whqy5G0lcqifS3aBCA3thhnJcP5ku2a8vW56485wOHxyY9juiuUXwEk2jtw9p6VbILIpB3fSVWTIsNNRcIvRYg5FXA61SYVCEVkiAGBkrrOOzG1fesuBvMoVneZSby6p2NDxOzOth/ws0E+RVdp52hjbeRI2C5fXzIzkHgj/mTofeWDm/s7mPaNP3DZ58KhEytJ47j1tWKaFjGERJgeuukK4KJnLnoSt6tCLPpqqWmxHfMftd2V1xy3dHJz63M5/PNXcnIm/PaEn0ZbO8Dam31F26LsLy04C6IacEYSeSBTFYgzJRAqC6qFCxoJBu6Y0BuCNhKAqKhg5tVF+LFshIB2N9KGHlm2pXvCrFlM+XuMt23XN+sjPOpt7/OElyyIe9Rsf85biQZ/MfR5nKWc0J0nkY0xTxLGGJIb091NkboduEtG/Xw6X5IMsyjmK1QfV5PJsCm9IReN47/DAa8FVBG0NSUudTVPN6TjvuMc3VKTdRf98P1PPJ1IY803l23TagouJRKiMpUWBNUvMOSgJ5vuUEm7ZcFPZvrMGoafNwSqxRGOTiL5FNuRAHrQdGgLN/eByuXKnkPA0wxrcQJWaSBDMXB5Q4TkK8WgrWuQgWFTIVX2XL34lEBN7zUup/hsbZO8wSG7aJI3IQaZYIJNZCGSynycR5M0DMgIfpQvOt5OihYt/FT2kcOOXwv7fLdkSHq93C0S9HvxGuWOSL0g4UpPGeYP90FrL4Vb8kIj0DNNAfOxeEE5ydgs5KqH3GOypxaL+T+NwqhCXehouWLh4/RPH5NAdlpbnVyQvfMwNmU5KyEgQbFKgaoV1IGgufnFROQ6FUn4Ng1x+HvZVjQ7RyLwug5g9e7b8Uap8wCDtvZy9xyIyjh9Loe/cZghPDYTd4iAy5BBw/gkyKaoRbGIwcnhOz+qmiQKhAU1MwLzafyk47ul7j0cLwCd4KChS4KJNETICRJ1DNNGgWhRPbOc4RRzuODzIRdbbElnIyfYUtGyNRDW9mT115S/6VacFYfafOOpou4pPWQVGaB/QTEBTswSP1or8uz9A7D8Hwpp4kIbJL3g25CFbscGiY7FNGxuiF2MVroXtLUaB6s/tPE9zSOkUtIywyZPCKreT2bDiid6dUvKtC/iQeNK+SGfCdEdjU9IJRxf99tPdApHRrfNM24V1sWtwnnIQmpQEt0U0HONQBjbDF87ApKaLYQgg3yZzoihrmEhRjbEqOgm/0cZD9BbCQ7bvECg73Yqx2JrRjb4XPv3Q1QdwBnnpSfYpfWSvFbNn75YNrUB8YV6Z/uXnTkuxg131Iywyk5gdwEvtc7Jul7scW0JDjQC91UBebx/NQhRL5qPrGUTjJv63ZSI2K1VQPAGogggjE0dxZBdmxefjcusp9c5By2ahm/Lzn480Xwj/JYAzghiqfDTUzanoIQ/7JDMU66I3fgGEghtll01HODJNNooH5ENSyF7jSbwWGYnfaiOJeLyEje7rEVTFVuJOJ4xy11EoInlMOnJPw5vfHYkektOC4HZ68AT35mzhkKOKdbHrsDZ2c67xJdJ3bspoJSB6rY3SijKYfYZiuzyaCh+qLwQiWyOGq5Mv4lqpGh7yXJmmEWg8GktSQtf6ML5qEGuWPthLsDO9L3Ttxgj1wxwQ5oh4re1mrG2/FQL9n71AphWro1bm/gzGlPmxatLvUO6n2ttKYUp6FSbJGym34jl241RcO+T9BvmOns5ccfi1u/p1tvar4XGl+56t3JncOHlvbNt3KnG2ILZFB5TbFAOy4eum4C/RX8q2TQkIgVnTdhtWtnyPCn4tdyIi+Y3RwpHco6MPNQReHrkZTw36Da5ybckeZy7Psvnn9OvYdo7BTJOzkgC/rLO1g2JyUZFsXSKrgQs1t/wszhZEbSrvko+TFblawSsmsSD0GErE1hwIljWt+DV4sP6n1NkuISBSrg5w0uTsn9jI7DZQ6Y5i5LhJGDx8BDwB/xcvb9EJZZNHhmDQn00c8zpbO4/n1ypGb1jtRNctJ1I4g5ySYvWMNHCbMRbDtE/hEduQL0bwo6J/w0+aH0GdUZ5DX2f2xY/qH8Zt+WswwbuTzCsbdTns47T7J4gAQmnkD8hDaGQhTJsjHo0RHRsI+H3UuhGQTKW3d7a2UzPoSTNh5POk7RJL8n6IM8gpux2Xz1/7bmuq4OIBSgTfL15KkdaCQkHNtPNR3T4Lbycn5oBkL/IMVCp78Z3gCqqF6bTohXNVa7bxSRFbCFBULjEhFNJXF2mYUsRi7Aeeq55/Bj0g4qluDBs95dF2I+Rqt/ui3SzFKO1DqPS4m5x0tHsfgtBRYwyESVE4uxP1di+sT05Ci1GAXk4b/Ab1IdPZX1RkatvkgUUGAS3DtmYahz2SiH5zZv7Me87YY+2qdHoSK5cuLD3a6BxZ2ZKNSfQC3IPz1HrcF1qKkBQnG5RzftBqhvBK+3XYqlfmdiN7Ze2TupT4B6EeI6WD6KNZkSHu5Ao6geWhH07Zja9AOgexaMY4b/LI5g3RW7A9PiVbntMLaiiRWvFwaBF6K/SrG5kKWRiZDvlGugxvpL+F/XwUDYrwUT/YK/N33BpbXezGC/PDLIavUDoFUR2eOs5rtm4OSiJWNd+Ld1KTPt99ejr788gN7nWYrL2NAqeVEiwaMIixWACip3/kkDz62UZXv9cnPzxgB/5K0ik7UVYakchcFApkcwueQS9Rx+vx60E9sJwjv568CttTl+ESYTeqxE9Q5uXvuj2F/6MphatHhKu6XSOfq5ySnbbce/32AsmodFPFpdL+H01UYFn8LrQ5RaB2KqhVF/WIfFWRV3jxx4+xv9qudyanBPHO7bP7B13GW34pMUSlklHKUGQmTjogX7H1TfFbq3we9aUHHmVx/A3IabvinHN2bOaPb1ac5GDF3adNC/R7zbVkei2+lq/l71f+AAyU/NPXrcSqAAAAAElFTkSuQmCC",Jq="/static/assets/kanban-d6729062.png",jq="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAYAAACoYAD2AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAesSURBVHgB7Zd7bF5lHce/z3Oec30vXbt1WdeFGNGk6jRKdGNRo5QlkhiniyFK0DFh6lCSCgvgYCGVBZjiNrYiI+yiBoMsAecfxgRmKIpT6gbxH0kFlewC7Nr37Xs594vf844lNKlr37qykOzbnPa9nD7nc77P73aAS3qP6MgtQwvxf0pgljS8evB9zpj35FzfWNrd3fWCNq94bXHbt09gBpoVyJH1989N/lUdcc5ElxeaEp3SQamnPBotcK4qPvL942hTErOhk421hhdfrqIMSFKETRfJkUpf4Wj1ucb3frIAbWpWIEWSLteyFCLL8tdI0wS+5yF5q/Yh54g33C7orECmcXhMyJS0Z48MCX9iBFEIUQ36CsfctkBnBTLM0kdjmSBThOORCh50Naa7cRozBLK+wskcdHBaoLMCeVhUu99snozDgFssQiQy9zGlm0CcED6lw6bRVxiXw9k0QC845BM3rLlOO1X/ZaNRV0crbyKsNBGlEaJ8wxmfSZwhbYaAG7ZA4U4NekFL0K+/ceMKOVbfp8Z8CT9GHMRwmsBlSSccx4ElLRR0E7ajw7AlZFkH5lq0KhltWmB5Gjw+q5BPXHfTV/Tx+tN6xZeal0KGGbIkQ16FLDfDosCBXSjBVg4c04BjCeg6s98RLdCsIEZdx5gUdNqQh76zqUO68XI9lVcapnI1U/zxA4/e/lz+3d58i0/XfmVUAqncFBp3spXc0Jg8GkJF1yoBFjUUHS3DNghqaLD0FLoWQRq8k04D2XxnVCya83lx/90n2oY8sPreT1nV6Ld2PVtoJxpMU0EWefGSOPhK9saO5qkTu8wc0MugWoCSeBJC6RB0LVUKPmtldryGXlfCtjtg6xYcOmmqiKAxNFYBkW//+7tewYc/vkTcvqp57vraVIAjawf79Ur4rFVLuiyXse4LWBHgMAGcMO0tjcdfboydEJqfQY/oHQEVl1XKgG5aULoOTWrQMomIjtZCD2YQ8Mp0ueUR4fPcz0tTzM8Drzs1vPGNf/vLgXMMaipIxtdu3YsdRQDJdUSU8G8GLZLQQ4GFmgXb68GrwRtIJc8RdJEOaqYJoRsQfJ+m3E7emJVI1AsWjqQNLIzHEckiIq5pEVLpMTsUYyRnrVQb72Q4L+Sf7/hxCW/VuvLWJmLBFscPU4EsX4zOSLoqVIa5RhmLGwn+rc4gsVQLULYA6VYOyCSSYQrFRDIzgfGCicNxiB4rYxFIYXE9I/fVVgjmd/7d+WDvnglGnQ9yz4E/hKs/9llHi9PPaT4vQjcU+TR2D00w/lhlhc5fOuNUKHQEEp7FzDYMSG6x4A2BcFnILY2TVg9P+X+hLlDrKVSyuR2DwjT7fF12eGUrC7tLO6qXOas+sWnTBCenlTgHv3bHZnMsus2uADbdM/OyognYTCCNNY9vWtMOxl1OPDUcK7B4Sx0pHUwIGBMwJmDAruPR+fF5RsXrLi3/5m9+9nK+/vBN9y2uJtGxlb8YrE52/WmXoJGV67YUKtGtvH8mjSQXSwghjZIBlHmwpCBkQJ2pI6pVcSwLESSCXSZrdZrwbcDmPKtSX1j+wtf3bjs43WtPmd3ntGv0r89866NXdog4XpbXQRYhZjCThFstGIcoELRAVwt0l6YWGz4aoc+hAq2+HSgBr9upxd321V99augltKFpQ+ba+eoIQZeVEUbLNFYLXaoWqGRW53EJMz/UWVC+LLk+arEPj3GbA/o9pau+9NTQy2hTbUHmeuy1kWdXL17SgSBepgK2NmawRkiRTzZMitYMyXjN41Rjfy5pCU4XVaXR03H1F/c+1DZgrinr5GR68Yqu3/W+Vrv1I6M+JJ9htDzBmRiI8ipPQOPtlR2Tg04nrugyz4he5z+Yodp28qH161d4jWDvcU03IyHQUXHZChmfNFFLmDghAzbvKGGQj+jIO4rIki4oI/jRi396HjNQW/Pk0OBgvx+kj4ehKCfM8H/MKeP1+eYzZyIXjUaI2CVUPivW/FY5QoXlrtZsHZnnrcIMNW3IoY0b+4Mo28eeURbCZicxoBxr4JoXHr6m0omtp2MPNS9GFLBw56XI59Z7dLPp8Wgi9dxezFDTgtzxwAP97Nj7NWWXFedBgkJ3igP3/HzD9vz7pYd23lbpyracSjyMEzBg8U7yx4Q4b8QsQAyDKIqOYoaaEnLH1gf7U03br+tFqbQCL8iyY9kDGx67c/s7z1t6aPe6SqfccpJFvMou4xLOZ092mUdNzpR13fw9ZqjzQj6yefMKFpl9ul6SuuYg5uSTCXPNXdvWbZ/s/GUv7V43NsfacpwT7xi7TJ2fNQyFWrl8uFac8yBmqP/ZFncObe1Hpu2T0imLTMEdjzjupQM/2Pjd7VMtOvyZmzfZzeadBQ6yakFpTMwpfrLv8Z++jhlKTA441C+k3Kc0pyxZ9NwaAf104JZ7bpwS8JyeX3n3tSqLeg1Lf3rJk/fNOB4nhdyzY6g/y87GYA7o1xn0bjpw84ZV0wa80JoQk7uGtn6avWO/YZaZJDZCPrMkvriogLkmtEU+pTzMEiMVn4+DZoLQTdesvev63bjImgAZNbNqPqQaKuawKgbW/vDiA+aaAFkfw/VsEyssS/5z4N4bhnFJl/Tu679UWnoRYOoVMgAAAABJRU5ErkJggg==",e2="/static/assets/contributors-753a72cb.png",mi=t=>(Zi("data-v-d5d425dc"),t=t(),Ji(),t),t2={class:"wechatModal"},n2=mi(()=>B("div",{class:"title"},[B("img",{style:{width:"24px","margin-top":"-2px"},src:Zq,alt:""}),B("div",{class:"titleText"},"Welcome to be our contributor")],-1)),r2=mi(()=>B("div",{class:"desc"}," You can pick tasks from the roadmap. If you're concerned about development conflicts, you can create issues in advance to reserve tasks. You can also contribute in other roles within the MetaGPT software team. Come join us and build together! ",-1)),i2={class:"links"},a2={style:{width:"84px","text-align":"right"}},o2=["onClick"],s2=mi(()=>B("div",{class:"viwer"},[B("img",{style:{width:"100%"},src:Jq,alt:""})],-1)),l2={class:"button"},c2=mi(()=>B("img",{src:jq,style:{width:"20px"},alt:""},null,-1)),u2=mi(()=>B("div",{class:"welcomText"},"We are waiting for your join.",-1)),d2=mi(()=>B("div",{class:"contributor"},[B("span",null,"Contributors"),B("div",{class:"count"},"23")],-1)),_2=mi(()=>B("img",{style:{width:"244px"},src:e2,alt:""},null,-1)),p2=be({__name:"contributorModal",props:{visible:{type:Boolean}},emits:["update:visible"],setup(t,{emit:e}){const i=yt(t,"visible"),o=()=>{e("update:visible",!1)},s={ROADMAP:"https://github.com/geekan/MetaGPT/blob/main/docs/ROADMAP.md",TASKS:"https://github.com/users/geekan/projects/1/views/2"},l=c=>{window.open(c)};return(c,d)=>(V(),ot(wC,{visible:q(i),"onUpdate:visible":d[1]||(d[1]=_=>wr(i)?i.value=_:null),style:{width:"709px",height:"799px"},onClose:o},{default:dt(()=>[B("div",t2,[n2,r2,B("div",i2,[(V(),ae(st,null,yn(s,(_,p)=>B("span",{key:p,style:{display:"flex",gap:"20px"}},[B("div",a2,Qe(p)+":",1),B("div",{class:"link",onClick:g=>l(_)},Qe(_),9,o2)])),64))]),s2,B("div",l2,[c2,B("span",{onClick:d[0]||(d[0]=_=>l("https://github.com/users/geekan/projects/1/views/2"))},"Lock Task")]),u2,d2,_2])]),_:1},8,["visible"]))}});const m2=Dt(p2,[["__scopeId","data-v-d5d425dc"]]),km=t=>({...t,parent:null,children:[]}),XS=(t,e)=>{t.children.length||(t.children=[]),t.children.push(e),e.parent=t},g2=(t,e)=>{const n=new Map;n.set(e.id,e);const i=[];return e.children=i,t.forEach(o=>{n.set(o.id,o)}),t.forEach(o=>{const s=km(o);n.set(o.id,s)}),{messageMap:n,root:e}},cN=t=>{t.children.length&&(t.children=t.children.sort((e,n)=>Ka(e.created_at).isAfter(n.created_at)?1:-1),t.children.forEach(e=>cN(e)))},uN=t=>{const e=[];for(e.push(t);e.length;){const n=e.pop();if(!n.children.length)return n;e.push(...n.children)}return e[e.length-1]},E2=t=>{const e=(s,l)=>s.findIndex(c=>c.id===l.id)+1,n=[],i=uN(t);let o=i;for(;o!=null&&o.parent;)n.unshift({current:e(o.parent.children,o),is_user_message:o.is_user_message,activeNode:o,renderPath:o.parent.children}),o=o.parent;return{renderPath:n,lastLeaf:i}};var Xt=(t=>(t.RUNNING="running",t.FINISH="finish",t.FAILED="failed",t.TERMINATE="terminate",t))(Xt||{}),Dr=(t=>(t.TEXT="text",t.AUDIO="audio",t.IMAGE="image",t.FAILED="failed",t))(Dr||{}),Ut=(t=>(t.INIT="init",t.IDLE="idle",t.RUNNING="running",t.FINISH="finish",t.FAILED="failed",t.TERMINATE="terminate",t))(Ut||{}),qs={exports:{}};/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */qs.exports;(function(t,e){(function(){var n,i="4.17.21",o=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",_=500,p="__lodash_placeholder__",g=1,E=2,f=4,S=1,C=2,h=1,T=2,N=4,y=8,x=16,P=32,D=64,k=128,U=256,W=512,z=30,K="...",Ee=800,oe=16,L=1,J=2,re=3,G=1/0,X=9007199254740991,_e=17976931348623157e292,ve=0/0,he=4294967295,tt=he-1,lt=he>>>1,$e=[["ary",k],["bind",h],["bindKey",T],["curry",y],["curryRight",x],["flip",W],["partial",P],["partialRight",D],["rearg",U]],Ce="[object Arguments]",Be="[object Array]",Ve="[object AsyncFunction]",xe="[object Boolean]",He="[object Date]",rt="[object DOMException]",We="[object Error]",te="[object Function]",pe="[object GeneratorFunction]",ie="[object Map]",Pe="[object Number]",we="[object Null]",Xe="[object Object]",pt="[object Promise]",me="[object Proxy]",bt="[object RegExp]",Ue="[object Set]",Ie="[object String]",zt="[object Symbol]",Nt="[object Undefined]",Gt="[object WeakMap]",Sn="[object WeakSet]",ne="[object ArrayBuffer]",ce="[object DataView]",Oe="[object Float32Array]",Me="[object Float64Array]",ct="[object Int8Array]",xt="[object Int16Array]",Ze="[object Int32Array]",Yt="[object Uint8Array]",er="[object Uint8ClampedArray]",Z="[object Uint16Array]",ge="[object Uint32Array]",Ae=/\b__p \+= '';/g,it=/\b(__p \+=) '' \+/g,ht=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wt=/&(?:amp|lt|gt|quot|#39);/g,tn=/[&<>"']/g,mt=RegExp(wt.source),ln=RegExp(tn.source),tr=/<%-([\s\S]+?)%>/g,gl=/<%([\s\S]+?)%>/g,lo=/<%=([\s\S]+?)%>/g,El=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fl=/^\w*$/,Sl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ca=/[\\^$.*+?()[\]{}|]/g,bl=RegExp(ca.source),ua=/^\s+/,hl=/\s/,Tl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,vl=/\{\n\/\* \[wrapped with (.+)\] \*/,Cl=/,? & /,Rl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Nl=/[()=,{}\[\]\/\s]/,Ol=/\\(\\)?/g,Al=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,co=/\w*$/,yl=/^[-+]0x[0-9a-f]+$/i,Il=/^0b[01]+$/i,Dl=/^\[object .+?Constructor\]$/,xl=/^0o[0-7]+$/i,wl=/^(?:0|[1-9]\d*)$/,Ml=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ei=/($^)/,Ll=/['\n\r\u2028\u2029\\]/g,fi="\\ud800-\\udfff",Pl="\\u0300-\\u036f",kl="\\ufe20-\\ufe2f",Ul="\\u20d0-\\u20ff",uo=Pl+kl+Ul,_o="\\u2700-\\u27bf",po="a-z\\xdf-\\xf6\\xf8-\\xff",Fl="\\xac\\xb1\\xd7\\xf7",Bl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Gl="\\u2000-\\u206f",Yl=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",mo="A-Z\\xc0-\\xd6\\xd8-\\xde",go="\\ufe0e\\ufe0f",Eo=Fl+Bl+Gl+Yl,da="['’]",ql="["+fi+"]",fo="["+Eo+"]",Si="["+uo+"]",So="\\d+",$l="["+_o+"]",bo="["+po+"]",ho="[^"+fi+Eo+So+_o+po+mo+"]",_a="\\ud83c[\\udffb-\\udfff]",Hl="(?:"+Si+"|"+_a+")",To="[^"+fi+"]",pa="(?:\\ud83c[\\udde6-\\uddff]){2}",ma="[\\ud800-\\udbff][\\udc00-\\udfff]",gr="["+mo+"]",vo="\\u200d",Co="(?:"+bo+"|"+ho+")",Ro="(?:"+gr+"|"+ho+")",ga="(?:"+da+"(?:d|ll|m|re|s|t|ve))?",Ea="(?:"+da+"(?:D|LL|M|RE|S|T|VE))?",No=Hl+"?",Oo="["+go+"]?",Ao="(?:"+vo+"(?:"+[To,pa,ma].join("|")+")"+Oo+No+")*",bi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",fa="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Sa=Oo+No+Ao,yo="(?:"+[$l,pa,ma].join("|")+")"+Sa,Io="(?:"+[To+Si+"?",Si,pa,ma,ql].join("|")+")",Dg=RegExp(da,"g"),xg=RegExp(Si,"g"),zl=RegExp(_a+"(?="+_a+")|"+Io+Sa,"g"),QN=RegExp([gr+"?"+bo+"+"+ga+"(?="+[fo,gr,"$"].join("|")+")",Ro+"+"+Ea+"(?="+[fo,gr+Co,"$"].join("|")+")",gr+"?"+Co+"+"+ga,gr+"+"+Ea,fa,bi,So,yo].join("|"),"g"),XN=RegExp("["+vo+fi+uo+go+"]"),ZN=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,JN=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],jN=-1,gt={};gt[Oe]=gt[Me]=gt[ct]=gt[xt]=gt[Ze]=gt[Yt]=gt[er]=gt[Z]=gt[ge]=!0,gt[Ce]=gt[Be]=gt[ne]=gt[xe]=gt[ce]=gt[He]=gt[We]=gt[te]=gt[ie]=gt[Pe]=gt[Xe]=gt[bt]=gt[Ue]=gt[Ie]=gt[Gt]=!1;var _t={};_t[Ce]=_t[Be]=_t[ne]=_t[ce]=_t[xe]=_t[He]=_t[Oe]=_t[Me]=_t[ct]=_t[xt]=_t[Ze]=_t[ie]=_t[Pe]=_t[Xe]=_t[bt]=_t[Ue]=_t[Ie]=_t[zt]=_t[Yt]=_t[er]=_t[Z]=_t[ge]=!0,_t[We]=_t[te]=_t[Gt]=!1;var eO={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},tO={"&":"&","<":"<",">":">",'"':""","'":"'"},nO={"&":"&","<":"<",">":">",""":'"',"'":"'"},rO={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},iO=parseFloat,aO=parseInt,wg=typeof La=="object"&&La&&La.Object===Object&&La,oO=typeof self=="object"&&self&&self.Object===Object&&self,qt=wg||oO||Function("return this")(),Vl=e&&!e.nodeType&&e,Ur=Vl&&!0&&t&&!t.nodeType&&t,Mg=Ur&&Ur.exports===Vl,Wl=Mg&&wg.process,bn=function(){try{var w=Ur&&Ur.require&&Ur.require("util").types;return w||Wl&&Wl.binding&&Wl.binding("util")}catch{}}(),Lg=bn&&bn.isArrayBuffer,Pg=bn&&bn.isDate,kg=bn&&bn.isMap,Ug=bn&&bn.isRegExp,Fg=bn&&bn.isSet,Bg=bn&&bn.isTypedArray;function cn(w,Y,F){switch(F.length){case 0:return w.call(Y);case 1:return w.call(Y,F[0]);case 2:return w.call(Y,F[0],F[1]);case 3:return w.call(Y,F[0],F[1],F[2])}return w.apply(Y,F)}function sO(w,Y,F,de){for(var ye=-1,et=w==null?0:w.length;++ye-1}function Kl(w,Y,F){for(var de=-1,ye=w==null?0:w.length;++de-1;);return F}function Wg(w,Y){for(var F=w.length;F--&&hi(Y,w[F],0)>-1;);return F}function EO(w,Y){for(var F=w.length,de=0;F--;)w[F]===Y&&++de;return de}var fO=Jl(eO),SO=Jl(tO);function bO(w){return"\\"+rO[w]}function hO(w,Y){return w==null?n:w[Y]}function Ti(w){return XN.test(w)}function TO(w){return ZN.test(w)}function vO(w){for(var Y,F=[];!(Y=w.next()).done;)F.push(Y.value);return F}function nc(w){var Y=-1,F=Array(w.size);return w.forEach(function(de,ye){F[++Y]=[ye,de]}),F}function Kg(w,Y){return function(F){return w(Y(F))}}function Sr(w,Y){for(var F=-1,de=w.length,ye=0,et=[];++F-1}function cA(r,a){var u=this.__data__,m=Wo(u,r);return m<0?(++this.size,u.push([r,a])):u[m][1]=a,this}nr.prototype.clear=aA,nr.prototype.delete=oA,nr.prototype.get=sA,nr.prototype.has=lA,nr.prototype.set=cA;function rr(r){var a=-1,u=r==null?0:r.length;for(this.clear();++a=a?r:a)),r}function Cn(r,a,u,m,b,R){var O,A=a&g,M=a&E,$=a&f;if(u&&(O=b?u(r,m,b,R):u(r)),O!==n)return O;if(!Tt(r))return r;var H=De(r);if(H){if(O=py(r),!A)return nn(r,O)}else{var Q=Wt(r),se=Q==te||Q==pe;if(Rr(r))return DE(r,A);if(Q==Xe||Q==Ce||se&&!b){if(O=M||se?{}:QE(r),!A)return M?ny(r,NA(O,r)):ty(r,oE(O,r))}else{if(!_t[Q])return b?r:{};O=my(r,Q,A)}}R||(R=new wn);var fe=R.get(r);if(fe)return fe;R.set(r,O),Nf(r)?r.forEach(function(Ne){O.add(Cn(Ne,a,u,Ne,r,R))}):Cf(r)&&r.forEach(function(Ne,Ye){O.set(Ye,Cn(Ne,a,u,Ye,r,R))});var Re=$?M?yc:Ac:M?an:kt,ke=H?n:Re(r);return hn(ke||r,function(Ne,Ye){ke&&(Ye=Ne,Ne=r[Ye]),Na(O,Ye,Cn(Ne,a,u,Ye,r,R))}),O}function OA(r){var a=kt(r);return function(u){return sE(u,r,a)}}function sE(r,a,u){var m=u.length;if(r==null)return!m;for(r=ut(r);m--;){var b=u[m],R=a[b],O=r[b];if(O===n&&!(b in r)||!R(O))return!1}return!0}function lE(r,a,u){if(typeof r!="function")throw new Tn(l);return wa(function(){r.apply(n,u)},a)}function Oa(r,a,u,m){var b=-1,R=Do,O=!0,A=r.length,M=[],$=a.length;if(!A)return M;u&&(a=ft(a,un(u))),m?(R=Kl,O=!1):a.length>=o&&(R=ba,O=!1,a=new Gr(a));e:for(;++bb?0:b+u),m=m===n||m>b?b:Le(m),m<0&&(m+=b),m=u>m?0:Af(m);u0&&u(A)?a>1?$t(A,a-1,u,m,b):fr(b,A):m||(b[b.length]=A)}return b}var cc=kE(),dE=kE(!0);function Yn(r,a){return r&&cc(r,a,kt)}function uc(r,a){return r&&dE(r,a,kt)}function Qo(r,a){return Er(a,function(u){return lr(r[u])})}function qr(r,a){a=vr(a,r);for(var u=0,m=a.length;r!=null&&ua}function IA(r,a){return r!=null&&at.call(r,a)}function DA(r,a){return r!=null&&a in ut(r)}function xA(r,a,u){return r>=Vt(a,u)&&r=120&&H.length>=120)?new Gr(O&&H):n}H=r[0];var Q=-1,se=A[0];e:for(;++Q-1;)A!==r&&Go.call(A,M,1),Go.call(r,M,1);return r}function vE(r,a){for(var u=r?a.length:0,m=u-1;u--;){var b=a[u];if(u==m||b!==R){var R=b;sr(b)?Go.call(r,b,1):hc(r,b)}}return r}function fc(r,a){return r+$o(nE()*(a-r+1))}function HA(r,a,u,m){for(var b=-1,R=Lt(qo((a-r)/(u||1)),0),O=F(R);R--;)O[m?R:++b]=r,r+=u;return O}function Sc(r,a){var u="";if(!r||a<1||a>X)return u;do a%2&&(u+=r),a=$o(a/2),a&&(r+=r);while(a);return u}function Fe(r,a){return Pc(JE(r,a,on),r+"")}function zA(r){return aE(wi(r))}function VA(r,a){var u=wi(r);return os(u,Yr(a,0,u.length))}function Ia(r,a,u,m){if(!Tt(r))return r;a=vr(a,r);for(var b=-1,R=a.length,O=R-1,A=r;A!=null&&++bb?0:b+a),u=u>b?b:u,u<0&&(u+=b),b=a>u?0:u-a>>>0,a>>>=0;for(var R=F(b);++m>>1,O=r[R];O!==null&&!_n(O)&&(u?O<=a:O=o){var $=a?null:oy(r);if($)return wo($);O=!1,b=ba,M=new Gr}else M=a?[]:A;e:for(;++m=m?r:Rn(r,a,u)}var IE=UO||function(r){return qt.clearTimeout(r)};function DE(r,a){if(a)return r.slice();var u=r.length,m=Zg?Zg(u):new r.constructor(u);return r.copy(m),m}function Rc(r){var a=new r.constructor(r.byteLength);return new Fo(a).set(new Fo(r)),a}function ZA(r,a){var u=a?Rc(r.buffer):r.buffer;return new r.constructor(u,r.byteOffset,r.byteLength)}function JA(r){var a=new r.constructor(r.source,co.exec(r));return a.lastIndex=r.lastIndex,a}function jA(r){return Ra?ut(Ra.call(r)):{}}function xE(r,a){var u=a?Rc(r.buffer):r.buffer;return new r.constructor(u,r.byteOffset,r.length)}function wE(r,a){if(r!==a){var u=r!==n,m=r===null,b=r===r,R=_n(r),O=a!==n,A=a===null,M=a===a,$=_n(a);if(!A&&!$&&!R&&r>a||R&&O&&M&&!A&&!$||m&&O&&M||!u&&M||!b)return 1;if(!m&&!R&&!$&&r=A)return M;var $=u[m];return M*($=="desc"?-1:1)}}return r.index-a.index}function ME(r,a,u,m){for(var b=-1,R=r.length,O=u.length,A=-1,M=a.length,$=Lt(R-O,0),H=F(M+$),Q=!m;++A1?u[b-1]:n,O=b>2?u[2]:n;for(R=r.length>3&&typeof R=="function"?(b--,R):n,O&&jt(u[0],u[1],O)&&(R=b<3?n:R,b=1),a=ut(a);++m-1?b[R?a[O]:O]:n}}function BE(r){return or(function(a){var u=a.length,m=u,b=vn.prototype.thru;for(r&&a.reverse();m--;){var R=a[m];if(typeof R!="function")throw new Tn(l);if(b&&!O&&is(R)=="wrapper")var O=new vn([],!0)}for(m=O?m:u;++m1&&Ke.reverse(),H&&MA))return!1;var $=R.get(r),H=R.get(a);if($&&H)return $==a&&H==r;var Q=-1,se=!0,fe=u&C?new Gr:n;for(R.set(r,a),R.set(a,r);++Q1?"& ":"")+a[m],a=a.join(u>2?", ":" "),r.replace(Tl,`{ -/* [wrapped with `+a+`] */ -`)}function Ey(r){return De(r)||zr(r)||!!(eE&&r&&r[eE])}function sr(r,a){var u=typeof r;return a=a??X,!!a&&(u=="number"||u!="symbol"&&wl.test(r))&&r>-1&&r%1==0&&r0){if(++a>=Ee)return arguments[0]}else a=0;return r.apply(n,arguments)}}function os(r,a){var u=-1,m=r.length,b=m-1;for(a=a===n?m:a;++u1?r[a-1]:n;return u=typeof u=="function"?(r.pop(),u):n,df(r,u)});function _f(r){var a=v(r);return a.__chain__=!0,a}function AI(r,a){return a(r),r}function ss(r,a){return a(r)}var yI=or(function(r){var a=r.length,u=a?r[0]:0,m=this.__wrapped__,b=function(R){return lc(R,r)};return a>1||this.__actions__.length||!(m instanceof ze)||!sr(u)?this.thru(b):(m=m.slice(u,+u+(a?1:0)),m.__actions__.push({func:ss,args:[b],thisArg:n}),new vn(m,this.__chain__).thru(function(R){return a&&!R.length&&R.push(n),R}))});function II(){return _f(this)}function DI(){return new vn(this.value(),this.__chain__)}function xI(){this.__values__===n&&(this.__values__=Of(this.value()));var r=this.__index__>=this.__values__.length,a=r?n:this.__values__[this.__index__++];return{done:r,value:a}}function wI(){return this}function MI(r){for(var a,u=this;u instanceof Vo;){var m=af(u);m.__index__=0,m.__values__=n,a?b.__wrapped__=m:a=m;var b=m;u=u.__wrapped__}return b.__wrapped__=r,a}function LI(){var r=this.__wrapped__;if(r instanceof ze){var a=r;return this.__actions__.length&&(a=new ze(this)),a=a.reverse(),a.__actions__.push({func:ss,args:[kc],thisArg:n}),new vn(a,this.__chain__)}return this.thru(kc)}function PI(){return AE(this.__wrapped__,this.__actions__)}var kI=jo(function(r,a,u){at.call(r,u)?++r[u]:ir(r,u,1)});function UI(r,a,u){var m=De(r)?Gg:AA;return u&&jt(r,a,u)&&(a=n),m(r,Te(a,3))}function FI(r,a){var u=De(r)?Er:uE;return u(r,Te(a,3))}var BI=FE(of),GI=FE(sf);function YI(r,a){return $t(ls(r,a),1)}function qI(r,a){return $t(ls(r,a),G)}function $I(r,a,u){return u=u===n?1:Le(u),$t(ls(r,a),u)}function pf(r,a){var u=De(r)?hn:hr;return u(r,Te(a,3))}function mf(r,a){var u=De(r)?lO:cE;return u(r,Te(a,3))}var HI=jo(function(r,a,u){at.call(r,u)?r[u].push(a):ir(r,u,[a])});function zI(r,a,u,m){r=rn(r)?r:wi(r),u=u&&!m?Le(u):0;var b=r.length;return u<0&&(u=Lt(b+u,0)),ps(r)?u<=b&&r.indexOf(a,u)>-1:!!b&&hi(r,a,u)>-1}var VI=Fe(function(r,a,u){var m=-1,b=typeof a=="function",R=rn(r)?F(r.length):[];return hr(r,function(O){R[++m]=b?cn(a,O,u):Aa(O,a,u)}),R}),WI=jo(function(r,a,u){ir(r,u,a)});function ls(r,a){var u=De(r)?ft:EE;return u(r,Te(a,3))}function KI(r,a,u,m){return r==null?[]:(De(a)||(a=a==null?[]:[a]),u=m?n:u,De(u)||(u=u==null?[]:[u]),hE(r,a,u))}var QI=jo(function(r,a,u){r[u?0:1].push(a)},function(){return[[],[]]});function XI(r,a,u){var m=De(r)?Ql:Hg,b=arguments.length<3;return m(r,Te(a,4),u,b,hr)}function ZI(r,a,u){var m=De(r)?cO:Hg,b=arguments.length<3;return m(r,Te(a,4),u,b,cE)}function JI(r,a){var u=De(r)?Er:uE;return u(r,ds(Te(a,3)))}function jI(r){var a=De(r)?aE:zA;return a(r)}function eD(r,a,u){(u?jt(r,a,u):a===n)?a=1:a=Le(a);var m=De(r)?vA:VA;return m(r,a)}function tD(r){var a=De(r)?CA:KA;return a(r)}function nD(r){if(r==null)return 0;if(rn(r))return ps(r)?vi(r):r.length;var a=Wt(r);return a==ie||a==Ue?r.size:mc(r).length}function rD(r,a,u){var m=De(r)?Xl:QA;return u&&jt(r,a,u)&&(a=n),m(r,Te(a,3))}var iD=Fe(function(r,a){if(r==null)return[];var u=a.length;return u>1&&jt(r,a[0],a[1])?a=[]:u>2&&jt(a[0],a[1],a[2])&&(a=[a[0]]),hE(r,$t(a,1),[])}),cs=FO||function(){return qt.Date.now()};function aD(r,a){if(typeof a!="function")throw new Tn(l);return r=Le(r),function(){if(--r<1)return a.apply(this,arguments)}}function gf(r,a,u){return a=u?n:a,a=r&&a==null?r.length:a,ar(r,k,n,n,n,n,a)}function Ef(r,a){var u;if(typeof a!="function")throw new Tn(l);return r=Le(r),function(){return--r>0&&(u=a.apply(this,arguments)),r<=1&&(a=n),u}}var Fc=Fe(function(r,a,u){var m=h;if(u.length){var b=Sr(u,Di(Fc));m|=P}return ar(r,m,a,u,b)}),ff=Fe(function(r,a,u){var m=h|T;if(u.length){var b=Sr(u,Di(ff));m|=P}return ar(a,m,r,u,b)});function Sf(r,a,u){a=u?n:a;var m=ar(r,y,n,n,n,n,n,a);return m.placeholder=Sf.placeholder,m}function bf(r,a,u){a=u?n:a;var m=ar(r,x,n,n,n,n,n,a);return m.placeholder=bf.placeholder,m}function hf(r,a,u){var m,b,R,O,A,M,$=0,H=!1,Q=!1,se=!0;if(typeof r!="function")throw new Tn(l);a=On(a)||0,Tt(u)&&(H=!!u.leading,Q="maxWait"in u,R=Q?Lt(On(u.maxWait)||0,a):R,se="trailing"in u?!!u.trailing:se);function fe(At){var Ln=m,ur=b;return m=b=n,$=At,O=r.apply(ur,Ln),O}function Re(At){return $=At,A=wa(Ye,a),H?fe(At):O}function ke(At){var Ln=At-M,ur=At-$,Bf=a-Ln;return Q?Vt(Bf,R-ur):Bf}function Ne(At){var Ln=At-M,ur=At-$;return M===n||Ln>=a||Ln<0||Q&&ur>=R}function Ye(){var At=cs();if(Ne(At))return Ke(At);A=wa(Ye,ke(At))}function Ke(At){return A=n,se&&m?fe(At):(m=b=n,O)}function pn(){A!==n&&IE(A),$=0,m=M=b=A=n}function en(){return A===n?O:Ke(cs())}function mn(){var At=cs(),Ln=Ne(At);if(m=arguments,b=this,M=At,Ln){if(A===n)return Re(M);if(Q)return IE(A),A=wa(Ye,a),fe(M)}return A===n&&(A=wa(Ye,a)),O}return mn.cancel=pn,mn.flush=en,mn}var oD=Fe(function(r,a){return lE(r,1,a)}),sD=Fe(function(r,a,u){return lE(r,On(a)||0,u)});function lD(r){return ar(r,W)}function us(r,a){if(typeof r!="function"||a!=null&&typeof a!="function")throw new Tn(l);var u=function(){var m=arguments,b=a?a.apply(this,m):m[0],R=u.cache;if(R.has(b))return R.get(b);var O=r.apply(this,m);return u.cache=R.set(b,O)||R,O};return u.cache=new(us.Cache||rr),u}us.Cache=rr;function ds(r){if(typeof r!="function")throw new Tn(l);return function(){var a=arguments;switch(a.length){case 0:return!r.call(this);case 1:return!r.call(this,a[0]);case 2:return!r.call(this,a[0],a[1]);case 3:return!r.call(this,a[0],a[1],a[2])}return!r.apply(this,a)}}function cD(r){return Ef(2,r)}var uD=XA(function(r,a){a=a.length==1&&De(a[0])?ft(a[0],un(Te())):ft($t(a,1),un(Te()));var u=a.length;return Fe(function(m){for(var b=-1,R=Vt(m.length,u);++b=a}),zr=pE(function(){return arguments}())?pE:function(r){return Ct(r)&&at.call(r,"callee")&&!jg.call(r,"callee")},De=F.isArray,ND=Lg?un(Lg):MA;function rn(r){return r!=null&&_s(r.length)&&!lr(r)}function Ot(r){return Ct(r)&&rn(r)}function OD(r){return r===!0||r===!1||Ct(r)&&Jt(r)==xe}var Rr=GO||Xc,AD=Pg?un(Pg):LA;function yD(r){return Ct(r)&&r.nodeType===1&&!Ma(r)}function ID(r){if(r==null)return!0;if(rn(r)&&(De(r)||typeof r=="string"||typeof r.splice=="function"||Rr(r)||xi(r)||zr(r)))return!r.length;var a=Wt(r);if(a==ie||a==Ue)return!r.size;if(xa(r))return!mc(r).length;for(var u in r)if(at.call(r,u))return!1;return!0}function DD(r,a){return ya(r,a)}function xD(r,a,u){u=typeof u=="function"?u:n;var m=u?u(r,a):n;return m===n?ya(r,a,n,u):!!m}function Gc(r){if(!Ct(r))return!1;var a=Jt(r);return a==We||a==rt||typeof r.message=="string"&&typeof r.name=="string"&&!Ma(r)}function wD(r){return typeof r=="number"&&tE(r)}function lr(r){if(!Tt(r))return!1;var a=Jt(r);return a==te||a==pe||a==Ve||a==me}function vf(r){return typeof r=="number"&&r==Le(r)}function _s(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=X}function Tt(r){var a=typeof r;return r!=null&&(a=="object"||a=="function")}function Ct(r){return r!=null&&typeof r=="object"}var Cf=kg?un(kg):kA;function MD(r,a){return r===a||pc(r,a,Dc(a))}function LD(r,a,u){return u=typeof u=="function"?u:n,pc(r,a,Dc(a),u)}function PD(r){return Rf(r)&&r!=+r}function kD(r){if(by(r))throw new ye(s);return mE(r)}function UD(r){return r===null}function FD(r){return r==null}function Rf(r){return typeof r=="number"||Ct(r)&&Jt(r)==Pe}function Ma(r){if(!Ct(r)||Jt(r)!=Xe)return!1;var a=Bo(r);if(a===null)return!0;var u=at.call(a,"constructor")&&a.constructor;return typeof u=="function"&&u instanceof u&&Po.call(u)==LO}var Yc=Ug?un(Ug):UA;function BD(r){return vf(r)&&r>=-X&&r<=X}var Nf=Fg?un(Fg):FA;function ps(r){return typeof r=="string"||!De(r)&&Ct(r)&&Jt(r)==Ie}function _n(r){return typeof r=="symbol"||Ct(r)&&Jt(r)==zt}var xi=Bg?un(Bg):BA;function GD(r){return r===n}function YD(r){return Ct(r)&&Wt(r)==Gt}function qD(r){return Ct(r)&&Jt(r)==Sn}var $D=rs(gc),HD=rs(function(r,a){return r<=a});function Of(r){if(!r)return[];if(rn(r))return ps(r)?xn(r):nn(r);if(ha&&r[ha])return vO(r[ha]());var a=Wt(r),u=a==ie?nc:a==Ue?wo:wi;return u(r)}function cr(r){if(!r)return r===0?r:0;if(r=On(r),r===G||r===-G){var a=r<0?-1:1;return a*_e}return r===r?r:0}function Le(r){var a=cr(r),u=a%1;return a===a?u?a-u:a:0}function Af(r){return r?Yr(Le(r),0,he):0}function On(r){if(typeof r=="number")return r;if(_n(r))return ve;if(Tt(r)){var a=typeof r.valueOf=="function"?r.valueOf():r;r=Tt(a)?a+"":a}if(typeof r!="string")return r===0?r:+r;r=zg(r);var u=Il.test(r);return u||xl.test(r)?aO(r.slice(2),u?2:8):yl.test(r)?ve:+r}function yf(r){return qn(r,an(r))}function zD(r){return r?Yr(Le(r),-X,X):r===0?r:0}function nt(r){return r==null?"":dn(r)}var VD=yi(function(r,a){if(xa(a)||rn(a)){qn(a,kt(a),r);return}for(var u in a)at.call(a,u)&&Na(r,u,a[u])}),If=yi(function(r,a){qn(a,an(a),r)}),ms=yi(function(r,a,u,m){qn(a,an(a),r,m)}),WD=yi(function(r,a,u,m){qn(a,kt(a),r,m)}),KD=or(lc);function QD(r,a){var u=Ai(r);return a==null?u:oE(u,a)}var XD=Fe(function(r,a){r=ut(r);var u=-1,m=a.length,b=m>2?a[2]:n;for(b&&jt(a[0],a[1],b)&&(m=1);++u1),R}),qn(r,yc(r),u),m&&(u=Cn(u,g|E|f,sy));for(var b=a.length;b--;)hc(u,a[b]);return u});function mx(r,a){return xf(r,ds(Te(a)))}var gx=or(function(r,a){return r==null?{}:qA(r,a)});function xf(r,a){if(r==null)return{};var u=ft(yc(r),function(m){return[m]});return a=Te(a),TE(r,u,function(m,b){return a(m,b[0])})}function Ex(r,a,u){a=vr(a,r);var m=-1,b=a.length;for(b||(b=1,r=n);++ma){var m=r;r=a,a=m}if(u||r%1||a%1){var b=nE();return Vt(r+b*(a-r+iO("1e-"+((b+"").length-1))),a)}return fc(r,a)}var Ax=Ii(function(r,a,u){return a=a.toLowerCase(),r+(u?Lf(a):a)});function Lf(r){return Hc(nt(r).toLowerCase())}function Pf(r){return r=nt(r),r&&r.replace(Ml,fO).replace(xg,"")}function yx(r,a,u){r=nt(r),a=dn(a);var m=r.length;u=u===n?m:Yr(Le(u),0,m);var b=u;return u-=a.length,u>=0&&r.slice(u,b)==a}function Ix(r){return r=nt(r),r&&ln.test(r)?r.replace(tn,SO):r}function Dx(r){return r=nt(r),r&&bl.test(r)?r.replace(ca,"\\$&"):r}var xx=Ii(function(r,a,u){return r+(u?"-":"")+a.toLowerCase()}),wx=Ii(function(r,a,u){return r+(u?" ":"")+a.toLowerCase()}),Mx=UE("toLowerCase");function Lx(r,a,u){r=nt(r),a=Le(a);var m=a?vi(r):0;if(!a||m>=a)return r;var b=(a-m)/2;return ns($o(b),u)+r+ns(qo(b),u)}function Px(r,a,u){r=nt(r),a=Le(a);var m=a?vi(r):0;return a&&m>>0,u?(r=nt(r),r&&(typeof a=="string"||a!=null&&!Yc(a))&&(a=dn(a),!a&&Ti(r))?Cr(xn(r),0,u):r.split(a,u)):[]}var qx=Ii(function(r,a,u){return r+(u?" ":"")+Hc(a)});function $x(r,a,u){return r=nt(r),u=u==null?0:Yr(Le(u),0,r.length),a=dn(a),r.slice(u,u+a.length)==a}function Hx(r,a,u){var m=v.templateSettings;u&&jt(r,a,u)&&(a=n),r=nt(r),a=ms({},a,m,HE);var b=ms({},a.imports,m.imports,HE),R=kt(b),O=tc(b,R),A,M,$=0,H=a.interpolate||Ei,Q="__p += '",se=rc((a.escape||Ei).source+"|"+H.source+"|"+(H===lo?Al:Ei).source+"|"+(a.evaluate||Ei).source+"|$","g"),fe="//# sourceURL="+(at.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++jN+"]")+` -`;r.replace(se,function(Ne,Ye,Ke,pn,en,mn){return Ke||(Ke=pn),Q+=r.slice($,mn).replace(Ll,bO),Ye&&(A=!0,Q+=`' + -__e(`+Ye+`) + -'`),en&&(M=!0,Q+=`'; -`+en+`; -__p += '`),Ke&&(Q+=`' + -((__t = (`+Ke+`)) == null ? '' : __t) + -'`),$=mn+Ne.length,Ne}),Q+=`'; -`;var Re=at.call(a,"variable")&&a.variable;if(!Re)Q=`with (obj) { -`+Q+` -} -`;else if(Nl.test(Re))throw new ye(c);Q=(M?Q.replace(Ae,""):Q).replace(it,"$1").replace(ht,"$1;"),Q="function("+(Re||"obj")+`) { -`+(Re?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(A?", __e = _.escape":"")+(M?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+Q+`return __p -}`;var ke=Uf(function(){return et(R,fe+"return "+Q).apply(n,O)});if(ke.source=Q,Gc(ke))throw ke;return ke}function zx(r){return nt(r).toLowerCase()}function Vx(r){return nt(r).toUpperCase()}function Wx(r,a,u){if(r=nt(r),r&&(u||a===n))return zg(r);if(!r||!(a=dn(a)))return r;var m=xn(r),b=xn(a),R=Vg(m,b),O=Wg(m,b)+1;return Cr(m,R,O).join("")}function Kx(r,a,u){if(r=nt(r),r&&(u||a===n))return r.slice(0,Qg(r)+1);if(!r||!(a=dn(a)))return r;var m=xn(r),b=Wg(m,xn(a))+1;return Cr(m,0,b).join("")}function Qx(r,a,u){if(r=nt(r),r&&(u||a===n))return r.replace(ua,"");if(!r||!(a=dn(a)))return r;var m=xn(r),b=Vg(m,xn(a));return Cr(m,b).join("")}function Xx(r,a){var u=z,m=K;if(Tt(a)){var b="separator"in a?a.separator:b;u="length"in a?Le(a.length):u,m="omission"in a?dn(a.omission):m}r=nt(r);var R=r.length;if(Ti(r)){var O=xn(r);R=O.length}if(u>=R)return r;var A=u-vi(m);if(A<1)return m;var M=O?Cr(O,0,A).join(""):r.slice(0,A);if(b===n)return M+m;if(O&&(A+=M.length-A),Yc(b)){if(r.slice(A).search(b)){var $,H=M;for(b.global||(b=rc(b.source,nt(co.exec(b))+"g")),b.lastIndex=0;$=b.exec(H);)var Q=$.index;M=M.slice(0,Q===n?A:Q)}}else if(r.indexOf(dn(b),A)!=A){var se=M.lastIndexOf(b);se>-1&&(M=M.slice(0,se))}return M+m}function Zx(r){return r=nt(r),r&&mt.test(r)?r.replace(wt,OO):r}var Jx=Ii(function(r,a,u){return r+(u?" ":"")+a.toUpperCase()}),Hc=UE("toUpperCase");function kf(r,a,u){return r=nt(r),a=u?n:a,a===n?TO(r)?IO(r):_O(r):r.match(a)||[]}var Uf=Fe(function(r,a){try{return cn(r,n,a)}catch(u){return Gc(u)?u:new ye(u)}}),jx=or(function(r,a){return hn(a,function(u){u=$n(u),ir(r,u,Fc(r[u],r))}),r});function ew(r){var a=r==null?0:r.length,u=Te();return r=a?ft(r,function(m){if(typeof m[1]!="function")throw new Tn(l);return[u(m[0]),m[1]]}):[],Fe(function(m){for(var b=-1;++bX)return[];var u=he,m=Vt(r,he);a=Te(a),r-=he;for(var b=ec(m,a);++u0||a<0)?new ze(u):(r<0?u=u.takeRight(-r):r&&(u=u.drop(r)),a!==n&&(a=Le(a),u=a<0?u.dropRight(-a):u.take(a-r)),u)},ze.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},ze.prototype.toArray=function(){return this.take(he)},Yn(ze.prototype,function(r,a){var u=/^(?:filter|find|map|reject)|While$/.test(a),m=/^(?:head|last)$/.test(a),b=v[m?"take"+(a=="last"?"Right":""):a],R=m||/^find/.test(a);b&&(v.prototype[a]=function(){var O=this.__wrapped__,A=m?[1]:arguments,M=O instanceof ze,$=A[0],H=M||De(O),Q=function(Ye){var Ke=b.apply(v,fr([Ye],A));return m&&se?Ke[0]:Ke};H&&u&&typeof $=="function"&&$.length!=1&&(M=H=!1);var se=this.__chain__,fe=!!this.__actions__.length,Re=R&&!se,ke=M&&!fe;if(!R&&H){O=ke?O:new ze(this);var Ne=r.apply(O,A);return Ne.__actions__.push({func:ss,args:[Q],thisArg:n}),new vn(Ne,se)}return Re&&ke?r.apply(this,A):(Ne=this.thru(Q),Re?m?Ne.value()[0]:Ne.value():Ne)})}),hn(["pop","push","shift","sort","splice","unshift"],function(r){var a=Mo[r],u=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",m=/^(?:pop|shift)$/.test(r);v.prototype[r]=function(){var b=arguments;if(m&&!this.__chain__){var R=this.value();return a.apply(De(R)?R:[],b)}return this[u](function(O){return a.apply(De(O)?O:[],b)})}}),Yn(ze.prototype,function(r,a){var u=v[a];if(u){var m=u.name+"";at.call(Oi,m)||(Oi[m]=[]),Oi[m].push({name:a,func:u})}}),Oi[es(n,T).name]=[{name:"wrapper",func:n}],ze.prototype.clone=ZO,ze.prototype.reverse=JO,ze.prototype.value=jO,v.prototype.at=yI,v.prototype.chain=II,v.prototype.commit=DI,v.prototype.next=xI,v.prototype.plant=MI,v.prototype.reverse=LI,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=PI,v.prototype.first=v.prototype.head,ha&&(v.prototype[ha]=wI),v},Ci=DO();Ur?((Ur.exports=Ci)._=Ci,Vl._=Ci):qt._=Ci}).call(La)})(qs,qs.exports);var Ir=qs.exports;class f2{constructor(e){Mi(this,"queue");Mi(this,"processing");Mi(this,"callback");Mi(this,"steps");Mi(this,"requestAnimationFrameId");this.queue=[],this.processing=!1,this.callback=e,this.steps=[],this.requestAnimationFrameId=null}registerCallback(e){this.callback=e}clearQueue(){this.queue=[],this.processing=!1,this.callback=void 0,this.steps=[],this.requestAnimationFrameId&&(cancelAnimationFrame(this.requestAnimationFrameId),this.requestAnimationFrameId=null)}pushToQueue(e){this.queue.push(e),this.requestAnimationFrameId||this.processQueueWithRAF()}processQueueWithRAF(){var e,n,i,o;if(console.log(this.queue),!this.processing&&this.queue.length>0){this.processing=!0;const s=(l,c)=>Ir.isUndefined(c)?l:c;for(const l of this.queue){const c=this.steps[this.steps.length-1];if(l.id!==(c==null?void 0:c.id)){l.contents=l.content?[l.content]:[],this.steps.push(l);continue}if(Ir.assignWith(c,Ir.omit(l,"content"),s),!l.content)continue;const d=c.contents[c.contents.length-1];if(((e=l.content)==null?void 0:e.id)!==(d==null?void 0:d.id)||l.content.type!==(d==null?void 0:d.type)){c.contents.push(l.content);continue}if(Ir.assignWith(d,Ir.omit(l.content,"value"),s),((n=l.content)==null?void 0:n.type)===Dr.IMAGE){const _=d.value.answer.endsWith(",");d.value.answer+=`${_?"":","}${(i=l.content)==null?void 0:i.value.answer}`}else d.value.answer+=((o=l.content)==null?void 0:o.value.answer)||""}this.queue=[],this.callback&&this.callback(this.steps),this.processing=!1}this.queue.length>0?this.requestAnimationFrameId=requestAnimationFrame(()=>{this.processQueueWithRAF()}):this.requestAnimationFrameId=null}}const Vr=ee(),As=ee(!0),ZS=ee(0),dN=()=>{const t=async i=>{const{behavior:o="auto",isAsync:s=!0,force:l=!1}=i||{};if(!Vr.value||!l&&!As.value)return;s&&await Ks();const c=(i==null?void 0:i.top)||Vr.value.scrollHeight;if(o==="auto"){Vr.value.scrollTop=c;return}As.value=!0,Vr.value.scrollTo({top:c,behavior:o})},e=(i=10)=>{const{scrollTop:o,clientHeight:s,scrollHeight:l}=Vr.value,c=o+s;return c<=l+i&&c>=l-i},n=()=>{const{scrollTop:i}=Vr.value,o=e();if(i{if(!ei.value||(t==null?void 0:t.id)===(e==null?void 0:e.id))return;const{renderPath:n,lastLeaf:i}=E2(ei.value);Fm.value=n,Qr.value=i},{deep:!0,immediate:!0});const ys=new f2,Bi=ee(),$s=ee(null),tb=ee(!1),h2=t=>{$s.value=new AbortController;const{query:e}=t;return fetch("/api/messages",{signal:$s.value.signal,headers:{accept:"text/event-stream","content-type":"application/json"},body:JSON.stringify({query:e,config:{OPENAI_API_KEY:t.OPENAI_API_KEY,OPENAI_API_MODEL:t.OPENAI_API_MODEL}}),method:"POST",credentials:"include"})},aa=()=>{const{toBottom:t}=dN(),e=async g=>{Bi.value&&(Bi.value.steps=[...g]),t({behavior:"smooth"})},n=()=>{const g=Date.now()+Math.random()*1e3;return gn.value.has(g)?n():g},i=(g,E)=>{const f=[],S=n();return g||f.push({id:S,status:Xt.FINISH,contents:[{id:S,type:Dr.TEXT,value:{answer:E}}]}),km({user_id:0,role:"Product Manager",is_user_message:!g,chat_id:Um.value,steps:f,id:S,created_at:Ka().format("YYYY-MM-DD HH:mm:ss")})},o=(g,E)=>{if(!Ba.value.has(E))return;const f=gn.value.get(E);gn.value.delete(E),Ba.value.delete(E),gn.value.set(f.id,f)},s=(g,E)=>{var N;const f=gn.value.get(E);f.created_at=g.timestamp,((N=Qr.value)==null?void 0:N.id)===E&&(Qr.value.created_at=g.timestamp);const S=g;if(console.log(S),!(S!=null&&S.chat_id))return;const C=f.parent;gn.value.delete(E),Ba.value.delete(E);const h=C.children.findIndex(y=>y.id===E);C.children.splice(h,1);const T={...S,children:[],parent:C};C.children.push(T),gn.value.set(T.id,T),ei.value=T,Bi.value=void 0,ys.clearQueue()},l=(g,E)=>{let f=null;const S=i(!0);return Ou.value?f=gn.value.get(E):(f=i(!1,g),XS(gn.value.get(E),f),gn.value.set(f.id,f),Ba.value.add(f.id)),XS(f,S),ei.value=S,gn.value.set(S.id,S),Ba.value.add(S.id),{userMessage:f,agentMessage:S}},c=async(g,E,f=!1)=>{if(!g||!Um)return;Ou.value=f,ys.registerCallback(e);const S=E!==void 0?E:Qr.value.id,{userMessage:C,agentMessage:h}=l(g,S);Bi.value=h,Fi.value=Ut.RUNNING;const T=N=>{if(N.name==="AbortError"){Fi.value=Ut.TERMINATE;return}Fi.value=Ut.FAILED};h2({query:g,OPENAI_API_KEY:JS.value,OPENAI_API_MODEL:jS.value}).then(N=>{const y=N.body.getReader();let x=!0,P="";y.read().then(function D({done:k,value:U}){if(k){Fi.value=Ut.FINISH;return}y.read().then(D).catch(T);let W=dM(U);const z=W.endsWith(` - -`),K=W.lastIndexOf(` - -`);if(z)W=P+W,P="";else if(K===-1){P+=W;return}else{const oe=W;W=P+W.slice(0,K),P=oe.slice(K)}W.split(` - -`).filter(oe=>oe).map(oe=>{try{return console.info("转码后",decodeURIComponent(oe)),JSON.parse(decodeURIComponent(oe))}catch(L){return console.info("转码失败",L),console.info("输出:",oe),""}}).filter(oe=>oe).forEach(oe=>{var re,G;const{step:L,role:J}=oe;if(L.role=J,!(oe!=null&&oe.qa_type)&&L&&ys.pushToQueue(L),o(oe,C.id),s(oe,h.id),x){if(L.status===Xt.FAILED)throw new Error(((G=(re=L.content)==null?void 0:re.value)==null?void 0:G.answer)||Km("未知错误"));x=!1}})}).catch(T)})};return{isRegen:Ou,isPreview:_N,globalStatus:Fi,chatTree:eb,chatTreeMap:gn,chatRenderPathList:Fm,lastLeafNode:Qr,activeTreeNode:ei,activeAgentNode:Bi,sendMessage:c,stopMessage:()=>{var g,E,f;(g=$s.value)==null||g.abort(),$s.value=null,(f=(E=Bi.value)==null?void 0:E.steps)==null||f.forEach(S=>{S.status===Xt.RUNNING&&(S.timestamp="",S.status=Xt.FINISH)})},regenMessage:async()=>{var S;let g=Qr.value;((S=Qr.value)==null?void 0:S.is_user_message)||(g=g.parent);const{contents:f}=g.steps[0];ys.clearQueue(),c(f[0].value.answer,g.id,!0)},genRootNode:async g=>{tb.value=!0;const E=km({id:0,is_user_message:!1,created_at:"",user_id:0,chat_id:0,steps:[{id:0,status:Xt.FINISH,contents:[{id:0,type:Dr.TEXT,value:{answer:g??""}}]}]});Fi.value=Ut.INIT;const{messageMap:f,root:S}=g2([],E);cN(S);const C=uN(S);eb.value=S,gn.value=f,ei.value=C,Fm.value=[],t({force:!0}),await Ks(),tb.value=!1},apiKey:JS,model:jS,shakeApiKeyInput:b2}},T2=()=>(Um.value=1,S2.value=0,_N.value=!1,aa());var Ar=(t=>(t.textToSpeech="text_to_speech",t.textToImage="text_to_image",t.aiCall="ai_call",t.dataAnalysis="data_analysis",t.crawler="crawler",t.knowledge="knowledge",t))(Ar||{});const v2={text_to_speech:"语音生成",text_to_image:"文生图",ai_call:"AI调用",data_analysis:"数据分析",crawler:"搜索",knowledge:"知识库"},C2={[Ar.textToSpeech]:()=>ue(GM,null,null),[Ar.textToImage]:()=>ue(bL,null,null),[Ar.aiCall]:()=>ue(ea,{iconId:"icon-ri-mental-health-line"},null),[Ar.dataAnalysis]:()=>ue(NL,null,null),[Ar.crawler]:()=>ue(xL,null,null),[Ar.knowledge]:()=>ue(_L,null,null)},R2=[Ar.knowledge],pN=[{job:"Product Manager",avatar:"role0",status:"Hired",tags:["PM"],color:["#8855F0","#D9CFF9"]},{job:"Project Manager",avatar:"role1",status:"Hired",tags:["PM"],color:["#E79400","#FCBED1"]},{job:"Architect",avatar:"role2",status:"Hired",tags:["CTO"],color:["#2E85F5","#BEE5FE"]},{job:"Engineer",avatar:"role3",status:"Hired",tags:["RD"],color:["#33C7BE","#C9F6EF"]},{job:"QA Engineer",avatar:"role4",status:"In recruitment",tags:["QA"],color:["#C9CDD4","#E5E6EB"],action:"I can build+"},{job:"UI Designer",avatar:"role5",status:"In recruitment",tags:["UI"],color:["#C9CDD4","#E5E6EB"],action:"I can build+"},{job:"Saler",avatar:"role6",status:"In recruitment",tags:["Saler"],color:["#C9CDD4","#E5E6EB"],action:"I can build+"}],N2=t=>(Zi("data-v-d4dce6b2"),t=t(),Ji(),t),O2={class:"roleListWrapper"},A2={class:"title"},y2=N2(()=>B("img",{src:Wq,alt:""},null,-1)),I2=["type"],D2={style:{width:"100%",padding:"0px 32px","box-sizing":"border-box"}},x2={class:"roleList"},w2={key:0,src:aN,alt:""},M2={key:1,src:oN,alt:""},L2={key:2,src:sN,alt:""},P2={key:3,src:lN,alt:""},k2={key:4,src:Kq,alt:""},U2={key:5,src:Qq,alt:""},F2={key:6,src:Xq,alt:""},B2={class:"infomation"},G2={class:"job"},Y2={class:"jobName"},q2={class:"jobStatus"},$2={class:"tags"},H2=be({__name:"roleList",setup(t){const e=ee(!1),n=()=>{e.value=!0},{apiKey:i,shakeApiKeyInput:o,model:s}=aa(),l=ee(),c=ee(!1),d=()=>{c.value=!0,Ks(()=>{var S;(S=l.value)==null||S.focus()})},_=ee(!1),p=()=>{_.value=!_.value},g=()=>{_.value=!0},E=()=>{_.value=!1},f=()=>{c.value=!1,E()};return(S,C)=>(V(),ae(st,null,[B("div",O2,[B("div",A2,[y2,B("span",null,Qe(S.$t("My Software Team")),1)]),B("div",{class:It({keyFill:!0,keyFilled:q(i),shake:q(o)})},[!q(i)&&!q(c)?(V(),ae("div",{key:0,class:"placeholder",onClick:d},Qe(S.$t("Please fill in your OpenAI API key to activate the hired software team.")),1)):Pn((V(),ae("input",{key:1,ref_key:"apiKeyInputRef",ref:l,"onUpdate:modelValue":C[0]||(C[0]=h=>wr(i)?i.value=h:null),type:q(_)?"text":"password",onFocus:g,onBlur:f},null,40,I2)),[[qw,q(i)]]),B("span",{class:"showPassword",onClick:p},[q(_)?(V(),ot(q(Xw),{key:0})):(V(),ot(q(Zw),{key:1}))])],2),ue(q(Jw),{modelValue:q(s),"onUpdate:modelValue":C[1]||(C[1]=h=>wr(s)?s.value=h:null),placeholder:"Please select a model",size:"large"},{default:dt(()=>[ue(q(Zc),{label:"gpt-4",value:"gpt-4"}),ue(q(Zc),{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"}),ue(q(Zc),{label:"gpt-3.5-turbo-16k",value:"gpt-3.5-turbo-16k"})]),_:1},8,["modelValue"]),B("div",D2,[ue(q(DC))]),ue(q(iN),{style:{flex:"1"}},{default:dt(()=>[B("div",x2,[(V(!0),ae(st,null,yn(q(pN),(h,T)=>(V(),ae("div",{key:T,class:"role"},[B("div",{class:"avatar",style:Bt({borderColor:` ${h.color[0]}`})},[B("div",{class:"innerPie",style:Bt({background:` ${h.color[1]}`})},null,4),T===0?(V(),ae("img",w2)):Ge("",!0),T===1?(V(),ae("img",M2)):Ge("",!0),T===2?(V(),ae("img",L2)):Ge("",!0),T===3?(V(),ae("img",P2)):Ge("",!0),T===4?(V(),ae("img",k2)):Ge("",!0),T===5?(V(),ae("img",U2)):Ge("",!0),T===6?(V(),ae("img",F2)):Ge("",!0),B("div",{class:It({rightPoint:!0,pointActive:!h.action})},null,2)],4),B("div",B2,[B("div",G2,[B("div",Y2,Qe(h.job),1),B("div",q2,Qe(h.status),1)]),B("div",$2,[(V(!0),ae(st,null,yn(h.tags,(N,y)=>(V(),ae("div",{key:y,class:"tagItem"},Qe(N),1))),128)),h.action?(V(),ae("div",{key:0,class:"action",onClick:n},"I can build+")):Ge("",!0)])])]))),128))])]),_:1})]),ue(m2,{visible:q(e),"onUpdate:visible":C[2]||(C[2]=h=>wr(e)?e.value=h:null)},null,8,["visible"])],64))}});const z2=Dt(H2,[["__scopeId","data-v-d4dce6b2"]]),V2="/static/assets/btn0-e612db37.png",W2="/static/assets/btn1-25da2f4c.png",K2="/static/assets/btn2-d21834a1.png",Q2="/static/assets/btn3-cf765453.png",X2="/static/assets/roundLogo-9e67acc4.svg",Z2=t=>(Zi("data-v-491f84be"),t=t(),Ji(),t),J2=Z2(()=>B("span",{class:"loading"},[B("span"),B("span"),B("span")],-1)),j2=[J2],e$=be({__name:"index",props:{color:{}},setup(t){const e=t,n=le(()=>({color:e.color}));return(i,o)=>(V(),ae("span",{class:"loading_wrap",style:Bt(q(n))},j2,4))}});const t$=Dt(e$,[["__scopeId","data-v-491f84be"]]),n$={class:"message_info"},r$={key:0,class:"avatar",src:X2,alt:""},i$={class:"item_info"},a$={class:"name"},o$={key:0,class:"responseSwitcher",size:[4,0]},s$={class:"time"},l$={class:"message_wrap"},c$=be({__name:"index",props:{renderNode:{},isRootNode:{type:Boolean}},setup(t){const e=t,n={[Xt.FINISH]:"#23C343",[Xt.RUNNING]:"transparent",[Xt.FAILED]:"#F53F3F",[Xt.TERMINATE]:"#23C343"},i=yt(e,"isRootNode"),o=yt(e,"renderNode"),s=yt(o.value,"activeNode"),{is_user_message:l,steps:c}=AC(s.value),{activeTreeNode:d,globalStatus:_}=aa(),p=le(()=>c.value.length?c.value[c.value.length-1].status:Xt.RUNNING),g=le(()=>{const T=l.value?Km("Me"):"MetaGPT",N=l.value?"/src/assets/role/me.svg":"/src/assets/heroPage/roundLogo.svg";return{name:T,avatarUrl:N}}),E=le(()=>({color:l.value?"transparent":n[p.value],backgroundColor:g.value.avatarUrl?"transparent":"#3370ff"})),f=le(()=>l.value||i.value?!1:c.value.length===0&&p.value===Xt.RUNNING&&_.value===Ut.RUNNING),S=le(()=>o.value.current),C=le(()=>o.value.renderPath.length),h=T=>{const N=S.value+T;N<1||N>C.value||(d.value=o.value.renderPath[N-1])};return(T,N)=>(V(),ae("div",n$,[q(l)?Ge("",!0):(V(),ae("img",r$)),B("section",{class:It({info_box:!0,right_pos:q(l)})},[B("section",i$,[ue(q(aq),{style:{"max-width":"250px"}},{default:dt(()=>[B("span",a$,Qe(q(g).name),1)]),_:1}),q(C)>1?(V(),ae("div",o$,[ue(q(jw),{class:It({disabled:q(S)===1}),onClick:N[0]||(N[0]=y=>h(-1))},null,8,["class"]),B("span",null,Qe(q(S))+" / "+Qe(q(C)),1),ue(q(eM),{class:It({disabled:q(S)===q(C)}),onClick:N[1]||(N[1]=y=>h(1))},null,8,["class"])])):Ge("",!0),q(f)?(V(),ot(t$,{key:1,color:"#165dff"})):Ge("",!0),B("span",s$,Qe(q(Ka)(q(s).created_at).format("YYYY-MM-DD HH:mm:ss")),1)]),B("section",l$,[oi(T.$slots,"content",{},void 0,!0)])],2),q(l)?(V(),ot(q(tM),{key:1,class:"avatar",style:Bt(q(E)),"image-url":q(g).avatarUrl,size:40},{default:dt(()=>[vt(Qe(q(g).name),1)]),_:1},8,["style","image-url"])):Ge("",!0)]))}});const u$=Dt(c$,[["__scopeId","data-v-de77c762"]]),d$={class:"message_container"},_$={class:"user_message"},p$={class:"msg_wrap"},m$={key:1,class:"message"},g$={key:0,class:"btn_group"},E$=be({__name:"index",props:{activeNode:{}},setup(t){const n=yt(t,"activeNode"),{sendMessage:i,globalStatus:o}=aa(),s=le(()=>{var g;const p=n.value.steps[0];return(g=p==null?void 0:p.contents)==null?void 0:g[0]}),l=le(()=>{var p,g;return((g=(p=s.value)==null?void 0:p.value)==null?void 0:g.answer)||""}),c=ee(l.value),d=ee(!1),_=()=>{i(c.value),d.value=!1};return(p,g)=>(V(),ae("div",d$,[B("section",_$,[B("div",p$,[q(d)?(V(),ot(q(nM),{key:0,modelValue:q(c),"onUpdate:modelValue":g[0]||(g[0]=E=>wr(c)?c.value=E:null),"auto-size":""},null,8,["modelValue"])):(V(),ae("span",m$,Qe(q(l)),1))]),q(d)?(V(),ae("div",g$,[ue(q(hm),{type:"outline",onClick:g[1]||(g[1]=Ls(E=>d.value=!1,["stop"]))},{default:dt(()=>[vt(Qe(p.$t("取消")),1)]),_:1}),ue(q(hm),{disabled:q(o)===q(Ut).RUNNING,type:"primary",onClick:Ls(_,["stop"])},{default:dt(()=>[vt(Qe(p.$t("保存并提交")),1)]),_:1},8,["disabled","onClick"])])):Ge("",!0)])]))}});const f$=Dt(E$,[["__scopeId","data-v-6f899d6f"]]),S$={class:"step_skill"},b$={class:"trigger"},h$={class:"link_group"},T$=be({__name:"skill",props:{skill:{},knowledgeBase:{},knowledgeLink:{}},setup(t){const e=t,{skill:n,knowledgeBase:i,knowledgeLink:o}=AC(e),s=l=>{console.log(l)};return(l,c)=>(V(),ae("div",S$,[B("span",b$,[ue(ea,{"icon-id":"icon-ri-check-double-line"}),vt(" "+Qe(l.$t(q(R2).includes(q(n))?"高级技能":"触发技能")),1)]),ue(q(rM),null,{default:dt(()=>[ue(q(xC),{align:"center",size:4},{default:dt(()=>[(V(),ot(ji(q(C2)[q(n)]))),vt(" "+Qe(q(v2)[q(n)]),1)]),_:1})]),_:1}),B("div",h$,[q(i)?(V(),ot(q(Gf),{key:0,type:"text"},{default:dt(()=>[vt(Qe(l.$t("知识库"))+" ",1),B("span",{onClick:c[0]||(c[0]=Ls(d=>s("base"),["stop"]))},"("+Qe(q(i).length)+")",1)]),_:1})):Ge("",!0),q(o)?(V(),ot(q(Gf),{key:1,type:"text"},{default:dt(()=>[vt(Qe(l.$t("知识链接"))+" ",1),B("span",{onClick:c[1]||(c[1]=Ls(d=>s("link"),["stop"]))},"("+Qe(q(o).length)+")",1)]),_:1})):Ge("",!0)])]))}});const v$=Dt(T$,[["__scopeId","data-v-17bf8a16"]]),C$={class:"step_item"},R$={class:"step_title_wrap"},N$={class:"title"},O$={key:0,class:"icon_loading"},A$={class:"description"},y$={class:"step_info"},I$={class:"step_content_wrap"},D$={class:"step_content"},x$=be({__name:"step",props:{description:{},status:{},title:{},skill:{}},setup(t){const e=t,n=le(()=>{const{status:i}=e;return i===Xt.FAILED?"error":i===Xt.RUNNING?"process":"finish"});return(i,o)=>(V(),ae("div",C$,[ue(q(iM),{class:"step",status:q(n)},{icon:dt(()=>[oi(i.$slots,"icon",{},void 0,!0)]),default:dt(()=>[B("div",R$,[B("span",N$,Qe(e.title),1),e.status===q(Xt).RUNNING?(V(),ae("span",O$,[ue(ea,{class:"rotate",style:{color:"#165dff"},"icon-id":"icon-ri-loader-2-fill"})])):Ge("",!0),B("div",A$,Qe(e.description),1)])]),_:3},8,["status"]),B("section",y$,[B("section",I$,[ue(q(DC),{direction:"vertical",class:It(["divider",{active:e.status===q(Xt).RUNNING}])},null,8,["class"]),B("div",D$,[oi(i.$slots,"default",{},void 0,!0)])]),e.skill?(V(),ot(v$,{key:0,skill:e.skill},null,8,["skill"])):Ge("",!0)])]))}});const w$=Dt(x$,[["__scopeId","data-v-690b1166"]]);var Je={};const M$="Á",L$="á",P$="Ă",k$="ă",U$="∾",F$="∿",B$="∾̳",G$="Â",Y$="â",q$="´",$$="А",H$="а",z$="Æ",V$="æ",W$="⁡",K$="𝔄",Q$="𝔞",X$="À",Z$="à",J$="ℵ",j$="ℵ",eH="Α",tH="α",nH="Ā",rH="ā",iH="⨿",aH="&",oH="&",sH="⩕",lH="⩓",cH="∧",uH="⩜",dH="⩘",_H="⩚",pH="∠",mH="⦤",gH="∠",EH="⦨",fH="⦩",SH="⦪",bH="⦫",hH="⦬",TH="⦭",vH="⦮",CH="⦯",RH="∡",NH="∟",OH="⊾",AH="⦝",yH="∢",IH="Å",DH="⍼",xH="Ą",wH="ą",MH="𝔸",LH="𝕒",PH="⩯",kH="≈",UH="⩰",FH="≊",BH="≋",GH="'",YH="⁡",qH="≈",$H="≊",HH="Å",zH="å",VH="𝒜",WH="𝒶",KH="≔",QH="*",XH="≈",ZH="≍",JH="Ã",jH="ã",ez="Ä",tz="ä",nz="∳",rz="⨑",iz="≌",az="϶",oz="‵",sz="∽",lz="⋍",cz="∖",uz="⫧",dz="⊽",_z="⌅",pz="⌆",mz="⌅",gz="⎵",Ez="⎶",fz="≌",Sz="Б",bz="б",hz="„",Tz="∵",vz="∵",Cz="∵",Rz="⦰",Nz="϶",Oz="ℬ",Az="ℬ",yz="Β",Iz="β",Dz="ℶ",xz="≬",wz="𝔅",Mz="𝔟",Lz="⋂",Pz="◯",kz="⋃",Uz="⨀",Fz="⨁",Bz="⨂",Gz="⨆",Yz="★",qz="▽",$z="△",Hz="⨄",zz="⋁",Vz="⋀",Wz="⤍",Kz="⧫",Qz="▪",Xz="▴",Zz="▾",Jz="◂",jz="▸",eV="␣",tV="▒",nV="░",rV="▓",iV="█",aV="=⃥",oV="≡⃥",sV="⫭",lV="⌐",cV="𝔹",uV="𝕓",dV="⊥",_V="⊥",pV="⋈",mV="⧉",gV="┐",EV="╕",fV="╖",SV="╗",bV="┌",hV="╒",TV="╓",vV="╔",CV="─",RV="═",NV="┬",OV="╤",AV="╥",yV="╦",IV="┴",DV="╧",xV="╨",wV="╩",MV="⊟",LV="⊞",PV="⊠",kV="┘",UV="╛",FV="╜",BV="╝",GV="└",YV="╘",qV="╙",$V="╚",HV="│",zV="║",VV="┼",WV="╪",KV="╫",QV="╬",XV="┤",ZV="╡",JV="╢",jV="╣",eW="├",tW="╞",nW="╟",rW="╠",iW="‵",aW="˘",oW="˘",sW="¦",lW="𝒷",cW="ℬ",uW="⁏",dW="∽",_W="⋍",pW="⧅",mW="\\",gW="⟈",EW="•",fW="•",SW="≎",bW="⪮",hW="≏",TW="≎",vW="≏",CW="Ć",RW="ć",NW="⩄",OW="⩉",AW="⩋",yW="∩",IW="⋒",DW="⩇",xW="⩀",wW="ⅅ",MW="∩︀",LW="⁁",PW="ˇ",kW="ℭ",UW="⩍",FW="Č",BW="č",GW="Ç",YW="ç",qW="Ĉ",$W="ĉ",HW="∰",zW="⩌",VW="⩐",WW="Ċ",KW="ċ",QW="¸",XW="¸",ZW="⦲",JW="¢",jW="·",e3="·",t3="𝔠",n3="ℭ",r3="Ч",i3="ч",a3="✓",o3="✓",s3="Χ",l3="χ",c3="ˆ",u3="≗",d3="↺",_3="↻",p3="⊛",m3="⊚",g3="⊝",E3="⊙",f3="®",S3="Ⓢ",b3="⊖",h3="⊕",T3="⊗",v3="○",C3="⧃",R3="≗",N3="⨐",O3="⫯",A3="⧂",y3="∲",I3="”",D3="’",x3="♣",w3="♣",M3=":",L3="∷",P3="⩴",k3="≔",U3="≔",F3=",",B3="@",G3="∁",Y3="∘",q3="∁",$3="ℂ",H3="≅",z3="⩭",V3="≡",W3="∮",K3="∯",Q3="∮",X3="𝕔",Z3="ℂ",J3="∐",j3="∐",eK="©",tK="©",nK="℗",rK="∳",iK="↵",aK="✗",oK="⨯",sK="𝒞",lK="𝒸",cK="⫏",uK="⫑",dK="⫐",_K="⫒",pK="⋯",mK="⤸",gK="⤵",EK="⋞",fK="⋟",SK="↶",bK="⤽",hK="⩈",TK="⩆",vK="≍",CK="∪",RK="⋓",NK="⩊",OK="⊍",AK="⩅",yK="∪︀",IK="↷",DK="⤼",xK="⋞",wK="⋟",MK="⋎",LK="⋏",PK="¤",kK="↶",UK="↷",FK="⋎",BK="⋏",GK="∲",YK="∱",qK="⌭",$K="†",HK="‡",zK="ℸ",VK="↓",WK="↡",KK="⇓",QK="‐",XK="⫤",ZK="⊣",JK="⤏",jK="˝",eQ="Ď",tQ="ď",nQ="Д",rQ="д",iQ="‡",aQ="⇊",oQ="ⅅ",sQ="ⅆ",lQ="⤑",cQ="⩷",uQ="°",dQ="∇",_Q="Δ",pQ="δ",mQ="⦱",gQ="⥿",EQ="𝔇",fQ="𝔡",SQ="⥥",bQ="⇃",hQ="⇂",TQ="´",vQ="˙",CQ="˝",RQ="`",NQ="˜",OQ="⋄",AQ="⋄",yQ="⋄",IQ="♦",DQ="♦",xQ="¨",wQ="ⅆ",MQ="ϝ",LQ="⋲",PQ="÷",kQ="÷",UQ="⋇",FQ="⋇",BQ="Ђ",GQ="ђ",YQ="⌞",qQ="⌍",$Q="$",HQ="𝔻",zQ="𝕕",VQ="¨",WQ="˙",KQ="⃜",QQ="≐",XQ="≑",ZQ="≐",JQ="∸",jQ="∔",e4="⊡",t4="⌆",n4="∯",r4="¨",i4="⇓",a4="⇐",o4="⇔",s4="⫤",l4="⟸",c4="⟺",u4="⟹",d4="⇒",_4="⊨",p4="⇑",m4="⇕",g4="∥",E4="⤓",f4="↓",S4="↓",b4="⇓",h4="⇵",T4="̑",v4="⇊",C4="⇃",R4="⇂",N4="⥐",O4="⥞",A4="⥖",y4="↽",I4="⥟",D4="⥗",x4="⇁",w4="↧",M4="⊤",L4="⤐",P4="⌟",k4="⌌",U4="𝒟",F4="𝒹",B4="Ѕ",G4="ѕ",Y4="⧶",q4="Đ",$4="đ",H4="⋱",z4="▿",V4="▾",W4="⇵",K4="⥯",Q4="⦦",X4="Џ",Z4="џ",J4="⟿",j4="É",e5="é",t5="⩮",n5="Ě",r5="ě",i5="Ê",a5="ê",o5="≖",s5="≕",l5="Э",c5="э",u5="⩷",d5="Ė",_5="ė",p5="≑",m5="ⅇ",g5="≒",E5="𝔈",f5="𝔢",S5="⪚",b5="È",h5="è",T5="⪖",v5="⪘",C5="⪙",R5="∈",N5="⏧",O5="ℓ",A5="⪕",y5="⪗",I5="Ē",D5="ē",x5="∅",w5="∅",M5="◻",L5="∅",P5="▫",k5=" ",U5=" ",F5=" ",B5="Ŋ",G5="ŋ",Y5=" ",q5="Ę",$5="ę",H5="𝔼",z5="𝕖",V5="⋕",W5="⧣",K5="⩱",Q5="ε",X5="Ε",Z5="ε",J5="ϵ",j5="≖",e6="≕",t6="≂",n6="⪖",r6="⪕",i6="⩵",a6="=",o6="≂",s6="≟",l6="⇌",c6="≡",u6="⩸",d6="⧥",_6="⥱",p6="≓",m6="ℯ",g6="ℰ",E6="≐",f6="⩳",S6="≂",b6="Η",h6="η",T6="Ð",v6="ð",C6="Ë",R6="ë",N6="€",O6="!",A6="∃",y6="∃",I6="ℰ",D6="ⅇ",x6="ⅇ",w6="≒",M6="Ф",L6="ф",P6="♀",k6="ffi",U6="ff",F6="ffl",B6="𝔉",G6="𝔣",Y6="fi",q6="◼",$6="▪",H6="fj",z6="♭",V6="fl",W6="▱",K6="ƒ",Q6="𝔽",X6="𝕗",Z6="∀",J6="∀",j6="⋔",e9="⫙",t9="ℱ",n9="⨍",r9="½",i9="⅓",a9="¼",o9="⅕",s9="⅙",l9="⅛",c9="⅔",u9="⅖",d9="¾",_9="⅗",p9="⅜",m9="⅘",g9="⅚",E9="⅝",f9="⅞",S9="⁄",b9="⌢",h9="𝒻",T9="ℱ",v9="ǵ",C9="Γ",R9="γ",N9="Ϝ",O9="ϝ",A9="⪆",y9="Ğ",I9="ğ",D9="Ģ",x9="Ĝ",w9="ĝ",M9="Г",L9="г",P9="Ġ",k9="ġ",U9="≥",F9="≧",B9="⪌",G9="⋛",Y9="≥",q9="≧",$9="⩾",H9="⪩",z9="⩾",V9="⪀",W9="⪂",K9="⪄",Q9="⋛︀",X9="⪔",Z9="𝔊",J9="𝔤",j9="≫",e8="⋙",t8="⋙",n8="ℷ",r8="Ѓ",i8="ѓ",a8="⪥",o8="≷",s8="⪒",l8="⪤",c8="⪊",u8="⪊",d8="⪈",_8="≩",p8="⪈",m8="≩",g8="⋧",E8="𝔾",f8="𝕘",S8="`",b8="≥",h8="⋛",T8="≧",v8="⪢",C8="≷",R8="⩾",N8="≳",O8="𝒢",A8="ℊ",y8="≳",I8="⪎",D8="⪐",x8="⪧",w8="⩺",M8=">",L8=">",P8="≫",k8="⋗",U8="⦕",F8="⩼",B8="⪆",G8="⥸",Y8="⋗",q8="⋛",$8="⪌",H8="≷",z8="≳",V8="≩︀",W8="≩︀",K8="ˇ",Q8=" ",X8="½",Z8="ℋ",J8="Ъ",j8="ъ",e7="⥈",t7="↔",n7="⇔",r7="↭",i7="^",a7="ℏ",o7="Ĥ",s7="ĥ",l7="♥",c7="♥",u7="…",d7="⊹",_7="𝔥",p7="ℌ",m7="ℋ",g7="⤥",E7="⤦",f7="⇿",S7="∻",b7="↩",h7="↪",T7="𝕙",v7="ℍ",C7="―",R7="─",N7="𝒽",O7="ℋ",A7="ℏ",y7="Ħ",I7="ħ",D7="≎",x7="≏",w7="⁃",M7="‐",L7="Í",P7="í",k7="⁣",U7="Î",F7="î",B7="И",G7="и",Y7="İ",q7="Е",$7="е",H7="¡",z7="⇔",V7="𝔦",W7="ℑ",K7="Ì",Q7="ì",X7="ⅈ",Z7="⨌",J7="∭",j7="⧜",eX="℩",tX="IJ",nX="ij",rX="Ī",iX="ī",aX="ℑ",oX="ⅈ",sX="ℐ",lX="ℑ",cX="ı",uX="ℑ",dX="⊷",_X="Ƶ",pX="⇒",mX="℅",gX="∞",EX="⧝",fX="ı",SX="⊺",bX="∫",hX="∬",TX="ℤ",vX="∫",CX="⊺",RX="⋂",NX="⨗",OX="⨼",AX="⁣",yX="⁢",IX="Ё",DX="ё",xX="Į",wX="į",MX="𝕀",LX="𝕚",PX="Ι",kX="ι",UX="⨼",FX="¿",BX="𝒾",GX="ℐ",YX="∈",qX="⋵",$X="⋹",HX="⋴",zX="⋳",VX="∈",WX="⁢",KX="Ĩ",QX="ĩ",XX="І",ZX="і",JX="Ï",jX="ï",eZ="Ĵ",tZ="ĵ",nZ="Й",rZ="й",iZ="𝔍",aZ="𝔧",oZ="ȷ",sZ="𝕁",lZ="𝕛",cZ="𝒥",uZ="𝒿",dZ="Ј",_Z="ј",pZ="Є",mZ="є",gZ="Κ",EZ="κ",fZ="ϰ",SZ="Ķ",bZ="ķ",hZ="К",TZ="к",vZ="𝔎",CZ="𝔨",RZ="ĸ",NZ="Х",OZ="х",AZ="Ќ",yZ="ќ",IZ="𝕂",DZ="𝕜",xZ="𝒦",wZ="𝓀",MZ="⇚",LZ="Ĺ",PZ="ĺ",kZ="⦴",UZ="ℒ",FZ="Λ",BZ="λ",GZ="⟨",YZ="⟪",qZ="⦑",$Z="⟨",HZ="⪅",zZ="ℒ",VZ="«",WZ="⇤",KZ="⤟",QZ="←",XZ="↞",ZZ="⇐",JZ="⤝",jZ="↩",eJ="↫",tJ="⤹",nJ="⥳",rJ="↢",iJ="⤙",aJ="⤛",oJ="⪫",sJ="⪭",lJ="⪭︀",cJ="⤌",uJ="⤎",dJ="❲",_J="{",pJ="[",mJ="⦋",gJ="⦏",EJ="⦍",fJ="Ľ",SJ="ľ",bJ="Ļ",hJ="ļ",TJ="⌈",vJ="{",CJ="Л",RJ="л",NJ="⤶",OJ="“",AJ="„",yJ="⥧",IJ="⥋",DJ="↲",xJ="≤",wJ="≦",MJ="⟨",LJ="⇤",PJ="←",kJ="←",UJ="⇐",FJ="⇆",BJ="↢",GJ="⌈",YJ="⟦",qJ="⥡",$J="⥙",HJ="⇃",zJ="⌊",VJ="↽",WJ="↼",KJ="⇇",QJ="↔",XJ="↔",ZJ="⇔",JJ="⇆",jJ="⇋",ej="↭",tj="⥎",nj="↤",rj="⊣",ij="⥚",aj="⋋",oj="⧏",sj="⊲",lj="⊴",cj="⥑",uj="⥠",dj="⥘",_j="↿",pj="⥒",mj="↼",gj="⪋",Ej="⋚",fj="≤",Sj="≦",bj="⩽",hj="⪨",Tj="⩽",vj="⩿",Cj="⪁",Rj="⪃",Nj="⋚︀",Oj="⪓",Aj="⪅",yj="⋖",Ij="⋚",Dj="⪋",xj="⋚",wj="≦",Mj="≶",Lj="≶",Pj="⪡",kj="≲",Uj="⩽",Fj="≲",Bj="⥼",Gj="⌊",Yj="𝔏",qj="𝔩",$j="≶",Hj="⪑",zj="⥢",Vj="↽",Wj="↼",Kj="⥪",Qj="▄",Xj="Љ",Zj="љ",Jj="⇇",jj="≪",eee="⋘",tee="⌞",nee="⇚",ree="⥫",iee="◺",aee="Ŀ",oee="ŀ",see="⎰",lee="⎰",cee="⪉",uee="⪉",dee="⪇",_ee="≨",pee="⪇",mee="≨",gee="⋦",Eee="⟬",fee="⇽",See="⟦",bee="⟵",hee="⟵",Tee="⟸",vee="⟷",Cee="⟷",Ree="⟺",Nee="⟼",Oee="⟶",Aee="⟶",yee="⟹",Iee="↫",Dee="↬",xee="⦅",wee="𝕃",Mee="𝕝",Lee="⨭",Pee="⨴",kee="∗",Uee="_",Fee="↙",Bee="↘",Gee="◊",Yee="◊",qee="⧫",$ee="(",Hee="⦓",zee="⇆",Vee="⌟",Wee="⇋",Kee="⥭",Qee="‎",Xee="⊿",Zee="‹",Jee="𝓁",jee="ℒ",ete="↰",tte="↰",nte="≲",rte="⪍",ite="⪏",ate="[",ote="‘",ste="‚",lte="Ł",cte="ł",ute="⪦",dte="⩹",_te="<",pte="<",mte="≪",gte="⋖",Ete="⋋",fte="⋉",Ste="⥶",bte="⩻",hte="◃",Tte="⊴",vte="◂",Cte="⦖",Rte="⥊",Nte="⥦",Ote="≨︀",Ate="≨︀",yte="¯",Ite="♂",Dte="✠",xte="✠",wte="↦",Mte="↦",Lte="↧",Pte="↤",kte="↥",Ute="▮",Fte="⨩",Bte="М",Gte="м",Yte="—",qte="∺",$te="∡",Hte=" ",zte="ℳ",Vte="𝔐",Wte="𝔪",Kte="℧",Qte="µ",Xte="*",Zte="⫰",Jte="∣",jte="·",ene="⊟",tne="−",nne="∸",rne="⨪",ine="∓",ane="⫛",one="…",sne="∓",lne="⊧",cne="𝕄",une="𝕞",dne="∓",_ne="𝓂",pne="ℳ",mne="∾",gne="Μ",Ene="μ",fne="⊸",Sne="⊸",bne="∇",hne="Ń",Tne="ń",vne="∠⃒",Cne="≉",Rne="⩰̸",Nne="≋̸",One="ʼn",Ane="≉",yne="♮",Ine="ℕ",Dne="♮",xne=" ",wne="≎̸",Mne="≏̸",Lne="⩃",Pne="Ň",kne="ň",Une="Ņ",Fne="ņ",Bne="≇",Gne="⩭̸",Yne="⩂",qne="Н",$ne="н",Hne="–",zne="⤤",Vne="↗",Wne="⇗",Kne="↗",Qne="≠",Xne="≐̸",Zne="​",Jne="​",jne="​",ere="​",tre="≢",nre="⤨",rre="≂̸",ire="≫",are="≪",ore=` -`,sre="∄",lre="∄",cre="𝔑",ure="𝔫",dre="≧̸",_re="≱",pre="≱",mre="≧̸",gre="⩾̸",Ere="⩾̸",fre="⋙̸",Sre="≵",bre="≫⃒",hre="≯",Tre="≯",vre="≫̸",Cre="↮",Rre="⇎",Nre="⫲",Ore="∋",Are="⋼",yre="⋺",Ire="∋",Dre="Њ",xre="њ",wre="↚",Mre="⇍",Lre="‥",Pre="≦̸",kre="≰",Ure="↚",Fre="⇍",Bre="↮",Gre="⇎",Yre="≰",qre="≦̸",$re="⩽̸",Hre="⩽̸",zre="≮",Vre="⋘̸",Wre="≴",Kre="≪⃒",Qre="≮",Xre="⋪",Zre="⋬",Jre="≪̸",jre="∤",eie="⁠",tie=" ",nie="𝕟",rie="ℕ",iie="⫬",aie="¬",oie="≢",sie="≭",lie="∦",cie="∉",uie="≠",die="≂̸",_ie="∄",pie="≯",mie="≱",gie="≧̸",Eie="≫̸",fie="≹",Sie="⩾̸",bie="≵",hie="≎̸",Tie="≏̸",vie="∉",Cie="⋵̸",Rie="⋹̸",Nie="∉",Oie="⋷",Aie="⋶",yie="⧏̸",Iie="⋪",Die="⋬",xie="≮",wie="≰",Mie="≸",Lie="≪̸",Pie="⩽̸",kie="≴",Uie="⪢̸",Fie="⪡̸",Bie="∌",Gie="∌",Yie="⋾",qie="⋽",$ie="⊀",Hie="⪯̸",zie="⋠",Vie="∌",Wie="⧐̸",Kie="⋫",Qie="⋭",Xie="⊏̸",Zie="⋢",Jie="⊐̸",jie="⋣",eae="⊂⃒",tae="⊈",nae="⊁",rae="⪰̸",iae="⋡",aae="≿̸",oae="⊃⃒",sae="⊉",lae="≁",cae="≄",uae="≇",dae="≉",_ae="∤",pae="∦",mae="∦",gae="⫽⃥",Eae="∂̸",fae="⨔",Sae="⊀",bae="⋠",hae="⊀",Tae="⪯̸",vae="⪯̸",Cae="⤳̸",Rae="↛",Nae="⇏",Oae="↝̸",Aae="↛",yae="⇏",Iae="⋫",Dae="⋭",xae="⊁",wae="⋡",Mae="⪰̸",Lae="𝒩",Pae="𝓃",kae="∤",Uae="∦",Fae="≁",Bae="≄",Gae="≄",Yae="∤",qae="∦",$ae="⋢",Hae="⋣",zae="⊄",Vae="⫅̸",Wae="⊈",Kae="⊂⃒",Qae="⊈",Xae="⫅̸",Zae="⊁",Jae="⪰̸",jae="⊅",eoe="⫆̸",toe="⊉",noe="⊃⃒",roe="⊉",ioe="⫆̸",aoe="≹",ooe="Ñ",soe="ñ",loe="≸",coe="⋪",uoe="⋬",doe="⋫",_oe="⋭",poe="Ν",moe="ν",goe="#",Eoe="№",foe=" ",Soe="≍⃒",boe="⊬",hoe="⊭",Toe="⊮",voe="⊯",Coe="≥⃒",Roe=">⃒",Noe="⤄",Ooe="⧞",Aoe="⤂",yoe="≤⃒",Ioe="<⃒",Doe="⊴⃒",xoe="⤃",woe="⊵⃒",Moe="∼⃒",Loe="⤣",Poe="↖",koe="⇖",Uoe="↖",Foe="⤧",Boe="Ó",Goe="ó",Yoe="⊛",qoe="Ô",$oe="ô",Hoe="⊚",zoe="О",Voe="о",Woe="⊝",Koe="Ő",Qoe="ő",Xoe="⨸",Zoe="⊙",Joe="⦼",joe="Œ",ese="œ",tse="⦿",nse="𝔒",rse="𝔬",ise="˛",ase="Ò",ose="ò",sse="⧁",lse="⦵",cse="Ω",use="∮",dse="↺",_se="⦾",pse="⦻",mse="‾",gse="⧀",Ese="Ō",fse="ō",Sse="Ω",bse="ω",hse="Ο",Tse="ο",vse="⦶",Cse="⊖",Rse="𝕆",Nse="𝕠",Ose="⦷",Ase="“",yse="‘",Ise="⦹",Dse="⊕",xse="↻",wse="⩔",Mse="∨",Lse="⩝",Pse="ℴ",kse="ℴ",Use="ª",Fse="º",Bse="⊶",Gse="⩖",Yse="⩗",qse="⩛",$se="Ⓢ",Hse="𝒪",zse="ℴ",Vse="Ø",Wse="ø",Kse="⊘",Qse="Õ",Xse="õ",Zse="⨶",Jse="⨷",jse="⊗",ele="Ö",tle="ö",nle="⌽",rle="‾",ile="⏞",ale="⎴",ole="⏜",sle="¶",lle="∥",cle="∥",ule="⫳",dle="⫽",_le="∂",ple="∂",mle="П",gle="п",Ele="%",fle=".",Sle="‰",ble="⊥",hle="‱",Tle="𝔓",vle="𝔭",Cle="Φ",Rle="φ",Nle="ϕ",Ole="ℳ",Ale="☎",yle="Π",Ile="π",Dle="⋔",xle="ϖ",wle="ℏ",Mle="ℎ",Lle="ℏ",Ple="⨣",kle="⊞",Ule="⨢",Fle="+",Ble="∔",Gle="⨥",Yle="⩲",qle="±",$le="±",Hle="⨦",zle="⨧",Vle="±",Wle="ℌ",Kle="⨕",Qle="𝕡",Xle="ℙ",Zle="£",Jle="⪷",jle="⪻",ece="≺",tce="≼",nce="⪷",rce="≺",ice="≼",ace="≺",oce="⪯",sce="≼",lce="≾",cce="⪯",uce="⪹",dce="⪵",_ce="⋨",pce="⪯",mce="⪳",gce="≾",Ece="′",fce="″",Sce="ℙ",bce="⪹",hce="⪵",Tce="⋨",vce="∏",Cce="∏",Rce="⌮",Nce="⌒",Oce="⌓",Ace="∝",yce="∝",Ice="∷",Dce="∝",xce="≾",wce="⊰",Mce="𝒫",Lce="𝓅",Pce="Ψ",kce="ψ",Uce=" ",Fce="𝔔",Bce="𝔮",Gce="⨌",Yce="𝕢",qce="ℚ",$ce="⁗",Hce="𝒬",zce="𝓆",Vce="ℍ",Wce="⨖",Kce="?",Qce="≟",Xce='"',Zce='"',Jce="⇛",jce="∽̱",eue="Ŕ",tue="ŕ",nue="√",rue="⦳",iue="⟩",aue="⟫",oue="⦒",sue="⦥",lue="⟩",cue="»",uue="⥵",due="⇥",_ue="⤠",pue="⤳",mue="→",gue="↠",Eue="⇒",fue="⤞",Sue="↪",bue="↬",hue="⥅",Tue="⥴",vue="⤖",Cue="↣",Rue="↝",Nue="⤚",Oue="⤜",Aue="∶",yue="ℚ",Iue="⤍",Due="⤏",xue="⤐",wue="❳",Mue="}",Lue="]",Pue="⦌",kue="⦎",Uue="⦐",Fue="Ř",Bue="ř",Gue="Ŗ",Yue="ŗ",que="⌉",$ue="}",Hue="Р",zue="р",Vue="⤷",Wue="⥩",Kue="”",Que="”",Xue="↳",Zue="ℜ",Jue="ℛ",jue="ℜ",ede="ℝ",tde="ℜ",nde="▭",rde="®",ide="®",ade="∋",ode="⇋",sde="⥯",lde="⥽",cde="⌋",ude="𝔯",dde="ℜ",_de="⥤",pde="⇁",mde="⇀",gde="⥬",Ede="Ρ",fde="ρ",Sde="ϱ",bde="⟩",hde="⇥",Tde="→",vde="→",Cde="⇒",Rde="⇄",Nde="↣",Ode="⌉",Ade="⟧",yde="⥝",Ide="⥕",Dde="⇂",xde="⌋",wde="⇁",Mde="⇀",Lde="⇄",Pde="⇌",kde="⇉",Ude="↝",Fde="↦",Bde="⊢",Gde="⥛",Yde="⋌",qde="⧐",$de="⊳",Hde="⊵",zde="⥏",Vde="⥜",Wde="⥔",Kde="↾",Qde="⥓",Xde="⇀",Zde="˚",Jde="≓",jde="⇄",e_e="⇌",t_e="‏",n_e="⎱",r_e="⎱",i_e="⫮",a_e="⟭",o_e="⇾",s_e="⟧",l_e="⦆",c_e="𝕣",u_e="ℝ",d_e="⨮",__e="⨵",p_e="⥰",m_e=")",g_e="⦔",E_e="⨒",f_e="⇉",S_e="⇛",b_e="›",h_e="𝓇",T_e="ℛ",v_e="↱",C_e="↱",R_e="]",N_e="’",O_e="’",A_e="⋌",y_e="⋊",I_e="▹",D_e="⊵",x_e="▸",w_e="⧎",M_e="⧴",L_e="⥨",P_e="℞",k_e="Ś",U_e="ś",F_e="‚",B_e="⪸",G_e="Š",Y_e="š",q_e="⪼",$_e="≻",H_e="≽",z_e="⪰",V_e="⪴",W_e="Ş",K_e="ş",Q_e="Ŝ",X_e="ŝ",Z_e="⪺",J_e="⪶",j_e="⋩",epe="⨓",tpe="≿",npe="С",rpe="с",ipe="⊡",ape="⋅",ope="⩦",spe="⤥",lpe="↘",cpe="⇘",upe="↘",dpe="§",_pe=";",ppe="⤩",mpe="∖",gpe="∖",Epe="✶",fpe="𝔖",Spe="𝔰",bpe="⌢",hpe="♯",Tpe="Щ",vpe="щ",Cpe="Ш",Rpe="ш",Npe="↓",Ope="←",Ape="∣",ype="∥",Ipe="→",Dpe="↑",xpe="­",wpe="Σ",Mpe="σ",Lpe="ς",Ppe="ς",kpe="∼",Upe="⩪",Fpe="≃",Bpe="≃",Gpe="⪞",Ype="⪠",qpe="⪝",$pe="⪟",Hpe="≆",zpe="⨤",Vpe="⥲",Wpe="←",Kpe="∘",Qpe="∖",Xpe="⨳",Zpe="⧤",Jpe="∣",jpe="⌣",eme="⪪",tme="⪬",nme="⪬︀",rme="Ь",ime="ь",ame="⌿",ome="⧄",sme="/",lme="𝕊",cme="𝕤",ume="♠",dme="♠",_me="∥",pme="⊓",mme="⊓︀",gme="⊔",Eme="⊔︀",fme="√",Sme="⊏",bme="⊑",hme="⊏",Tme="⊑",vme="⊐",Cme="⊒",Rme="⊐",Nme="⊒",Ome="□",Ame="□",yme="⊓",Ime="⊏",Dme="⊑",xme="⊐",wme="⊒",Mme="⊔",Lme="▪",Pme="□",kme="▪",Ume="→",Fme="𝒮",Bme="𝓈",Gme="∖",Yme="⌣",qme="⋆",$me="⋆",Hme="☆",zme="★",Vme="ϵ",Wme="ϕ",Kme="¯",Qme="⊂",Xme="⋐",Zme="⪽",Jme="⫅",jme="⊆",ege="⫃",tge="⫁",nge="⫋",rge="⊊",ige="⪿",age="⥹",oge="⊂",sge="⋐",lge="⊆",cge="⫅",uge="⊆",dge="⊊",_ge="⫋",pge="⫇",mge="⫕",gge="⫓",Ege="⪸",fge="≻",Sge="≽",bge="≻",hge="⪰",Tge="≽",vge="≿",Cge="⪰",Rge="⪺",Nge="⪶",Oge="⋩",Age="≿",yge="∋",Ige="∑",Dge="∑",xge="♪",wge="¹",Mge="²",Lge="³",Pge="⊃",kge="⋑",Uge="⪾",Fge="⫘",Bge="⫆",Gge="⊇",Yge="⫄",qge="⊃",$ge="⊇",Hge="⟉",zge="⫗",Vge="⥻",Wge="⫂",Kge="⫌",Qge="⊋",Xge="⫀",Zge="⊃",Jge="⋑",jge="⊇",eEe="⫆",tEe="⊋",nEe="⫌",rEe="⫈",iEe="⫔",aEe="⫖",oEe="⤦",sEe="↙",lEe="⇙",cEe="↙",uEe="⤪",dEe="ß",_Ee=" ",pEe="⌖",mEe="Τ",gEe="τ",EEe="⎴",fEe="Ť",SEe="ť",bEe="Ţ",hEe="ţ",TEe="Т",vEe="т",CEe="⃛",REe="⌕",NEe="𝔗",OEe="𝔱",AEe="∴",yEe="∴",IEe="∴",DEe="Θ",xEe="θ",wEe="ϑ",MEe="ϑ",LEe="≈",PEe="∼",kEe="  ",UEe=" ",FEe=" ",BEe="≈",GEe="∼",YEe="Þ",qEe="þ",$Ee="˜",HEe="∼",zEe="≃",VEe="≅",WEe="≈",KEe="⨱",QEe="⊠",XEe="×",ZEe="⨰",JEe="∭",jEe="⤨",efe="⌶",tfe="⫱",nfe="⊤",rfe="𝕋",ife="𝕥",afe="⫚",ofe="⤩",sfe="‴",lfe="™",cfe="™",ufe="▵",dfe="▿",_fe="◃",pfe="⊴",mfe="≜",gfe="▹",Efe="⊵",ffe="◬",Sfe="≜",bfe="⨺",hfe="⃛",Tfe="⨹",vfe="⧍",Cfe="⨻",Rfe="⏢",Nfe="𝒯",Ofe="𝓉",Afe="Ц",yfe="ц",Ife="Ћ",Dfe="ћ",xfe="Ŧ",wfe="ŧ",Mfe="≬",Lfe="↞",Pfe="↠",kfe="Ú",Ufe="ú",Ffe="↑",Bfe="↟",Gfe="⇑",Yfe="⥉",qfe="Ў",$fe="ў",Hfe="Ŭ",zfe="ŭ",Vfe="Û",Wfe="û",Kfe="У",Qfe="у",Xfe="⇅",Zfe="Ű",Jfe="ű",jfe="⥮",eSe="⥾",tSe="𝔘",nSe="𝔲",rSe="Ù",iSe="ù",aSe="⥣",oSe="↿",sSe="↾",lSe="▀",cSe="⌜",uSe="⌜",dSe="⌏",_Se="◸",pSe="Ū",mSe="ū",gSe="¨",ESe="_",fSe="⏟",SSe="⎵",bSe="⏝",hSe="⋃",TSe="⊎",vSe="Ų",CSe="ų",RSe="𝕌",NSe="𝕦",OSe="⤒",ASe="↑",ySe="↑",ISe="⇑",DSe="⇅",xSe="↕",wSe="↕",MSe="⇕",LSe="⥮",PSe="↿",kSe="↾",USe="⊎",FSe="↖",BSe="↗",GSe="υ",YSe="ϒ",qSe="ϒ",$Se="Υ",HSe="υ",zSe="↥",VSe="⊥",WSe="⇈",KSe="⌝",QSe="⌝",XSe="⌎",ZSe="Ů",JSe="ů",jSe="◹",ebe="𝒰",tbe="𝓊",nbe="⋰",rbe="Ũ",ibe="ũ",abe="▵",obe="▴",sbe="⇈",lbe="Ü",cbe="ü",ube="⦧",dbe="⦜",_be="ϵ",pbe="ϰ",mbe="∅",gbe="ϕ",Ebe="ϖ",fbe="∝",Sbe="↕",bbe="⇕",hbe="ϱ",Tbe="ς",vbe="⊊︀",Cbe="⫋︀",Rbe="⊋︀",Nbe="⫌︀",Obe="ϑ",Abe="⊲",ybe="⊳",Ibe="⫨",Dbe="⫫",xbe="⫩",wbe="В",Mbe="в",Lbe="⊢",Pbe="⊨",kbe="⊩",Ube="⊫",Fbe="⫦",Bbe="⊻",Gbe="∨",Ybe="⋁",qbe="≚",$be="⋮",Hbe="|",zbe="‖",Vbe="|",Wbe="‖",Kbe="∣",Qbe="|",Xbe="❘",Zbe="≀",Jbe=" ",jbe="𝔙",ehe="𝔳",the="⊲",nhe="⊂⃒",rhe="⊃⃒",ihe="𝕍",ahe="𝕧",ohe="∝",she="⊳",lhe="𝒱",che="𝓋",uhe="⫋︀",dhe="⊊︀",_he="⫌︀",phe="⊋︀",mhe="⊪",ghe="⦚",Ehe="Ŵ",fhe="ŵ",She="⩟",bhe="∧",hhe="⋀",The="≙",vhe="℘",Che="𝔚",Rhe="𝔴",Nhe="𝕎",Ohe="𝕨",Ahe="℘",yhe="≀",Ihe="≀",Dhe="𝒲",xhe="𝓌",whe="⋂",Mhe="◯",Lhe="⋃",Phe="▽",khe="𝔛",Uhe="𝔵",Fhe="⟷",Bhe="⟺",Ghe="Ξ",Yhe="ξ",qhe="⟵",$he="⟸",Hhe="⟼",zhe="⋻",Vhe="⨀",Whe="𝕏",Khe="𝕩",Qhe="⨁",Xhe="⨂",Zhe="⟶",Jhe="⟹",jhe="𝒳",eTe="𝓍",tTe="⨆",nTe="⨄",rTe="△",iTe="⋁",aTe="⋀",oTe="Ý",sTe="ý",lTe="Я",cTe="я",uTe="Ŷ",dTe="ŷ",_Te="Ы",pTe="ы",mTe="¥",gTe="𝔜",ETe="𝔶",fTe="Ї",STe="ї",bTe="𝕐",hTe="𝕪",TTe="𝒴",vTe="𝓎",CTe="Ю",RTe="ю",NTe="ÿ",OTe="Ÿ",ATe="Ź",yTe="ź",ITe="Ž",DTe="ž",xTe="З",wTe="з",MTe="Ż",LTe="ż",PTe="ℨ",kTe="​",UTe="Ζ",FTe="ζ",BTe="𝔷",GTe="ℨ",YTe="Ж",qTe="ж",$Te="⇝",HTe="𝕫",zTe="ℤ",VTe="𝒵",WTe="𝓏",KTe="‍",QTe="‌",XTe={Aacute:M$,aacute:L$,Abreve:P$,abreve:k$,ac:U$,acd:F$,acE:B$,Acirc:G$,acirc:Y$,acute:q$,Acy:$$,acy:H$,AElig:z$,aelig:V$,af:W$,Afr:K$,afr:Q$,Agrave:X$,agrave:Z$,alefsym:J$,aleph:j$,Alpha:eH,alpha:tH,Amacr:nH,amacr:rH,amalg:iH,amp:aH,AMP:oH,andand:sH,And:lH,and:cH,andd:uH,andslope:dH,andv:_H,ang:pH,ange:mH,angle:gH,angmsdaa:EH,angmsdab:fH,angmsdac:SH,angmsdad:bH,angmsdae:hH,angmsdaf:TH,angmsdag:vH,angmsdah:CH,angmsd:RH,angrt:NH,angrtvb:OH,angrtvbd:AH,angsph:yH,angst:IH,angzarr:DH,Aogon:xH,aogon:wH,Aopf:MH,aopf:LH,apacir:PH,ap:kH,apE:UH,ape:FH,apid:BH,apos:GH,ApplyFunction:YH,approx:qH,approxeq:$H,Aring:HH,aring:zH,Ascr:VH,ascr:WH,Assign:KH,ast:QH,asymp:XH,asympeq:ZH,Atilde:JH,atilde:jH,Auml:ez,auml:tz,awconint:nz,awint:rz,backcong:iz,backepsilon:az,backprime:oz,backsim:sz,backsimeq:lz,Backslash:cz,Barv:uz,barvee:dz,barwed:_z,Barwed:pz,barwedge:mz,bbrk:gz,bbrktbrk:Ez,bcong:fz,Bcy:Sz,bcy:bz,bdquo:hz,becaus:Tz,because:vz,Because:Cz,bemptyv:Rz,bepsi:Nz,bernou:Oz,Bernoullis:Az,Beta:yz,beta:Iz,beth:Dz,between:xz,Bfr:wz,bfr:Mz,bigcap:Lz,bigcirc:Pz,bigcup:kz,bigodot:Uz,bigoplus:Fz,bigotimes:Bz,bigsqcup:Gz,bigstar:Yz,bigtriangledown:qz,bigtriangleup:$z,biguplus:Hz,bigvee:zz,bigwedge:Vz,bkarow:Wz,blacklozenge:Kz,blacksquare:Qz,blacktriangle:Xz,blacktriangledown:Zz,blacktriangleleft:Jz,blacktriangleright:jz,blank:eV,blk12:tV,blk14:nV,blk34:rV,block:iV,bne:aV,bnequiv:oV,bNot:sV,bnot:lV,Bopf:cV,bopf:uV,bot:dV,bottom:_V,bowtie:pV,boxbox:mV,boxdl:gV,boxdL:EV,boxDl:fV,boxDL:SV,boxdr:bV,boxdR:hV,boxDr:TV,boxDR:vV,boxh:CV,boxH:RV,boxhd:NV,boxHd:OV,boxhD:AV,boxHD:yV,boxhu:IV,boxHu:DV,boxhU:xV,boxHU:wV,boxminus:MV,boxplus:LV,boxtimes:PV,boxul:kV,boxuL:UV,boxUl:FV,boxUL:BV,boxur:GV,boxuR:YV,boxUr:qV,boxUR:$V,boxv:HV,boxV:zV,boxvh:VV,boxvH:WV,boxVh:KV,boxVH:QV,boxvl:XV,boxvL:ZV,boxVl:JV,boxVL:jV,boxvr:eW,boxvR:tW,boxVr:nW,boxVR:rW,bprime:iW,breve:aW,Breve:oW,brvbar:sW,bscr:lW,Bscr:cW,bsemi:uW,bsim:dW,bsime:_W,bsolb:pW,bsol:mW,bsolhsub:gW,bull:EW,bullet:fW,bump:SW,bumpE:bW,bumpe:hW,Bumpeq:TW,bumpeq:vW,Cacute:CW,cacute:RW,capand:NW,capbrcup:OW,capcap:AW,cap:yW,Cap:IW,capcup:DW,capdot:xW,CapitalDifferentialD:wW,caps:MW,caret:LW,caron:PW,Cayleys:kW,ccaps:UW,Ccaron:FW,ccaron:BW,Ccedil:GW,ccedil:YW,Ccirc:qW,ccirc:$W,Cconint:HW,ccups:zW,ccupssm:VW,Cdot:WW,cdot:KW,cedil:QW,Cedilla:XW,cemptyv:ZW,cent:JW,centerdot:jW,CenterDot:e3,cfr:t3,Cfr:n3,CHcy:r3,chcy:i3,check:a3,checkmark:o3,Chi:s3,chi:l3,circ:c3,circeq:u3,circlearrowleft:d3,circlearrowright:_3,circledast:p3,circledcirc:m3,circleddash:g3,CircleDot:E3,circledR:f3,circledS:S3,CircleMinus:b3,CirclePlus:h3,CircleTimes:T3,cir:v3,cirE:C3,cire:R3,cirfnint:N3,cirmid:O3,cirscir:A3,ClockwiseContourIntegral:y3,CloseCurlyDoubleQuote:I3,CloseCurlyQuote:D3,clubs:x3,clubsuit:w3,colon:M3,Colon:L3,Colone:P3,colone:k3,coloneq:U3,comma:F3,commat:B3,comp:G3,compfn:Y3,complement:q3,complexes:$3,cong:H3,congdot:z3,Congruent:V3,conint:W3,Conint:K3,ContourIntegral:Q3,copf:X3,Copf:Z3,coprod:J3,Coproduct:j3,copy:eK,COPY:tK,copysr:nK,CounterClockwiseContourIntegral:rK,crarr:iK,cross:aK,Cross:oK,Cscr:sK,cscr:lK,csub:cK,csube:uK,csup:dK,csupe:_K,ctdot:pK,cudarrl:mK,cudarrr:gK,cuepr:EK,cuesc:fK,cularr:SK,cularrp:bK,cupbrcap:hK,cupcap:TK,CupCap:vK,cup:CK,Cup:RK,cupcup:NK,cupdot:OK,cupor:AK,cups:yK,curarr:IK,curarrm:DK,curlyeqprec:xK,curlyeqsucc:wK,curlyvee:MK,curlywedge:LK,curren:PK,curvearrowleft:kK,curvearrowright:UK,cuvee:FK,cuwed:BK,cwconint:GK,cwint:YK,cylcty:qK,dagger:$K,Dagger:HK,daleth:zK,darr:VK,Darr:WK,dArr:KK,dash:QK,Dashv:XK,dashv:ZK,dbkarow:JK,dblac:jK,Dcaron:eQ,dcaron:tQ,Dcy:nQ,dcy:rQ,ddagger:iQ,ddarr:aQ,DD:oQ,dd:sQ,DDotrahd:lQ,ddotseq:cQ,deg:uQ,Del:dQ,Delta:_Q,delta:pQ,demptyv:mQ,dfisht:gQ,Dfr:EQ,dfr:fQ,dHar:SQ,dharl:bQ,dharr:hQ,DiacriticalAcute:TQ,DiacriticalDot:vQ,DiacriticalDoubleAcute:CQ,DiacriticalGrave:RQ,DiacriticalTilde:NQ,diam:OQ,diamond:AQ,Diamond:yQ,diamondsuit:IQ,diams:DQ,die:xQ,DifferentialD:wQ,digamma:MQ,disin:LQ,div:PQ,divide:kQ,divideontimes:UQ,divonx:FQ,DJcy:BQ,djcy:GQ,dlcorn:YQ,dlcrop:qQ,dollar:$Q,Dopf:HQ,dopf:zQ,Dot:VQ,dot:WQ,DotDot:KQ,doteq:QQ,doteqdot:XQ,DotEqual:ZQ,dotminus:JQ,dotplus:jQ,dotsquare:e4,doublebarwedge:t4,DoubleContourIntegral:n4,DoubleDot:r4,DoubleDownArrow:i4,DoubleLeftArrow:a4,DoubleLeftRightArrow:o4,DoubleLeftTee:s4,DoubleLongLeftArrow:l4,DoubleLongLeftRightArrow:c4,DoubleLongRightArrow:u4,DoubleRightArrow:d4,DoubleRightTee:_4,DoubleUpArrow:p4,DoubleUpDownArrow:m4,DoubleVerticalBar:g4,DownArrowBar:E4,downarrow:f4,DownArrow:S4,Downarrow:b4,DownArrowUpArrow:h4,DownBreve:T4,downdownarrows:v4,downharpoonleft:C4,downharpoonright:R4,DownLeftRightVector:N4,DownLeftTeeVector:O4,DownLeftVectorBar:A4,DownLeftVector:y4,DownRightTeeVector:I4,DownRightVectorBar:D4,DownRightVector:x4,DownTeeArrow:w4,DownTee:M4,drbkarow:L4,drcorn:P4,drcrop:k4,Dscr:U4,dscr:F4,DScy:B4,dscy:G4,dsol:Y4,Dstrok:q4,dstrok:$4,dtdot:H4,dtri:z4,dtrif:V4,duarr:W4,duhar:K4,dwangle:Q4,DZcy:X4,dzcy:Z4,dzigrarr:J4,Eacute:j4,eacute:e5,easter:t5,Ecaron:n5,ecaron:r5,Ecirc:i5,ecirc:a5,ecir:o5,ecolon:s5,Ecy:l5,ecy:c5,eDDot:u5,Edot:d5,edot:_5,eDot:p5,ee:m5,efDot:g5,Efr:E5,efr:f5,eg:S5,Egrave:b5,egrave:h5,egs:T5,egsdot:v5,el:C5,Element:R5,elinters:N5,ell:O5,els:A5,elsdot:y5,Emacr:I5,emacr:D5,empty:x5,emptyset:w5,EmptySmallSquare:M5,emptyv:L5,EmptyVerySmallSquare:P5,emsp13:k5,emsp14:U5,emsp:F5,ENG:B5,eng:G5,ensp:Y5,Eogon:q5,eogon:$5,Eopf:H5,eopf:z5,epar:V5,eparsl:W5,eplus:K5,epsi:Q5,Epsilon:X5,epsilon:Z5,epsiv:J5,eqcirc:j5,eqcolon:e6,eqsim:t6,eqslantgtr:n6,eqslantless:r6,Equal:i6,equals:a6,EqualTilde:o6,equest:s6,Equilibrium:l6,equiv:c6,equivDD:u6,eqvparsl:d6,erarr:_6,erDot:p6,escr:m6,Escr:g6,esdot:E6,Esim:f6,esim:S6,Eta:b6,eta:h6,ETH:T6,eth:v6,Euml:C6,euml:R6,euro:N6,excl:O6,exist:A6,Exists:y6,expectation:I6,exponentiale:D6,ExponentialE:x6,fallingdotseq:w6,Fcy:M6,fcy:L6,female:P6,ffilig:k6,fflig:U6,ffllig:F6,Ffr:B6,ffr:G6,filig:Y6,FilledSmallSquare:q6,FilledVerySmallSquare:$6,fjlig:H6,flat:z6,fllig:V6,fltns:W6,fnof:K6,Fopf:Q6,fopf:X6,forall:Z6,ForAll:J6,fork:j6,forkv:e9,Fouriertrf:t9,fpartint:n9,frac12:r9,frac13:i9,frac14:a9,frac15:o9,frac16:s9,frac18:l9,frac23:c9,frac25:u9,frac34:d9,frac35:_9,frac38:p9,frac45:m9,frac56:g9,frac58:E9,frac78:f9,frasl:S9,frown:b9,fscr:h9,Fscr:T9,gacute:v9,Gamma:C9,gamma:R9,Gammad:N9,gammad:O9,gap:A9,Gbreve:y9,gbreve:I9,Gcedil:D9,Gcirc:x9,gcirc:w9,Gcy:M9,gcy:L9,Gdot:P9,gdot:k9,ge:U9,gE:F9,gEl:B9,gel:G9,geq:Y9,geqq:q9,geqslant:$9,gescc:H9,ges:z9,gesdot:V9,gesdoto:W9,gesdotol:K9,gesl:Q9,gesles:X9,Gfr:Z9,gfr:J9,gg:j9,Gg:e8,ggg:t8,gimel:n8,GJcy:r8,gjcy:i8,gla:a8,gl:o8,glE:s8,glj:l8,gnap:c8,gnapprox:u8,gne:d8,gnE:_8,gneq:p8,gneqq:m8,gnsim:g8,Gopf:E8,gopf:f8,grave:S8,GreaterEqual:b8,GreaterEqualLess:h8,GreaterFullEqual:T8,GreaterGreater:v8,GreaterLess:C8,GreaterSlantEqual:R8,GreaterTilde:N8,Gscr:O8,gscr:A8,gsim:y8,gsime:I8,gsiml:D8,gtcc:x8,gtcir:w8,gt:M8,GT:L8,Gt:P8,gtdot:k8,gtlPar:U8,gtquest:F8,gtrapprox:B8,gtrarr:G8,gtrdot:Y8,gtreqless:q8,gtreqqless:$8,gtrless:H8,gtrsim:z8,gvertneqq:V8,gvnE:W8,Hacek:K8,hairsp:Q8,half:X8,hamilt:Z8,HARDcy:J8,hardcy:j8,harrcir:e7,harr:t7,hArr:n7,harrw:r7,Hat:i7,hbar:a7,Hcirc:o7,hcirc:s7,hearts:l7,heartsuit:c7,hellip:u7,hercon:d7,hfr:_7,Hfr:p7,HilbertSpace:m7,hksearow:g7,hkswarow:E7,hoarr:f7,homtht:S7,hookleftarrow:b7,hookrightarrow:h7,hopf:T7,Hopf:v7,horbar:C7,HorizontalLine:R7,hscr:N7,Hscr:O7,hslash:A7,Hstrok:y7,hstrok:I7,HumpDownHump:D7,HumpEqual:x7,hybull:w7,hyphen:M7,Iacute:L7,iacute:P7,ic:k7,Icirc:U7,icirc:F7,Icy:B7,icy:G7,Idot:Y7,IEcy:q7,iecy:$7,iexcl:H7,iff:z7,ifr:V7,Ifr:W7,Igrave:K7,igrave:Q7,ii:X7,iiiint:Z7,iiint:J7,iinfin:j7,iiota:eX,IJlig:tX,ijlig:nX,Imacr:rX,imacr:iX,image:aX,ImaginaryI:oX,imagline:sX,imagpart:lX,imath:cX,Im:uX,imof:dX,imped:_X,Implies:pX,incare:mX,in:"∈",infin:gX,infintie:EX,inodot:fX,intcal:SX,int:bX,Int:hX,integers:TX,Integral:vX,intercal:CX,Intersection:RX,intlarhk:NX,intprod:OX,InvisibleComma:AX,InvisibleTimes:yX,IOcy:IX,iocy:DX,Iogon:xX,iogon:wX,Iopf:MX,iopf:LX,Iota:PX,iota:kX,iprod:UX,iquest:FX,iscr:BX,Iscr:GX,isin:YX,isindot:qX,isinE:$X,isins:HX,isinsv:zX,isinv:VX,it:WX,Itilde:KX,itilde:QX,Iukcy:XX,iukcy:ZX,Iuml:JX,iuml:jX,Jcirc:eZ,jcirc:tZ,Jcy:nZ,jcy:rZ,Jfr:iZ,jfr:aZ,jmath:oZ,Jopf:sZ,jopf:lZ,Jscr:cZ,jscr:uZ,Jsercy:dZ,jsercy:_Z,Jukcy:pZ,jukcy:mZ,Kappa:gZ,kappa:EZ,kappav:fZ,Kcedil:SZ,kcedil:bZ,Kcy:hZ,kcy:TZ,Kfr:vZ,kfr:CZ,kgreen:RZ,KHcy:NZ,khcy:OZ,KJcy:AZ,kjcy:yZ,Kopf:IZ,kopf:DZ,Kscr:xZ,kscr:wZ,lAarr:MZ,Lacute:LZ,lacute:PZ,laemptyv:kZ,lagran:UZ,Lambda:FZ,lambda:BZ,lang:GZ,Lang:YZ,langd:qZ,langle:$Z,lap:HZ,Laplacetrf:zZ,laquo:VZ,larrb:WZ,larrbfs:KZ,larr:QZ,Larr:XZ,lArr:ZZ,larrfs:JZ,larrhk:jZ,larrlp:eJ,larrpl:tJ,larrsim:nJ,larrtl:rJ,latail:iJ,lAtail:aJ,lat:oJ,late:sJ,lates:lJ,lbarr:cJ,lBarr:uJ,lbbrk:dJ,lbrace:_J,lbrack:pJ,lbrke:mJ,lbrksld:gJ,lbrkslu:EJ,Lcaron:fJ,lcaron:SJ,Lcedil:bJ,lcedil:hJ,lceil:TJ,lcub:vJ,Lcy:CJ,lcy:RJ,ldca:NJ,ldquo:OJ,ldquor:AJ,ldrdhar:yJ,ldrushar:IJ,ldsh:DJ,le:xJ,lE:wJ,LeftAngleBracket:MJ,LeftArrowBar:LJ,leftarrow:PJ,LeftArrow:kJ,Leftarrow:UJ,LeftArrowRightArrow:FJ,leftarrowtail:BJ,LeftCeiling:GJ,LeftDoubleBracket:YJ,LeftDownTeeVector:qJ,LeftDownVectorBar:$J,LeftDownVector:HJ,LeftFloor:zJ,leftharpoondown:VJ,leftharpoonup:WJ,leftleftarrows:KJ,leftrightarrow:QJ,LeftRightArrow:XJ,Leftrightarrow:ZJ,leftrightarrows:JJ,leftrightharpoons:jJ,leftrightsquigarrow:ej,LeftRightVector:tj,LeftTeeArrow:nj,LeftTee:rj,LeftTeeVector:ij,leftthreetimes:aj,LeftTriangleBar:oj,LeftTriangle:sj,LeftTriangleEqual:lj,LeftUpDownVector:cj,LeftUpTeeVector:uj,LeftUpVectorBar:dj,LeftUpVector:_j,LeftVectorBar:pj,LeftVector:mj,lEg:gj,leg:Ej,leq:fj,leqq:Sj,leqslant:bj,lescc:hj,les:Tj,lesdot:vj,lesdoto:Cj,lesdotor:Rj,lesg:Nj,lesges:Oj,lessapprox:Aj,lessdot:yj,lesseqgtr:Ij,lesseqqgtr:Dj,LessEqualGreater:xj,LessFullEqual:wj,LessGreater:Mj,lessgtr:Lj,LessLess:Pj,lesssim:kj,LessSlantEqual:Uj,LessTilde:Fj,lfisht:Bj,lfloor:Gj,Lfr:Yj,lfr:qj,lg:$j,lgE:Hj,lHar:zj,lhard:Vj,lharu:Wj,lharul:Kj,lhblk:Qj,LJcy:Xj,ljcy:Zj,llarr:Jj,ll:jj,Ll:eee,llcorner:tee,Lleftarrow:nee,llhard:ree,lltri:iee,Lmidot:aee,lmidot:oee,lmoustache:see,lmoust:lee,lnap:cee,lnapprox:uee,lne:dee,lnE:_ee,lneq:pee,lneqq:mee,lnsim:gee,loang:Eee,loarr:fee,lobrk:See,longleftarrow:bee,LongLeftArrow:hee,Longleftarrow:Tee,longleftrightarrow:vee,LongLeftRightArrow:Cee,Longleftrightarrow:Ree,longmapsto:Nee,longrightarrow:Oee,LongRightArrow:Aee,Longrightarrow:yee,looparrowleft:Iee,looparrowright:Dee,lopar:xee,Lopf:wee,lopf:Mee,loplus:Lee,lotimes:Pee,lowast:kee,lowbar:Uee,LowerLeftArrow:Fee,LowerRightArrow:Bee,loz:Gee,lozenge:Yee,lozf:qee,lpar:$ee,lparlt:Hee,lrarr:zee,lrcorner:Vee,lrhar:Wee,lrhard:Kee,lrm:Qee,lrtri:Xee,lsaquo:Zee,lscr:Jee,Lscr:jee,lsh:ete,Lsh:tte,lsim:nte,lsime:rte,lsimg:ite,lsqb:ate,lsquo:ote,lsquor:ste,Lstrok:lte,lstrok:cte,ltcc:ute,ltcir:dte,lt:_te,LT:pte,Lt:mte,ltdot:gte,lthree:Ete,ltimes:fte,ltlarr:Ste,ltquest:bte,ltri:hte,ltrie:Tte,ltrif:vte,ltrPar:Cte,lurdshar:Rte,luruhar:Nte,lvertneqq:Ote,lvnE:Ate,macr:yte,male:Ite,malt:Dte,maltese:xte,Map:"⤅",map:wte,mapsto:Mte,mapstodown:Lte,mapstoleft:Pte,mapstoup:kte,marker:Ute,mcomma:Fte,Mcy:Bte,mcy:Gte,mdash:Yte,mDDot:qte,measuredangle:$te,MediumSpace:Hte,Mellintrf:zte,Mfr:Vte,mfr:Wte,mho:Kte,micro:Qte,midast:Xte,midcir:Zte,mid:Jte,middot:jte,minusb:ene,minus:tne,minusd:nne,minusdu:rne,MinusPlus:ine,mlcp:ane,mldr:one,mnplus:sne,models:lne,Mopf:cne,mopf:une,mp:dne,mscr:_ne,Mscr:pne,mstpos:mne,Mu:gne,mu:Ene,multimap:fne,mumap:Sne,nabla:bne,Nacute:hne,nacute:Tne,nang:vne,nap:Cne,napE:Rne,napid:Nne,napos:One,napprox:Ane,natural:yne,naturals:Ine,natur:Dne,nbsp:xne,nbump:wne,nbumpe:Mne,ncap:Lne,Ncaron:Pne,ncaron:kne,Ncedil:Une,ncedil:Fne,ncong:Bne,ncongdot:Gne,ncup:Yne,Ncy:qne,ncy:$ne,ndash:Hne,nearhk:zne,nearr:Vne,neArr:Wne,nearrow:Kne,ne:Qne,nedot:Xne,NegativeMediumSpace:Zne,NegativeThickSpace:Jne,NegativeThinSpace:jne,NegativeVeryThinSpace:ere,nequiv:tre,nesear:nre,nesim:rre,NestedGreaterGreater:ire,NestedLessLess:are,NewLine:ore,nexist:sre,nexists:lre,Nfr:cre,nfr:ure,ngE:dre,nge:_re,ngeq:pre,ngeqq:mre,ngeqslant:gre,nges:Ere,nGg:fre,ngsim:Sre,nGt:bre,ngt:hre,ngtr:Tre,nGtv:vre,nharr:Cre,nhArr:Rre,nhpar:Nre,ni:Ore,nis:Are,nisd:yre,niv:Ire,NJcy:Dre,njcy:xre,nlarr:wre,nlArr:Mre,nldr:Lre,nlE:Pre,nle:kre,nleftarrow:Ure,nLeftarrow:Fre,nleftrightarrow:Bre,nLeftrightarrow:Gre,nleq:Yre,nleqq:qre,nleqslant:$re,nles:Hre,nless:zre,nLl:Vre,nlsim:Wre,nLt:Kre,nlt:Qre,nltri:Xre,nltrie:Zre,nLtv:Jre,nmid:jre,NoBreak:eie,NonBreakingSpace:tie,nopf:nie,Nopf:rie,Not:iie,not:aie,NotCongruent:oie,NotCupCap:sie,NotDoubleVerticalBar:lie,NotElement:cie,NotEqual:uie,NotEqualTilde:die,NotExists:_ie,NotGreater:pie,NotGreaterEqual:mie,NotGreaterFullEqual:gie,NotGreaterGreater:Eie,NotGreaterLess:fie,NotGreaterSlantEqual:Sie,NotGreaterTilde:bie,NotHumpDownHump:hie,NotHumpEqual:Tie,notin:vie,notindot:Cie,notinE:Rie,notinva:Nie,notinvb:Oie,notinvc:Aie,NotLeftTriangleBar:yie,NotLeftTriangle:Iie,NotLeftTriangleEqual:Die,NotLess:xie,NotLessEqual:wie,NotLessGreater:Mie,NotLessLess:Lie,NotLessSlantEqual:Pie,NotLessTilde:kie,NotNestedGreaterGreater:Uie,NotNestedLessLess:Fie,notni:Bie,notniva:Gie,notnivb:Yie,notnivc:qie,NotPrecedes:$ie,NotPrecedesEqual:Hie,NotPrecedesSlantEqual:zie,NotReverseElement:Vie,NotRightTriangleBar:Wie,NotRightTriangle:Kie,NotRightTriangleEqual:Qie,NotSquareSubset:Xie,NotSquareSubsetEqual:Zie,NotSquareSuperset:Jie,NotSquareSupersetEqual:jie,NotSubset:eae,NotSubsetEqual:tae,NotSucceeds:nae,NotSucceedsEqual:rae,NotSucceedsSlantEqual:iae,NotSucceedsTilde:aae,NotSuperset:oae,NotSupersetEqual:sae,NotTilde:lae,NotTildeEqual:cae,NotTildeFullEqual:uae,NotTildeTilde:dae,NotVerticalBar:_ae,nparallel:pae,npar:mae,nparsl:gae,npart:Eae,npolint:fae,npr:Sae,nprcue:bae,nprec:hae,npreceq:Tae,npre:vae,nrarrc:Cae,nrarr:Rae,nrArr:Nae,nrarrw:Oae,nrightarrow:Aae,nRightarrow:yae,nrtri:Iae,nrtrie:Dae,nsc:xae,nsccue:wae,nsce:Mae,Nscr:Lae,nscr:Pae,nshortmid:kae,nshortparallel:Uae,nsim:Fae,nsime:Bae,nsimeq:Gae,nsmid:Yae,nspar:qae,nsqsube:$ae,nsqsupe:Hae,nsub:zae,nsubE:Vae,nsube:Wae,nsubset:Kae,nsubseteq:Qae,nsubseteqq:Xae,nsucc:Zae,nsucceq:Jae,nsup:jae,nsupE:eoe,nsupe:toe,nsupset:noe,nsupseteq:roe,nsupseteqq:ioe,ntgl:aoe,Ntilde:ooe,ntilde:soe,ntlg:loe,ntriangleleft:coe,ntrianglelefteq:uoe,ntriangleright:doe,ntrianglerighteq:_oe,Nu:poe,nu:moe,num:goe,numero:Eoe,numsp:foe,nvap:Soe,nvdash:boe,nvDash:hoe,nVdash:Toe,nVDash:voe,nvge:Coe,nvgt:Roe,nvHarr:Noe,nvinfin:Ooe,nvlArr:Aoe,nvle:yoe,nvlt:Ioe,nvltrie:Doe,nvrArr:xoe,nvrtrie:woe,nvsim:Moe,nwarhk:Loe,nwarr:Poe,nwArr:koe,nwarrow:Uoe,nwnear:Foe,Oacute:Boe,oacute:Goe,oast:Yoe,Ocirc:qoe,ocirc:$oe,ocir:Hoe,Ocy:zoe,ocy:Voe,odash:Woe,Odblac:Koe,odblac:Qoe,odiv:Xoe,odot:Zoe,odsold:Joe,OElig:joe,oelig:ese,ofcir:tse,Ofr:nse,ofr:rse,ogon:ise,Ograve:ase,ograve:ose,ogt:sse,ohbar:lse,ohm:cse,oint:use,olarr:dse,olcir:_se,olcross:pse,oline:mse,olt:gse,Omacr:Ese,omacr:fse,Omega:Sse,omega:bse,Omicron:hse,omicron:Tse,omid:vse,ominus:Cse,Oopf:Rse,oopf:Nse,opar:Ose,OpenCurlyDoubleQuote:Ase,OpenCurlyQuote:yse,operp:Ise,oplus:Dse,orarr:xse,Or:wse,or:Mse,ord:Lse,order:Pse,orderof:kse,ordf:Use,ordm:Fse,origof:Bse,oror:Gse,orslope:Yse,orv:qse,oS:$se,Oscr:Hse,oscr:zse,Oslash:Vse,oslash:Wse,osol:Kse,Otilde:Qse,otilde:Xse,otimesas:Zse,Otimes:Jse,otimes:jse,Ouml:ele,ouml:tle,ovbar:nle,OverBar:rle,OverBrace:ile,OverBracket:ale,OverParenthesis:ole,para:sle,parallel:lle,par:cle,parsim:ule,parsl:dle,part:_le,PartialD:ple,Pcy:mle,pcy:gle,percnt:Ele,period:fle,permil:Sle,perp:ble,pertenk:hle,Pfr:Tle,pfr:vle,Phi:Cle,phi:Rle,phiv:Nle,phmmat:Ole,phone:Ale,Pi:yle,pi:Ile,pitchfork:Dle,piv:xle,planck:wle,planckh:Mle,plankv:Lle,plusacir:Ple,plusb:kle,pluscir:Ule,plus:Fle,plusdo:Ble,plusdu:Gle,pluse:Yle,PlusMinus:qle,plusmn:$le,plussim:Hle,plustwo:zle,pm:Vle,Poincareplane:Wle,pointint:Kle,popf:Qle,Popf:Xle,pound:Zle,prap:Jle,Pr:jle,pr:ece,prcue:tce,precapprox:nce,prec:rce,preccurlyeq:ice,Precedes:ace,PrecedesEqual:oce,PrecedesSlantEqual:sce,PrecedesTilde:lce,preceq:cce,precnapprox:uce,precneqq:dce,precnsim:_ce,pre:pce,prE:mce,precsim:gce,prime:Ece,Prime:fce,primes:Sce,prnap:bce,prnE:hce,prnsim:Tce,prod:vce,Product:Cce,profalar:Rce,profline:Nce,profsurf:Oce,prop:Ace,Proportional:yce,Proportion:Ice,propto:Dce,prsim:xce,prurel:wce,Pscr:Mce,pscr:Lce,Psi:Pce,psi:kce,puncsp:Uce,Qfr:Fce,qfr:Bce,qint:Gce,qopf:Yce,Qopf:qce,qprime:$ce,Qscr:Hce,qscr:zce,quaternions:Vce,quatint:Wce,quest:Kce,questeq:Qce,quot:Xce,QUOT:Zce,rAarr:Jce,race:jce,Racute:eue,racute:tue,radic:nue,raemptyv:rue,rang:iue,Rang:aue,rangd:oue,range:sue,rangle:lue,raquo:cue,rarrap:uue,rarrb:due,rarrbfs:_ue,rarrc:pue,rarr:mue,Rarr:gue,rArr:Eue,rarrfs:fue,rarrhk:Sue,rarrlp:bue,rarrpl:hue,rarrsim:Tue,Rarrtl:vue,rarrtl:Cue,rarrw:Rue,ratail:Nue,rAtail:Oue,ratio:Aue,rationals:yue,rbarr:Iue,rBarr:Due,RBarr:xue,rbbrk:wue,rbrace:Mue,rbrack:Lue,rbrke:Pue,rbrksld:kue,rbrkslu:Uue,Rcaron:Fue,rcaron:Bue,Rcedil:Gue,rcedil:Yue,rceil:que,rcub:$ue,Rcy:Hue,rcy:zue,rdca:Vue,rdldhar:Wue,rdquo:Kue,rdquor:Que,rdsh:Xue,real:Zue,realine:Jue,realpart:jue,reals:ede,Re:tde,rect:nde,reg:rde,REG:ide,ReverseElement:ade,ReverseEquilibrium:ode,ReverseUpEquilibrium:sde,rfisht:lde,rfloor:cde,rfr:ude,Rfr:dde,rHar:_de,rhard:pde,rharu:mde,rharul:gde,Rho:Ede,rho:fde,rhov:Sde,RightAngleBracket:bde,RightArrowBar:hde,rightarrow:Tde,RightArrow:vde,Rightarrow:Cde,RightArrowLeftArrow:Rde,rightarrowtail:Nde,RightCeiling:Ode,RightDoubleBracket:Ade,RightDownTeeVector:yde,RightDownVectorBar:Ide,RightDownVector:Dde,RightFloor:xde,rightharpoondown:wde,rightharpoonup:Mde,rightleftarrows:Lde,rightleftharpoons:Pde,rightrightarrows:kde,rightsquigarrow:Ude,RightTeeArrow:Fde,RightTee:Bde,RightTeeVector:Gde,rightthreetimes:Yde,RightTriangleBar:qde,RightTriangle:$de,RightTriangleEqual:Hde,RightUpDownVector:zde,RightUpTeeVector:Vde,RightUpVectorBar:Wde,RightUpVector:Kde,RightVectorBar:Qde,RightVector:Xde,ring:Zde,risingdotseq:Jde,rlarr:jde,rlhar:e_e,rlm:t_e,rmoustache:n_e,rmoust:r_e,rnmid:i_e,roang:a_e,roarr:o_e,robrk:s_e,ropar:l_e,ropf:c_e,Ropf:u_e,roplus:d_e,rotimes:__e,RoundImplies:p_e,rpar:m_e,rpargt:g_e,rppolint:E_e,rrarr:f_e,Rrightarrow:S_e,rsaquo:b_e,rscr:h_e,Rscr:T_e,rsh:v_e,Rsh:C_e,rsqb:R_e,rsquo:N_e,rsquor:O_e,rthree:A_e,rtimes:y_e,rtri:I_e,rtrie:D_e,rtrif:x_e,rtriltri:w_e,RuleDelayed:M_e,ruluhar:L_e,rx:P_e,Sacute:k_e,sacute:U_e,sbquo:F_e,scap:B_e,Scaron:G_e,scaron:Y_e,Sc:q_e,sc:$_e,sccue:H_e,sce:z_e,scE:V_e,Scedil:W_e,scedil:K_e,Scirc:Q_e,scirc:X_e,scnap:Z_e,scnE:J_e,scnsim:j_e,scpolint:epe,scsim:tpe,Scy:npe,scy:rpe,sdotb:ipe,sdot:ape,sdote:ope,searhk:spe,searr:lpe,seArr:cpe,searrow:upe,sect:dpe,semi:_pe,seswar:ppe,setminus:mpe,setmn:gpe,sext:Epe,Sfr:fpe,sfr:Spe,sfrown:bpe,sharp:hpe,SHCHcy:Tpe,shchcy:vpe,SHcy:Cpe,shcy:Rpe,ShortDownArrow:Npe,ShortLeftArrow:Ope,shortmid:Ape,shortparallel:ype,ShortRightArrow:Ipe,ShortUpArrow:Dpe,shy:xpe,Sigma:wpe,sigma:Mpe,sigmaf:Lpe,sigmav:Ppe,sim:kpe,simdot:Upe,sime:Fpe,simeq:Bpe,simg:Gpe,simgE:Ype,siml:qpe,simlE:$pe,simne:Hpe,simplus:zpe,simrarr:Vpe,slarr:Wpe,SmallCircle:Kpe,smallsetminus:Qpe,smashp:Xpe,smeparsl:Zpe,smid:Jpe,smile:jpe,smt:eme,smte:tme,smtes:nme,SOFTcy:rme,softcy:ime,solbar:ame,solb:ome,sol:sme,Sopf:lme,sopf:cme,spades:ume,spadesuit:dme,spar:_me,sqcap:pme,sqcaps:mme,sqcup:gme,sqcups:Eme,Sqrt:fme,sqsub:Sme,sqsube:bme,sqsubset:hme,sqsubseteq:Tme,sqsup:vme,sqsupe:Cme,sqsupset:Rme,sqsupseteq:Nme,square:Ome,Square:Ame,SquareIntersection:yme,SquareSubset:Ime,SquareSubsetEqual:Dme,SquareSuperset:xme,SquareSupersetEqual:wme,SquareUnion:Mme,squarf:Lme,squ:Pme,squf:kme,srarr:Ume,Sscr:Fme,sscr:Bme,ssetmn:Gme,ssmile:Yme,sstarf:qme,Star:$me,star:Hme,starf:zme,straightepsilon:Vme,straightphi:Wme,strns:Kme,sub:Qme,Sub:Xme,subdot:Zme,subE:Jme,sube:jme,subedot:ege,submult:tge,subnE:nge,subne:rge,subplus:ige,subrarr:age,subset:oge,Subset:sge,subseteq:lge,subseteqq:cge,SubsetEqual:uge,subsetneq:dge,subsetneqq:_ge,subsim:pge,subsub:mge,subsup:gge,succapprox:Ege,succ:fge,succcurlyeq:Sge,Succeeds:bge,SucceedsEqual:hge,SucceedsSlantEqual:Tge,SucceedsTilde:vge,succeq:Cge,succnapprox:Rge,succneqq:Nge,succnsim:Oge,succsim:Age,SuchThat:yge,sum:Ige,Sum:Dge,sung:xge,sup1:wge,sup2:Mge,sup3:Lge,sup:Pge,Sup:kge,supdot:Uge,supdsub:Fge,supE:Bge,supe:Gge,supedot:Yge,Superset:qge,SupersetEqual:$ge,suphsol:Hge,suphsub:zge,suplarr:Vge,supmult:Wge,supnE:Kge,supne:Qge,supplus:Xge,supset:Zge,Supset:Jge,supseteq:jge,supseteqq:eEe,supsetneq:tEe,supsetneqq:nEe,supsim:rEe,supsub:iEe,supsup:aEe,swarhk:oEe,swarr:sEe,swArr:lEe,swarrow:cEe,swnwar:uEe,szlig:dEe,Tab:_Ee,target:pEe,Tau:mEe,tau:gEe,tbrk:EEe,Tcaron:fEe,tcaron:SEe,Tcedil:bEe,tcedil:hEe,Tcy:TEe,tcy:vEe,tdot:CEe,telrec:REe,Tfr:NEe,tfr:OEe,there4:AEe,therefore:yEe,Therefore:IEe,Theta:DEe,theta:xEe,thetasym:wEe,thetav:MEe,thickapprox:LEe,thicksim:PEe,ThickSpace:kEe,ThinSpace:UEe,thinsp:FEe,thkap:BEe,thksim:GEe,THORN:YEe,thorn:qEe,tilde:$Ee,Tilde:HEe,TildeEqual:zEe,TildeFullEqual:VEe,TildeTilde:WEe,timesbar:KEe,timesb:QEe,times:XEe,timesd:ZEe,tint:JEe,toea:jEe,topbot:efe,topcir:tfe,top:nfe,Topf:rfe,topf:ife,topfork:afe,tosa:ofe,tprime:sfe,trade:lfe,TRADE:cfe,triangle:ufe,triangledown:dfe,triangleleft:_fe,trianglelefteq:pfe,triangleq:mfe,triangleright:gfe,trianglerighteq:Efe,tridot:ffe,trie:Sfe,triminus:bfe,TripleDot:hfe,triplus:Tfe,trisb:vfe,tritime:Cfe,trpezium:Rfe,Tscr:Nfe,tscr:Ofe,TScy:Afe,tscy:yfe,TSHcy:Ife,tshcy:Dfe,Tstrok:xfe,tstrok:wfe,twixt:Mfe,twoheadleftarrow:Lfe,twoheadrightarrow:Pfe,Uacute:kfe,uacute:Ufe,uarr:Ffe,Uarr:Bfe,uArr:Gfe,Uarrocir:Yfe,Ubrcy:qfe,ubrcy:$fe,Ubreve:Hfe,ubreve:zfe,Ucirc:Vfe,ucirc:Wfe,Ucy:Kfe,ucy:Qfe,udarr:Xfe,Udblac:Zfe,udblac:Jfe,udhar:jfe,ufisht:eSe,Ufr:tSe,ufr:nSe,Ugrave:rSe,ugrave:iSe,uHar:aSe,uharl:oSe,uharr:sSe,uhblk:lSe,ulcorn:cSe,ulcorner:uSe,ulcrop:dSe,ultri:_Se,Umacr:pSe,umacr:mSe,uml:gSe,UnderBar:ESe,UnderBrace:fSe,UnderBracket:SSe,UnderParenthesis:bSe,Union:hSe,UnionPlus:TSe,Uogon:vSe,uogon:CSe,Uopf:RSe,uopf:NSe,UpArrowBar:OSe,uparrow:ASe,UpArrow:ySe,Uparrow:ISe,UpArrowDownArrow:DSe,updownarrow:xSe,UpDownArrow:wSe,Updownarrow:MSe,UpEquilibrium:LSe,upharpoonleft:PSe,upharpoonright:kSe,uplus:USe,UpperLeftArrow:FSe,UpperRightArrow:BSe,upsi:GSe,Upsi:YSe,upsih:qSe,Upsilon:$Se,upsilon:HSe,UpTeeArrow:zSe,UpTee:VSe,upuparrows:WSe,urcorn:KSe,urcorner:QSe,urcrop:XSe,Uring:ZSe,uring:JSe,urtri:jSe,Uscr:ebe,uscr:tbe,utdot:nbe,Utilde:rbe,utilde:ibe,utri:abe,utrif:obe,uuarr:sbe,Uuml:lbe,uuml:cbe,uwangle:ube,vangrt:dbe,varepsilon:_be,varkappa:pbe,varnothing:mbe,varphi:gbe,varpi:Ebe,varpropto:fbe,varr:Sbe,vArr:bbe,varrho:hbe,varsigma:Tbe,varsubsetneq:vbe,varsubsetneqq:Cbe,varsupsetneq:Rbe,varsupsetneqq:Nbe,vartheta:Obe,vartriangleleft:Abe,vartriangleright:ybe,vBar:Ibe,Vbar:Dbe,vBarv:xbe,Vcy:wbe,vcy:Mbe,vdash:Lbe,vDash:Pbe,Vdash:kbe,VDash:Ube,Vdashl:Fbe,veebar:Bbe,vee:Gbe,Vee:Ybe,veeeq:qbe,vellip:$be,verbar:Hbe,Verbar:zbe,vert:Vbe,Vert:Wbe,VerticalBar:Kbe,VerticalLine:Qbe,VerticalSeparator:Xbe,VerticalTilde:Zbe,VeryThinSpace:Jbe,Vfr:jbe,vfr:ehe,vltri:the,vnsub:nhe,vnsup:rhe,Vopf:ihe,vopf:ahe,vprop:ohe,vrtri:she,Vscr:lhe,vscr:che,vsubnE:uhe,vsubne:dhe,vsupnE:_he,vsupne:phe,Vvdash:mhe,vzigzag:ghe,Wcirc:Ehe,wcirc:fhe,wedbar:She,wedge:bhe,Wedge:hhe,wedgeq:The,weierp:vhe,Wfr:Che,wfr:Rhe,Wopf:Nhe,wopf:Ohe,wp:Ahe,wr:yhe,wreath:Ihe,Wscr:Dhe,wscr:xhe,xcap:whe,xcirc:Mhe,xcup:Lhe,xdtri:Phe,Xfr:khe,xfr:Uhe,xharr:Fhe,xhArr:Bhe,Xi:Ghe,xi:Yhe,xlarr:qhe,xlArr:$he,xmap:Hhe,xnis:zhe,xodot:Vhe,Xopf:Whe,xopf:Khe,xoplus:Qhe,xotime:Xhe,xrarr:Zhe,xrArr:Jhe,Xscr:jhe,xscr:eTe,xsqcup:tTe,xuplus:nTe,xutri:rTe,xvee:iTe,xwedge:aTe,Yacute:oTe,yacute:sTe,YAcy:lTe,yacy:cTe,Ycirc:uTe,ycirc:dTe,Ycy:_Te,ycy:pTe,yen:mTe,Yfr:gTe,yfr:ETe,YIcy:fTe,yicy:STe,Yopf:bTe,yopf:hTe,Yscr:TTe,yscr:vTe,YUcy:CTe,yucy:RTe,yuml:NTe,Yuml:OTe,Zacute:ATe,zacute:yTe,Zcaron:ITe,zcaron:DTe,Zcy:xTe,zcy:wTe,Zdot:MTe,zdot:LTe,zeetrf:PTe,ZeroWidthSpace:kTe,Zeta:UTe,zeta:FTe,zfr:BTe,Zfr:GTe,ZHcy:YTe,zhcy:qTe,zigrarr:$Te,zopf:HTe,Zopf:zTe,Zscr:VTe,zscr:WTe,zwj:KTe,zwnj:QTe};var mN=XTe,gg=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,oa={},nb={};function ZTe(t){var e,n,i=nb[t];if(i)return i;for(i=nb[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?i.push(n):i.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e"u"&&(n=!0),c=ZTe(e),i=0,o=t.length;i=55296&&s<=57343){if(s>=55296&&s<=56319&&i+1=56320&&l<=57343)){d+=encodeURIComponent(t[i]+t[i+1]),i++;continue}d+="%EF%BF%BD";continue}d+=encodeURIComponent(t[i])}return d}il.defaultChars=";/?:@&=+$,-_.!~*'()#";il.componentChars="-_.!~*'()";var JTe=il,rb={};function jTe(t){var e,n,i=rb[t];if(i)return i;for(i=rb[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),i.push(n);for(e=0;e=55296&&p<=57343?g+="���":g+=String.fromCharCode(p),o+=6;continue}if((l&248)===240&&o+91114111?g+="����":(p-=65536,g+=String.fromCharCode(55296+(p>>10),56320+(p&1023))),o+=9;continue}g+="�"}return g})}al.defaultChars=";/?:@&=+$,#";al.componentChars="";var eve=al,tve=function(e){var n="";return n+=e.protocol||"",n+=e.slashes?"//":"",n+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?n+="["+e.hostname+"]":n+=e.hostname||"",n+=e.port?":"+e.port:"",n+=e.pathname||"",n+=e.search||"",n+=e.hash||"",n};function Hs(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var nve=/^([a-z0-9.+-]+:)/i,rve=/:[0-9]*$/,ive=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ave=["<",">",'"',"`"," ","\r",` -`," "],ove=["{","}","|","\\","^","`"].concat(ave),sve=["'"].concat(ove),ib=["%","/","?",";","#"].concat(sve),ab=["/","?","#"],lve=255,ob=/^[+a-z0-9A-Z_-]{0,63}$/,cve=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,sb={javascript:!0,"javascript:":!0},lb={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function uve(t,e){if(t&&t instanceof Hs)return t;var n=new Hs;return n.parse(t,e),n}Hs.prototype.parse=function(t,e){var n,i,o,s,l,c=t;if(c=c.trim(),!e&&t.split("#").length===1){var d=ive.exec(c);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}var _=nve.exec(c);if(_&&(_=_[0],o=_.toLowerCase(),this.protocol=_,c=c.substr(_.length)),(e||_||c.match(/^\/\/[^@\/]+@[^@\/]+/))&&(l=c.substr(0,2)==="//",l&&!(_&&sb[_])&&(c=c.substr(2),this.slashes=!0)),!sb[_]&&(l||_&&!lb[_])){var p=-1;for(n=0;n127?T+="x":T+=h[N];if(!T.match(ob)){var x=C.slice(0,n),P=C.slice(n+1),D=h.match(cve);D&&(x.push(D[1]),P.unshift(D[2])),P.length&&(c=P.join(".")+c),this.hostname=x.join(".");break}}}}this.hostname.length>lve&&(this.hostname=""),S&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var k=c.indexOf("#");k!==-1&&(this.hash=c.substr(k),c=c.slice(0,k));var U=c.indexOf("?");return U!==-1&&(this.search=c.substr(U),c=c.slice(0,U)),c&&(this.pathname=c),lb[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Hs.prototype.parseHost=function(t){var e=rve.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var dve=uve;oa.encode=JTe;oa.decode=eve;oa.format=tve;oa.parse=dve;var Wr={},Au,cb;function gN(){return cb||(cb=1,Au=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Au}var yu,ub;function EN(){return ub||(ub=1,yu=/[\0-\x1F\x7F-\x9F]/),yu}var Iu,db;function _ve(){return db||(db=1,Iu=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),Iu}var Du,_b;function fN(){return _b||(_b=1,Du=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Du}var pb;function pve(){return pb||(pb=1,Wr.Any=gN(),Wr.Cc=EN(),Wr.Cf=_ve(),Wr.P=gg,Wr.Z=fN()),Wr}(function(t){function e(L){return Object.prototype.toString.call(L)}function n(L){return e(L)==="[object String]"}var i=Object.prototype.hasOwnProperty;function o(L,J){return i.call(L,J)}function s(L){var J=Array.prototype.slice.call(arguments,1);return J.forEach(function(re){if(re){if(typeof re!="object")throw new TypeError(re+"must be object");Object.keys(re).forEach(function(G){L[G]=re[G]})}}),L}function l(L,J,re){return[].concat(L.slice(0,J),re,L.slice(J+1))}function c(L){return!(L>=55296&&L<=57343||L>=64976&&L<=65007||(L&65535)===65535||(L&65535)===65534||L>=0&&L<=8||L===11||L>=14&&L<=31||L>=127&&L<=159||L>1114111)}function d(L){if(L>65535){L-=65536;var J=55296+(L>>10),re=56320+(L&1023);return String.fromCharCode(J,re)}return String.fromCharCode(L)}var _=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,p=/&([a-z#][a-z0-9]{1,31});/gi,g=new RegExp(_.source+"|"+p.source,"gi"),E=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,f=mN;function S(L,J){var re=0;return o(f,J)?f[J]:J.charCodeAt(0)===35&&E.test(J)&&(re=J[1].toLowerCase()==="x"?parseInt(J.slice(2),16):parseInt(J.slice(1),10),c(re))?d(re):L}function C(L){return L.indexOf("\\")<0?L:L.replace(_,"$1")}function h(L){return L.indexOf("\\")<0&&L.indexOf("&")<0?L:L.replace(g,function(J,re,G){return re||S(J,G)})}var T=/[&<>"]/,N=/[&<>"]/g,y={"&":"&","<":"<",">":">",'"':"""};function x(L){return y[L]}function P(L){return T.test(L)?L.replace(N,x):L}var D=/[.?*+^$[\]\\(){}|-]/g;function k(L){return L.replace(D,"\\$&")}function U(L){switch(L){case 9:case 32:return!0}return!1}function W(L){if(L>=8192&&L<=8202)return!0;switch(L){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var z=gg;function K(L){return z.test(L)}function Ee(L){switch(L){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function oe(L){return L=L.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(L=L.replace(/ẞ/g,"ß")),L.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=oa,t.lib.ucmicro=pve(),t.assign=s,t.isString=n,t.has=o,t.unescapeMd=C,t.unescapeAll=h,t.isValidEntityCode=c,t.fromCodePoint=d,t.escapeHtml=P,t.arrayReplaceAt=l,t.isSpace=U,t.isWhiteSpace=W,t.isMdAsciiPunct=Ee,t.isPunctChar=K,t.escapeRE=k,t.normalizeReference=oe})(Je);var ol={},mve=function(e,n,i){var o,s,l,c,d=-1,_=e.posMax,p=e.pos;for(e.pos=n+1,o=1;e.pos<_;){if(l=e.src.charCodeAt(e.pos),l===93&&(o--,o===0)){s=!0;break}if(c=e.pos,e.md.inline.skipToken(e),l===91){if(c===e.pos-1)o++;else if(i)return e.pos=p,-1}}return s&&(d=e.pos),e.pos=p,d},mb=Je.unescapeAll,gve=function(e,n,i){var o,s,l=0,c=n,d={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(n)===60){for(n++;n32))return d;if(o===41){if(s===0)break;s--}n++}return c===n||s!==0||(d.str=mb(e.slice(c,n)),d.lines=l,d.pos=n,d.ok=!0),d},Eve=Je.unescapeAll,fve=function(e,n,i){var o,s,l=0,c=n,d={ok:!1,pos:0,lines:0,str:""};if(n>=i||(s=e.charCodeAt(n),s!==34&&s!==39&&s!==40))return d;for(n++,s===40&&(s=41);n"+ci(t[e].content)+""};Zn.code_block=function(t,e,n,i,o){var s=t[e];return""+ci(t[e].content)+` -`};Zn.fence=function(t,e,n,i,o){var s=t[e],l=s.info?bve(s.info).trim():"",c="",d="",_,p,g,E,f;return l&&(g=l.split(/(\s+)/g),c=g[0],d=g.slice(2).join("")),n.highlight?_=n.highlight(s.content,c,d)||ci(s.content):_=ci(s.content),_.indexOf(""+_+` -`):"
        "+_+`
        -`};Zn.image=function(t,e,n,i,o){var s=t[e];return s.attrs[s.attrIndex("alt")][1]=o.renderInlineAsText(s.children,n,i),o.renderToken(t,e,n)};Zn.hardbreak=function(t,e,n){return n.xhtmlOut?`
        -`:`
        -`};Zn.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`
        -`:`
        -`:` -`};Zn.text=function(t,e){return ci(t[e].content)};Zn.html_block=function(t,e){return t[e].content};Zn.html_inline=function(t,e){return t[e].content};function sa(){this.rules=Sve({},Zn)}sa.prototype.renderAttrs=function(e){var n,i,o;if(!e.attrs)return"";for(o="",n=0,i=e.attrs.length;n -`:">",s)};sa.prototype.renderInline=function(t,e,n){for(var i,o="",s=this.rules,l=0,c=t.length;l\s]/i.test(t)}function yve(t){return/^<\/a\s*>/i.test(t)}var Ive=function(e){var n,i,o,s,l,c,d,_,p,g,E,f,S,C,h,T,N=e.tokens,y;if(e.md.options.linkify){for(i=0,o=N.length;i=0;n--){if(c=s[n],c.type==="link_close"){for(n--;s[n].level!==c.level&&s[n].type!=="link_open";)n--;continue}if(c.type==="html_inline"&&(Ave(c.content)&&S>0&&S--,yve(c.content)&&S++),!(S>0)&&c.type==="text"&&e.md.linkify.test(c.content)){for(p=c.content,y=e.md.linkify.match(p),d=[],f=c.level,E=0,y.length>0&&y[0].index===0&&n>0&&s[n-1].type==="text_special"&&(y=y.slice(1)),_=0;_E&&(l=new e.Token("text","",0),l.content=p.slice(E,g),l.level=f,d.push(l)),l=new e.Token("link_open","a",1),l.attrs=[["href",h]],l.level=f++,l.markup="linkify",l.info="auto",d.push(l),l=new e.Token("text","",0),l.content=T,l.level=f,d.push(l),l=new e.Token("link_close","a",-1),l.level=--f,l.markup="linkify",l.info="auto",d.push(l),E=y[_].lastIndex);E=0;e--)n=t[e],n.type==="text"&&!i&&(n.content=n.content.replace(xve,Mve)),n.type==="link_open"&&n.info==="auto"&&i--,n.type==="link_close"&&n.info==="auto"&&i++}function Pve(t){var e,n,i=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!i&&SN.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&i--,n.type==="link_close"&&n.info==="auto"&&i++}var kve=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(Dve.test(e.tokens[n].content)&&Lve(e.tokens[n].children),SN.test(e.tokens[n].content)&&Pve(e.tokens[n].children))},gb=Je.isWhiteSpace,Eb=Je.isPunctChar,fb=Je.isMdAsciiPunct,Uve=/['"]/,Sb=/['"]/g,bb="’";function Is(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function Fve(t,e){var n,i,o,s,l,c,d,_,p,g,E,f,S,C,h,T,N,y,x,P,D;for(x=[],n=0;n=0&&!(x[N].level<=d);N--);if(x.length=N+1,i.type==="text"){o=i.content,l=0,c=o.length;e:for(;l=0)p=o.charCodeAt(s.index-1);else for(N=n-1;N>=0&&!(t[N].type==="softbreak"||t[N].type==="hardbreak");N--)if(t[N].content){p=t[N].content.charCodeAt(t[N].content.length-1);break}if(g=32,l=48&&p<=57&&(T=h=!1),h&&T&&(h=E,T=f),!h&&!T){y&&(i.content=Is(i.content,s.index,bb));continue}if(T){for(N=x.length-1;N>=0&&(_=x[N],!(x[N].level=0;n--)e.tokens[n].type!=="inline"||!Uve.test(e.tokens[n].content)||Fve(e.tokens[n].children,e)},Gve=function(e){var n,i,o,s,l,c,d=e.tokens;for(n=0,i=d.length;n=0&&(i=this.attrs[n][1]),i};la.prototype.attrJoin=function(e,n){var i=this.attrIndex(e);i<0?this.attrPush([e,n]):this.attrs[i][1]=this.attrs[i][1]+" "+n};var fg=la,Yve=fg;function bN(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}bN.prototype.Token=Yve;var qve=bN,$ve=Eg,xu=[["normalize",Cve],["block",Rve],["inline",Nve],["linkify",Ive],["replacements",kve],["smartquotes",Bve],["text_join",Gve]];function Sg(){this.ruler=new $ve;for(var t=0;ti||(p=n+1,e.sCount[p]=4||(c=e.bMarks[p]+e.tShift[p],c>=e.eMarks[p])||(P=e.src.charCodeAt(c++),P!==124&&P!==45&&P!==58)||c>=e.eMarks[p]||(D=e.src.charCodeAt(c++),D!==124&&D!==45&&D!==58&&!wu(D))||P===45&&wu(D))return!1;for(;c=4||(g=hb(l),g.length&&g[0]===""&&g.shift(),g.length&&g[g.length-1]===""&&g.pop(),E=g.length,E===0||E!==S.length))return!1;if(o)return!0;for(N=e.parentType,e.parentType="table",x=e.md.block.ruler.getRules("blockquote"),f=e.push("table_open","table",1),f.map=h=[n,0],f=e.push("thead_open","thead",1),f.map=[n,n+1],f=e.push("tr_open","tr",1),f.map=[n,n+1],d=0;d=4)break;for(g=hb(l),g.length&&g[0]===""&&g.shift(),g.length&&g[g.length-1]===""&&g.pop(),p===n+2&&(f=e.push("tbody_open","tbody",1),f.map=T=[n+2,0]),f=e.push("tr_open","tr",1),f.map=[p,p+1],d=0;d=4){o++,s=o;continue}break}return e.line=s,l=e.push("code_block","code",0),l.content=e.getLines(n,s,4+e.blkIndent,!1)+` -`,l.map=[n,e.line],!0},Wve=function(e,n,i,o){var s,l,c,d,_,p,g,E=!1,f=e.bMarks[n]+e.tShift[n],S=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||f+3>S||(s=e.src.charCodeAt(f),s!==126&&s!==96)||(_=f,f=e.skipChars(f,s),l=f-_,l<3)||(g=e.src.slice(_,f),c=e.src.slice(f,S),s===96&&c.indexOf(String.fromCharCode(s))>=0))return!1;if(o)return!0;for(d=n;d++,!(d>=i||(f=_=e.bMarks[d]+e.tShift[d],S=e.eMarks[d],f=4)&&(f=e.skipChars(f,s),!(f-_=4||e.src.charCodeAt(z++)!==62)return!1;if(o)return!0;for(d=f=e.sCount[n]+1,e.src.charCodeAt(z)===32?(z++,d++,f++,s=!1,x=!0):e.src.charCodeAt(z)===9?(x=!0,(e.bsCount[n]+f)%4===3?(z++,d++,f++,s=!1):s=!0):x=!1,S=[e.bMarks[n]],e.bMarks[n]=z;z=K,N=[e.sCount[n]],e.sCount[n]=f-d,y=[e.tShift[n]],e.tShift[n]=z-e.bMarks[n],D=e.md.block.ruler.getRules("blockquote"),T=e.parentType,e.parentType="blockquote",E=n+1;E=K));E++){if(e.src.charCodeAt(z++)===62&&!U){for(d=f=e.sCount[E]+1,e.src.charCodeAt(z)===32?(z++,d++,f++,s=!1,x=!0):e.src.charCodeAt(z)===9?(x=!0,(e.bsCount[E]+f)%4===3?(z++,d++,f++,s=!1):s=!0):x=!1,S.push(e.bMarks[E]),e.bMarks[E]=z;z=K,C.push(e.bsCount[E]),e.bsCount[E]=e.sCount[E]+1+(x?1:0),N.push(e.sCount[E]),e.sCount[E]=f-d,y.push(e.tShift[E]),e.tShift[E]=z-e.bMarks[E];continue}if(p)break;for(P=!1,c=0,_=D.length;c<_;c++)if(D[c](e,E,i,!0)){P=!0;break}if(P){e.lineMax=E,e.blkIndent!==0&&(S.push(e.bMarks[E]),C.push(e.bsCount[E]),y.push(e.tShift[E]),N.push(e.sCount[E]),e.sCount[E]-=e.blkIndent);break}S.push(e.bMarks[E]),C.push(e.bsCount[E]),y.push(e.tShift[E]),N.push(e.sCount[E]),e.sCount[E]=-1}for(h=e.blkIndent,e.blkIndent=0,k=e.push("blockquote_open","blockquote",1),k.markup=">",k.map=g=[n,0],e.md.block.tokenize(e,n,E),k=e.push("blockquote_close","blockquote",-1),k.markup=">",e.lineMax=W,e.parentType=T,g[1]=e.line,c=0;c=4||(s=e.src.charCodeAt(_++),s!==42&&s!==45&&s!==95))return!1;for(l=1;_=s||(n=t.src.charCodeAt(o++),n<48||n>57))return-1;for(;;){if(o>=s)return-1;if(n=t.src.charCodeAt(o++),n>=48&&n<=57){if(o-i>=10)return-1;continue}if(n===41||n===46)break;return-1}return o=4||e.listIndent>=0&&e.sCount[n]-e.listIndent>=4&&e.sCount[n]=e.blkIndent&&(G=!0),(K=Cb(e,n))>=0){if(g=!0,oe=e.bMarks[n]+e.tShift[n],T=Number(e.src.slice(oe,K-1)),G&&T!==1)return!1}else if((K=vb(e,n))>=0)g=!1;else return!1;if(G&&e.skipSpaces(K)>=e.eMarks[n])return!1;if(h=e.src.charCodeAt(K-1),o)return!0;for(C=e.tokens.length,g?(re=e.push("ordered_list_open","ol",1),T!==1&&(re.attrs=[["start",T]])):re=e.push("bullet_list_open","ul",1),re.map=S=[n,0],re.markup=String.fromCharCode(h),y=n,Ee=!1,J=e.md.block.ruler.getRules("list"),D=e.parentType,e.parentType="list";y=N?_=1:_=x-p,_>4&&(_=1),d=p+_,re=e.push("list_item_open","li",1),re.markup=String.fromCharCode(h),re.map=E=[n,0],g&&(re.info=e.src.slice(oe,K-1)),W=e.tight,U=e.tShift[n],k=e.sCount[n],P=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=d,e.tight=!0,e.tShift[n]=l-e.bMarks[n],e.sCount[n]=x,l>=N&&e.isEmpty(n+1)?e.line=Math.min(e.line+2,i):e.md.block.tokenize(e,n,i,!0),(!e.tight||Ee)&&(X=!1),Ee=e.line-n>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=P,e.tShift[n]=U,e.sCount[n]=k,e.tight=W,re=e.push("list_item_close","li",-1),re.markup=String.fromCharCode(h),y=n=e.line,E[1]=y,l=e.bMarks[n],y>=i||e.sCount[y]=4)break;for(L=!1,c=0,f=J.length;c=4||e.src.charCodeAt(D)!==91)return!1;for(;++D3)&&!(e.sCount[U]<0)){for(N=!1,p=0,g=y.length;p"u"&&(e.env.references={}),typeof e.env.references[E]>"u"&&(e.env.references[E]={title:x,href:_}),e.parentType=S,e.line=n+P+1),!0)},tCe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],sl={},nCe="[a-zA-Z_:][a-zA-Z0-9:._-]*",rCe="[^\"'=<>`\\x00-\\x20]+",iCe="'[^']*'",aCe='"[^"]*"',oCe="(?:"+rCe+"|"+iCe+"|"+aCe+")",sCe="(?:\\s+"+nCe+"(?:\\s*=\\s*"+oCe+")?)",TN="<[A-Za-z][A-Za-z0-9\\-]*"+sCe+"*\\s*\\/?>",vN="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",lCe="|",cCe="<[?][\\s\\S]*?[?]>",uCe="]*>",dCe="",_Ce=new RegExp("^(?:"+TN+"|"+vN+"|"+lCe+"|"+cCe+"|"+uCe+"|"+dCe+")"),pCe=new RegExp("^(?:"+TN+"|"+vN+")");sl.HTML_TAG_RE=_Ce;sl.HTML_OPEN_CLOSE_TAG_RE=pCe;var mCe=tCe,gCe=sl.HTML_OPEN_CLOSE_TAG_RE,Gi=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(gCe.source+"\\s*$"),/^$/,!1]],ECe=function(e,n,i,o){var s,l,c,d,_=e.bMarks[n]+e.tShift[n],p=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(_)!==60)return!1;for(d=e.src.slice(_,p),s=0;s=4||(s=e.src.charCodeAt(_),s!==35||_>=p))return!1;for(l=1,s=e.src.charCodeAt(++_);s===35&&_6||__&&Rb(e.src.charCodeAt(c-1))&&(p=c),e.line=n+1,d=e.push("heading_open","h"+String(l),1),d.markup="########".slice(0,l),d.map=[n,e.line],d=e.push("inline","",0),d.content=e.src.slice(_,p).trim(),d.map=[n,e.line],d.children=[],d=e.push("heading_close","h"+String(l),-1),d.markup="########".slice(0,l)),!0)},SCe=function(e,n,i){var o,s,l,c,d,_,p,g,E,f=n+1,S,C=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(S=e.parentType,e.parentType="paragraph";f3)){if(e.sCount[f]>=e.blkIndent&&(_=e.bMarks[f]+e.tShift[f],p=e.eMarks[f],_=p)))){g=E===61?1:2;break}if(!(e.sCount[f]<0)){for(s=!1,l=0,c=C.length;l3)&&!(e.sCount[_]<0)){for(o=!1,s=0,l=p.length;s0&&this.level++,this.tokens.push(i),i};Jn.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};Jn.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;en;)if(!ll(this.src.charCodeAt(--e)))return e+1;return e};Jn.prototype.skipChars=function(e,n){for(var i=this.src.length;ei;)if(n!==this.src.charCodeAt(--e))return e+1;return e};Jn.prototype.getLines=function(e,n,i,o){var s,l,c,d,_,p,g,E=e;if(e>=n)return"";for(p=new Array(n-e),s=0;Ei?p[s]=new Array(l-i+1).join(" ")+this.src.slice(d,_):p[s]=this.src.slice(d,_)}return p.join("")};Jn.prototype.Token=CN;var hCe=Jn,TCe=Eg,xs=[["table",zve,["paragraph","reference"]],["code",Vve],["fence",Wve,["paragraph","reference","blockquote","list"]],["blockquote",Kve,["paragraph","reference","blockquote","list"]],["hr",Xve,["paragraph","reference","blockquote","list"]],["list",Jve,["paragraph","reference","blockquote"]],["reference",eCe],["html_block",ECe,["paragraph","reference","blockquote"]],["heading",fCe,["paragraph","reference","blockquote"]],["lheading",SCe],["paragraph",bCe]];function cl(){this.ruler=new TCe;for(var t=0;t=n||t.sCount[c]=_){t.line=n;break}for(o=0;o0||(i=e.pos,o=e.posMax,i+3>o)||e.src.charCodeAt(i)!==58||e.src.charCodeAt(i+1)!==47||e.src.charCodeAt(i+2)!==47||(s=e.pending.match(NCe),!s)||(l=s[1],c=e.md.linkify.matchAtStart(e.src.slice(i-l.length)),!c)||(d=c.url,d=d.replace(/\*+$/,""),_=e.md.normalizeLink(d),!e.md.validateLink(_))?!1:(n||(e.pending=e.pending.slice(0,-l.length),p=e.push("link_open","a",1),p.attrs=[["href",_]],p.markup="linkify",p.info="auto",p=e.push("text","",0),p.content=e.md.normalizeLinkText(d),p=e.push("link_close","a",-1),p.markup="linkify",p.info="auto"),e.pos+=d.length-l.length,!0)},ACe=Je.isSpace,yCe=function(e,n){var i,o,s,l=e.pos;if(e.src.charCodeAt(l)!==10)return!1;if(i=e.pending.length-1,o=e.posMax,!n)if(i>=0&&e.pending.charCodeAt(i)===32)if(i>=1&&e.pending.charCodeAt(i-1)===32){for(s=i-1;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(l++;l?@[]^_`{|}~-".split("").forEach(function(t){bg[t.charCodeAt(0)]=1});var DCe=function(e,n){var i,o,s,l,c,d=e.pos,_=e.posMax;if(e.src.charCodeAt(d)!==92||(d++,d>=_))return!1;if(i=e.src.charCodeAt(d),i===10){for(n||e.push("hardbreak","br",0),d++;d<_&&(i=e.src.charCodeAt(d),!!ICe(i));)d++;return e.pos=d,!0}return l=e.src[d],i>=55296&&i<=56319&&d+1<_&&(o=e.src.charCodeAt(d+1),o>=56320&&o<=57343&&(l+=e.src[d+1],d++)),s="\\"+l,n||(c=e.push("text_special","",0),i<256&&bg[i]!==0?c.content=l:c.content=s,c.markup=s,c.info="escape"),e.pos=d+1,!0},xCe=function(e,n){var i,o,s,l,c,d,_,p,g=e.pos,E=e.src.charCodeAt(g);if(E!==96)return!1;for(i=g,g++,o=e.posMax;g=0;n--)i=e[n],!(i.marker!==95&&i.marker!==42)&&i.end!==-1&&(o=e[i.end],c=n>0&&e[n-1].end===i.end+1&&e[n-1].marker===i.marker&&e[n-1].token===i.token-1&&e[i.end+1].token===o.token+1,l=String.fromCharCode(i.marker),s=t.tokens[i.token],s.type=c?"strong_open":"em_open",s.tag=c?"strong":"em",s.nesting=1,s.markup=c?l+l:l,s.content="",s=t.tokens[o.token],s.type=c?"strong_close":"em_close",s.tag=c?"strong":"em",s.nesting=-1,s.markup=c?l+l:l,s.content="",c&&(t.tokens[e[n-1].token].content="",t.tokens[e[i.end+1].token].content="",n--))}dl.postProcess=function(e){var n,i=e.tokens_meta,o=e.tokens_meta.length;for(Ab(e,e.delimiters),n=0;n=C)return!1;if(h=d,_=e.md.helpers.parseLinkDestination(e.src,d,e.posMax),_.ok){for(E=e.md.normalizeLink(_.str),e.md.validateLink(E)?d=_.pos:E="",h=d;d=C||e.src.charCodeAt(d)!==41)&&(T=!0),d++}if(T){if(typeof e.env.references>"u")return!1;if(d=0?s=e.src.slice(h,d++):d=l+1):d=l+1,s||(s=e.src.slice(c,l)),p=e.env.references[wCe(s)],!p)return e.pos=S,!1;E=p.href,f=p.title}return n||(e.pos=c,e.posMax=l,g=e.push("link_open","a",1),g.attrs=i=[["href",E]],f&&i.push(["title",f]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,g=e.push("link_close","a",-1)),e.pos=d,e.posMax=C,!0},LCe=Je.normalizeReference,Pu=Je.isSpace,PCe=function(e,n){var i,o,s,l,c,d,_,p,g,E,f,S,C,h="",T=e.pos,N=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(d=e.pos+2,c=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),c<0))return!1;if(_=c+1,_=N)return!1;for(C=_,g=e.md.helpers.parseLinkDestination(e.src,_,e.posMax),g.ok&&(h=e.md.normalizeLink(g.str),e.md.validateLink(h)?_=g.pos:h=""),C=_;_=N||e.src.charCodeAt(_)!==41)return e.pos=T,!1;_++}else{if(typeof e.env.references>"u")return!1;if(_=0?l=e.src.slice(C,_++):_=c+1):_=c+1,l||(l=e.src.slice(d,c)),p=e.env.references[LCe(l)],!p)return e.pos=T,!1;h=p.href,E=p.title}return n||(s=e.src.slice(d,c),e.md.inline.parse(s,e.md,e.env,S=[]),f=e.push("image","img",0),f.attrs=i=[["src",h],["alt",""]],f.children=S,f.content=s,E&&i.push(["title",E])),e.pos=_,e.posMax=N,!0},kCe=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,UCe=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,FCe=function(e,n){var i,o,s,l,c,d,_=e.pos;if(e.src.charCodeAt(_)!==60)return!1;for(c=e.pos,d=e.posMax;;){if(++_>=d||(l=e.src.charCodeAt(_),l===60))return!1;if(l===62)break}return i=e.src.slice(c+1,_),UCe.test(i)?(o=e.md.normalizeLink(i),e.md.validateLink(o)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",o]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(i),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=i.length+2,!0):!1):kCe.test(i)?(o=e.md.normalizeLink("mailto:"+i),e.md.validateLink(o)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",o]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(i),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=i.length+2,!0):!1):!1},BCe=sl.HTML_TAG_RE;function GCe(t){return/^\s]/i.test(t)}function YCe(t){return/^<\/a\s*>/i.test(t)}function qCe(t){var e=t|32;return e>=97&&e<=122}var $Ce=function(e,n){var i,o,s,l,c=e.pos;return!e.md.options.html||(s=e.posMax,e.src.charCodeAt(c)!==60||c+2>=s)||(i=e.src.charCodeAt(c+1),i!==33&&i!==63&&i!==47&&!qCe(i))||(o=e.src.slice(c).match(BCe),!o)?!1:(n||(l=e.push("html_inline","",0),l.content=e.src.slice(c,c+o[0].length),GCe(l.content)&&e.linkLevel++,YCe(l.content)&&e.linkLevel--),e.pos+=o[0].length,!0)},yb=mN,HCe=Je.has,zCe=Je.isValidEntityCode,Ib=Je.fromCodePoint,VCe=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,WCe=/^&([a-z][a-z0-9]{1,31});/i,KCe=function(e,n){var i,o,s,l,c=e.pos,d=e.posMax;if(e.src.charCodeAt(c)!==38||c+1>=d)return!1;if(i=e.src.charCodeAt(c+1),i===35){if(s=e.src.slice(c).match(VCe),s)return n||(o=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),l=e.push("text_special","",0),l.content=zCe(o)?Ib(o):Ib(65533),l.markup=s[0],l.info="entity"),e.pos+=s[0].length,!0}else if(s=e.src.slice(c).match(WCe),s&&HCe(yb,s[1]))return n||(l=e.push("text_special","",0),l.content=yb[s[1]],l.markup=s[0],l.info="entity"),e.pos+=s[0].length,!0;return!1};function Db(t,e){var n,i,o,s,l,c,d,_,p={},g=e.length;if(g){var E=0,f=-2,S=[];for(n=0;nl;i-=S[i]+1)if(s=e[i],s.marker===o.marker&&s.open&&s.end<0&&(d=!1,(s.close||o.open)&&(s.length+o.length)%3===0&&(s.length%3!==0||o.length%3!==0)&&(d=!0),!d)){_=i>0&&!e[i-1].open?S[i-1]+1:0,S[n]=n-i+_,S[i]=_,o.open=!1,s.end=n,s.close=!1,c=-1,f=-2;break}c!==-1&&(p[o.marker][(o.open?3:0)+(o.length||0)%3]=c)}}}var QCe=function(e){var n,i=e.tokens_meta,o=e.tokens_meta.length;for(Db(e,e.delimiters),n=0;n0&&o++,s[n].type==="text"&&n+10&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(o),i};oo.prototype.scanDelims=function(t,e){var n=t,i,o,s,l,c,d,_,p,g,E=!0,f=!0,S=this.posMax,C=this.src.charCodeAt(t);for(i=t>0?this.src.charCodeAt(t-1):32;n=s)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};so.prototype.parse=function(t,e,n,i){var o,s,l,c=new this.State(t,e,n,i);for(this.tokenize(c),s=this.ruler2.getRules(""),l=s.length,o=0;o|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),Fu}function Bm(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){n&&Object.keys(n).forEach(function(i){t[i]=n[i]})}),t}function _l(t){return Object.prototype.toString.call(t)}function eRe(t){return _l(t)==="[object String]"}function tRe(t){return _l(t)==="[object Object]"}function nRe(t){return _l(t)==="[object RegExp]"}function kb(t){return _l(t)==="[object Function]"}function rRe(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var RN={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function iRe(t){return Object.keys(t||{}).reduce(function(e,n){return e||RN.hasOwnProperty(n)},!1)}var aRe={"http:":{validate:function(t,e,n){var i=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(i)?i.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var i=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(i)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:i.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var i=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(i)?i.match(n.re.mailto)[0].length:0}}},oRe="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",sRe="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function lRe(t){t.__index__=-1,t.__text_cache__=""}function cRe(t){return function(e,n){var i=e.slice(n);return t.test(i)?i.match(t)[0].length:0}}function Ub(){return function(t,e){e.normalize(t)}}function zs(t){var e=t.re=jCe()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(oRe),n.push(e.src_xn),e.src_tlds=n.join("|");function i(c){return c.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(i(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(i(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(i(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(i(e.tpl_host_fuzzy_test),"i");var o=[];t.__compiled__={};function s(c,d){throw new Error('(LinkifyIt) Invalid schema "'+c+'": '+d)}Object.keys(t.__schemas__).forEach(function(c){var d=t.__schemas__[c];if(d!==null){var _={validate:null,link:null};if(t.__compiled__[c]=_,tRe(d)){nRe(d.validate)?_.validate=cRe(d.validate):kb(d.validate)?_.validate=d.validate:s(c,d),kb(d.normalize)?_.normalize=d.normalize:d.normalize?s(c,d):_.normalize=Ub();return}if(eRe(d)){o.push(c);return}s(c,d)}}),o.forEach(function(c){t.__compiled__[t.__schemas__[c]]&&(t.__compiled__[c].validate=t.__compiled__[t.__schemas__[c]].validate,t.__compiled__[c].normalize=t.__compiled__[t.__schemas__[c]].normalize)}),t.__compiled__[""]={validate:null,normalize:Ub()};var l=Object.keys(t.__compiled__).filter(function(c){return c.length>0&&t.__compiled__[c]}).map(rRe).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+l+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+l+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),lRe(t)}function uRe(t,e){var n=t.__index__,i=t.__last_index__,o=t.__text_cache__.slice(n,i);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=i+e,this.raw=o,this.text=o,this.url=o}function Gm(t,e){var n=new uRe(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function En(t,e){if(!(this instanceof En))return new En(t,e);e||iRe(t)&&(e=t,t={}),this.__opts__=Bm({},RN,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Bm({},aRe,t),this.__compiled__={},this.__tlds__=sRe,this.__tlds_replaced__=!1,this.re={},zs(this)}En.prototype.add=function(e,n){return this.__schemas__[e]=n,zs(this),this};En.prototype.set=function(e){return this.__opts__=Bm(this.__opts__,e),this};En.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,i,o,s,l,c,d,_,p;if(this.re.schema_test.test(e)){for(d=this.re.schema_search,d.lastIndex=0;(n=d.exec(e))!==null;)if(s=this.testSchemaAt(e,n[2],d.lastIndex),s){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(_=e.search(this.re.host_fuzzy_test),_>=0&&(this.__index__<0||_=0&&(o=e.match(this.re.email_fuzzy))!==null&&(l=o.index+o[1].length,c=o.index+o[0].length,(this.__index__<0||lthis.__last_index__)&&(this.__schema__="mailto:",this.__index__=l,this.__last_index__=c))),this.__index__>=0};En.prototype.pretest=function(e){return this.re.pretest.test(e)};En.prototype.testSchemaAt=function(e,n,i){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,i,this):0};En.prototype.match=function(e){var n=0,i=[];this.__index__>=0&&this.__text_cache__===e&&(i.push(Gm(this,n)),n=this.__last_index__);for(var o=n?e.slice(n):e;this.test(o);)i.push(Gm(this,n)),o=o.slice(this.__last_index__),n+=this.__last_index__;return i.length?i:null};En.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var n=this.re.schema_at_start.exec(e);if(!n)return null;var i=this.testSchemaAt(e,n[2],n[0].length);return i?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+i,Gm(this,0)):null};En.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(i,o,s){return i!==s[o-1]}).reverse(),zs(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,zs(this),this)};En.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};En.prototype.onCompile=function(){};var dRe=En;const Wi=2147483647,zn=36,Tg=1,eo=26,_Re=38,pRe=700,NN=72,ON=128,AN="-",mRe=/^xn--/,gRe=/[^\0-\x7F]/,ERe=/[\x2E\u3002\uFF0E\uFF61]/g,fRe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Bu=zn-Tg,Vn=Math.floor,Gu=String.fromCharCode;function yr(t){throw new RangeError(fRe[t])}function SRe(t,e){const n=[];let i=t.length;for(;i--;)n[i]=e(t[i]);return n}function yN(t,e){const n=t.split("@");let i="";n.length>1&&(i=n[0]+"@",t=n[1]),t=t.replace(ERe,".");const o=t.split("."),s=SRe(o,e).join(".");return i+s}function vg(t){const e=[];let n=0;const i=t.length;for(;n=55296&&o<=56319&&nString.fromCodePoint(...t),bRe=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:zn},Fb=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},DN=function(t,e,n){let i=0;for(t=n?Vn(t/pRe):t>>1,t+=Vn(t/e);t>Bu*eo>>1;i+=zn)t=Vn(t/Bu);return Vn(i+(Bu+1)*t/(t+_Re))},Cg=function(t){const e=[],n=t.length;let i=0,o=ON,s=NN,l=t.lastIndexOf(AN);l<0&&(l=0);for(let c=0;c=128&&yr("not-basic"),e.push(t.charCodeAt(c));for(let c=l>0?l+1:0;c=n&&yr("invalid-input");const E=bRe(t.charCodeAt(c++));E>=zn&&yr("invalid-input"),E>Vn((Wi-i)/p)&&yr("overflow"),i+=E*p;const f=g<=s?Tg:g>=s+eo?eo:g-s;if(EVn(Wi/S)&&yr("overflow"),p*=S}const _=e.length+1;s=DN(i-d,_,d==0),Vn(i/_)>Wi-o&&yr("overflow"),o+=Vn(i/_),i%=_,e.splice(i++,0,o)}return String.fromCodePoint(...e)},Rg=function(t){const e=[];t=vg(t);const n=t.length;let i=ON,o=0,s=NN;for(const d of t)d<128&&e.push(Gu(d));const l=e.length;let c=l;for(l&&e.push(AN);c=i&&pVn((Wi-o)/_)&&yr("overflow"),o+=(d-i)*_,i=d;for(const p of t)if(pWi&&yr("overflow"),p===i){let g=o;for(let E=zn;;E+=zn){const f=E<=s?Tg:E>=s+eo?eo:E-s;if(g=0))try{e.hostname=MN.toASCII(e.hostname)}catch{}return ti.encode(ti.format(e))}function URe(t){var e=ti.parse(t,!0);if(e.hostname&&(!e.protocol||LN.indexOf(e.protocol)>=0))try{e.hostname=MN.toUnicode(e.hostname)}catch{}return ti.decode(ti.format(e),ti.decode.defaultChars+"%")}function Dn(t,e){if(!(this instanceof Dn))return new Dn(t,e);e||Wa.isString(t)||(e=t||{},t="default"),this.inline=new DRe,this.block=new IRe,this.core=new yRe,this.renderer=new ARe,this.linkify=new xRe,this.validateLink=PRe,this.normalizeLink=kRe,this.normalizeLinkText=URe,this.utils=Wa,this.helpers=Wa.assign({},ORe),this.options={},this.configure(t),e&&this.set(e)}Dn.prototype.set=function(t){return Wa.assign(this.options,t),this};Dn.prototype.configure=function(t){var e=this,n;if(Wa.isString(t)&&(n=t,t=wRe[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(i){t.components[i].rules&&e[i].ruler.enableOnly(t.components[i].rules),t.components[i].rules2&&e[i].ruler2.enableOnly(t.components[i].rules2)}),this};Dn.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var i=t.filter(function(o){return n.indexOf(o)<0});if(i.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i);return this};Dn.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var i=t.filter(function(o){return n.indexOf(o)<0});if(i.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i);return this};Dn.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};Dn.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens};Dn.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};Dn.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};Dn.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var FRe=Dn,BRe=FRe;const GRe=Qm(BRe);var kr={};kr.getAttrs=function(t,e,n){const i=/[^\t\n\f />"'=]/,o=" ",s="=",l=".",c="#",d=[];let _="",p="",g=!0,E=!1;for(let f=e+n.leftDelimiter.length;f=i+1:p.length>=i}let s,l,c,d;const _=i-e.rightDelimiter.length;switch(t){case"start":c=n.slice(0,e.leftDelimiter.length),s=c===e.leftDelimiter?0:-1,l=s===-1?-1:n.indexOf(e.rightDelimiter,_),d=n.charAt(l+e.rightDelimiter.length),d&&e.rightDelimiter.indexOf(d)!==-1&&(l=-1);break;case"end":s=n.lastIndexOf(e.leftDelimiter),l=s===-1?-1:n.indexOf(e.rightDelimiter,s+_),l=l===n.length-e.rightDelimiter.length?l:-1;break;case"only":c=n.slice(0,e.leftDelimiter.length),s=c===e.leftDelimiter?0:-1,c=n.slice(n.length-e.rightDelimiter.length),l=c===e.rightDelimiter?n.length-e.rightDelimiter.length:-1;break;default:throw new Error(`Unexpected case ${t}, expected 'start', 'end' or 'only'`)}return s!==-1&&l!==-1&&o(n.substring(s,l+e.rightDelimiter.length))}};kr.removeDelimiter=function(t,e){const n=Ym(e.leftDelimiter),i=Ym(e.rightDelimiter),o=new RegExp("[ \\n]?"+n+"[^"+n+i+"]+"+i+"$"),s=t.search(o);return s!==-1?t.slice(0,s):t};function Ym(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}kr.escapeRegExp=Ym;kr.getMatchingOpeningToken=function(t,e){if(t[e].type==="softbreak")return!1;if(t[e].nesting===0)return t[e];const n=t[e].level,i=t[e].type.replace("_close","_open");for(;e>=0;--e)if(t[e].type===i&&t[e].level===n)return t[e];return!1};const YRe=/[&<>"]/,qRe=/[&<>"]/g,$Re={"&":"&","<":"<",">":">",'"':"""};function HRe(t){return $Re[t]}kr.escapeHtml=function(t){return YRe.test(t)?t.replace(qRe,HRe):t};const qe=kr;var zRe=t=>{const e=new RegExp("^ {0,3}[-*_]{3,} ?"+qe.escapeRegExp(t.leftDelimiter)+"[^"+qe.escapeRegExp(t.rightDelimiter)+"]");return[{name:"fenced code blocks",tests:[{shift:0,block:!0,info:qe.hasDelimiters("end",t)}],transform:(n,i)=>{const o=n[i],s=o.info.lastIndexOf(t.leftDelimiter),l=qe.getAttrs(o.info,s,t);qe.addAttrs(l,o),o.info=qe.removeDelimiter(o.info,t)}},{name:"inline nesting 0",tests:[{shift:0,type:"inline",children:[{shift:-1,type:n=>n==="image"||n==="code_inline"},{shift:0,type:"text",content:qe.hasDelimiters("start",t)}]}],transform:(n,i,o)=>{const s=n[i].children[o],l=s.content.indexOf(t.rightDelimiter),c=n[i].children[o-1],d=qe.getAttrs(s.content,0,t);qe.addAttrs(d,c),s.content.length===l+t.rightDelimiter.length?n[i].children.splice(o,1):s.content=s.content.slice(l+t.rightDelimiter.length)}},{name:"tables",tests:[{shift:0,type:"table_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:qe.hasDelimiters("only",t)}],transform:(n,i)=>{const o=n[i+2],s=qe.getMatchingOpeningToken(n,i),l=qe.getAttrs(o.content,0,t);qe.addAttrs(l,s),n.splice(i+1,3)}},{name:"inline attributes",tests:[{shift:0,type:"inline",children:[{shift:-1,nesting:-1},{shift:0,type:"text",content:qe.hasDelimiters("start",t)}]}],transform:(n,i,o)=>{const s=n[i].children[o],l=s.content,c=qe.getAttrs(l,0,t),d=qe.getMatchingOpeningToken(n[i].children,o-1);qe.addAttrs(c,d),s.content=l.slice(l.indexOf(t.rightDelimiter)+t.rightDelimiter.length)}},{name:"list softbreak",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:qe.hasDelimiters("only",t)}]}],transform:(n,i,o)=>{const l=n[i].children[o].content,c=qe.getAttrs(l,0,t);let d=i-2;for(;n[d-1]&&n[d-1].type!=="ordered_list_open"&&n[d-1].type!=="bullet_list_open";)d--;qe.addAttrs(c,n[d-1]),n[i].children=n[i].children.slice(0,-2)}},{name:"list double softbreak",tests:[{shift:0,type:n=>n==="bullet_list_close"||n==="ordered_list_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:qe.hasDelimiters("only",t),children:n=>n.length===1},{shift:3,type:"paragraph_close"}],transform:(n,i)=>{const s=n[i+2].content,l=qe.getAttrs(s,0,t),c=qe.getMatchingOpeningToken(n,i);qe.addAttrs(l,c),n.splice(i+1,3)}},{name:"list item end",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-1,type:"text",content:qe.hasDelimiters("end",t)}]}],transform:(n,i,o)=>{const s=n[i].children[o],l=s.content,c=qe.getAttrs(l,l.lastIndexOf(t.leftDelimiter),t);qe.addAttrs(c,n[i-2]);const d=l.slice(0,l.lastIndexOf(t.leftDelimiter));s.content=Bb(d)!==" "?d:d.slice(0,-1)}},{name:` -{.a} softbreak then curly in start`,tests:[{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:qe.hasDelimiters("only",t)}]}],transform:(n,i,o)=>{const s=n[i].children[o],l=qe.getAttrs(s.content,0,t);let c=i+1;for(;n[c+1]&&n[c+1].nesting===-1;)c++;const d=qe.getMatchingOpeningToken(n,c);qe.addAttrs(l,d),n[i].children=n[i].children.slice(0,-2)}},{name:"horizontal rule",tests:[{shift:0,type:"paragraph_open"},{shift:1,type:"inline",children:n=>n.length===1,content:n=>n.match(e)!==null},{shift:2,type:"paragraph_close"}],transform:(n,i)=>{const o=n[i];o.type="hr",o.tag="hr",o.nesting=0;const s=n[i+1].content,l=s.lastIndexOf(t.leftDelimiter),c=qe.getAttrs(s,l,t);qe.addAttrs(c,o),o.markup=s,n.splice(i+1,2)}},{name:"end of block",tests:[{shift:0,type:"inline",children:[{position:-1,content:qe.hasDelimiters("end",t),type:n=>n!=="code_inline"&&n!=="math_inline"}]}],transform:(n,i,o)=>{const s=n[i].children[o],l=s.content,c=qe.getAttrs(l,l.lastIndexOf(t.leftDelimiter),t);let d=i+1;for(;n[d+1]&&n[d+1].nesting===-1;)d++;const _=qe.getMatchingOpeningToken(n,d);qe.addAttrs(c,_);const p=l.slice(0,l.lastIndexOf(t.leftDelimiter));s.content=Bb(p)!==" "?p:p.slice(0,-1)}}]};function Bb(t){return t.slice(-1)[0]}const VRe=zRe,WRe={leftDelimiter:"{",rightDelimiter:"}",allowedAttributes:[]};var KRe=function(e,n){let i=Object.assign({},WRe);i=Object.assign(i,n);const o=VRe(i);function s(l){const c=l.tokens;for(let d=0;d{const S=qm(c,d,f);return S.j!==null&&(g=S.j),S.match})&&(p.transform(c,d,g),(p.name==="inline attributes"||p.name==="inline nesting 0")&&_--)}}e.core.ruler.before("linkify","curly_attributes",s)};function qm(t,e,n){const i={match:!1,j:null},o=n.shift!==void 0?e+n.shift:n.position;if(n.shift!==void 0&&o<0)return i;const s=ZRe(t,o);if(s===void 0)return i;for(const l of Object.keys(n))if(!(l==="shift"||l==="position")){if(s[l]===void 0)return i;if(l==="children"&&QRe(n.children)){if(s.children.length===0)return i;let c;const d=n.children,_=s.children;if(d.every(p=>p.position!==void 0)){if(c=d.every(p=>qm(_,p.position,p).match),c){const p=JRe(d).position;i.j=p>=0?p:_.length+p}}else for(let p=0;p<_.length;p++)if(c=d.every(g=>qm(_,p,g).match),c){i.j=p;break}if(c===!1)return i;continue}switch(typeof n[l]){case"boolean":case"number":case"string":if(s[l]!==n[l])return i;break;case"function":if(!n[l](s[l]))return i;break;case"object":if(XRe(n[l])){if(n[l].every(d=>d(s[l]))===!1)return i;break}default:throw new Error(`Unknown type of pattern test (key: ${l}). Test should be of type boolean, number, string, function or array of functions.`)}}return i.match=!0,i}function QRe(t){return Array.isArray(t)&&t.length&&t.every(e=>typeof e=="object")}function XRe(t){return Array.isArray(t)&&t.length&&t.every(e=>typeof e=="function")}function ZRe(t,e){return e>=0?t[e]:t[t.length+e]}function JRe(t){return t.slice(-1)[0]||{}}const jRe=Qm(KRe);function PN(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(e=>{const n=t[e],i=typeof n;(i==="object"||i==="function")&&!Object.isFrozen(n)&&PN(n)}),t}class Gb{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function kN(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function xr(t,...e){const n=Object.create(null);for(const i in t)n[i]=t[i];return e.forEach(function(i){for(const o in i)n[o]=i[o]}),n}const eNe="",Yb=t=>!!t.scope,tNe=(t,{prefix:e})=>{if(t.startsWith("language:"))return t.replace("language:","language-");if(t.includes(".")){const n=t.split(".");return[`${e}${n.shift()}`,...n.map((i,o)=>`${i}${"_".repeat(o+1)}`)].join(" ")}return`${e}${t}`};class nNe{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=kN(e)}openNode(e){if(!Yb(e))return;const n=tNe(e.scope,{prefix:this.classPrefix});this.span(n)}closeNode(e){Yb(e)&&(this.buffer+=eNe)}value(){return this.buffer}span(e){this.buffer+=``}}const qb=(t={})=>{const e={children:[]};return Object.assign(e,t),e};class Ng{constructor(){this.rootNode=qb(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const n=qb({scope:e});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){return typeof n=="string"?e.addText(n):n.children&&(e.openNode(n),n.children.forEach(i=>this._walk(e,i)),e.closeNode(n)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(n=>typeof n=="string")?e.children=[e.children.join("")]:e.children.forEach(n=>{Ng._collapse(n)}))}}class rNe extends Ng{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,n){const i=e.root;n&&(i.scope=`language:${n}`),this.add(i)}toHTML(){return new nNe(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function to(t){return t?typeof t=="string"?t:t.source:null}function UN(t){return gi("(?=",t,")")}function iNe(t){return gi("(?:",t,")*")}function aNe(t){return gi("(?:",t,")?")}function gi(...t){return t.map(n=>to(n)).join("")}function oNe(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function Og(...t){return"("+(oNe(t).capture?"":"?:")+t.map(i=>to(i)).join("|")+")"}function FN(t){return new RegExp(t.toString()+"|").exec("").length-1}function sNe(t,e){const n=t&&t.exec(e);return n&&n.index===0}const lNe=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Ag(t,{joinWith:e}){let n=0;return t.map(i=>{n+=1;const o=n;let s=to(i),l="";for(;s.length>0;){const c=lNe.exec(s);if(!c){l+=s;break}l+=s.substring(0,c.index),s=s.substring(c.index+c[0].length),c[0][0]==="\\"&&c[1]?l+="\\"+String(Number(c[1])+o):(l+=c[0],c[0]==="("&&n++)}return l}).map(i=>`(${i})`).join(e)}const cNe=/\b\B/,BN="[a-zA-Z]\\w*",yg="[a-zA-Z_]\\w*",GN="\\b\\d+(\\.\\d+)?",YN="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",qN="\\b(0b[01]+)",uNe="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",dNe=(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=gi(e,/.*\b/,t.binary,/\b.*/)),xr({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(n,i)=>{n.index!==0&&i.ignoreMatch()}},t)},no={begin:"\\\\[\\s\\S]",relevance:0},_Ne={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[no]},pNe={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[no]},mNe={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},pl=function(t,e,n={}){const i=xr({scope:"comment",begin:t,end:e,contains:[]},n);i.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const o=Og("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return i.contains.push({begin:gi(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i},gNe=pl("//","$"),ENe=pl("/\\*","\\*/"),fNe=pl("#","$"),SNe={scope:"number",begin:GN,relevance:0},bNe={scope:"number",begin:YN,relevance:0},hNe={scope:"number",begin:qN,relevance:0},TNe={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[no,{begin:/\[/,end:/\]/,relevance:0,contains:[no]}]}]},vNe={scope:"title",begin:BN,relevance:0},CNe={scope:"title",begin:yg,relevance:0},RNe={begin:"\\.\\s*"+yg,relevance:0},NNe=function(t){return Object.assign(t,{"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})};var ws=Object.freeze({__proto__:null,MATCH_NOTHING_RE:cNe,IDENT_RE:BN,UNDERSCORE_IDENT_RE:yg,NUMBER_RE:GN,C_NUMBER_RE:YN,BINARY_NUMBER_RE:qN,RE_STARTERS_RE:uNe,SHEBANG:dNe,BACKSLASH_ESCAPE:no,APOS_STRING_MODE:_Ne,QUOTE_STRING_MODE:pNe,PHRASAL_WORDS_MODE:mNe,COMMENT:pl,C_LINE_COMMENT_MODE:gNe,C_BLOCK_COMMENT_MODE:ENe,HASH_COMMENT_MODE:fNe,NUMBER_MODE:SNe,C_NUMBER_MODE:bNe,BINARY_NUMBER_MODE:hNe,REGEXP_MODE:TNe,TITLE_MODE:vNe,UNDERSCORE_TITLE_MODE:CNe,METHOD_GUARD:RNe,END_SAME_AS_BEGIN:NNe});function ONe(t,e){t.input[t.index-1]==="."&&e.ignoreMatch()}function ANe(t,e){t.className!==void 0&&(t.scope=t.className,delete t.className)}function yNe(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=ONe,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function INe(t,e){Array.isArray(t.illegal)&&(t.illegal=Og(...t.illegal))}function DNe(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function xNe(t,e){t.relevance===void 0&&(t.relevance=1)}const wNe=(t,e)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},t);Object.keys(t).forEach(i=>{delete t[i]}),t.keywords=n.keywords,t.begin=gi(n.beforeMatch,UN(n.begin)),t.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},t.relevance=0,delete n.beforeMatch},MNe=["of","and","for","in","not","or","if","then","parent","list","value"],LNe="keyword";function $N(t,e,n=LNe){const i=Object.create(null);return typeof t=="string"?o(n,t.split(" ")):Array.isArray(t)?o(n,t):Object.keys(t).forEach(function(s){Object.assign(i,$N(t[s],e,s))}),i;function o(s,l){e&&(l=l.map(c=>c.toLowerCase())),l.forEach(function(c){const d=c.split("|");i[d[0]]=[s,PNe(d[0],d[1])]})}}function PNe(t,e){return e?Number(e):kNe(t)?0:1}function kNe(t){return MNe.includes(t.toLowerCase())}const $b={},ai=t=>{console.error(t)},Hb=(t,...e)=>{console.log(`WARN: ${t}`,...e)},Yi=(t,e)=>{$b[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),$b[`${t}/${e}`]=!0)},Vs=new Error;function HN(t,e,{key:n}){let i=0;const o=t[n],s={},l={};for(let c=1;c<=e.length;c++)l[c+i]=o[c],s[c+i]=!0,i+=FN(e[c-1]);t[n]=l,t[n]._emit=s,t[n]._multi=!0}function UNe(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw ai("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Vs;if(typeof t.beginScope!="object"||t.beginScope===null)throw ai("beginScope must be object"),Vs;HN(t,t.begin,{key:"beginScope"}),t.begin=Ag(t.begin,{joinWith:""})}}function FNe(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw ai("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Vs;if(typeof t.endScope!="object"||t.endScope===null)throw ai("endScope must be object"),Vs;HN(t,t.end,{key:"endScope"}),t.end=Ag(t.end,{joinWith:""})}}function BNe(t){t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)}function GNe(t){BNe(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),UNe(t),FNe(t)}function YNe(t){function e(l,c){return new RegExp(to(l),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(c?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(c,d){d.position=this.position++,this.matchIndexes[this.matchAt]=d,this.regexes.push([d,c]),this.matchAt+=FN(c)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const c=this.regexes.map(d=>d[1]);this.matcherRe=e(Ag(c,{joinWith:"|"}),!0),this.lastIndex=0}exec(c){this.matcherRe.lastIndex=this.lastIndex;const d=this.matcherRe.exec(c);if(!d)return null;const _=d.findIndex((g,E)=>E>0&&g!==void 0),p=this.matchIndexes[_];return d.splice(0,_),Object.assign(d,p)}}class i{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(c){if(this.multiRegexes[c])return this.multiRegexes[c];const d=new n;return this.rules.slice(c).forEach(([_,p])=>d.addRule(_,p)),d.compile(),this.multiRegexes[c]=d,d}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(c,d){this.rules.push([c,d]),d.type==="begin"&&this.count++}exec(c){const d=this.getMatcher(this.regexIndex);d.lastIndex=this.lastIndex;let _=d.exec(c);if(this.resumingScanAtSamePosition()&&!(_&&_.index===this.lastIndex)){const p=this.getMatcher(0);p.lastIndex=this.lastIndex+1,_=p.exec(c)}return _&&(this.regexIndex+=_.position+1,this.regexIndex===this.count&&this.considerAll()),_}}function o(l){const c=new i;return l.contains.forEach(d=>c.addRule(d.begin,{rule:d,type:"begin"})),l.terminatorEnd&&c.addRule(l.terminatorEnd,{type:"end"}),l.illegal&&c.addRule(l.illegal,{type:"illegal"}),c}function s(l,c){const d=l;if(l.isCompiled)return d;[ANe,DNe,GNe,wNe].forEach(p=>p(l,c)),t.compilerExtensions.forEach(p=>p(l,c)),l.__beforeBegin=null,[yNe,INe,xNe].forEach(p=>p(l,c)),l.isCompiled=!0;let _=null;return typeof l.keywords=="object"&&l.keywords.$pattern&&(l.keywords=Object.assign({},l.keywords),_=l.keywords.$pattern,delete l.keywords.$pattern),_=_||/\w+/,l.keywords&&(l.keywords=$N(l.keywords,t.case_insensitive)),d.keywordPatternRe=e(_,!0),c&&(l.begin||(l.begin=/\B|\b/),d.beginRe=e(d.begin),!l.end&&!l.endsWithParent&&(l.end=/\B|\b/),l.end&&(d.endRe=e(d.end)),d.terminatorEnd=to(d.end)||"",l.endsWithParent&&c.terminatorEnd&&(d.terminatorEnd+=(l.end?"|":"")+c.terminatorEnd)),l.illegal&&(d.illegalRe=e(l.illegal)),l.contains||(l.contains=[]),l.contains=[].concat(...l.contains.map(function(p){return qNe(p==="self"?l:p)})),l.contains.forEach(function(p){s(p,d)}),l.starts&&s(l.starts,c),d.matcher=o(d),d}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=xr(t.classNameAliases||{}),s(t)}function zN(t){return t?t.endsWithParent||zN(t.starts):!1}function qNe(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return xr(t,{variants:null},e)})),t.cachedVariants?t.cachedVariants:zN(t)?xr(t,{starts:t.starts?xr(t.starts):null}):Object.isFrozen(t)?xr(t):t}var $Ne="11.8.0";class HNe extends Error{constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}}const Yu=kN,zb=xr,Vb=Symbol("nomatch"),zNe=7,VN=function(t){const e=Object.create(null),n=Object.create(null),i=[];let o=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",l={disableAutodetect:!0,name:"Plain text",contains:[]};let c={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:rNe};function d(G){return c.noHighlightRe.test(G)}function _(G){let X=G.className+" ";X+=G.parentNode?G.parentNode.className:"";const _e=c.languageDetectRe.exec(X);if(_e){const ve=W(_e[1]);return ve||(Hb(s.replace("{}",_e[1])),Hb("Falling back to no-highlight mode for this block.",G)),ve?_e[1]:"no-highlight"}return X.split(/\s+/).find(ve=>d(ve)||W(ve))}function p(G,X,_e){let ve="",he="";typeof X=="object"?(ve=G,_e=X.ignoreIllegals,he=X.language):(Yi("10.7.0","highlight(lang, code, ...args) has been deprecated."),Yi("10.7.0",`Please use highlight(code, options) instead. -https://github.com/highlightjs/highlight.js/issues/2277`),he=G,ve=X),_e===void 0&&(_e=!0);const tt={code:ve,language:he};J("before:highlight",tt);const lt=tt.result?tt.result:g(tt.language,tt.code,_e);return lt.code=tt.code,J("after:highlight",lt),lt}function g(G,X,_e,ve){const he=Object.create(null);function tt(ne,ce){return ne.keywords[ce]}function lt(){if(!me.keywords){Ue.addText(Ie);return}let ne=0;me.keywordPatternRe.lastIndex=0;let ce=me.keywordPatternRe.exec(Ie),Oe="";for(;ce;){Oe+=Ie.substring(ne,ce.index);const Me=we.case_insensitive?ce[0].toLowerCase():ce[0],ct=tt(me,Me);if(ct){const[xt,Ze]=ct;if(Ue.addText(Oe),Oe="",he[Me]=(he[Me]||0)+1,he[Me]<=zNe&&(zt+=Ze),xt.startsWith("_"))Oe+=ce[0];else{const Yt=we.classNameAliases[xt]||xt;Be(ce[0],Yt)}}else Oe+=ce[0];ne=me.keywordPatternRe.lastIndex,ce=me.keywordPatternRe.exec(Ie)}Oe+=Ie.substring(ne),Ue.addText(Oe)}function $e(){if(Ie==="")return;let ne=null;if(typeof me.subLanguage=="string"){if(!e[me.subLanguage]){Ue.addText(Ie);return}ne=g(me.subLanguage,Ie,!0,bt[me.subLanguage]),bt[me.subLanguage]=ne._top}else ne=f(Ie,me.subLanguage.length?me.subLanguage:null);me.relevance>0&&(zt+=ne.relevance),Ue.__addSublanguage(ne._emitter,ne.language)}function Ce(){me.subLanguage!=null?$e():lt(),Ie=""}function Be(ne,ce){ne!==""&&(Ue.startScope(ce),Ue.addText(ne),Ue.endScope())}function Ve(ne,ce){let Oe=1;const Me=ce.length-1;for(;Oe<=Me;){if(!ne._emit[Oe]){Oe++;continue}const ct=we.classNameAliases[ne[Oe]]||ne[Oe],xt=ce[Oe];ct?Be(xt,ct):(Ie=xt,lt(),Ie=""),Oe++}}function xe(ne,ce){return ne.scope&&typeof ne.scope=="string"&&Ue.openNode(we.classNameAliases[ne.scope]||ne.scope),ne.beginScope&&(ne.beginScope._wrap?(Be(Ie,we.classNameAliases[ne.beginScope._wrap]||ne.beginScope._wrap),Ie=""):ne.beginScope._multi&&(Ve(ne.beginScope,ce),Ie="")),me=Object.create(ne,{parent:{value:me}}),me}function He(ne,ce,Oe){let Me=sNe(ne.endRe,Oe);if(Me){if(ne["on:end"]){const ct=new Gb(ne);ne["on:end"](ce,ct),ct.isMatchIgnored&&(Me=!1)}if(Me){for(;ne.endsParent&&ne.parent;)ne=ne.parent;return ne}}if(ne.endsWithParent)return He(ne.parent,ce,Oe)}function rt(ne){return me.matcher.regexIndex===0?(Ie+=ne[0],1):(Sn=!0,0)}function We(ne){const ce=ne[0],Oe=ne.rule,Me=new Gb(Oe),ct=[Oe.__beforeBegin,Oe["on:begin"]];for(const xt of ct)if(xt&&(xt(ne,Me),Me.isMatchIgnored))return rt(ce);return Oe.skip?Ie+=ce:(Oe.excludeBegin&&(Ie+=ce),Ce(),!Oe.returnBegin&&!Oe.excludeBegin&&(Ie=ce)),xe(Oe,ne),Oe.returnBegin?0:ce.length}function te(ne){const ce=ne[0],Oe=X.substring(ne.index),Me=He(me,ne,Oe);if(!Me)return Vb;const ct=me;me.endScope&&me.endScope._wrap?(Ce(),Be(ce,me.endScope._wrap)):me.endScope&&me.endScope._multi?(Ce(),Ve(me.endScope,ne)):ct.skip?Ie+=ce:(ct.returnEnd||ct.excludeEnd||(Ie+=ce),Ce(),ct.excludeEnd&&(Ie=ce));do me.scope&&Ue.closeNode(),!me.skip&&!me.subLanguage&&(zt+=me.relevance),me=me.parent;while(me!==Me.parent);return Me.starts&&xe(Me.starts,ne),ct.returnEnd?0:ce.length}function pe(){const ne=[];for(let ce=me;ce!==we;ce=ce.parent)ce.scope&&ne.unshift(ce.scope);ne.forEach(ce=>Ue.openNode(ce))}let ie={};function Pe(ne,ce){const Oe=ce&&ce[0];if(Ie+=ne,Oe==null)return Ce(),0;if(ie.type==="begin"&&ce.type==="end"&&ie.index===ce.index&&Oe===""){if(Ie+=X.slice(ce.index,ce.index+1),!o){const Me=new Error(`0 width match regex (${G})`);throw Me.languageName=G,Me.badRule=ie.rule,Me}return 1}if(ie=ce,ce.type==="begin")return We(ce);if(ce.type==="illegal"&&!_e){const Me=new Error('Illegal lexeme "'+Oe+'" for mode "'+(me.scope||"")+'"');throw Me.mode=me,Me}else if(ce.type==="end"){const Me=te(ce);if(Me!==Vb)return Me}if(ce.type==="illegal"&&Oe==="")return 1;if(Gt>1e5&&Gt>ce.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Ie+=Oe,Oe.length}const we=W(G);if(!we)throw ai(s.replace("{}",G)),new Error('Unknown language: "'+G+'"');const Xe=YNe(we);let pt="",me=ve||Xe;const bt={},Ue=new c.__emitter(c);pe();let Ie="",zt=0,Nt=0,Gt=0,Sn=!1;try{if(we.__emitTokens)we.__emitTokens(X,Ue);else{for(me.matcher.considerAll();;){Gt++,Sn?Sn=!1:me.matcher.considerAll(),me.matcher.lastIndex=Nt;const ne=me.matcher.exec(X);if(!ne)break;const ce=X.substring(Nt,ne.index),Oe=Pe(ce,ne);Nt=ne.index+Oe}Pe(X.substring(Nt))}return Ue.finalize(),pt=Ue.toHTML(),{language:G,value:pt,relevance:zt,illegal:!1,_emitter:Ue,_top:me}}catch(ne){if(ne.message&&ne.message.includes("Illegal"))return{language:G,value:Yu(X),illegal:!0,relevance:0,_illegalBy:{message:ne.message,index:Nt,context:X.slice(Nt-100,Nt+100),mode:ne.mode,resultSoFar:pt},_emitter:Ue};if(o)return{language:G,value:Yu(X),illegal:!1,relevance:0,errorRaised:ne,_emitter:Ue,_top:me};throw ne}}function E(G){const X={value:Yu(G),illegal:!1,relevance:0,_top:l,_emitter:new c.__emitter(c)};return X._emitter.addText(G),X}function f(G,X){X=X||c.languages||Object.keys(e);const _e=E(G),ve=X.filter(W).filter(K).map(Ce=>g(Ce,G,!1));ve.unshift(_e);const he=ve.sort((Ce,Be)=>{if(Ce.relevance!==Be.relevance)return Be.relevance-Ce.relevance;if(Ce.language&&Be.language){if(W(Ce.language).supersetOf===Be.language)return 1;if(W(Be.language).supersetOf===Ce.language)return-1}return 0}),[tt,lt]=he,$e=tt;return $e.secondBest=lt,$e}function S(G,X,_e){const ve=X&&n[X]||_e;G.classList.add("hljs"),G.classList.add(`language-${ve}`)}function C(G){let X=null;const _e=_(G);if(d(_e))return;if(J("before:highlightElement",{el:G,language:_e}),G.children.length>0&&(c.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(G)),c.throwUnescapedHTML))throw new HNe("One of your code blocks includes unescaped HTML.",G.innerHTML);X=G;const ve=X.textContent,he=_e?p(ve,{language:_e,ignoreIllegals:!0}):f(ve);G.innerHTML=he.value,S(G,_e,he.language),G.result={language:he.language,re:he.relevance,relevance:he.relevance},he.secondBest&&(G.secondBest={language:he.secondBest.language,relevance:he.secondBest.relevance}),J("after:highlightElement",{el:G,result:he,text:ve})}function h(G){c=zb(c,G)}const T=()=>{x(),Yi("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function N(){x(),Yi("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let y=!1;function x(){if(document.readyState==="loading"){y=!0;return}document.querySelectorAll(c.cssSelector).forEach(C)}function P(){y&&x()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",P,!1);function D(G,X){let _e=null;try{_e=X(t)}catch(ve){if(ai("Language definition for '{}' could not be registered.".replace("{}",G)),o)ai(ve);else throw ve;_e=l}_e.name||(_e.name=G),e[G]=_e,_e.rawDefinition=X.bind(null,t),_e.aliases&&z(_e.aliases,{languageName:G})}function k(G){delete e[G];for(const X of Object.keys(n))n[X]===G&&delete n[X]}function U(){return Object.keys(e)}function W(G){return G=(G||"").toLowerCase(),e[G]||e[n[G]]}function z(G,{languageName:X}){typeof G=="string"&&(G=[G]),G.forEach(_e=>{n[_e.toLowerCase()]=X})}function K(G){const X=W(G);return X&&!X.disableAutodetect}function Ee(G){G["before:highlightBlock"]&&!G["before:highlightElement"]&&(G["before:highlightElement"]=X=>{G["before:highlightBlock"](Object.assign({block:X.el},X))}),G["after:highlightBlock"]&&!G["after:highlightElement"]&&(G["after:highlightElement"]=X=>{G["after:highlightBlock"](Object.assign({block:X.el},X))})}function oe(G){Ee(G),i.push(G)}function L(G){const X=i.indexOf(G);X!==-1&&i.splice(X,1)}function J(G,X){const _e=G;i.forEach(function(ve){ve[_e]&&ve[_e](X)})}function re(G){return Yi("10.7.0","highlightBlock will be removed entirely in v12.0"),Yi("10.7.0","Please use highlightElement now."),C(G)}Object.assign(t,{highlight:p,highlightAuto:f,highlightAll:x,highlightElement:C,highlightBlock:re,configure:h,initHighlighting:T,initHighlightingOnLoad:N,registerLanguage:D,unregisterLanguage:k,listLanguages:U,getLanguage:W,registerAliases:z,autoDetection:K,inherit:zb,addPlugin:oe,removePlugin:L}),t.debugMode=function(){o=!1},t.safeMode=function(){o=!0},t.versionString=$Ne,t.regex={concat:gi,lookahead:UN,either:Og,optional:aNe,anyNumberOfTimes:iNe};for(const G in ws)typeof ws[G]=="object"&&PN(ws[G]);return Object.assign(t,ws),t},Xi=VN({});Xi.newInstance=()=>VN({});var VNe=Xi;Xi.HighlightJS=Xi;Xi.default=Xi;var qu,Wb;function WNe(){if(Wb)return qu;Wb=1;function t(e){const n="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",s="далее "+"возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",d="загрузитьизфайла "+"вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",_="разделительстраниц разделительстрок символтабуляции ",p="ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон ",g="acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища ",E="wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",f=_+p+g+E,S="webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля ",C="автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы ",h="виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента ",T="авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных ",N="использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц ",y="отображениевремениэлементовпланировщика ",x="типфайлаформатированногодокумента ",P="обходрезультатазапроса типзаписизапроса ",D="видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов ",k="доступкфайлу режимдиалогавыборафайла режимоткрытияфайла ",U="типизмеренияпостроителязапроса ",W="видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений ",z="wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson ",K="видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных ",Ee="важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения ",oe="режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации ",L="расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии ",J="кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip ",re="звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp ",G="направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса ",X="httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений ",_e="важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",ve=S+C+h+T+N+y+x+P+D+k+U+W+z+K+Ee+oe+L+J+re+G+X+_e,lt="comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных "+"comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",$e="null истина ложь неопределено",Ce=e.inherit(e.NUMBER_MODE),Be={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},Ve={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},xe=e.inherit(e.C_LINE_COMMENT_MODE),He={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:n,keyword:s+d},contains:[xe]},rt={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},We={className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:n,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:n,keyword:"знач",literal:$e},contains:[Ce,Be,Ve]},xe]},e.inherit(e.TITLE_MODE,{begin:n})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:n,keyword:s,built_in:f,class:ve,type:lt,literal:$e},contains:[He,We,xe,rt,Ce,Be,Ve]}}return qu=t,qu}var $u,Kb;function KNe(){if(Kb)return $u;Kb=1;function t(e){const n=e.regex,i=/^[a-zA-Z][a-zA-Z0-9-]*/,o=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],s=e.COMMENT(/;/,/$/),l={scope:"symbol",match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},c={scope:"symbol",match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},d={scope:"symbol",match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},_={scope:"symbol",match:/%[si](?=".*")/},p={scope:"attribute",match:n.concat(i,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:/[!@#$^&',?+~`|:]/,keywords:o,contains:[{scope:"operator",match:/=\/?/},p,s,l,c,d,_,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return $u=t,$u}var Hu,Qb;function QNe(){if(Qb)return Hu;Qb=1;function t(e){const n=e.regex,i=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:n.concat(/"/,n.either(...i)),end:/"/,keywords:i,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}return Hu=t,Hu}var zu,Xb;function XNe(){if(Xb)return zu;Xb=1;function t(e){const n=e.regex,i=/[a-zA-Z_$][a-zA-Z0-9_$]*/,o=n.concat(i,n.concat("(\\.",i,")*")),s=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,l={className:"rest_arg",begin:/[.]{3}/,end:i,relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:["as","break","case","catch","class","const","continue","default","delete","do","dynamic","each","else","extends","final","finally","for","function","get","if","implements","import","in","include","instanceof","interface","internal","is","namespace","native","new","override","package","private","protected","public","return","set","static","super","switch","this","throw","try","typeof","use","var","void","while","with"],literal:["true","false","null","undefined"]},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{match:[/\bpackage/,/\s+/,o],className:{1:"keyword",3:"title.class"}},{match:[/\b(?:class|interface|extends|implements)/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{keyword:"import include"}},{beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[e.inherit(e.TITLE_MODE,{className:"title.function"}),{className:"params",begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,l]},{begin:n.concat(/:\s*/,s)}]},e.METHOD_GUARD],illegal:/#/}}return zu=t,zu}var Vu,Zb;function ZNe(){if(Zb)return Vu;Zb=1;function t(e){const n="\\d(_|\\d)*",i="[eE][-+]?"+n,o=n+"(\\."+n+")?("+i+")?",s="\\w+",c="\\b("+(n+"#"+s+"(\\."+s+")?#("+i+")?")+"|"+o+")",d="[A-Za-z](_?[A-Za-z0-9.])*",_=`[]\\{\\}%#'"`,p=e.COMMENT("--","$"),g={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:_,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:d,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:["abort","else","new","return","abs","elsif","not","reverse","abstract","end","accept","entry","select","access","exception","of","separate","aliased","exit","or","some","all","others","subtype","and","for","out","synchronized","array","function","overriding","at","tagged","generic","package","task","begin","goto","pragma","terminate","body","private","then","if","procedure","type","case","in","protected","constant","interface","is","raise","use","declare","range","delay","limited","record","when","delta","loop","rem","while","digits","renames","with","do","mod","requeue","xor"],literal:["True","False"]},contains:[p,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:c,relevance:0},{className:"symbol",begin:"'"+d},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:_},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[p,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:_},g,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:_}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:_},g]}}return Vu=t,Vu}var Wu,Jb;function JNe(){if(Jb)return Wu;Jb=1;function t(e){const n={className:"built_in",begin:"\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)"},i={className:"symbol",begin:"[a-zA-Z0-9_]+@"},o={className:"keyword",begin:"<",end:">",contains:[n,i]};return n.contains=[o],i.contains=[o],{name:"AngelScript",aliases:["asc"],keywords:["for","in|0","break","continue","while","do|0","return","if","else","case","switch","namespace","is","cast","or","and","xor","not","get|0","in","inout|10","out","override","set|0","private","public","const","default|0","final","shared","external","mixin|10","enum","typedef","funcdef","this","super","import","from","interface","abstract|0","try","catch","protected","explicit","property"],illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},n,i,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}return Wu=t,Wu}var Ku,jb;function jNe(){if(jb)return Ku;jb=1;function t(e){const n={className:"number",begin:/[$%]\d+/},i={className:"number",begin:/\b\d+/},o={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},s={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[o,s,e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",n]},o,i,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}return Ku=t,Ku}var Qu,eh;function eOe(){if(eh)return Qu;eh=1;function t(e){const n=e.regex,i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),o={className:"params",begin:/\(/,end:/\)/,contains:["self",e.C_NUMBER_MODE,i]},s=e.COMMENT(/--/,/$/),l=e.COMMENT(/\(\*/,/\*\)/,{contains:["self",s]}),c=[s,l,e.HASH_COMMENT_MODE],d=[/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/],_=[/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year"},contains:[i,e.C_NUMBER_MODE,{className:"built_in",begin:n.concat(/\b/,n.either(..._),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:n.concat(/\b/,n.either(...d),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,o]},...c],illegal:/\/\/|->|=>|\[\[/}}return Qu=t,Qu}var Xu,th;function tOe(){if(th)return Xu;th=1;function t(e){const n="[A-Za-z_][0-9A-Za-z_]*",i={keyword:["if","for","while","var","new","function","do","return","void","else","break"],literal:["BackSlash","DoubleQuote","false","ForwardSlash","Infinity","NaN","NewLine","null","PI","SingleQuote","Tab","TextFormatting","true","undefined"],built_in:["Abs","Acos","All","Angle","Any","Area","AreaGeodetic","Array","Asin","Atan","Atan2","Attachments","Average","Back","Bearing","Boolean","Buffer","BufferGeodetic","Ceil","Centroid","Clip","Concatenate","Console","Constrain","Contains","ConvertDirection","Cos","Count","Crosses","Cut","Date","DateAdd","DateDiff","Day","Decode","DefaultValue","Densify","DensifyGeodetic","Dictionary","Difference","Disjoint","Distance","DistanceGeodetic","Distinct","Domain","DomainCode","DomainName","EnvelopeIntersects","Equals","Erase","Exp","Expects","Extent","Feature","FeatureSet","FeatureSetByAssociation","FeatureSetById","FeatureSetByName","FeatureSetByPortalItem","FeatureSetByRelationshipName","Filter","Find","First","Floor","FromCharCode","FromCodePoint","FromJSON","GdbVersion","Generalize","Geometry","GetFeatureSet","GetUser","GroupBy","Guid","Hash","HasKey","Hour","IIf","Includes","IndexOf","Insert","Intersection","Intersects","IsEmpty","IsNan","ISOMonth","ISOWeek","ISOWeekday","ISOYear","IsSelfIntersecting","IsSimple","Left|0","Length","Length3D","LengthGeodetic","Log","Lower","Map","Max","Mean","Mid","Millisecond","Min","Minute","Month","MultiPartToSinglePart","Multipoint","NextSequenceValue","None","Now","Number","Offset|0","OrderBy","Overlaps","Point","Polygon","Polyline","Pop","Portal","Pow","Proper","Push","Random","Reduce","Relate","Replace","Resize","Reverse","Right|0","RingIsClockwise","Rotate","Round","Schema","Second","SetGeometry","Simplify","Sin","Slice","Sort","Splice","Split","Sqrt","Stdev","SubtypeCode","SubtypeName","Subtypes","Sum","SymmetricDifference","Tan","Text","Timestamp","ToCharCode","ToCodePoint","Today","ToHex","ToLocal","Top|0","Touches","ToUTC","TrackAccelerationAt","TrackAccelerationWindow","TrackCurrentAcceleration","TrackCurrentDistance","TrackCurrentSpeed","TrackCurrentTime","TrackDistanceAt","TrackDistanceWindow","TrackDuration","TrackFieldWindow","TrackGeometryWindow","TrackIndex","TrackSpeedAt","TrackSpeedWindow","TrackStartTime","TrackWindow","Trim","TypeOf","Union","Upper","UrlEncode","Variance","Week","Weekday","When","Within","Year"]},o={className:"symbol",begin:"\\$[datastore|feature|layer|map|measure|sourcefeature|sourcelayer|targetfeature|targetlayer|value|view]+"},s={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},l={className:"subst",begin:"\\$\\{",end:"\\}",keywords:i,contains:[]},c={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,l]};l.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,c,s,e.REGEXP_MODE];const d=l.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",case_insensitive:!0,keywords:i,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,c,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o,s,{begin:/[{,]\s*/,relevance:0,contains:[{begin:n+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:n,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+n+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:d}]}]}],relevance:0},{beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{className:"title.function",begin:n}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:d}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}return Xu=t,Xu}var Zu,nh;function nOe(){if(nh)return Zu;nh=1;function t(n){const i=n.regex,o=n.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",l="[a-zA-Z_]\\w*::",c="<[^<>]+>",d="(?!struct)("+s+"|"+i.optional(l)+"[a-zA-Z_]\\w*"+i.optional(c)+")",_={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},p="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",g={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+p+"|.)",end:"'",illegal:"."},n.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},E={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},f={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},n.inherit(g,{className:"string"}),{className:"string",begin:/<.*?>/},o,n.C_BLOCK_COMMENT_MODE]},S={className:"title",begin:i.optional(l)+n.IDENT_RE,relevance:0},C=i.optional(l)+n.IDENT_RE+"\\s*\\(",h=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],T=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],N=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],y=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],D={type:T,keyword:h,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:N},k={className:"function.dispatch",relevance:0,keywords:{_hint:y},begin:i.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,n.IDENT_RE,i.lookahead(/(<[^<>]+>|)\s*\(/))},U=[k,f,_,o,n.C_BLOCK_COMMENT_MODE,E,g],W={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:D,contains:U.concat([{begin:/\(/,end:/\)/,keywords:D,contains:U.concat(["self"]),relevance:0}]),relevance:0},z={className:"function",begin:"("+d+"[\\*&\\s]+)+"+C,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:D,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:D,relevance:0},{begin:C,returnBegin:!0,contains:[S],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[g,E]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:D,relevance:0,contains:[o,n.C_BLOCK_COMMENT_MODE,g,E,_,{begin:/\(/,end:/\)/,keywords:D,relevance:0,contains:["self",o,n.C_BLOCK_COMMENT_MODE,g,E,_]}]},_,o,n.C_BLOCK_COMMENT_MODE,f]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:D,illegal:"",keywords:D,contains:["self",_]},{begin:n.IDENT_RE+"::",keywords:D},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function e(n){const i={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},o=t(n),s=o.keywords;return s.type=[...s.type,...i.type],s.literal=[...s.literal,...i.literal],s.built_in=[...s.built_in,...i.built_in],s._hints=i._hints,o.name="Arduino",o.aliases=["ino"],o.supersetOf="cpp",o}return Zu=e,Zu}var Ju,rh;function rOe(){if(rh)return Ju;rh=1;function t(e){const n={variants:[e.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),e.COMMENT("[;@]","$",{relevance:0}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},n,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}return Ju=t,Ju}var ju,ih;function iOe(){if(ih)return ju;ih=1;function t(e){const n=e.regex,i=n.concat(/[\p{L}_]/u,n.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),o=/[\p{L}0-9._:-]+/u,s={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},l={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},c=e.inherit(l,{begin:/\(/,end:/\)/}),d=e.inherit(e.APOS_STRING_MODE,{className:"string"}),_=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),p={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[l,_,d,c,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[l,c,_,d]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[_]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[p],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[p],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:n.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:i,relevance:0,starts:p}]},{className:"tag",begin:n.concat(/<\//,n.lookahead(n.concat(i,/>/))),contains:[{className:"name",begin:i,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return ju=t,ju}var ed,ah;function aOe(){if(ah)return ed;ah=1;function t(e){const n=e.regex,i={begin:"^'{3,}[ \\t]*$",relevance:10},o=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],s=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:n.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],l=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:n.concat(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}],c={className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},d={className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"};return{name:"AsciiDoc",aliases:["adoc"],contains:[e.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),e.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ ].+?([ ]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},d,c,...o,...s,...l,{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},i,{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}return ed=t,ed}var td,oh;function oOe(){if(oh)return td;oh=1;function t(e){const n=e.regex,i=["false","synchronized","int","abstract","float","private","char","boolean","static","null","if","const","for","true","while","long","throw","strictfp","finally","protected","import","native","final","return","void","enum","else","extends","implements","break","transient","new","catch","instanceof","byte","super","volatile","case","assert","short","package","default","double","public","try","this","switch","continue","throws","privileged","aspectOf","adviceexecution","proceed","cflowbelow","cflow","initialization","preinitialization","staticinitialization","withincode","target","within","execution","getWithinTypeName","handler","thisJoinPoint","thisJoinPointStaticPart","thisEnclosingJoinPointStaticPart","declare","parents","warning","error","soft","precedence","thisAspectInstance"],o=["get","set","args","call"];return{name:"AspectJ",keywords:i,illegal:/<\/|#/,contains:[e.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:i.concat(o),excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:n.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:i,illegal:/["\[\]]/,contains:[{begin:n.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:i.concat(o),relevance:0},e.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:i,excludeEnd:!0,contains:[{begin:n.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:i,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}}return td=t,td}var nd,sh;function sOe(){if(sh)return nd;sh=1;function t(e){const n={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[n,e.inherit(e.QUOTE_STRING_MODE,{contains:[n]}),e.COMMENT(";","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}return nd=t,nd}var rd,lh;function lOe(){if(lh)return rd;lh=1;function t(e){const n="ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",i=["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"],o="True False And Null Not Or Default",s="Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive",l={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},c={begin:"\\$[A-z0-9_]+"},d={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},_={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},p={className:"meta",begin:"#",end:"$",keywords:{keyword:i},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{keyword:"include"},end:"$",contains:[d,{className:"string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},d,l]},g={className:"symbol",begin:"@[A-z0-9_]+"},E={beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{className:"title.function"}),{className:"params",begin:"\\(",end:"\\)",contains:[c,d,_]}]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:n,built_in:s,literal:o},contains:[l,c,d,_,p,g,E]}}return rd=t,rd}var id,ch;function cOe(){if(ch)return id;ch=1;function t(e){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+e.IDENT_RE,keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}return id=t,id}var ad,uh;function uOe(){if(uh)return ad;uh=1;function t(e){const n={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},i="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",o={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Awk",keywords:{keyword:i},contains:[n,o,e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}return ad=t,ad}var od,dh;function dOe(){if(dh)return od;dh=1;function t(e){const n=e.UNDERSCORE_IDENT_RE,l={keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],literal:["default","false","null","true"]},c={variants:[{match:[/(class|interface)\s+/,n,/\s+(extends|implements)\s+/,n]},{match:[/class\s+/,n]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:l};return{name:"X++",aliases:["x++"],keywords:l,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},c]}}return od=t,od}var sd,_h;function _Oe(){if(_h)return sd;_h=1;function t(e){const n=e.regex,i={},o={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[i]}]};Object.assign(i,{className:"variable",variants:[{begin:n.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},o]});const s={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},l={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},c={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,i,s]};s.contains.push(c);const d={className:"",begin:/\\"/},_={className:"string",begin:/'/,end:/'/},p={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,i]},g=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],E=e.SHEBANG({binary:`(${g.join("|")})`,relevance:10}),f={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},S=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],C=["true","false"],h={match:/(\/[a-z._-]+)+/},T=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],N=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],y=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],x=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:S,literal:C,built_in:[...T,...N,"set","shopt",...y,...x]},contains:[E,e.SHEBANG(),f,p,e.HASH_COMMENT_MODE,l,h,c,d,_,i]}}return sd=t,sd}var ld,ph;function pOe(){if(ph)return ld;ph=1;function t(e){return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:["ABS","ASC","AND","ATN","AUTO|0","BEEP","BLOAD|10","BSAVE|10","CALL","CALLS","CDBL","CHAIN","CHDIR","CHR$|10","CINT","CIRCLE","CLEAR","CLOSE","CLS","COLOR","COM","COMMON","CONT","COS","CSNG","CSRLIN","CVD","CVI","CVS","DATA","DATE$","DEFDBL","DEFINT","DEFSNG","DEFSTR","DEF|0","SEG","USR","DELETE","DIM","DRAW","EDIT","END","ENVIRON","ENVIRON$","EOF","EQV","ERASE","ERDEV","ERDEV$","ERL","ERR","ERROR","EXP","FIELD","FILES","FIX","FOR|0","FRE","GET","GOSUB|10","GOTO","HEX$","IF","THEN","ELSE|0","INKEY$","INP","INPUT","INPUT#","INPUT$","INSTR","IMP","INT","IOCTL","IOCTL$","KEY","ON","OFF","LIST","KILL","LEFT$","LEN","LET","LINE","LLIST","LOAD","LOC","LOCATE","LOF","LOG","LPRINT","USING","LSET","MERGE","MID$","MKDIR","MKD$","MKI$","MKS$","MOD","NAME","NEW","NEXT","NOISE","NOT","OCT$","ON","OR","PEN","PLAY","STRIG","OPEN","OPTION","BASE","OUT","PAINT","PALETTE","PCOPY","PEEK","PMAP","POINT","POKE","POS","PRINT","PRINT]","PSET","PRESET","PUT","RANDOMIZE","READ","REM","RENUM","RESET|0","RESTORE","RESUME","RETURN|0","RIGHT$","RMDIR","RND","RSET","RUN","SAVE","SCREEN","SGN","SHELL","SIN","SOUND","SPACE$","SPC","SQR","STEP","STICK","STOP","STR$","STRING$","SWAP","SYSTEM","TAB","TAN","TIME$","TIMER","TROFF","TRON","TO","USR","VAL","VARPTR","VARPTR$","VIEW","WAIT","WHILE","WEND","WIDTH","WINDOW","WRITE","XOR"]},contains:[e.QUOTE_STRING_MODE,e.COMMENT("REM","$",{relevance:10}),e.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}return ld=t,ld}var cd,mh;function mOe(){if(mh)return cd;mh=1;function t(e){return{name:"Backus–Naur Form",contains:[{className:"attribute",begin://},{begin:/::=/,end:/$/,contains:[{begin://},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]}}return cd=t,cd}var ud,gh;function gOe(){if(gh)return ud;gh=1;function t(e){const n={className:"literal",begin:/[+-]+/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[e.COMMENT(/[^\[\]\.,\+\-<> \r\n]/,/[\[\]\.,\+\-<> \r\n]/,{contains:[{match:/[ ]+[^\[\]\.,\+\-<> \r\n]/,relevance:0}],returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?=\+\+|--)/,contains:[n]},n]}}return ud=t,ud}var dd,Eh;function EOe(){if(Eh)return dd;Eh=1;function t(e){const n=e.regex,i=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",l="<[^<>]+>",c="("+o+"|"+n.optional(s)+"[a-zA-Z_]\\w*"+n.optional(l)+")",d={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},_="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",p={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+_+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},g={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},E={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(p,{className:"string"}),{className:"string",begin:/<.*?>/},i,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:n.optional(s)+e.IDENT_RE,relevance:0},S=n.optional(s)+e.IDENT_RE+"\\s*\\(",T={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},N=[E,d,i,e.C_BLOCK_COMMENT_MODE,g,p],y={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:T,contains:N.concat([{begin:/\(/,end:/\)/,keywords:T,contains:N.concat(["self"]),relevance:0}]),relevance:0},x={begin:"("+c+"[\\*&\\s]+)+"+S,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:T,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:o,keywords:T,relevance:0},{begin:S,returnBegin:!0,contains:[e.inherit(f,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:T,relevance:0,contains:[i,e.C_BLOCK_COMMENT_MODE,p,g,d,{begin:/\(/,end:/\)/,keywords:T,relevance:0,contains:["self",i,e.C_BLOCK_COMMENT_MODE,p,g,d]}]},d,i,e.C_BLOCK_COMMENT_MODE,E]};return{name:"C",aliases:["h"],keywords:T,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:E,strings:p,keywords:T}}}return dd=t,dd}var _d,fh;function fOe(){if(fh)return _d;fh=1;function t(e){const n=e.regex,i=["div","mod","in","and","or","not","xor","asserterror","begin","case","do","downto","else","end","exit","for","local","if","of","repeat","then","to","until","while","with","var"],o="false true",s=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],l={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},c={className:"string",begin:/(#\d+)+/},d={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},_={className:"string",begin:'"',end:'"'},p={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:"keyword",3:"title.function"},contains:[{className:"params",begin:/\(/,end:/\)/,keywords:i,contains:[l,c,e.NUMBER_MODE]},...s]},g=["Table","Form","Report","Dataport","Codeunit","XMLport","MenuSuite","Page","Query"],E={match:[/OBJECT/,/\s+/,n.either(...g),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],relevance:3,scope:{1:"keyword",3:"type",5:"number",7:"title"}};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:i,literal:o},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:"attribute",relevance:0},l,c,d,_,e.NUMBER_MODE,E,p]}}return _d=t,_d}var pd,Sh;function SOe(){if(Sh)return pd;Sh=1;function t(e){const n=["struct","enum","interface","union","group","import","using","const","annotation","extends","in","of","on","as","with","from","fixed"],i=["Void","Bool","Int8","Int16","Int32","Int64","UInt8","UInt16","UInt32","UInt64","Float32","Float64","Text","Data","AnyPointer","AnyStruct","Capability","List"],o=["true","false"],s={variants:[{match:[/(struct|enum|interface)/,/\s+/,e.IDENT_RE]},{match:[/extends/,/\s*\(/,e.IDENT_RE,/\s*\)/]}],scope:{1:"keyword",3:"title.class"}};return{name:"Cap’n Proto",aliases:["capnp"],keywords:{keyword:n,type:i,literal:o},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},s]}}return pd=t,pd}var md,bh;function bOe(){if(bh)return md;bh=1;function t(e){const n=["assembly","module","package","import","alias","class","interface","object","given","value","assign","void","function","new","of","extends","satisfies","abstracts","in","out","return","break","continue","throw","assert","dynamic","if","else","switch","case","for","while","try","catch","finally","then","let","this","outer","super","is","exists","nonempty"],i=["shared","abstract","formal","default","actual","variable","late","native","deprecated","final","sealed","annotation","suppressWarnings","small"],o=["doc","by","license","see","throws","tagged"],s={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:n,relevance:10},l=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[s]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return s.contains=l,{name:"Ceylon",keywords:{keyword:n.concat(i),meta:o},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(l)}}return md=t,md}var gd,hh;function hOe(){if(hh)return gd;hh=1;function t(e){return{name:"Clean",aliases:["icl","dcl"],keywords:{keyword:["if","let","in","with","where","case","of","class","instance","otherwise","implementation","definition","system","module","from","import","qualified","as","special","code","inline","foreign","export","ccall","stdcall","generic","derive","infix","infixl","infixr"],built_in:"Int Real Char Bool",literal:"True False"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}return gd=t,gd}var Ed,Th;function TOe(){if(Th)return Ed;Th=1;function t(e){const n="a-zA-Z_\\-!.?+*=<>&'",i="[#]?["+n+"]["+n+"0-9/;:$#]*",o="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",s={$pattern:i,built_in:o+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},l={begin:i,relevance:0},c={scope:"number",relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},d={scope:"character",variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},_={scope:"regex",begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},p=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),g={scope:"punctuation",match:/,/,relevance:0},E=e.COMMENT(";","$",{relevance:0}),f={className:"literal",begin:/\b(true|false|nil)\b/},S={begin:"\\[|(#::?"+i+")?\\{",end:"[\\]\\}]",relevance:0},C={className:"symbol",begin:"[:]{1,2}"+i},h={begin:"\\(",end:"\\)"},T={endsWithParent:!0,relevance:0},N={keywords:s,className:"name",begin:i,relevance:0,starts:T},y=[g,h,d,_,p,E,C,S,c,f,l],x={beginKeywords:o,keywords:{$pattern:i,keyword:o},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:i,relevance:0,excludeEnd:!0,endsParent:!0}].concat(y)};return h.contains=[x,N,T],T.contains=y,S.contains=y,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[g,h,d,_,p,E,C,S,c,f]}}return Ed=t,Ed}var fd,vh;function vOe(){if(vh)return fd;vh=1;function t(e){return{name:"Clojure REPL",contains:[{className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}return fd=t,fd}var Sd,Ch;function COe(){if(Ch)return Sd;Ch=1;function t(e){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},e.COMMENT(/#\[\[/,/]]/),e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return Sd=t,Sd}var bd,Rh;function ROe(){if(Rh)return bd;Rh=1;const t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],e=["true","false","null","undefined","NaN","Infinity"],n=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],i=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],o=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=[].concat(o,n,i);function l(c){const d=["npm","print"],_=["yes","no","on","off"],p=["then","unless","until","loop","by","when","and","or","is","isnt","not"],g=["var","const","let","function","static"],E=P=>D=>!P.includes(D),f={keyword:t.concat(p).filter(E(g)),literal:e.concat(_),built_in:s.concat(d)},S="[A-Za-z$_][0-9A-Za-z$_]*",C={className:"subst",begin:/#\{/,end:/\}/,keywords:f},h=[c.BINARY_NUMBER_MODE,c.inherit(c.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[c.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[c.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[c.BACKSLASH_ESCAPE,C]},{begin:/"/,end:/"/,contains:[c.BACKSLASH_ESCAPE,C]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[C,c.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+S},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];C.contains=h;const T=c.inherit(c.TITLE_MODE,{begin:S}),N="(\\(.*\\)\\s*)?\\B[-=]>",y={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:f,contains:["self"].concat(h)}]},x={variants:[{match:[/class\s+/,S,/\s+extends\s+/,S]},{match:[/class\s+/,S]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:f};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:f,illegal:/\/\*/,contains:[...h,c.COMMENT("###","###"),c.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+S+"\\s*=\\s*"+N,end:"[-=]>",returnBegin:!0,contains:[T,y]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:N,end:"[-=]>",returnBegin:!0,contains:[y]}]},x,{begin:S+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}]}}return bd=l,bd}var hd,Nh;function NOe(){if(Nh)return hd;Nh=1;function t(e){return{name:"Coq",keywords:{keyword:["_|0","as","at","cofix","else","end","exists","exists2","fix","for","forall","fun","if","IF","in","let","match","mod","Prop","return","Set","then","Type","using","where","with","Abort","About","Add","Admit","Admitted","All","Arguments","Assumptions","Axiom","Back","BackTo","Backtrack","Bind","Blacklist","Canonical","Cd","Check","Class","Classes","Close","Coercion","Coercions","CoFixpoint","CoInductive","Collection","Combined","Compute","Conjecture","Conjectures","Constant","constr","Constraint","Constructors","Context","Corollary","CreateHintDb","Cut","Declare","Defined","Definition","Delimit","Dependencies","Dependent","Derive","Drop","eauto","End","Equality","Eval","Example","Existential","Existentials","Existing","Export","exporting","Extern","Extract","Extraction","Fact","Field","Fields","File","Fixpoint","Focus","for","From","Function","Functional","Generalizable","Global","Goal","Grab","Grammar","Graph","Guarded","Heap","Hint","HintDb","Hints","Hypotheses","Hypothesis","ident","Identity","If","Immediate","Implicit","Import","Include","Inductive","Infix","Info","Initial","Inline","Inspect","Instance","Instances","Intro","Intros","Inversion","Inversion_clear","Language","Left","Lemma","Let","Libraries","Library","Load","LoadPath","Local","Locate","Ltac","ML","Mode","Module","Modules","Monomorphic","Morphism","Next","NoInline","Notation","Obligation","Obligations","Opaque","Open","Optimize","Options","Parameter","Parameters","Parametric","Path","Paths","pattern","Polymorphic","Preterm","Print","Printing","Program","Projections","Proof","Proposition","Pwd","Qed","Quit","Rec","Record","Recursive","Redirect","Relation","Remark","Remove","Require","Reserved","Reset","Resolve","Restart","Rewrite","Right","Ring","Rings","Save","Scheme","Scope","Scopes","Script","Search","SearchAbout","SearchHead","SearchPattern","SearchRewrite","Section","Separate","Set","Setoid","Show","Solve","Sorted","Step","Strategies","Strategy","Structure","SubClass","Table","Tables","Tactic","Term","Test","Theorem","Time","Timeout","Transparent","Type","Typeclasses","Types","Undelimit","Undo","Unfocus","Unfocused","Unfold","Universe","Universes","Unset","Unshelve","using","Variable","Variables","Variant","Verbose","Visibility","where","with"],built_in:["abstract","absurd","admit","after","apply","as","assert","assumption","at","auto","autorewrite","autounfold","before","bottom","btauto","by","case","case_eq","cbn","cbv","change","classical_left","classical_right","clear","clearbody","cofix","compare","compute","congruence","constr_eq","constructor","contradict","contradiction","cut","cutrewrite","cycle","decide","decompose","dependent","destruct","destruction","dintuition","discriminate","discrR","do","double","dtauto","eapply","eassumption","eauto","ecase","econstructor","edestruct","ediscriminate","eelim","eexact","eexists","einduction","einjection","eleft","elim","elimtype","enough","equality","erewrite","eright","esimplify_eq","esplit","evar","exact","exactly_once","exfalso","exists","f_equal","fail","field","field_simplify","field_simplify_eq","first","firstorder","fix","fold","fourier","functional","generalize","generalizing","gfail","give_up","has_evar","hnf","idtac","in","induction","injection","instantiate","intro","intro_pattern","intros","intuition","inversion","inversion_clear","is_evar","is_var","lapply","lazy","left","lia","lra","move","native_compute","nia","nsatz","omega","once","pattern","pose","progress","proof","psatz","quote","record","red","refine","reflexivity","remember","rename","repeat","replace","revert","revgoals","rewrite","rewrite_strat","right","ring","ring_simplify","rtauto","set","setoid_reflexivity","setoid_replace","setoid_rewrite","setoid_symmetry","setoid_transitivity","shelve","shelve_unifiable","simpl","simple","simplify_eq","solve","specialize","split","split_Rabs","split_Rmult","stepl","stepr","subst","sum","swap","symmetry","tactic","tauto","time","timeout","top","transitivity","trivial","try","tryif","unfold","unify","until","using","vm_compute","with"]},contains:[e.QUOTE_STRING_MODE,e.COMMENT("\\(\\*","\\*\\)"),e.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}return hd=t,hd}var Td,Oh;function OOe(){if(Oh)return Td;Oh=1;function t(e){return{name:"Caché Object Script",case_insensitive:!0,aliases:["cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*\s*>/,subLanguage:"xml"}]}}return Td=t,Td}var vd,Ah;function AOe(){if(Ah)return vd;Ah=1;function t(e){const n=e.regex,i=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",l="<[^<>]+>",c="(?!struct)("+o+"|"+n.optional(s)+"[a-zA-Z_]\\w*"+n.optional(l)+")",d={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},_="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",p={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+_+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},g={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},E={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(p,{className:"string"}),{className:"string",begin:/<.*?>/},i,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:n.optional(s)+e.IDENT_RE,relevance:0},S=n.optional(s)+e.IDENT_RE+"\\s*\\(",C=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],h=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],T=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],N=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],P={type:h,keyword:C,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:T},D={className:"function.dispatch",relevance:0,keywords:{_hint:N},begin:n.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,n.lookahead(/(<[^<>]+>|)\s*\(/))},k=[D,E,d,i,e.C_BLOCK_COMMENT_MODE,g,p],U={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:P,contains:k.concat([{begin:/\(/,end:/\)/,keywords:P,contains:k.concat(["self"]),relevance:0}]),relevance:0},W={className:"function",begin:"("+c+"[\\*&\\s]+)+"+S,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:P,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:o,keywords:P,relevance:0},{begin:S,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[p,g]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:P,relevance:0,contains:[i,e.C_BLOCK_COMMENT_MODE,p,g,d,{begin:/\(/,end:/\)/,keywords:P,relevance:0,contains:["self",i,e.C_BLOCK_COMMENT_MODE,p,g,d]}]},d,i,e.C_BLOCK_COMMENT_MODE,E]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:P,illegal:"",keywords:P,contains:["self",d]},{begin:e.IDENT_RE+"::",keywords:P},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return vd=t,vd}var Cd,yh;function yOe(){if(yh)return Cd;yh=1;function t(e){const n="primitive rsc_template",i="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml",o="property rsc_defaults op_defaults",s="params meta operations op rule attributes utilization",l="read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\",c="number string",d="Master Started Slave Stopped start promote demote stop monitor true false";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:s+" "+l+" "+c,literal:d},contains:[e.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:n,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+i.split(" ").join("|")+")\\s+",keywords:i,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:o,starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},e.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"",relevance:0}]}}return Cd=t,Cd}var Rd,Ih;function IOe(){if(Ih)return Rd;Ih=1;function t(e){const n="(_?[ui](8|16|32|64|128))?",i="(_?f(32|64))?",o="[a-zA-Z_]\\w*[!?=]?",s="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",l="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",c={$pattern:o,keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},d={className:"subst",begin:/#\{/,end:/\}/,keywords:c},_={className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},p={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:c};function g(N,y){const x=[{begin:N,end:y}];return x[0].contains=x,x}const E={className:"string",contains:[e.BACKSLASH_ESCAPE,d],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:g("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:g("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:g(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:g("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},f={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:g("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:g("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:g(/\{/,/\}/)},{begin:"%q<",end:">",contains:g("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},S={begin:"(?!%\\})("+e.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,d],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},C={className:"regexp",contains:[e.BACKSLASH_ESCAPE,d],variants:[{begin:"%r\\(",end:"\\)",contains:g("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:g("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:g(/\{/,/\}/)},{begin:"%r<",end:">",contains:g("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},h={className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"})]},T=[p,E,f,C,S,h,_,e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:l}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:l})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:l})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:s,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:s,endsParent:!0})],relevance:2},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[E,{begin:s}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+n},{begin:"\\b0o([0-7_]+)"+n},{begin:"\\b0x([A-Fa-f0-9_]+)"+n},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?"+i+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+n}],relevance:0}];return d.contains=T,p.contains=T.slice(1),{name:"Crystal",aliases:["cr"],keywords:c,contains:T}}return Rd=t,Rd}var Nd,Dh;function DOe(){if(Dh)return Nd;Dh=1;function t(e){const n=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],i=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],o=["default","false","null","true"],s=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],l=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],c={keyword:s.concat(l),built_in:n,literal:o},d=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),_={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},p={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},g=e.inherit(p,{illegal:/\n/}),E={className:"subst",begin:/\{/,end:/\}/,keywords:c},f=e.inherit(E,{illegal:/\n/}),S={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,f]},C={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},E]},h=e.inherit(C,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]});E.contains=[C,S,p,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,e.C_BLOCK_COMMENT_MODE],f.contains=[h,S,g,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const T={variants:[C,S,p,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},N={begin:"<",end:">",contains:[{beginKeywords:"in out"},d]},y=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",x={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:c,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},T,_,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},d,N,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[d,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[d,N,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+y+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:c,contains:[{beginKeywords:i.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,N],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,relevance:0,contains:[T,_,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},x]}}return Nd=t,Nd}var Od,xh;function xOe(){if(xh)return Od;xh=1;function t(e){return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:["base-uri","child-src","connect-src","default-src","font-src","form-action","frame-ancestors","frame-src","img-src","manifest-src","media-src","object-src","plugin-types","report-uri","sandbox","script-src","style-src","trusted-types","unsafe-hashes","worker-src"]},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}return Od=t,Od}var Ad,wh;function wOe(){if(wh)return Ad;wh=1;const t=c=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:c.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:c.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],s=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function l(c){const d=c.regex,_=t(c),p={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},g="and or not only",E=/@-?\w[\w]*(-\w+)*/,f="[a-zA-Z-][a-zA-Z0-9_-]*",S=[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[_.BLOCK_COMMENT,p,_.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+f,relevance:0},_.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+i.join("|")+")"},{begin:":(:)?("+o.join("|")+")"}]},_.CSS_VARIABLE,{className:"attribute",begin:"\\b("+s.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[_.BLOCK_COMMENT,_.HEXCOLOR,_.IMPORTANT,_.CSS_NUMBER_MODE,...S,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...S,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},_.FUNCTION_DISPATCH]},{begin:d.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:E},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:g,attribute:n.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...S,_.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+e.join("|")+")\\b"}]}}return Ad=l,Ad}var yd,Mh;function MOe(){if(Mh)return yd;Mh=1;function t(e){const n={$pattern:e.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},i="(0|[1-9][\\d_]*)",o="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",s="0[bB][01_]+",l="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",c="0[xX]"+l,d="([eE][+-]?"+o+")",_="("+o+"(\\.\\d*|"+d+")|\\d+\\."+o+"|\\."+i+d+"?)",p="(0[xX]("+l+"\\."+l+"|\\.?"+l+")[pP][+-]?"+o+")",g="("+i+"|"+s+"|"+c+")",E="("+p+"|"+_+")",f=`\\\\(['"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};`,S={className:"number",begin:"\\b"+g+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},C={className:"number",begin:"\\b("+E+"([fF]|L|i|[fF]i|Li)?|"+g+"(i|[fF]i|Li))",relevance:0},h={className:"string",begin:"'("+f+"|.)",end:"'",illegal:"."},N={className:"string",begin:'"',contains:[{begin:f,relevance:0}],end:'"[cwd]?'},y={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},x={className:"string",begin:"`",end:"`[cwd]?"},P={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},D={className:"string",begin:'q"\\{',end:'\\}"'},k={className:"meta",begin:"^#!",end:"$",relevance:5},U={className:"meta",begin:"#(line)",end:"$",relevance:5},W={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},z=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:n,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,z,P,N,y,x,D,C,S,h,k,U,W]}}return yd=t,yd}var Id,Lh;function LOe(){if(Lh)return Id;Lh=1;function t(e){const n=e.regex,i={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},o={begin:"^[-\\*]{3,}",end:"$"},s={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},l={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},c={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},d=/[A-Za-z][A-Za-z0-9+.-]*/,_={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:n.concat(/\[.+?\]\(/,d,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},p={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},g={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},E=e.inherit(p,{contains:[]}),f=e.inherit(g,{contains:[]});p.contains.push(f),g.contains.push(E);let S=[i,_];return[p,g,E,f].forEach(T=>{T.contains=T.contains.concat(S)}),S=S.concat(p,g),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:S},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:S}]}]},i,l,p,g,{className:"quote",begin:"^>\\s+",contains:S,end:"$"},s,o,_,c]}}return Id=t,Id}var Dd,Ph;function POe(){if(Ph)return Dd;Ph=1;function t(e){const n={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},i={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},o={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[e.BACKSLASH_ESCAPE,n,i]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,n,i]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,n,i]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,n,i]}]};i.contains=[e.C_NUMBER_MODE,o];const s=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],l=s.map(_=>`${_}?`);return{name:"Dart",keywords:{keyword:["abstract","as","assert","async","await","base","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","interface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","sealed","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","when","while","with","yield"],built_in:s.concat(l).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[o,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),e.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}return Dd=t,Dd}var xd,kh;function kOe(){if(kh)return xd;kh=1;function t(e){const n=["exports","register","file","shl","array","record","property","for","mod","while","set","ally","label","uses","raise","not","stored","class","safecall","var","interface","or","private","static","exit","index","inherited","to","else","stdcall","override","shr","asm","far","resourcestring","finalization","packed","virtual","out","and","protected","library","do","xorwrite","goto","near","function","end","div","overload","object","unit","begin","string","on","inline","repeat","until","destructor","write","message","program","with","read","initialization","except","default","nil","if","case","cdecl","in","downto","threadvar","of","try","pascal","const","external","constructor","type","public","then","implementation","finally","published","procedure","absolute","reintroduce","operator","as","is","abstract","alias","assembler","bitpacked","break","continue","cppdecl","cvar","enumerator","experimental","platform","deprecated","unimplemented","dynamic","export","far16","forward","generic","helper","implements","interrupt","iochecks","local","name","nodefault","noreturn","nostackframe","oldfpccall","otherwise","saveregisters","softfloat","specialize","strict","unaligned","varargs"],i=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],o={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},s={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},l={className:"number",relevance:0,variants:[{begin:"\\$[0-9A-Fa-f]+"},{begin:"&[0-7]+"},{begin:"%[01]+"}]},c={className:"string",begin:/(#\d+)+/},d={begin:e.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE]},_={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:n,contains:[s,c,o].concat(i)},o].concat(i)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal"],case_insensitive:!0,keywords:n,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[s,c,e.NUMBER_MODE,l,d,_,o].concat(i)}}return xd=t,xd}var wd,Uh;function UOe(){if(Uh)return wd;Uh=1;function t(e){const n=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:n.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:n.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return wd=t,wd}var Md,Fh;function FOe(){if(Fh)return Md;Fh=1;function t(e){const n={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),e.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[n],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[n]}]}}return Md=t,Md}var Ld,Bh;function BOe(){if(Bh)return Ld;Bh=1;function t(e){return{name:"DNS Zone",aliases:["bind","zone"],keywords:["IN","A","AAAA","AFSDB","APL","CAA","CDNSKEY","CDS","CERT","CNAME","DHCID","DLV","DNAME","DNSKEY","DS","HIP","IPSECKEY","KEY","KX","LOC","MX","NAPTR","NS","NSEC","NSEC3","NSEC3PARAM","PTR","RRSIG","RP","SIG","SOA","SRV","SSHFP","TA","TKEY","TLSA","TSIG","TXT"],contains:[e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},e.inherit(e.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}return Ld=t,Ld}var Pd,Gh;function GOe(){if(Gh)return Pd;Gh=1;function t(e){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"",illegal:"\\n"}]},n,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},s={className:"variable",begin:/&[a-z\d_]*\b/},l={className:"keyword",begin:"/[a-z][a-z\\d-]*/"},c={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},d={className:"params",relevance:0,begin:"<",end:">",contains:[i,s]},_={className:"title.class",begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},p={className:"title.class",begin:/^\/(?=\s*\{)/,relevance:10},g={match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:"attr"},E={relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:"attr",3:"operator"}},f={scope:"punctuation",relevance:0,match:/\};|[;{}]/};return{name:"Device Tree",contains:[p,s,l,c,_,E,g,d,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,n,o,f,{begin:e.IDENT_RE+"::",keywords:""}]}}return Fd=t,Fd}var Bd,Hh;function HOe(){if(Hh)return Bd;Hh=1;function t(e){const n="if eq ne lt lte gt gte select default math sep";return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:n}]}}return Bd=t,Bd}var Gd,zh;function zOe(){if(zh)return Gd;zh=1;function t(e){const n=e.COMMENT(/\(\*/,/\*\)/),i={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},s={begin:/=/,end:/[.;]/,contains:[n,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]};return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[n,i,s]}}return Gd=t,Gd}var Yd,Vh;function VOe(){if(Vh)return Yd;Vh=1;function t(e){const n=e.regex,i="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",o="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",c={$pattern:i,keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],literal:["false","nil","true"]},d={className:"subst",begin:/#\{/,end:/\}/,keywords:c},_={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},g={match:/\\[\s\S]/,scope:"char.escape",relevance:0},E=`[/|([{<"']`,f=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin://}],S=D=>({scope:"char.escape",begin:n.concat(/\\/,D),relevance:0}),C={className:"string",begin:"~[a-z](?="+E+")",contains:f.map(D=>e.inherit(D,{contains:[S(D.end),g,d]}))},h={className:"string",begin:"~[A-Z](?="+E+")",contains:f.map(D=>e.inherit(D,{contains:[S(D.end)]}))},T={className:"regex",variants:[{begin:"~r(?="+E+")",contains:f.map(D=>e.inherit(D,{end:n.concat(D.end,/[uismxfU]{0,7}/),contains:[S(D.end),g,d]}))},{begin:"~R(?="+E+")",contains:f.map(D=>e.inherit(D,{end:n.concat(D.end,/[uismxfU]{0,7}/),contains:[S(D.end)]}))}]},N={className:"string",contains:[e.BACKSLASH_ESCAPE,d],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},y={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:i,endsParent:!0})]},x=e.inherit(y,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),P=[N,T,h,C,e.HASH_COMMENT_MODE,x,y,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[N,{begin:o}],relevance:0},{className:"symbol",begin:i+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},_,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return d.contains=P,{name:"Elixir",aliases:["ex","exs"],keywords:c,contains:P}}return Yd=t,Yd}var qd,Wh;function WOe(){if(Wh)return qd;Wh=1;function t(e){const n={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},i={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},o={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},n]},s={begin:/\{/,end:/\}/,contains:o.contains},l={className:"string",begin:"'\\\\?.",end:"'",illegal:"."};return{name:"Elm",keywords:["let","in","if","then","else","case","of","where","module","import","exposing","type","alias","as","infix","infixl","infixr","port","effect","command","subscription"],contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[o,n],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[o,n],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[i,o,s,n]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,n]},{begin:"port",end:"$",keywords:"port",contains:[n]},l,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,i,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),n,{begin:"->|<-"}],illegal:/;/}}return qd=t,qd}var $d,Kh;function KOe(){if(Kh)return $d;Kh=1;function t(e){const n=e.regex,i="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",o=n.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),s=n.concat(o,/(::\w+)*/),c={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},d={className:"doctag",begin:"@[A-Za-z]+"},_={begin:"#<",end:">"},p=[e.COMMENT("#","$",{contains:[d]}),e.COMMENT("^=begin","^=end",{contains:[d],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],g={className:"subst",begin:/#\{/,end:/\}/,keywords:c},E={className:"string",contains:[e.BACKSLASH_ESCAPE,g],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:n.concat(/<<[-~]?'?/,n.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,g]})]}]},f="[1-9](_?[0-9])*|0",S="[0-9](_?[0-9])*",C={className:"number",relevance:0,variants:[{begin:`\\b(${f})(\\.(${S}))?([eE][+-]?(${S})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},h={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:c}]},k=[E,{variants:[{match:[/class\s+/,s,/\s+<\s+/,s]},{match:[/\b(class|module)\s+/,s]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:c},{match:[/(include|extend)\s+/,s],scope:{2:"title.class"},keywords:c},{relevance:0,match:[s,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:o,scope:"title.class"},{match:[/def/,/\s+/,i],scope:{1:"keyword",3:"title.function"},contains:[h]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[E,{begin:i}],relevance:0},C,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:c},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,g],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(_,p),relevance:0}].concat(_,p);g.contains=k,h.contains=k;const U="[>?]>",W="[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]",z="(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>",K=[{begin:/^\s*=>/,starts:{end:"$",contains:k}},{className:"meta.prompt",begin:"^("+U+"|"+W+"|"+z+")(?=[ ])",starts:{end:"$",keywords:c,contains:k}}];return p.unshift(_),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:c,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(K).concat(p).concat(k)}}return $d=t,$d}var Hd,Qh;function QOe(){if(Qh)return Hd;Qh=1;function t(e){return{name:"ERB",subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return Hd=t,Hd}var zd,Xh;function XOe(){if(Xh)return zd;Xh=1;function t(e){const n=e.regex;return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta.prompt",begin:"^[0-9]+> ",relevance:10},e.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:n.concat(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}return zd=t,zd}var Vd,Zh;function ZOe(){if(Zh)return Vd;Zh=1;function t(e){const n="[a-z'][a-zA-Z0-9_']*",i="("+n+":"+n+"|"+n+")",o={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},s=e.COMMENT("%","$"),l={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},c={begin:"fun\\s+"+n+"/\\d+"},d={begin:i+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:i,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},_={begin:/\{/,end:/\}/,relevance:0},p={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},g={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},E={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},f={beginKeywords:"fun receive if try case",end:"end",keywords:o};f.contains=[s,c,e.inherit(e.APOS_STRING_MODE,{className:""}),f,d,e.QUOTE_STRING_MODE,l,_,p,g,E];const S=[s,c,f,d,e.QUOTE_STRING_MODE,l,_,p,g,E];d.contains[1].contains=S,_.contains=S,E.contains[1].contains=S;const C=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec"],h={className:"params",begin:"\\(",end:"\\)",contains:S};return{name:"Erlang",aliases:["erl"],keywords:o,illegal:"(",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[h,e.inherit(e.TITLE_MODE,{begin:n})],starts:{end:";|\\.",keywords:o,contains:S}},s,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:C.map(T=>`${T}|1.5`).join(" ")},contains:[h]},l,e.QUOTE_STRING_MODE,E,p,g,_,{begin:/\.$/}]}}return Vd=t,Vd}var Wd,Jh;function JOe(){if(Jh)return Wd;Jh=1;function t(e){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:["ABS","ACCRINT","ACCRINTM","ACOS","ACOSH","ACOT","ACOTH","AGGREGATE","ADDRESS","AMORDEGRC","AMORLINC","AND","ARABIC","AREAS","ASC","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BAHTTEXT","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETADIST","BETA.DIST","BETAINV","BETA.INV","BIN2DEC","BIN2HEX","BIN2OCT","BINOMDIST","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","CALL","CEILING","CEILING.MATH","CEILING.PRECISE","CELL","CHAR","CHIDIST","CHIINV","CHITEST","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHOOSE","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCAT","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUPDAYBS","COUPDAYS","COUPDAYSNC","COUPNCD","COUPNUM","COUPPCD","COVAR","COVARIANCE.P","COVARIANCE.S","CRITBINOM","CSC","CSCH","CUBEKPIMEMBER","CUBEMEMBER","CUBEMEMBERPROPERTY","CUBERANKEDMEMBER","CUBESET","CUBESETCOUNT","CUBEVALUE","CUMIPMT","CUMPRINC","DATE","DATEDIF","DATEVALUE","DAVERAGE","DAY","DAYS","DAYS360","DB","DBCS","DCOUNT","DCOUNTA","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DGET","DISC","DMAX","DMIN","DOLLAR","DOLLARDE","DOLLARFR","DPRODUCT","DSTDEV","DSTDEVP","DSUM","DURATION","DVAR","DVARP","EDATE","EFFECT","ENCODEURL","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EUROCONVERT","EVEN","EXACT","EXP","EXPON.DIST","EXPONDIST","FACT","FACTDOUBLE","FALSE|0","F.DIST","FDIST","F.DIST.RT","FILTERXML","FIND","FINDB","F.INV","F.INV.RT","FINV","FISHER","FISHERINV","FIXED","FLOOR","FLOOR.MATH","FLOOR.PRECISE","FORECAST","FORECAST.ETS","FORECAST.ETS.CONFINT","FORECAST.ETS.SEASONALITY","FORECAST.ETS.STAT","FORECAST.LINEAR","FORMULATEXT","FREQUENCY","F.TEST","FTEST","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMADIST","GAMMA.INV","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GETPIVOTDATA","GROWTH","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HLOOKUP","HOUR","HYPERLINK","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IFS","IMABS","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INDEX","INDIRECT","INFO","INT","INTERCEPT","INTRATE","IPMT","IRR","ISBLANK","ISERR","ISERROR","ISEVEN","ISFORMULA","ISLOGICAL","ISNA","ISNONTEXT","ISNUMBER","ISODD","ISREF","ISTEXT","ISO.CEILING","ISOWEEKNUM","ISPMT","JIS","KURT","LARGE","LCM","LEFT","LEFTB","LEN","LENB","LINEST","LN","LOG","LOG10","LOGEST","LOGINV","LOGNORM.DIST","LOGNORMDIST","LOGNORM.INV","LOOKUP","LOWER","MATCH","MAX","MAXA","MAXIFS","MDETERM","MDURATION","MEDIAN","MID","MIDBs","MIN","MINIFS","MINA","MINUTE","MINVERSE","MIRR","MMULT","MOD","MODE","MODE.MULT","MODE.SNGL","MONTH","MROUND","MULTINOMIAL","MUNIT","N","NA","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NETWORKDAYS.INTL","NOMINAL","NORM.DIST","NORMDIST","NORMINV","NORM.INV","NORM.S.DIST","NORMSDIST","NORM.S.INV","NORMSINV","NOT","NOW","NPER","NPV","NUMBERVALUE","OCT2BIN","OCT2DEC","OCT2HEX","ODD","ODDFPRICE","ODDFYIELD","ODDLPRICE","ODDLYIELD","OFFSET","OR","PDURATION","PEARSON","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILE","PERCENTRANK.EXC","PERCENTRANK.INC","PERCENTRANK","PERMUT","PERMUTATIONA","PHI","PHONETIC","PI","PMT","POISSON.DIST","POISSON","POWER","PPMT","PRICE","PRICEDISC","PRICEMAT","PROB","PRODUCT","PROPER","PV","QUARTILE","QUARTILE.EXC","QUARTILE.INC","QUOTIENT","RADIANS","RAND","RANDBETWEEN","RANK.AVG","RANK.EQ","RANK","RATE","RECEIVED","REGISTER.ID","REPLACE","REPLACEB","REPT","RIGHT","RIGHTB","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","RTD","SEARCH","SEARCHB","SEC","SECH","SECOND","SERIESSUM","SHEET","SHEETS","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SQL.REQUEST","SQRT","SQRTPI","STANDARDIZE","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","TAN","TANH","TBILLEQ","TBILLPRICE","TBILLYIELD","T.DIST","T.DIST.2T","T.DIST.RT","TDIST","TEXT","TEXTJOIN","TIME","TIMEVALUE","T.INV","T.INV.2T","TINV","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE|0","TRUNC","T.TEST","TTEST","TYPE","UNICHAR","UNICODE","UPPER","VALUE","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VDB","VLOOKUP","WEBSERVICE","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","XIRR","XNPV","XOR","YEAR","YEARFRAC","YIELD","YIELDDISC","YIELDMAT","Z.TEST","ZTEST"]},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},e.BACKSLASH_ESCAPE,e.QUOTE_STRING_MODE,{className:"number",begin:e.NUMBER_RE+"(%)?",relevance:0},e.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}return Wd=t,Wd}var Kd,jh;function jOe(){if(jh)return Kd;jh=1;function t(e){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}return Kd=t,Kd}var Qd,eT;function eAe(){if(eT)return Qd;eT=1;function t(e){const n={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},i={className:"string",variants:[{begin:'"',end:'"'}]},s={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{name:"Flix",keywords:{keyword:["case","class","def","else","enum","if","impl","import","in","lat","rel","index","let","match","namespace","switch","type","yield","with"],literal:["true","false"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,i,s,e.C_NUMBER_MODE]}}return Qd=t,Qd}var Xd,tT;function tAe(){if(tT)return Xd;tT=1;function t(e){const n=e.regex,i={className:"params",begin:"\\(",end:"\\)"},o={variants:[e.COMMENT("!","$",{relevance:0}),e.COMMENT("^C[ ]","$",{relevance:0}),e.COMMENT("^C$","$",{relevance:0})]},s=/(_[a-z_\d]+)?/,l=/([de][+-]?\d+)?/,c={className:"number",variants:[{begin:n.concat(/\b\d+/,/\.(\d*)/,l,s)},{begin:n.concat(/\b\d+/,l,s)},{begin:n.concat(/\.\d+/,l,s)}],relevance:0},d={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,i]},_={className:"string",relevance:0,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{keyword:["kind","do","concurrent","local","shared","while","private","call","intrinsic","where","elsewhere","type","endtype","endmodule","endselect","endinterface","end","enddo","endif","if","forall","endforall","only","contains","default","return","stop","then","block","endblock","endassociate","public","subroutine|10","function","program",".and.",".or.",".not.",".le.",".eq.",".ge.",".gt.",".lt.","goto","save","else","use","module","select","case","access","blank","direct","exist","file","fmt","form","formatted","iostat","name","named","nextrec","number","opened","rec","recl","sequential","status","unformatted","unit","continue","format","pause","cycle","exit","c_null_char","c_alert","c_backspace","c_form_feed","flush","wait","decimal","round","iomsg","synchronous","nopass","non_overridable","pass","protected","volatile","abstract","extends","import","non_intrinsic","value","deferred","generic","final","enumerator","class","associate","bind","enum","c_int","c_short","c_long","c_long_long","c_signed_char","c_size_t","c_int8_t","c_int16_t","c_int32_t","c_int64_t","c_int_least8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_fast8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_intmax_t","C_intptr_t","c_float","c_double","c_long_double","c_float_complex","c_double_complex","c_long_double_complex","c_bool","c_char","c_null_ptr","c_null_funptr","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","iso_c_binding","c_loc","c_funloc","c_associated","c_f_pointer","c_ptr","c_funptr","iso_fortran_env","character_storage_size","error_unit","file_storage_size","input_unit","iostat_end","iostat_eor","numeric_storage_size","output_unit","c_f_procpointer","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","newunit","contiguous","recursive","pad","position","action","delim","readwrite","eor","advance","nml","interface","procedure","namelist","include","sequence","elemental","pure","impure","integer","real","character","complex","logical","codimension","dimension","allocatable|10","parameter","external","implicit|10","none","double","precision","assign","intent","optional","pointer","target","in","out","common","equivalence","data"],literal:[".False.",".True."],built_in:["alog","alog10","amax0","amax1","amin0","amin1","amod","cabs","ccos","cexp","clog","csin","csqrt","dabs","dacos","dasin","datan","datan2","dcos","dcosh","ddim","dexp","dint","dlog","dlog10","dmax1","dmin1","dmod","dnint","dsign","dsin","dsinh","dsqrt","dtan","dtanh","float","iabs","idim","idint","idnint","ifix","isign","max0","max1","min0","min1","sngl","algama","cdabs","cdcos","cdexp","cdlog","cdsin","cdsqrt","cqabs","cqcos","cqexp","cqlog","cqsin","cqsqrt","dcmplx","dconjg","derf","derfc","dfloat","dgamma","dimag","dlgama","iqint","qabs","qacos","qasin","qatan","qatan2","qcmplx","qconjg","qcos","qcosh","qdim","qerf","qerfc","qexp","qgamma","qimag","qlgama","qlog","qlog10","qmax1","qmin1","qmod","qnint","qsign","qsin","qsinh","qsqrt","qtan","qtanh","abs","acos","aimag","aint","anint","asin","atan","atan2","char","cmplx","conjg","cos","cosh","exp","ichar","index","int","log","log10","max","min","nint","sign","sin","sinh","sqrt","tan","tanh","print","write","dim","lge","lgt","lle","llt","mod","nullify","allocate","deallocate","adjustl","adjustr","all","allocated","any","associated","bit_size","btest","ceiling","count","cshift","date_and_time","digits","dot_product","eoshift","epsilon","exponent","floor","fraction","huge","iand","ibclr","ibits","ibset","ieor","ior","ishft","ishftc","lbound","len_trim","matmul","maxexponent","maxloc","maxval","merge","minexponent","minloc","minval","modulo","mvbits","nearest","pack","present","product","radix","random_number","random_seed","range","repeat","reshape","rrspacing","scale","scan","selected_int_kind","selected_real_kind","set_exponent","shape","size","spacing","spread","sum","system_clock","tiny","transpose","trim","ubound","unpack","verify","achar","iachar","transfer","dble","entry","dprod","cpu_time","command_argument_count","get_command","get_command_argument","get_environment_variable","is_iostat_end","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","is_iostat_eor","move_alloc","new_line","selected_char_kind","same_type_as","extends_type_of","acosh","asinh","atanh","bessel_j0","bessel_j1","bessel_jn","bessel_y0","bessel_y1","bessel_yn","erf","erfc","erfc_scaled","gamma","log_gamma","hypot","norm2","atomic_define","atomic_ref","execute_command_line","leadz","trailz","storage_size","merge_bits","bge","bgt","ble","blt","dshiftl","dshiftr","findloc","iall","iany","iparity","image_index","lcobound","ucobound","maskl","maskr","num_images","parity","popcnt","poppar","shifta","shiftl","shiftr","this_image","sync","change","team","co_broadcast","co_max","co_min","co_sum","co_reduce"]},illegal:/\/\*/,contains:[_,d,{begin:/^C\s*=(?!=)/,relevance:0},o,c]}}return Xd=t,Xd}var Zd,nT;function nAe(){if(nT)return Zd;nT=1;function t(c){return new RegExp(c.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function e(c){return c?typeof c=="string"?c:c.source:null}function n(c){return i("(?=",c,")")}function i(...c){return c.map(_=>e(_)).join("")}function o(c){const d=c[c.length-1];return typeof d=="object"&&d.constructor===Object?(c.splice(c.length-1,1),d):{}}function s(...c){return"("+(o(c).capture?"":"?:")+c.map(p=>e(p)).join("|")+")"}function l(c){const d=["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","finally","fixed","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","of","open","or","override","private","public","rec","return","static","struct","then","to","try","type","upcast","use","val","void","when","while","with","yield"],_={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},p=["if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit"],g=["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],E=["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"],f=["bool","byte","sbyte","int8","int16","int32","uint8","uint16","uint32","int","uint","int64","uint64","nativeint","unativeint","decimal","float","double","float32","single","char","string","unit","bigint","option","voption","list","array","seq","byref","exn","inref","nativeptr","obj","outref","voidptr","Result"],C={keyword:d,literal:g,built_in:["not","ref","raise","reraise","dict","readOnlyDict","set","get","enum","sizeof","typeof","typedefof","nameof","nullArg","invalidArg","invalidOp","id","fst","snd","ignore","lock","using","box","unbox","tryUnbox","printf","printfn","sprintf","eprintf","eprintfn","fprintf","fprintfn","failwith","failwithf"],"variable.constant":E},T={variants:[c.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),c.C_LINE_COMMENT_MODE]},N=/[a-zA-Z_](\w|')*/,y={scope:"variable",begin:/``/,end:/``/},x=/\B('|\^)/,P={scope:"symbol",variants:[{match:i(x,/``.*?``/)},{match:i(x,c.UNDERSCORE_IDENT_RE)}],relevance:0},D=function({includeEqual:Ce}){let Be;Ce?Be="!%&*+-/<=>@^|~?":Be="!%&*+-/<>@^|~?";const Ve=Array.from(Be),xe=i("[",...Ve.map(t),"]"),He=s(xe,/\./),rt=i(He,n(He)),We=s(i(rt,He,"*"),i(xe,"+"));return{scope:"operator",match:s(We,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},k=D({includeEqual:!0}),U=D({includeEqual:!1}),W=function(Ce,Be){return{begin:i(Ce,n(i(/\s*/,s(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:Be,end:n(s(/\n/,/=/)),relevance:0,keywords:c.inherit(C,{type:f}),contains:[T,P,c.inherit(y,{scope:null}),U]}},z=W(/:/,"operator"),K=W(/\bof\b/,"keyword"),Ee={begin:[/(^|\s+)/,/type/,/\s+/,N],beginScope:{2:"keyword",4:"title.class"},end:n(/\(|=|$/),keywords:C,contains:[T,c.inherit(y,{scope:null}),P,{scope:"operator",match:/<|>/},z]},oe={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},L={begin:[/^\s*/,i(/#/,s(...p)),/\b/],beginScope:{2:"meta"},end:n(/\s|$/)},J={variants:[c.BINARY_NUMBER_MODE,c.C_NUMBER_MODE]},re={scope:"string",begin:/"/,end:/"/,contains:[c.BACKSLASH_ESCAPE]},G={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},c.BACKSLASH_ESCAPE]},X={scope:"string",begin:/"""/,end:/"""/,relevance:2},_e={scope:"subst",begin:/\{/,end:/\}/,keywords:C},ve={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},c.BACKSLASH_ESCAPE,_e]},he={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},c.BACKSLASH_ESCAPE,_e]},tt={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},_e],relevance:2},lt={scope:"string",match:i(/'/,s(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return _e.contains=[he,ve,G,re,lt,_,T,y,z,oe,L,J,P,k],{name:"F#",aliases:["fs","f#"],keywords:C,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[_,{variants:[tt,he,ve,X,G,re,lt]},T,y,Ee,{scope:"meta",begin:/\[\]/,relevance:2,contains:[y,X,G,re,lt,J]},K,z,oe,L,J,P,k]}}return Zd=l,Zd}var Jd,rT;function rAe(){if(rT)return Jd;rT=1;function t(e){const n=e.regex,i={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},o={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},s={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},l={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},c={begin:"/",end:"/",keywords:i,contains:[l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},d=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,_={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[l,c,{className:"comment",begin:n.concat(d,n.anyNumberOfTimes(n.concat(/[ ]+/,d))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:i,contains:[e.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"keyword",begin:"^\\$[a-z0-9]+"}]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,c,_]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[_]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},o,s]},e.C_NUMBER_MODE,s]}}return Jd=t,Jd}var jd,iT;function iAe(){if(iT)return jd;iT=1;function t(e){const n={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},i=e.COMMENT("@","@"),o={className:"meta",begin:"#",end:"$",keywords:{keyword:"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[{className:"string",begin:'"',end:'"',illegal:"\\n"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i]},s={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},l=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,i,s]}],c={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},d=function(f,S,C){const h=e.inherit({className:"function",beginKeywords:f,end:S,excludeEnd:!0,contains:[].concat(l)},C||{});return h.contains.push(c),h.contains.push(e.C_NUMBER_MODE),h.contains.push(e.C_BLOCK_COMMENT_MODE),h.contains.push(i),h},_={className:"built_in",begin:"\\b("+n.built_in.split(" ").join("|")+")\\b"},p={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0},g={begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:n,relevance:0,contains:[{beginKeywords:n.keyword},_,{className:"built_in",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},E={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:n.built_in,literal:n.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,i,_,g,p,"self"]};return g.contains.push(E),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:n,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,p,o,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},d("proc keyword",";"),d("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE,i,E]},{variants:[{begin:e.UNDERSCORE_IDENT_RE+"\\."+e.UNDERSCORE_IDENT_RE},{begin:e.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},g,s]}}return jd=t,jd}var e_,aT;function aAe(){if(aT)return e_;aT=1;function t(e){const n="[A-Z_][A-Z0-9_.]*",i="%",o={$pattern:n,keyword:"IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR"},s={className:"meta",begin:"([O])([0-9]+)"},l=e.inherit(e.C_NUMBER_MODE,{begin:"([-+]?((\\.\\d+)|(\\d+)(\\.\\d*)?))|"+e.C_NUMBER_RE}),c=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\(/,/\)/),l,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"name",begin:"([G])([0-9]+\\.?[0-9]?)"},{className:"name",begin:"([M])([0-9]+\\.?[0-9]?)"},{className:"attr",begin:"(VC|VS|#)",end:"(\\d+)"},{className:"attr",begin:"(VZOFX|VZOFY|VZOFZ)"},{className:"built_in",begin:"(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)",contains:[l],end:"\\]"},{className:"symbol",variants:[{begin:"N",end:"\\d+",illegal:"\\W"}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,keywords:o,contains:[{className:"meta",begin:i},s].concat(c)}}return e_=t,e_}var t_,oT;function oAe(){if(oT)return t_;oT=1;function t(e){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},e.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},e.QUOTE_STRING_MODE]}}return t_=t,t_}var n_,sT;function sAe(){if(sT)return n_;sT=1;function t(e){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}return n_=t,n_}var r_,lT;function lAe(){if(lT)return r_;lT=1;function t(e){return{name:"GML",case_insensitive:!1,keywords:{keyword:["#endregion","#macro","#region","and","begin","break","case","constructor","continue","default","delete","div","do","else","end","enum","exit","for","function","globalvar","if","mod","not","or","repeat","return","switch","then","until","var","while","with","xor"],built_in:["abs","achievement_available","achievement_event","achievement_get_challenges","achievement_get_info","achievement_get_pic","achievement_increment","achievement_load_friends","achievement_load_leaderboard","achievement_load_progress","achievement_login","achievement_login_status","achievement_logout","achievement_post","achievement_post_score","achievement_reset","achievement_send_challenge","achievement_show","achievement_show_achievements","achievement_show_challenge_notifications","achievement_show_leaderboards","action_inherited","action_kill_object","ads_disable","ads_enable","ads_engagement_active","ads_engagement_available","ads_engagement_launch","ads_event","ads_event_preload","ads_get_display_height","ads_get_display_width","ads_interstitial_available","ads_interstitial_display","ads_move","ads_set_reward_callback","ads_setup","alarm_get","alarm_set","analytics_event","analytics_event_ext","angle_difference","ansi_char","application_get_position","application_surface_draw_enable","application_surface_enable","application_surface_is_enabled","arccos","arcsin","arctan","arctan2","array_copy","array_create","array_delete","array_equals","array_height_2d","array_insert","array_length","array_length_1d","array_length_2d","array_pop","array_push","array_resize","array_sort","asset_get_index","asset_get_type","audio_channel_num","audio_create_buffer_sound","audio_create_play_queue","audio_create_stream","audio_create_sync_group","audio_debug","audio_destroy_stream","audio_destroy_sync_group","audio_emitter_create","audio_emitter_exists","audio_emitter_falloff","audio_emitter_free","audio_emitter_gain","audio_emitter_get_gain","audio_emitter_get_listener_mask","audio_emitter_get_pitch","audio_emitter_get_vx","audio_emitter_get_vy","audio_emitter_get_vz","audio_emitter_get_x","audio_emitter_get_y","audio_emitter_get_z","audio_emitter_pitch","audio_emitter_position","audio_emitter_set_listener_mask","audio_emitter_velocity","audio_exists","audio_falloff_set_model","audio_free_buffer_sound","audio_free_play_queue","audio_get_listener_count","audio_get_listener_info","audio_get_listener_mask","audio_get_master_gain","audio_get_name","audio_get_recorder_count","audio_get_recorder_info","audio_get_type","audio_group_is_loaded","audio_group_load","audio_group_load_progress","audio_group_name","audio_group_set_gain","audio_group_stop_all","audio_group_unload","audio_is_paused","audio_is_playing","audio_listener_get_data","audio_listener_orientation","audio_listener_position","audio_listener_set_orientation","audio_listener_set_position","audio_listener_set_velocity","audio_listener_velocity","audio_master_gain","audio_music_gain","audio_music_is_playing","audio_pause_all","audio_pause_music","audio_pause_sound","audio_pause_sync_group","audio_play_in_sync_group","audio_play_music","audio_play_sound","audio_play_sound_at","audio_play_sound_on","audio_queue_sound","audio_resume_all","audio_resume_music","audio_resume_sound","audio_resume_sync_group","audio_set_listener_mask","audio_set_master_gain","audio_sound_gain","audio_sound_get_gain","audio_sound_get_listener_mask","audio_sound_get_pitch","audio_sound_get_track_position","audio_sound_length","audio_sound_pitch","audio_sound_set_listener_mask","audio_sound_set_track_position","audio_start_recording","audio_start_sync_group","audio_stop_all","audio_stop_music","audio_stop_recording","audio_stop_sound","audio_stop_sync_group","audio_sync_group_debug","audio_sync_group_get_track_pos","audio_sync_group_is_playing","audio_system","background_get_height","background_get_width","base64_decode","base64_encode","browser_input_capture","buffer_async_group_begin","buffer_async_group_end","buffer_async_group_option","buffer_base64_decode","buffer_base64_decode_ext","buffer_base64_encode","buffer_copy","buffer_copy_from_vertex_buffer","buffer_create","buffer_create_from_vertex_buffer","buffer_create_from_vertex_buffer_ext","buffer_delete","buffer_exists","buffer_fill","buffer_get_address","buffer_get_alignment","buffer_get_size","buffer_get_surface","buffer_get_type","buffer_load","buffer_load_async","buffer_load_ext","buffer_load_partial","buffer_md5","buffer_peek","buffer_poke","buffer_read","buffer_resize","buffer_save","buffer_save_async","buffer_save_ext","buffer_seek","buffer_set_surface","buffer_sha1","buffer_sizeof","buffer_tell","buffer_write","camera_apply","camera_create","camera_create_view","camera_destroy","camera_get_active","camera_get_begin_script","camera_get_default","camera_get_end_script","camera_get_proj_mat","camera_get_update_script","camera_get_view_angle","camera_get_view_border_x","camera_get_view_border_y","camera_get_view_height","camera_get_view_mat","camera_get_view_speed_x","camera_get_view_speed_y","camera_get_view_target","camera_get_view_width","camera_get_view_x","camera_get_view_y","camera_set_begin_script","camera_set_default","camera_set_end_script","camera_set_proj_mat","camera_set_update_script","camera_set_view_angle","camera_set_view_border","camera_set_view_mat","camera_set_view_pos","camera_set_view_size","camera_set_view_speed","camera_set_view_target","ceil","choose","chr","clamp","clickable_add","clickable_add_ext","clickable_change","clickable_change_ext","clickable_delete","clickable_exists","clickable_set_style","clipboard_get_text","clipboard_has_text","clipboard_set_text","cloud_file_save","cloud_string_save","cloud_synchronise","code_is_compiled","collision_circle","collision_circle_list","collision_ellipse","collision_ellipse_list","collision_line","collision_line_list","collision_point","collision_point_list","collision_rectangle","collision_rectangle_list","color_get_blue","color_get_green","color_get_hue","color_get_red","color_get_saturation","color_get_value","colour_get_blue","colour_get_green","colour_get_hue","colour_get_red","colour_get_saturation","colour_get_value","cos","darccos","darcsin","darctan","darctan2","date_compare_date","date_compare_datetime","date_compare_time","date_create_datetime","date_current_datetime","date_date_of","date_date_string","date_datetime_string","date_day_span","date_days_in_month","date_days_in_year","date_get_day","date_get_day_of_year","date_get_hour","date_get_hour_of_year","date_get_minute","date_get_minute_of_year","date_get_month","date_get_second","date_get_second_of_year","date_get_timezone","date_get_week","date_get_weekday","date_get_year","date_hour_span","date_inc_day","date_inc_hour","date_inc_minute","date_inc_month","date_inc_second","date_inc_week","date_inc_year","date_is_today","date_leap_year","date_minute_span","date_month_span","date_second_span","date_set_timezone","date_time_of","date_time_string","date_valid_datetime","date_week_span","date_year_span","dcos","debug_event","debug_get_callstack","degtorad","device_get_tilt_x","device_get_tilt_y","device_get_tilt_z","device_is_keypad_open","device_mouse_check_button","device_mouse_check_button_pressed","device_mouse_check_button_released","device_mouse_dbclick_enable","device_mouse_raw_x","device_mouse_raw_y","device_mouse_x","device_mouse_x_to_gui","device_mouse_y","device_mouse_y_to_gui","directory_create","directory_destroy","directory_exists","display_get_dpi_x","display_get_dpi_y","display_get_gui_height","display_get_gui_width","display_get_height","display_get_orientation","display_get_sleep_margin","display_get_timing_method","display_get_width","display_mouse_get_x","display_mouse_get_y","display_mouse_set","display_reset","display_set_gui_maximise","display_set_gui_maximize","display_set_gui_size","display_set_sleep_margin","display_set_timing_method","display_set_ui_visibility","distance_to_object","distance_to_point","dot_product","dot_product_3d","dot_product_3d_normalised","dot_product_3d_normalized","dot_product_normalised","dot_product_normalized","draw_arrow","draw_background","draw_background_ext","draw_background_part_ext","draw_background_tiled","draw_button","draw_circle","draw_circle_color","draw_circle_colour","draw_clear","draw_clear_alpha","draw_ellipse","draw_ellipse_color","draw_ellipse_colour","draw_enable_alphablend","draw_enable_drawevent","draw_enable_swf_aa","draw_flush","draw_get_alpha","draw_get_color","draw_get_colour","draw_get_lighting","draw_get_swf_aa_level","draw_getpixel","draw_getpixel_ext","draw_healthbar","draw_highscore","draw_light_define_ambient","draw_light_define_direction","draw_light_define_point","draw_light_enable","draw_light_get","draw_light_get_ambient","draw_line","draw_line_color","draw_line_colour","draw_line_width","draw_line_width_color","draw_line_width_colour","draw_path","draw_point","draw_point_color","draw_point_colour","draw_primitive_begin","draw_primitive_begin_texture","draw_primitive_end","draw_rectangle","draw_rectangle_color","draw_rectangle_colour","draw_roundrect","draw_roundrect_color","draw_roundrect_color_ext","draw_roundrect_colour","draw_roundrect_colour_ext","draw_roundrect_ext","draw_self","draw_set_alpha","draw_set_alpha_test","draw_set_alpha_test_ref_value","draw_set_blend_mode","draw_set_blend_mode_ext","draw_set_circle_precision","draw_set_color","draw_set_color_write_enable","draw_set_colour","draw_set_font","draw_set_halign","draw_set_lighting","draw_set_swf_aa_level","draw_set_valign","draw_skeleton","draw_skeleton_collision","draw_skeleton_instance","draw_skeleton_time","draw_sprite","draw_sprite_ext","draw_sprite_general","draw_sprite_part","draw_sprite_part_ext","draw_sprite_pos","draw_sprite_stretched","draw_sprite_stretched_ext","draw_sprite_tiled","draw_sprite_tiled_ext","draw_surface","draw_surface_ext","draw_surface_general","draw_surface_part","draw_surface_part_ext","draw_surface_stretched","draw_surface_stretched_ext","draw_surface_tiled","draw_surface_tiled_ext","draw_text","draw_text_color","draw_text_colour","draw_text_ext","draw_text_ext_color","draw_text_ext_colour","draw_text_ext_transformed","draw_text_ext_transformed_color","draw_text_ext_transformed_colour","draw_text_transformed","draw_text_transformed_color","draw_text_transformed_colour","draw_texture_flush","draw_tile","draw_tilemap","draw_triangle","draw_triangle_color","draw_triangle_colour","draw_vertex","draw_vertex_color","draw_vertex_colour","draw_vertex_texture","draw_vertex_texture_color","draw_vertex_texture_colour","ds_exists","ds_grid_add","ds_grid_add_disk","ds_grid_add_grid_region","ds_grid_add_region","ds_grid_clear","ds_grid_copy","ds_grid_create","ds_grid_destroy","ds_grid_get","ds_grid_get_disk_max","ds_grid_get_disk_mean","ds_grid_get_disk_min","ds_grid_get_disk_sum","ds_grid_get_max","ds_grid_get_mean","ds_grid_get_min","ds_grid_get_sum","ds_grid_height","ds_grid_multiply","ds_grid_multiply_disk","ds_grid_multiply_grid_region","ds_grid_multiply_region","ds_grid_read","ds_grid_resize","ds_grid_set","ds_grid_set_disk","ds_grid_set_grid_region","ds_grid_set_region","ds_grid_shuffle","ds_grid_sort","ds_grid_value_disk_exists","ds_grid_value_disk_x","ds_grid_value_disk_y","ds_grid_value_exists","ds_grid_value_x","ds_grid_value_y","ds_grid_width","ds_grid_write","ds_list_add","ds_list_clear","ds_list_copy","ds_list_create","ds_list_delete","ds_list_destroy","ds_list_empty","ds_list_find_index","ds_list_find_value","ds_list_insert","ds_list_mark_as_list","ds_list_mark_as_map","ds_list_read","ds_list_replace","ds_list_set","ds_list_shuffle","ds_list_size","ds_list_sort","ds_list_write","ds_map_add","ds_map_add_list","ds_map_add_map","ds_map_clear","ds_map_copy","ds_map_create","ds_map_delete","ds_map_destroy","ds_map_empty","ds_map_exists","ds_map_find_first","ds_map_find_last","ds_map_find_next","ds_map_find_previous","ds_map_find_value","ds_map_read","ds_map_replace","ds_map_replace_list","ds_map_replace_map","ds_map_secure_load","ds_map_secure_load_buffer","ds_map_secure_save","ds_map_secure_save_buffer","ds_map_set","ds_map_size","ds_map_write","ds_priority_add","ds_priority_change_priority","ds_priority_clear","ds_priority_copy","ds_priority_create","ds_priority_delete_max","ds_priority_delete_min","ds_priority_delete_value","ds_priority_destroy","ds_priority_empty","ds_priority_find_max","ds_priority_find_min","ds_priority_find_priority","ds_priority_read","ds_priority_size","ds_priority_write","ds_queue_clear","ds_queue_copy","ds_queue_create","ds_queue_dequeue","ds_queue_destroy","ds_queue_empty","ds_queue_enqueue","ds_queue_head","ds_queue_read","ds_queue_size","ds_queue_tail","ds_queue_write","ds_set_precision","ds_stack_clear","ds_stack_copy","ds_stack_create","ds_stack_destroy","ds_stack_empty","ds_stack_pop","ds_stack_push","ds_stack_read","ds_stack_size","ds_stack_top","ds_stack_write","dsin","dtan","effect_clear","effect_create_above","effect_create_below","environment_get_variable","event_inherited","event_perform","event_perform_object","event_user","exp","external_call","external_define","external_free","facebook_accesstoken","facebook_check_permission","facebook_dialog","facebook_graph_request","facebook_init","facebook_launch_offerwall","facebook_login","facebook_logout","facebook_post_message","facebook_request_publish_permissions","facebook_request_read_permissions","facebook_send_invite","facebook_status","facebook_user_id","file_attributes","file_bin_close","file_bin_open","file_bin_position","file_bin_read_byte","file_bin_rewrite","file_bin_seek","file_bin_size","file_bin_write_byte","file_copy","file_delete","file_exists","file_find_close","file_find_first","file_find_next","file_rename","file_text_close","file_text_eof","file_text_eoln","file_text_open_append","file_text_open_from_string","file_text_open_read","file_text_open_write","file_text_read_real","file_text_read_string","file_text_readln","file_text_write_real","file_text_write_string","file_text_writeln","filename_change_ext","filename_dir","filename_drive","filename_ext","filename_name","filename_path","floor","font_add","font_add_enable_aa","font_add_get_enable_aa","font_add_sprite","font_add_sprite_ext","font_delete","font_exists","font_get_bold","font_get_first","font_get_fontname","font_get_italic","font_get_last","font_get_name","font_get_size","font_get_texture","font_get_uvs","font_replace","font_replace_sprite","font_replace_sprite_ext","font_set_cache_size","font_texture_page_size","frac","game_end","game_get_speed","game_load","game_load_buffer","game_restart","game_save","game_save_buffer","game_set_speed","gamepad_axis_count","gamepad_axis_value","gamepad_button_check","gamepad_button_check_pressed","gamepad_button_check_released","gamepad_button_count","gamepad_button_value","gamepad_get_axis_deadzone","gamepad_get_button_threshold","gamepad_get_description","gamepad_get_device_count","gamepad_is_connected","gamepad_is_supported","gamepad_set_axis_deadzone","gamepad_set_button_threshold","gamepad_set_color","gamepad_set_colour","gamepad_set_vibration","gesture_double_tap_distance","gesture_double_tap_time","gesture_drag_distance","gesture_drag_time","gesture_flick_speed","gesture_get_double_tap_distance","gesture_get_double_tap_time","gesture_get_drag_distance","gesture_get_drag_time","gesture_get_flick_speed","gesture_get_pinch_angle_away","gesture_get_pinch_angle_towards","gesture_get_pinch_distance","gesture_get_rotate_angle","gesture_get_rotate_time","gesture_get_tap_count","gesture_pinch_angle_away","gesture_pinch_angle_towards","gesture_pinch_distance","gesture_rotate_angle","gesture_rotate_time","gesture_tap_count","get_integer","get_integer_async","get_login_async","get_open_filename","get_open_filename_ext","get_save_filename","get_save_filename_ext","get_string","get_string_async","get_timer","gml_pragma","gml_release_mode","gpu_get_alphatestenable","gpu_get_alphatestfunc","gpu_get_alphatestref","gpu_get_blendenable","gpu_get_blendmode","gpu_get_blendmode_dest","gpu_get_blendmode_destalpha","gpu_get_blendmode_ext","gpu_get_blendmode_ext_sepalpha","gpu_get_blendmode_src","gpu_get_blendmode_srcalpha","gpu_get_colorwriteenable","gpu_get_colourwriteenable","gpu_get_cullmode","gpu_get_fog","gpu_get_lightingenable","gpu_get_state","gpu_get_tex_filter","gpu_get_tex_filter_ext","gpu_get_tex_max_aniso","gpu_get_tex_max_aniso_ext","gpu_get_tex_max_mip","gpu_get_tex_max_mip_ext","gpu_get_tex_min_mip","gpu_get_tex_min_mip_ext","gpu_get_tex_mip_bias","gpu_get_tex_mip_bias_ext","gpu_get_tex_mip_enable","gpu_get_tex_mip_enable_ext","gpu_get_tex_mip_filter","gpu_get_tex_mip_filter_ext","gpu_get_tex_repeat","gpu_get_tex_repeat_ext","gpu_get_texfilter","gpu_get_texfilter_ext","gpu_get_texrepeat","gpu_get_texrepeat_ext","gpu_get_zfunc","gpu_get_ztestenable","gpu_get_zwriteenable","gpu_pop_state","gpu_push_state","gpu_set_alphatestenable","gpu_set_alphatestfunc","gpu_set_alphatestref","gpu_set_blendenable","gpu_set_blendmode","gpu_set_blendmode_ext","gpu_set_blendmode_ext_sepalpha","gpu_set_colorwriteenable","gpu_set_colourwriteenable","gpu_set_cullmode","gpu_set_fog","gpu_set_lightingenable","gpu_set_state","gpu_set_tex_filter","gpu_set_tex_filter_ext","gpu_set_tex_max_aniso","gpu_set_tex_max_aniso_ext","gpu_set_tex_max_mip","gpu_set_tex_max_mip_ext","gpu_set_tex_min_mip","gpu_set_tex_min_mip_ext","gpu_set_tex_mip_bias","gpu_set_tex_mip_bias_ext","gpu_set_tex_mip_enable","gpu_set_tex_mip_enable_ext","gpu_set_tex_mip_filter","gpu_set_tex_mip_filter_ext","gpu_set_tex_repeat","gpu_set_tex_repeat_ext","gpu_set_texfilter","gpu_set_texfilter_ext","gpu_set_texrepeat","gpu_set_texrepeat_ext","gpu_set_zfunc","gpu_set_ztestenable","gpu_set_zwriteenable","highscore_add","highscore_clear","highscore_name","highscore_value","http_get","http_get_file","http_post_string","http_request","iap_acquire","iap_activate","iap_consume","iap_enumerate_products","iap_product_details","iap_purchase_details","iap_restore_all","iap_status","ini_close","ini_key_delete","ini_key_exists","ini_open","ini_open_from_string","ini_read_real","ini_read_string","ini_section_delete","ini_section_exists","ini_write_real","ini_write_string","instance_activate_all","instance_activate_layer","instance_activate_object","instance_activate_region","instance_change","instance_copy","instance_create","instance_create_depth","instance_create_layer","instance_deactivate_all","instance_deactivate_layer","instance_deactivate_object","instance_deactivate_region","instance_destroy","instance_exists","instance_find","instance_furthest","instance_id_get","instance_nearest","instance_number","instance_place","instance_place_list","instance_position","instance_position_list","int64","io_clear","irandom","irandom_range","is_array","is_bool","is_infinity","is_int32","is_int64","is_matrix","is_method","is_nan","is_numeric","is_ptr","is_real","is_string","is_struct","is_undefined","is_vec3","is_vec4","json_decode","json_encode","keyboard_check","keyboard_check_direct","keyboard_check_pressed","keyboard_check_released","keyboard_clear","keyboard_get_map","keyboard_get_numlock","keyboard_key_press","keyboard_key_release","keyboard_set_map","keyboard_set_numlock","keyboard_unset_map","keyboard_virtual_height","keyboard_virtual_hide","keyboard_virtual_show","keyboard_virtual_status","layer_add_instance","layer_background_alpha","layer_background_blend","layer_background_change","layer_background_create","layer_background_destroy","layer_background_exists","layer_background_get_alpha","layer_background_get_blend","layer_background_get_htiled","layer_background_get_id","layer_background_get_index","layer_background_get_speed","layer_background_get_sprite","layer_background_get_stretch","layer_background_get_visible","layer_background_get_vtiled","layer_background_get_xscale","layer_background_get_yscale","layer_background_htiled","layer_background_index","layer_background_speed","layer_background_sprite","layer_background_stretch","layer_background_visible","layer_background_vtiled","layer_background_xscale","layer_background_yscale","layer_create","layer_depth","layer_destroy","layer_destroy_instances","layer_element_move","layer_exists","layer_force_draw_depth","layer_get_all","layer_get_all_elements","layer_get_depth","layer_get_element_layer","layer_get_element_type","layer_get_forced_depth","layer_get_hspeed","layer_get_id","layer_get_id_at_depth","layer_get_name","layer_get_script_begin","layer_get_script_end","layer_get_shader","layer_get_target_room","layer_get_visible","layer_get_vspeed","layer_get_x","layer_get_y","layer_has_instance","layer_hspeed","layer_instance_get_instance","layer_is_draw_depth_forced","layer_reset_target_room","layer_script_begin","layer_script_end","layer_set_target_room","layer_set_visible","layer_shader","layer_sprite_alpha","layer_sprite_angle","layer_sprite_blend","layer_sprite_change","layer_sprite_create","layer_sprite_destroy","layer_sprite_exists","layer_sprite_get_alpha","layer_sprite_get_angle","layer_sprite_get_blend","layer_sprite_get_id","layer_sprite_get_index","layer_sprite_get_speed","layer_sprite_get_sprite","layer_sprite_get_x","layer_sprite_get_xscale","layer_sprite_get_y","layer_sprite_get_yscale","layer_sprite_index","layer_sprite_speed","layer_sprite_x","layer_sprite_xscale","layer_sprite_y","layer_sprite_yscale","layer_tile_alpha","layer_tile_blend","layer_tile_change","layer_tile_create","layer_tile_destroy","layer_tile_exists","layer_tile_get_alpha","layer_tile_get_blend","layer_tile_get_region","layer_tile_get_sprite","layer_tile_get_visible","layer_tile_get_x","layer_tile_get_xscale","layer_tile_get_y","layer_tile_get_yscale","layer_tile_region","layer_tile_visible","layer_tile_x","layer_tile_xscale","layer_tile_y","layer_tile_yscale","layer_tilemap_create","layer_tilemap_destroy","layer_tilemap_exists","layer_tilemap_get_id","layer_vspeed","layer_x","layer_y","lengthdir_x","lengthdir_y","lerp","ln","load_csv","log10","log2","logn","make_color_hsv","make_color_rgb","make_colour_hsv","make_colour_rgb","math_get_epsilon","math_set_epsilon","matrix_build","matrix_build_identity","matrix_build_lookat","matrix_build_projection_ortho","matrix_build_projection_perspective","matrix_build_projection_perspective_fov","matrix_get","matrix_multiply","matrix_set","matrix_stack_clear","matrix_stack_is_empty","matrix_stack_multiply","matrix_stack_pop","matrix_stack_push","matrix_stack_set","matrix_stack_top","matrix_transform_vertex","max","md5_file","md5_string_unicode","md5_string_utf8","mean","median","merge_color","merge_colour","min","motion_add","motion_set","mouse_check_button","mouse_check_button_pressed","mouse_check_button_released","mouse_clear","mouse_wheel_down","mouse_wheel_up","move_bounce_all","move_bounce_solid","move_contact_all","move_contact_solid","move_outside_all","move_outside_solid","move_random","move_snap","move_towards_point","move_wrap","mp_grid_add_cell","mp_grid_add_instances","mp_grid_add_rectangle","mp_grid_clear_all","mp_grid_clear_cell","mp_grid_clear_rectangle","mp_grid_create","mp_grid_destroy","mp_grid_draw","mp_grid_get_cell","mp_grid_path","mp_grid_to_ds_grid","mp_linear_path","mp_linear_path_object","mp_linear_step","mp_linear_step_object","mp_potential_path","mp_potential_path_object","mp_potential_settings","mp_potential_step","mp_potential_step_object","network_connect","network_connect_raw","network_create_server","network_create_server_raw","network_create_socket","network_create_socket_ext","network_destroy","network_resolve","network_send_broadcast","network_send_packet","network_send_raw","network_send_udp","network_send_udp_raw","network_set_config","network_set_timeout","object_exists","object_get_depth","object_get_mask","object_get_name","object_get_parent","object_get_persistent","object_get_physics","object_get_solid","object_get_sprite","object_get_visible","object_is_ancestor","object_set_mask","object_set_persistent","object_set_solid","object_set_sprite","object_set_visible","ord","os_get_config","os_get_info","os_get_language","os_get_region","os_is_network_connected","os_is_paused","os_lock_orientation","os_powersave_enable","parameter_count","parameter_string","part_emitter_burst","part_emitter_clear","part_emitter_create","part_emitter_destroy","part_emitter_destroy_all","part_emitter_exists","part_emitter_region","part_emitter_stream","part_particles_clear","part_particles_count","part_particles_create","part_particles_create_color","part_particles_create_colour","part_system_automatic_draw","part_system_automatic_update","part_system_clear","part_system_create","part_system_create_layer","part_system_depth","part_system_destroy","part_system_draw_order","part_system_drawit","part_system_exists","part_system_get_layer","part_system_layer","part_system_position","part_system_update","part_type_alpha1","part_type_alpha2","part_type_alpha3","part_type_blend","part_type_clear","part_type_color1","part_type_color2","part_type_color3","part_type_color_hsv","part_type_color_mix","part_type_color_rgb","part_type_colour1","part_type_colour2","part_type_colour3","part_type_colour_hsv","part_type_colour_mix","part_type_colour_rgb","part_type_create","part_type_death","part_type_destroy","part_type_direction","part_type_exists","part_type_gravity","part_type_life","part_type_orientation","part_type_scale","part_type_shape","part_type_size","part_type_speed","part_type_sprite","part_type_step","path_add","path_add_point","path_append","path_assign","path_change_point","path_clear_points","path_delete","path_delete_point","path_duplicate","path_end","path_exists","path_flip","path_get_closed","path_get_kind","path_get_length","path_get_name","path_get_number","path_get_point_speed","path_get_point_x","path_get_point_y","path_get_precision","path_get_speed","path_get_time","path_get_x","path_get_y","path_insert_point","path_mirror","path_rescale","path_reverse","path_rotate","path_set_closed","path_set_kind","path_set_precision","path_shift","path_start","physics_apply_angular_impulse","physics_apply_force","physics_apply_impulse","physics_apply_local_force","physics_apply_local_impulse","physics_apply_torque","physics_draw_debug","physics_fixture_add_point","physics_fixture_bind","physics_fixture_bind_ext","physics_fixture_create","physics_fixture_delete","physics_fixture_set_angular_damping","physics_fixture_set_awake","physics_fixture_set_box_shape","physics_fixture_set_chain_shape","physics_fixture_set_circle_shape","physics_fixture_set_collision_group","physics_fixture_set_density","physics_fixture_set_edge_shape","physics_fixture_set_friction","physics_fixture_set_kinematic","physics_fixture_set_linear_damping","physics_fixture_set_polygon_shape","physics_fixture_set_restitution","physics_fixture_set_sensor","physics_get_density","physics_get_friction","physics_get_restitution","physics_joint_delete","physics_joint_distance_create","physics_joint_enable_motor","physics_joint_friction_create","physics_joint_gear_create","physics_joint_get_value","physics_joint_prismatic_create","physics_joint_pulley_create","physics_joint_revolute_create","physics_joint_rope_create","physics_joint_set_value","physics_joint_weld_create","physics_joint_wheel_create","physics_mass_properties","physics_particle_count","physics_particle_create","physics_particle_delete","physics_particle_delete_region_box","physics_particle_delete_region_circle","physics_particle_delete_region_poly","physics_particle_draw","physics_particle_draw_ext","physics_particle_get_damping","physics_particle_get_data","physics_particle_get_data_particle","physics_particle_get_density","physics_particle_get_gravity_scale","physics_particle_get_group_flags","physics_particle_get_max_count","physics_particle_get_radius","physics_particle_group_add_point","physics_particle_group_begin","physics_particle_group_box","physics_particle_group_circle","physics_particle_group_count","physics_particle_group_delete","physics_particle_group_end","physics_particle_group_get_ang_vel","physics_particle_group_get_angle","physics_particle_group_get_centre_x","physics_particle_group_get_centre_y","physics_particle_group_get_data","physics_particle_group_get_inertia","physics_particle_group_get_mass","physics_particle_group_get_vel_x","physics_particle_group_get_vel_y","physics_particle_group_get_x","physics_particle_group_get_y","physics_particle_group_join","physics_particle_group_polygon","physics_particle_set_category_flags","physics_particle_set_damping","physics_particle_set_density","physics_particle_set_flags","physics_particle_set_gravity_scale","physics_particle_set_group_flags","physics_particle_set_max_count","physics_particle_set_radius","physics_pause_enable","physics_remove_fixture","physics_set_density","physics_set_friction","physics_set_restitution","physics_test_overlap","physics_world_create","physics_world_draw_debug","physics_world_gravity","physics_world_update_iterations","physics_world_update_speed","place_empty","place_free","place_meeting","place_snapped","point_direction","point_distance","point_distance_3d","point_in_circle","point_in_rectangle","point_in_triangle","position_change","position_destroy","position_empty","position_meeting","power","ptr","push_cancel_local_notification","push_get_first_local_notification","push_get_next_local_notification","push_local_notification","radtodeg","random","random_get_seed","random_range","random_set_seed","randomise","randomize","real","rectangle_in_circle","rectangle_in_rectangle","rectangle_in_triangle","room_add","room_assign","room_duplicate","room_exists","room_get_camera","room_get_name","room_get_viewport","room_goto","room_goto_next","room_goto_previous","room_instance_add","room_instance_clear","room_next","room_previous","room_restart","room_set_background_color","room_set_background_colour","room_set_camera","room_set_height","room_set_persistent","room_set_view","room_set_view_enabled","room_set_viewport","room_set_width","round","screen_save","screen_save_part","script_execute","script_exists","script_get_name","sha1_file","sha1_string_unicode","sha1_string_utf8","shader_current","shader_enable_corner_id","shader_get_name","shader_get_sampler_index","shader_get_uniform","shader_is_compiled","shader_reset","shader_set","shader_set_uniform_f","shader_set_uniform_f_array","shader_set_uniform_i","shader_set_uniform_i_array","shader_set_uniform_matrix","shader_set_uniform_matrix_array","shaders_are_supported","shop_leave_rating","show_debug_message","show_debug_overlay","show_error","show_message","show_message_async","show_question","show_question_async","sign","sin","skeleton_animation_clear","skeleton_animation_get","skeleton_animation_get_duration","skeleton_animation_get_ext","skeleton_animation_get_frame","skeleton_animation_get_frames","skeleton_animation_list","skeleton_animation_mix","skeleton_animation_set","skeleton_animation_set_ext","skeleton_animation_set_frame","skeleton_attachment_create","skeleton_attachment_get","skeleton_attachment_set","skeleton_bone_data_get","skeleton_bone_data_set","skeleton_bone_state_get","skeleton_bone_state_set","skeleton_collision_draw_set","skeleton_get_bounds","skeleton_get_minmax","skeleton_get_num_bounds","skeleton_skin_get","skeleton_skin_list","skeleton_skin_set","skeleton_slot_data","sprite_add","sprite_add_from_surface","sprite_assign","sprite_collision_mask","sprite_create_from_surface","sprite_delete","sprite_duplicate","sprite_exists","sprite_flush","sprite_flush_multi","sprite_get_bbox_bottom","sprite_get_bbox_left","sprite_get_bbox_right","sprite_get_bbox_top","sprite_get_height","sprite_get_name","sprite_get_number","sprite_get_speed","sprite_get_speed_type","sprite_get_texture","sprite_get_tpe","sprite_get_uvs","sprite_get_width","sprite_get_xoffset","sprite_get_yoffset","sprite_merge","sprite_prefetch","sprite_prefetch_multi","sprite_replace","sprite_save","sprite_save_strip","sprite_set_alpha_from_sprite","sprite_set_cache_size","sprite_set_cache_size_ext","sprite_set_offset","sprite_set_speed","sqr","sqrt","steam_activate_overlay","steam_activate_overlay_browser","steam_activate_overlay_store","steam_activate_overlay_user","steam_available_languages","steam_clear_achievement","steam_create_leaderboard","steam_current_game_language","steam_download_friends_scores","steam_download_scores","steam_download_scores_around_user","steam_file_delete","steam_file_exists","steam_file_persisted","steam_file_read","steam_file_share","steam_file_size","steam_file_write","steam_file_write_file","steam_get_achievement","steam_get_app_id","steam_get_persona_name","steam_get_quota_free","steam_get_quota_total","steam_get_stat_avg_rate","steam_get_stat_float","steam_get_stat_int","steam_get_user_account_id","steam_get_user_persona_name","steam_get_user_steam_id","steam_initialised","steam_is_cloud_enabled_for_account","steam_is_cloud_enabled_for_app","steam_is_overlay_activated","steam_is_overlay_enabled","steam_is_screenshot_requested","steam_is_user_logged_on","steam_reset_all_stats","steam_reset_all_stats_achievements","steam_send_screenshot","steam_set_achievement","steam_set_stat_avg_rate","steam_set_stat_float","steam_set_stat_int","steam_stats_ready","steam_ugc_create_item","steam_ugc_create_query_all","steam_ugc_create_query_all_ex","steam_ugc_create_query_user","steam_ugc_create_query_user_ex","steam_ugc_download","steam_ugc_get_item_install_info","steam_ugc_get_item_update_info","steam_ugc_get_item_update_progress","steam_ugc_get_subscribed_items","steam_ugc_num_subscribed_items","steam_ugc_query_add_excluded_tag","steam_ugc_query_add_required_tag","steam_ugc_query_set_allow_cached_response","steam_ugc_query_set_cloud_filename_filter","steam_ugc_query_set_match_any_tag","steam_ugc_query_set_ranked_by_trend_days","steam_ugc_query_set_return_long_description","steam_ugc_query_set_return_total_only","steam_ugc_query_set_search_text","steam_ugc_request_item_details","steam_ugc_send_query","steam_ugc_set_item_content","steam_ugc_set_item_description","steam_ugc_set_item_preview","steam_ugc_set_item_tags","steam_ugc_set_item_title","steam_ugc_set_item_visibility","steam_ugc_start_item_update","steam_ugc_submit_item_update","steam_ugc_subscribe_item","steam_ugc_unsubscribe_item","steam_upload_score","steam_upload_score_buffer","steam_upload_score_buffer_ext","steam_upload_score_ext","steam_user_installed_dlc","steam_user_owns_dlc","string","string_byte_at","string_byte_length","string_char_at","string_copy","string_count","string_delete","string_digits","string_format","string_hash_to_newline","string_height","string_height_ext","string_insert","string_length","string_letters","string_lettersdigits","string_lower","string_ord_at","string_pos","string_repeat","string_replace","string_replace_all","string_set_byte_at","string_upper","string_width","string_width_ext","surface_copy","surface_copy_part","surface_create","surface_create_ext","surface_depth_disable","surface_exists","surface_free","surface_get_depth_disable","surface_get_height","surface_get_texture","surface_get_width","surface_getpixel","surface_getpixel_ext","surface_reset_target","surface_resize","surface_save","surface_save_part","surface_set_target","surface_set_target_ext","tan","texture_get_height","texture_get_texel_height","texture_get_texel_width","texture_get_uvs","texture_get_width","texture_global_scale","texture_set_stage","tile_get_empty","tile_get_flip","tile_get_index","tile_get_mirror","tile_get_rotate","tile_set_empty","tile_set_flip","tile_set_index","tile_set_mirror","tile_set_rotate","tilemap_clear","tilemap_get","tilemap_get_at_pixel","tilemap_get_cell_x_at_pixel","tilemap_get_cell_y_at_pixel","tilemap_get_frame","tilemap_get_global_mask","tilemap_get_height","tilemap_get_mask","tilemap_get_tile_height","tilemap_get_tile_width","tilemap_get_tileset","tilemap_get_width","tilemap_get_x","tilemap_get_y","tilemap_set","tilemap_set_at_pixel","tilemap_set_global_mask","tilemap_set_mask","tilemap_tileset","tilemap_x","tilemap_y","timeline_add","timeline_clear","timeline_delete","timeline_exists","timeline_get_name","timeline_max_moment","timeline_moment_add_script","timeline_moment_clear","timeline_size","typeof","url_get_domain","url_open","url_open_ext","url_open_full","variable_global_exists","variable_global_get","variable_global_set","variable_instance_exists","variable_instance_get","variable_instance_get_names","variable_instance_set","variable_struct_exists","variable_struct_get","variable_struct_get_names","variable_struct_names_count","variable_struct_remove","variable_struct_set","vertex_argb","vertex_begin","vertex_color","vertex_colour","vertex_create_buffer","vertex_create_buffer_ext","vertex_create_buffer_from_buffer","vertex_create_buffer_from_buffer_ext","vertex_delete_buffer","vertex_end","vertex_float1","vertex_float2","vertex_float3","vertex_float4","vertex_format_add_color","vertex_format_add_colour","vertex_format_add_custom","vertex_format_add_normal","vertex_format_add_position","vertex_format_add_position_3d","vertex_format_add_texcoord","vertex_format_add_textcoord","vertex_format_begin","vertex_format_delete","vertex_format_end","vertex_freeze","vertex_get_buffer_size","vertex_get_number","vertex_normal","vertex_position","vertex_position_3d","vertex_submit","vertex_texcoord","vertex_ubyte4","view_get_camera","view_get_hport","view_get_surface_id","view_get_visible","view_get_wport","view_get_xport","view_get_yport","view_set_camera","view_set_hport","view_set_surface_id","view_set_visible","view_set_wport","view_set_xport","view_set_yport","virtual_key_add","virtual_key_delete","virtual_key_hide","virtual_key_show","win8_appbar_add_element","win8_appbar_enable","win8_appbar_remove_element","win8_device_touchscreen_available","win8_license_initialize_sandbox","win8_license_trial_version","win8_livetile_badge_clear","win8_livetile_badge_notification","win8_livetile_notification_begin","win8_livetile_notification_end","win8_livetile_notification_expiry","win8_livetile_notification_image_add","win8_livetile_notification_secondary_begin","win8_livetile_notification_tag","win8_livetile_notification_text_add","win8_livetile_queue_enable","win8_livetile_tile_clear","win8_livetile_tile_notification","win8_search_add_suggestions","win8_search_disable","win8_search_enable","win8_secondarytile_badge_notification","win8_secondarytile_delete","win8_secondarytile_pin","win8_settingscharm_add_entry","win8_settingscharm_add_html_entry","win8_settingscharm_add_xaml_entry","win8_settingscharm_get_xaml_property","win8_settingscharm_remove_entry","win8_settingscharm_set_xaml_property","win8_share_file","win8_share_image","win8_share_screenshot","win8_share_text","win8_share_url","window_center","window_device","window_get_caption","window_get_color","window_get_colour","window_get_cursor","window_get_fullscreen","window_get_height","window_get_visible_rects","window_get_width","window_get_x","window_get_y","window_handle","window_has_focus","window_mouse_get_x","window_mouse_get_y","window_mouse_set","window_set_caption","window_set_color","window_set_colour","window_set_cursor","window_set_fullscreen","window_set_max_height","window_set_max_width","window_set_min_height","window_set_min_width","window_set_position","window_set_rectangle","window_set_size","window_view_mouse_get_x","window_view_mouse_get_y","window_views_mouse_get_x","window_views_mouse_get_y","winphone_license_trial_version","winphone_tile_back_content","winphone_tile_back_content_wide","winphone_tile_back_image","winphone_tile_back_image_wide","winphone_tile_back_title","winphone_tile_background_color","winphone_tile_background_colour","winphone_tile_count","winphone_tile_cycle_images","winphone_tile_front_image","winphone_tile_front_image_small","winphone_tile_front_image_wide","winphone_tile_icon_image","winphone_tile_small_background_image","winphone_tile_small_icon_image","winphone_tile_title","winphone_tile_wide_content","zip_unzip"],literal:["all","false","noone","pointer_invalid","pointer_null","true","undefined"],symbol:["ANSI_CHARSET","ARABIC_CHARSET","BALTIC_CHARSET","CHINESEBIG5_CHARSET","DEFAULT_CHARSET","EASTEUROPE_CHARSET","GB2312_CHARSET","GM_build_date","GM_runtime_version","GM_version","GREEK_CHARSET","HANGEUL_CHARSET","HEBREW_CHARSET","JOHAB_CHARSET","MAC_CHARSET","OEM_CHARSET","RUSSIAN_CHARSET","SHIFTJIS_CHARSET","SYMBOL_CHARSET","THAI_CHARSET","TURKISH_CHARSET","VIETNAMESE_CHARSET","achievement_achievement_info","achievement_filter_all_players","achievement_filter_favorites_only","achievement_filter_friends_only","achievement_friends_info","achievement_leaderboard_info","achievement_our_info","achievement_pic_loaded","achievement_show_achievement","achievement_show_bank","achievement_show_friend_picker","achievement_show_leaderboard","achievement_show_profile","achievement_show_purchase_prompt","achievement_show_ui","achievement_type_achievement_challenge","achievement_type_score_challenge","asset_font","asset_object","asset_path","asset_room","asset_script","asset_shader","asset_sound","asset_sprite","asset_tiles","asset_timeline","asset_unknown","audio_3d","audio_falloff_exponent_distance","audio_falloff_exponent_distance_clamped","audio_falloff_inverse_distance","audio_falloff_inverse_distance_clamped","audio_falloff_linear_distance","audio_falloff_linear_distance_clamped","audio_falloff_none","audio_mono","audio_new_system","audio_old_system","audio_stereo","bm_add","bm_complex","bm_dest_alpha","bm_dest_color","bm_dest_colour","bm_inv_dest_alpha","bm_inv_dest_color","bm_inv_dest_colour","bm_inv_src_alpha","bm_inv_src_color","bm_inv_src_colour","bm_max","bm_normal","bm_one","bm_src_alpha","bm_src_alpha_sat","bm_src_color","bm_src_colour","bm_subtract","bm_zero","browser_chrome","browser_edge","browser_firefox","browser_ie","browser_ie_mobile","browser_not_a_browser","browser_opera","browser_safari","browser_safari_mobile","browser_tizen","browser_unknown","browser_windows_store","buffer_bool","buffer_f16","buffer_f32","buffer_f64","buffer_fast","buffer_fixed","buffer_generalerror","buffer_grow","buffer_invalidtype","buffer_network","buffer_outofbounds","buffer_outofspace","buffer_s16","buffer_s32","buffer_s8","buffer_seek_end","buffer_seek_relative","buffer_seek_start","buffer_string","buffer_surface_copy","buffer_text","buffer_u16","buffer_u32","buffer_u64","buffer_u8","buffer_vbuffer","buffer_wrap","button_type","c_aqua","c_black","c_blue","c_dkgray","c_fuchsia","c_gray","c_green","c_lime","c_ltgray","c_maroon","c_navy","c_olive","c_orange","c_purple","c_red","c_silver","c_teal","c_white","c_yellow","cmpfunc_always","cmpfunc_equal","cmpfunc_greater","cmpfunc_greaterequal","cmpfunc_less","cmpfunc_lessequal","cmpfunc_never","cmpfunc_notequal","cr_appstart","cr_arrow","cr_beam","cr_cross","cr_default","cr_drag","cr_handpoint","cr_hourglass","cr_none","cr_size_all","cr_size_nesw","cr_size_ns","cr_size_nwse","cr_size_we","cr_uparrow","cull_clockwise","cull_counterclockwise","cull_noculling","device_emulator","device_ios_ipad","device_ios_ipad_retina","device_ios_iphone","device_ios_iphone5","device_ios_iphone6","device_ios_iphone6plus","device_ios_iphone_retina","device_ios_unknown","device_tablet","display_landscape","display_landscape_flipped","display_portrait","display_portrait_flipped","dll_cdecl","dll_stdcall","ds_type_grid","ds_type_list","ds_type_map","ds_type_priority","ds_type_queue","ds_type_stack","ef_cloud","ef_ellipse","ef_explosion","ef_firework","ef_flare","ef_rain","ef_ring","ef_smoke","ef_smokeup","ef_snow","ef_spark","ef_star","ev_alarm","ev_animation_end","ev_boundary","ev_cleanup","ev_close_button","ev_collision","ev_create","ev_destroy","ev_draw","ev_draw_begin","ev_draw_end","ev_draw_post","ev_draw_pre","ev_end_of_path","ev_game_end","ev_game_start","ev_gesture","ev_gesture_double_tap","ev_gesture_drag_end","ev_gesture_drag_start","ev_gesture_dragging","ev_gesture_flick","ev_gesture_pinch_end","ev_gesture_pinch_in","ev_gesture_pinch_out","ev_gesture_pinch_start","ev_gesture_rotate_end","ev_gesture_rotate_start","ev_gesture_rotating","ev_gesture_tap","ev_global_gesture_double_tap","ev_global_gesture_drag_end","ev_global_gesture_drag_start","ev_global_gesture_dragging","ev_global_gesture_flick","ev_global_gesture_pinch_end","ev_global_gesture_pinch_in","ev_global_gesture_pinch_out","ev_global_gesture_pinch_start","ev_global_gesture_rotate_end","ev_global_gesture_rotate_start","ev_global_gesture_rotating","ev_global_gesture_tap","ev_global_left_button","ev_global_left_press","ev_global_left_release","ev_global_middle_button","ev_global_middle_press","ev_global_middle_release","ev_global_right_button","ev_global_right_press","ev_global_right_release","ev_gui","ev_gui_begin","ev_gui_end","ev_joystick1_button1","ev_joystick1_button2","ev_joystick1_button3","ev_joystick1_button4","ev_joystick1_button5","ev_joystick1_button6","ev_joystick1_button7","ev_joystick1_button8","ev_joystick1_down","ev_joystick1_left","ev_joystick1_right","ev_joystick1_up","ev_joystick2_button1","ev_joystick2_button2","ev_joystick2_button3","ev_joystick2_button4","ev_joystick2_button5","ev_joystick2_button6","ev_joystick2_button7","ev_joystick2_button8","ev_joystick2_down","ev_joystick2_left","ev_joystick2_right","ev_joystick2_up","ev_keyboard","ev_keypress","ev_keyrelease","ev_left_button","ev_left_press","ev_left_release","ev_middle_button","ev_middle_press","ev_middle_release","ev_mouse","ev_mouse_enter","ev_mouse_leave","ev_mouse_wheel_down","ev_mouse_wheel_up","ev_no_button","ev_no_more_health","ev_no_more_lives","ev_other","ev_outside","ev_right_button","ev_right_press","ev_right_release","ev_room_end","ev_room_start","ev_step","ev_step_begin","ev_step_end","ev_step_normal","ev_trigger","ev_user0","ev_user1","ev_user2","ev_user3","ev_user4","ev_user5","ev_user6","ev_user7","ev_user8","ev_user9","ev_user10","ev_user11","ev_user12","ev_user13","ev_user14","ev_user15","fa_archive","fa_bottom","fa_center","fa_directory","fa_hidden","fa_left","fa_middle","fa_readonly","fa_right","fa_sysfile","fa_top","fa_volumeid","fb_login_default","fb_login_fallback_to_webview","fb_login_forcing_safari","fb_login_forcing_webview","fb_login_no_fallback_to_webview","fb_login_use_system_account","gamespeed_fps","gamespeed_microseconds","ge_lose","global","gp_axislh","gp_axislv","gp_axisrh","gp_axisrv","gp_face1","gp_face2","gp_face3","gp_face4","gp_padd","gp_padl","gp_padr","gp_padu","gp_select","gp_shoulderl","gp_shoulderlb","gp_shoulderr","gp_shoulderrb","gp_start","gp_stickl","gp_stickr","iap_available","iap_canceled","iap_ev_consume","iap_ev_product","iap_ev_purchase","iap_ev_restore","iap_ev_storeload","iap_failed","iap_purchased","iap_refunded","iap_status_available","iap_status_loading","iap_status_processing","iap_status_restoring","iap_status_unavailable","iap_status_uninitialised","iap_storeload_failed","iap_storeload_ok","iap_unavailable","input_type","kbv_autocapitalize_characters","kbv_autocapitalize_none","kbv_autocapitalize_sentences","kbv_autocapitalize_words","kbv_returnkey_continue","kbv_returnkey_default","kbv_returnkey_done","kbv_returnkey_emergency","kbv_returnkey_go","kbv_returnkey_google","kbv_returnkey_join","kbv_returnkey_next","kbv_returnkey_route","kbv_returnkey_search","kbv_returnkey_send","kbv_returnkey_yahoo","kbv_type_ascii","kbv_type_default","kbv_type_email","kbv_type_numbers","kbv_type_phone","kbv_type_phone_name","kbv_type_url","layerelementtype_background","layerelementtype_instance","layerelementtype_oldtilemap","layerelementtype_particlesystem","layerelementtype_sprite","layerelementtype_tile","layerelementtype_tilemap","layerelementtype_undefined","lb_disp_none","lb_disp_numeric","lb_disp_time_ms","lb_disp_time_sec","lb_sort_ascending","lb_sort_descending","lb_sort_none","leaderboard_type_number","leaderboard_type_time_mins_secs","lighttype_dir","lighttype_point","local","matrix_projection","matrix_view","matrix_world","mb_any","mb_left","mb_middle","mb_none","mb_right","mip_markedonly","mip_off","mip_on","network_config_connect_timeout","network_config_disable_reliable_udp","network_config_enable_reliable_udp","network_config_use_non_blocking_socket","network_socket_bluetooth","network_socket_tcp","network_socket_udp","network_type_connect","network_type_data","network_type_disconnect","network_type_non_blocking_connect","of_challen","of_challenge_tie","of_challenge_win","os_3ds","os_android","os_bb10","os_ios","os_linux","os_macosx","os_ps3","os_ps4","os_psvita","os_switch","os_symbian","os_tizen","os_tvos","os_unknown","os_uwp","os_wiiu","os_win32","os_win8native","os_windows","os_winphone","os_xbox360","os_xboxone","other","ov_achievements","ov_community","ov_friends","ov_gamegroup","ov_players","ov_settings","path_action_continue","path_action_restart","path_action_reverse","path_action_stop","phy_debug_render_aabb","phy_debug_render_collision_pairs","phy_debug_render_coms","phy_debug_render_core_shapes","phy_debug_render_joints","phy_debug_render_obb","phy_debug_render_shapes","phy_joint_anchor_1_x","phy_joint_anchor_1_y","phy_joint_anchor_2_x","phy_joint_anchor_2_y","phy_joint_angle","phy_joint_angle_limits","phy_joint_damping_ratio","phy_joint_frequency","phy_joint_length_1","phy_joint_length_2","phy_joint_lower_angle_limit","phy_joint_max_force","phy_joint_max_length","phy_joint_max_motor_force","phy_joint_max_motor_torque","phy_joint_max_torque","phy_joint_motor_force","phy_joint_motor_speed","phy_joint_motor_torque","phy_joint_reaction_force_x","phy_joint_reaction_force_y","phy_joint_reaction_torque","phy_joint_speed","phy_joint_translation","phy_joint_upper_angle_limit","phy_particle_data_flag_category","phy_particle_data_flag_color","phy_particle_data_flag_colour","phy_particle_data_flag_position","phy_particle_data_flag_typeflags","phy_particle_data_flag_velocity","phy_particle_flag_colormixing","phy_particle_flag_colourmixing","phy_particle_flag_elastic","phy_particle_flag_powder","phy_particle_flag_spring","phy_particle_flag_tensile","phy_particle_flag_viscous","phy_particle_flag_wall","phy_particle_flag_water","phy_particle_flag_zombie","phy_particle_group_flag_rigid","phy_particle_group_flag_solid","pi","pr_linelist","pr_linestrip","pr_pointlist","pr_trianglefan","pr_trianglelist","pr_trianglestrip","ps_distr_gaussian","ps_distr_invgaussian","ps_distr_linear","ps_shape_diamond","ps_shape_ellipse","ps_shape_line","ps_shape_rectangle","pt_shape_circle","pt_shape_cloud","pt_shape_disk","pt_shape_explosion","pt_shape_flare","pt_shape_line","pt_shape_pixel","pt_shape_ring","pt_shape_smoke","pt_shape_snow","pt_shape_spark","pt_shape_sphere","pt_shape_square","pt_shape_star","spritespeed_framespergameframe","spritespeed_framespersecond","text_type","tf_anisotropic","tf_linear","tf_point","tile_flip","tile_index_mask","tile_mirror","tile_rotate","timezone_local","timezone_utc","tm_countvsyncs","tm_sleep","ty_real","ty_string","ugc_filetype_community","ugc_filetype_microtrans","ugc_list_Favorited","ugc_list_Followed","ugc_list_Published","ugc_list_Subscribed","ugc_list_UsedOrPlayed","ugc_list_VotedDown","ugc_list_VotedOn","ugc_list_VotedUp","ugc_list_WillVoteLater","ugc_match_AllGuides","ugc_match_Artwork","ugc_match_Collections","ugc_match_ControllerBindings","ugc_match_IntegratedGuides","ugc_match_Items","ugc_match_Items_Mtx","ugc_match_Items_ReadyToUse","ugc_match_Screenshots","ugc_match_UsableInGame","ugc_match_Videos","ugc_match_WebGuides","ugc_query_AcceptedForGameRankedByAcceptanceDate","ugc_query_CreatedByFollowedUsersRankedByPublicationDate","ugc_query_CreatedByFriendsRankedByPublicationDate","ugc_query_FavoritedByFriendsRankedByPublicationDate","ugc_query_NotYetRated","ugc_query_RankedByNumTimesReported","ugc_query_RankedByPublicationDate","ugc_query_RankedByTextSearch","ugc_query_RankedByTotalVotesAsc","ugc_query_RankedByTrend","ugc_query_RankedByVote","ugc_query_RankedByVotesUp","ugc_result_success","ugc_sortorder_CreationOrderAsc","ugc_sortorder_CreationOrderDesc","ugc_sortorder_ForModeration","ugc_sortorder_LastUpdatedDesc","ugc_sortorder_SubscriptionDateDesc","ugc_sortorder_TitleAsc","ugc_sortorder_VoteScoreDesc","ugc_visibility_friends_only","ugc_visibility_private","ugc_visibility_public","vertex_type_color","vertex_type_colour","vertex_type_float1","vertex_type_float2","vertex_type_float3","vertex_type_float4","vertex_type_ubyte4","vertex_usage_binormal","vertex_usage_blendindices","vertex_usage_blendweight","vertex_usage_color","vertex_usage_colour","vertex_usage_depth","vertex_usage_fog","vertex_usage_normal","vertex_usage_position","vertex_usage_psize","vertex_usage_sample","vertex_usage_tangent","vertex_usage_texcoord","vertex_usage_textcoord","vk_add","vk_alt","vk_anykey","vk_backspace","vk_control","vk_decimal","vk_delete","vk_divide","vk_down","vk_end","vk_enter","vk_escape","vk_f1","vk_f2","vk_f3","vk_f4","vk_f5","vk_f6","vk_f7","vk_f8","vk_f9","vk_f10","vk_f11","vk_f12","vk_home","vk_insert","vk_lalt","vk_lcontrol","vk_left","vk_lshift","vk_multiply","vk_nokey","vk_numpad0","vk_numpad1","vk_numpad2","vk_numpad3","vk_numpad4","vk_numpad5","vk_numpad6","vk_numpad7","vk_numpad8","vk_numpad9","vk_pagedown","vk_pageup","vk_pause","vk_printscreen","vk_ralt","vk_rcontrol","vk_return","vk_right","vk_rshift","vk_shift","vk_space","vk_subtract","vk_tab","vk_up"],"variable.language":["alarm","application_surface","argument","argument0","argument1","argument2","argument3","argument4","argument5","argument6","argument7","argument8","argument9","argument10","argument11","argument12","argument13","argument14","argument15","argument_count","argument_relative","async_load","background_color","background_colour","background_showcolor","background_showcolour","bbox_bottom","bbox_left","bbox_right","bbox_top","browser_height","browser_width","caption_health","caption_lives","caption_score","current_day","current_hour","current_minute","current_month","current_second","current_time","current_weekday","current_year","cursor_sprite","debug_mode","delta_time","depth","direction","display_aa","error_last","error_occurred","event_action","event_data","event_number","event_object","event_type","fps","fps_real","friction","game_display_name","game_id","game_project_name","game_save_id","gamemaker_pro","gamemaker_registered","gamemaker_version","gravity","gravity_direction","health","hspeed","iap_data","id|0","image_alpha","image_angle","image_blend","image_index","image_number","image_speed","image_xscale","image_yscale","instance_count","instance_id","keyboard_key","keyboard_lastchar","keyboard_lastkey","keyboard_string","layer","lives","mask_index","mouse_button","mouse_lastbutton","mouse_x","mouse_y","object_index","os_browser","os_device","os_type","os_version","path_endaction","path_index","path_orientation","path_position","path_positionprevious","path_scale","path_speed","persistent","phy_active","phy_angular_damping","phy_angular_velocity","phy_bullet","phy_col_normal_x","phy_col_normal_y","phy_collision_points","phy_collision_x","phy_collision_y","phy_com_x","phy_com_y","phy_dynamic","phy_fixed_rotation","phy_inertia","phy_kinematic","phy_linear_damping","phy_linear_velocity_x","phy_linear_velocity_y","phy_mass","phy_position_x","phy_position_xprevious","phy_position_y","phy_position_yprevious","phy_rotation","phy_sleeping","phy_speed","phy_speed_x","phy_speed_y","program_directory","room","room_caption","room_first","room_height","room_last","room_persistent","room_speed","room_width","score","self","show_health","show_lives","show_score","solid","speed","sprite_height","sprite_index","sprite_width","sprite_xoffset","sprite_yoffset","temp_directory","timeline_index","timeline_loop","timeline_position","timeline_running","timeline_speed","view_angle","view_camera","view_current","view_enabled","view_hborder","view_hport","view_hspeed","view_hview","view_object","view_surface_id","view_vborder","view_visible","view_vspeed","view_wport","view_wview","view_xport","view_xview","view_yport","view_yview","visible","vspeed","webgl_enabled","working_directory","xprevious","xstart","x|0","yprevious","ystart","y|0"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return r_=t,r_}var i_,cT;function cAe(){if(cT)return i_;cT=1;function t(e){const l={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:l,illegal:"",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,end:/\}/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return c_=t,c_}var u_,gT;function gAe(){if(gT)return u_;gT=1;function t(e){const n=e.regex,i={$pattern:/[\w.\/]+/,built_in:["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},o={$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]},s=/""|"[^"]+"/,l=/''|'[^']+'/,c=/\[\]|\[[^\]]+\]/,d=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,_=/(\.|\/)/,p=n.either(s,l,c,d),g=n.concat(n.optional(/\.|\.\/|\//),p,n.anyNumberOfTimes(n.concat(_,p))),E=n.concat("(",c,"|",d,")(?==)"),f={begin:g},S=e.inherit(f,{keywords:o}),C={begin:/\(/,end:/\)/},h={className:"attr",begin:E,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,S,C]}}},T={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},N={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,T,h,S,C],returnEnd:!0},y=e.inherit(f,{className:"name",keywords:i,starts:e.inherit(N,{end:/\)/})});C.contains=[y];const x=e.inherit(f,{keywords:i,className:"name",starts:e.inherit(N,{end:/\}\}/})}),P=e.inherit(f,{keywords:i,className:"name"}),D=e.inherit(f,{className:"name",keywords:i,starts:e.inherit(N,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[x],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[P]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[x]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[P]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[D]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[D]}]}}return u_=t,u_}var d_,ET;function EAe(){if(ET)return d_;ET=1;function t(e){const n={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},i={className:"meta",begin:/\{-#/,end:/#-\}/},o={className:"meta",begin:"^#",end:"$"},s={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},l={begin:"\\(",end:"\\)",illegal:'"',contains:[i,o,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),n]},c={begin:/\{/,end:/\}/,contains:l.contains},d="([0-9]_*)+",_="([0-9a-fA-F]_*)+",p="([01]_*)+",g="([0-7]_*)+",E={className:"number",relevance:0,variants:[{match:`\\b(${d})(\\.(${d}))?([eE][+-]?(${d}))?\\b`},{match:`\\b0[xX]_*(${_})(\\.(${_}))?([pP][+-]?(${d}))?\\b`},{match:`\\b0[oO](${g})\\b`},{match:`\\b0[bB](${p})\\b`}]};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[l,n],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[l,n],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[s,l,n]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[i,s,l,c,n]},{beginKeywords:"default",end:"$",contains:[s,l,n]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,n]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[s,e.QUOTE_STRING_MODE,n]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},i,o,{scope:"string",begin:/'(?=\\?.')/,end:/'/,contains:[{scope:"char.escape",match:/\\./}]},e.QUOTE_STRING_MODE,E,s,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),n,{begin:"->|<-"}]}}return d_=t,d_}var __,fT;function fAe(){if(fT)return __;fT=1;function t(e){return{name:"Haxe",aliases:["hx"],keywords:{keyword:"break case cast catch continue default do dynamic else enum extern for function here if import in inline never new override package private get set public return static super switch this throw trace try typedef untyped using var while "+"Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"},{className:"subst",begin:"\\$",end:/\W\}/}]},e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"@:",end:"$"},{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elseif end error"}},{className:"type",begin:":[ ]*",end:"[^A-Za-z0-9_ \\->]",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:":[ ]*",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"new *",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"class",beginKeywords:"enum",end:"\\{",contains:[e.TITLE_MODE]},{className:"class",beginKeywords:"abstract",end:"[\\{$]",contains:[{className:"type",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"from +",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"to +",end:"\\W",excludeBegin:!0,excludeEnd:!0},e.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"class",begin:"\\b(class|interface) +",end:"[\\{$]",excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:"\\b(extends|implements) +",keywords:"extends implements",contains:[{className:"type",begin:e.IDENT_RE,relevance:0}]},e.TITLE_MODE]},{className:"function",beginKeywords:"function",end:"\\(",excludeEnd:!0,illegal:"\\S",contains:[e.TITLE_MODE]}],illegal:/<\//}}return __=t,__}var p_,ST;function SAe(){if(ST)return p_;ST=1;function t(e){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{keyword:"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),e.NUMBER_MODE,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},e.NUMBER_MODE,e.C_NUMBER_MODE]}}return p_=t,p_}var m_,bT;function bAe(){if(bT)return m_;bT=1;function t(e){const n=e.regex,i="HTTP/([32]|1\\.[01])",o=/[A-Za-z][A-Za-z0-9-]*/,s={className:"attribute",begin:n.concat("^",o,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},l=[s,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+i+" \\d{3})",end:/$/,contains:[{className:"meta",begin:i},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:l}},{begin:"(?=^[A-Z]+ (.*?) "+i+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:i},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:l}},e.inherit(s,{relevance:0})]}}return m_=t,m_}var g_,hT;function hAe(){if(hT)return g_;hT=1;function t(e){const n="a-zA-Z_\\-!.?+*=<>&#'",i="["+n+"]["+n+"0-9/;:]*",o={$pattern:i,built_in:"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},s="[-+]?\\d+(\\.\\d+)?",l={begin:i,relevance:0},c={className:"number",begin:s,relevance:0},d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),_=e.COMMENT(";","$",{relevance:0}),p={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},g={begin:"[\\[\\{]",end:"[\\]\\}]",relevance:0},E={className:"comment",begin:"\\^"+i},f=e.COMMENT("\\^\\{","\\}"),S={className:"symbol",begin:"[:]{1,2}"+i},C={begin:"\\(",end:"\\)"},h={endsWithParent:!0,relevance:0},T={className:"name",relevance:0,keywords:o,begin:i,starts:h},N=[C,d,E,f,_,S,g,c,p,l];return C.contains=[e.COMMENT("comment",""),T,h],h.contains=N,g.contains=N,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[e.SHEBANG(),C,d,E,f,_,S,g,c,p]}}return g_=t,g_}var E_,TT;function TAe(){if(TT)return E_;TT=1;function t(e){const n="\\[",i="\\]";return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:n,end:i}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:n,end:i,contains:["self"]}]}}return E_=t,E_}var f_,vT;function vAe(){if(vT)return f_;vT=1;function t(e){const n=e.regex,i={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},o=e.COMMENT();o.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const s={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},l={className:"literal",begin:/\bon|off|true|false|yes|no\b/},c={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},d={begin:/\[/,end:/\]/,contains:[o,l,s,c,i,"self"],relevance:0},_=/[A-Za-z0-9_-]+/,p=/"(\\"|[^"])*"/,g=/'[^']*'/,E=n.either(_,p,g),f=n.concat(E,"(\\s*\\.\\s*",E,")*",n.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[o,{className:"section",begin:/\[+/,end:/\]+/},{begin:f,className:"attr",starts:{end:/$/,contains:[o,d,l,s,c,i]}}]}}return f_=t,f_}var S_,CT;function CAe(){if(CT)return S_;CT=1;function t(e){const n=e.regex,i={className:"params",begin:"\\(",end:"\\)"},o=/(_[a-z_\d]+)?/,s=/([de][+-]?\d+)?/,l={className:"number",variants:[{begin:n.concat(/\b\d+/,/\.(\d*)/,s,o)},{begin:n.concat(/\b\d+/,s,o)},{begin:n.concat(/\.\d+/,s,o)}],relevance:0};return{name:"IRPF90",case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,i]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),l]}}return S_=t,S_}var b_,RT;function RAe(){if(RT)return b_;RT=1;function t(e){const n="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",i="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*",o="and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",s="SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE ",l="CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE ",c="ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME ",d="DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY ",_="ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION ",p="JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY ",g="ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE ",E="smHidden smMaximized smMinimized smNormal wmNo wmYes ",f="COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND ",S="COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE ",C="MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY ",h="NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY ",T="dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT ",N="CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM ",y="ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME ",x="PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE ",P="ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE ",D="CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT ",k="STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER ",U="COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE ",W="SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID ",z="RESULT_VAR_NAME RESULT_VAR_NAME_ENG ",K="AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID ",Ee="SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY ",oe="SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY ",L="SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS ",J="SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS ",re="SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS ",G="ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME ",X="TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME ",_e="ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk ",ve="EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE ",he="cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate ",tt="ISBL_SYNTAX NO_SYNTAX XML_SYNTAX ",lt="WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY ",$e="SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP ",Ce=s+l+c+d+_+p+g+E+f+S+C+h+T+N+y+x+P+D+k+U+W+z+K+Ee+oe+L+J+re+G+X+_e+ve+he+tt+lt+$e,Be="atUser atGroup atRole ",Ve="aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty ",xe="apBegin apEnd ",He="alLeft alRight ",rt="asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways ",We="cirCommon cirRevoked ",te="ctSignature ctEncode ctSignatureEncode ",pe="clbUnchecked clbChecked clbGrayed ",ie="ceISB ceAlways ceNever ",Pe="ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob ",we="cfInternal cfDisplay ",Xe="ciUnspecified ciWrite ciRead ",pt="ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog ",me="ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton ",bt="cctDate cctInteger cctNumeric cctPick cctReference cctString cctText ",Ue="cltInternal cltPrimary cltGUI ",Ie="dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange ",zt="dssEdit dssInsert dssBrowse dssInActive ",Nt="dftDate dftShortDate dftDateTime dftTimeStamp ",Gt="dotDays dotHours dotMinutes dotSeconds ",Sn="dtkndLocal dtkndUTC ",ne="arNone arView arEdit arFull ",ce="ddaView ddaEdit ",Oe="emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode ",Me="ecotFile ecotProcess ",ct="eaGet eaCopy eaCreate eaCreateStandardRoute ",xt="edltAll edltNothing edltQuery ",Ze="essmText essmCard ",Yt="esvtLast esvtLastActive esvtSpecified ",er="edsfExecutive edsfArchive ",Z="edstSQLServer edstFile ",ge="edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile ",Ae="vsDefault vsDesign vsActive vsObsolete ",it="etNone etCertificate etPassword etCertificatePassword ",ht="ecException ecWarning ecInformation ",wt="estAll estApprovingOnly ",tn="evtLast evtLastActive evtQuery ",mt="fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger ",ln="ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch ",tr="grhAuto grhX1 grhX2 grhX3 ",gl="hltText hltRTF hltHTML ",lo="iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG ",El="im8bGrayscale im24bRGB im1bMonochrome ",fl="itBMP itJPEG itWMF itPNG ",Sl="ikhInformation ikhWarning ikhError ikhNoIcon ",ca="icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler ",bl="isShow isHide isByUserSettings ",ua="jkJob jkNotice jkControlJob ",hl="jtInner jtLeft jtRight jtFull jtCross ",Tl="lbpAbove lbpBelow lbpLeft lbpRight ",vl="eltPerConnection eltPerUser ",Cl="sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac ",Rl="sfsItalic sfsStrikeout sfsNormal ",Nl="ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents ",Ol="mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom ",Al="vtEqual vtGreaterOrEqual vtLessOrEqual vtRange ",co="rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth ",yl="rdWindow rdFile rdPrinter ",Il="rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument ",Dl="reOnChange reOnChangeValues ",xl="ttGlobal ttLocal ttUser ttSystem ",wl="ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal ",Ml="smSelect smLike smCard ",Ei="stNone stAuthenticating stApproving ",Ll="sctString sctStream ",fi="sstAnsiSort sstNaturalSort ",Pl="svtEqual svtContain ",kl="soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown ",Ul="tarAbortByUser tarAbortByWorkflowException ",uo="tvtAllWords tvtExactPhrase tvtAnyWord ",_o="usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp ",po="utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected ",Fl="btAnd btDetailAnd btOr btNotOr btOnly ",Bl="vmView vmSelect vmNavigation ",Gl="vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection ",Yl="wfatPrevious wfatNext wfatCancel wfatFinish ",mo="wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 ",go="wfetQueryParameter wfetText wfetDelimiter wfetLabel ",Eo="wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate ",da="wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal ",ql="wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal ",fo="waAll waPerformers waManual ",Si="wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause ",So="wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection ",$l="wiLow wiNormal wiHigh ",bo="wrtSoft wrtHard ",ho="wsInit wsRunning wsDone wsControlled wsAborted wsContinued ",_a="wtmFull wtmFromCurrent wtmOnlyCurrent ",Hl=Be+Ve+xe+He+rt+We+te+pe+ie+Pe+we+Xe+pt+me+bt+Ue+Ie+zt+Nt+Gt+Sn+ne+ce+Oe+Me+ct+xt+Ze+Yt+er+Z+ge+Ae+it+ht+wt+tn+mt+ln+tr+gl+lo+El+fl+Sl+ca+bl+ua+hl+Tl+vl+Cl+Rl+Nl+Ol+Al+co+yl+Il+Dl+xl+wl+Ml+Ei+Ll+fi+Pl+kl+Ul+uo+_o+po+Fl+Bl+Gl+Yl+mo+go+Eo+da+ql+fo+Si+So+$l+bo+ho+_a,To="AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",pa="AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ",ma="IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ",gr=Ce+Hl,vo=pa,Co="null true false nil ",Ro={className:"number",begin:e.NUMBER_RE,relevance:0},ga={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},Ea={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},No={className:"comment",begin:"//",end:"$",relevance:0,contains:[e.PHRASAL_WORDS_MODE,Ea]},Oo={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[e.PHRASAL_WORDS_MODE,Ea]},Ao={variants:[No,Oo]},bi={$pattern:n,keyword:o,built_in:gr,class:vo,literal:Co},fa={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,keywords:bi,relevance:0},Sa={className:"type",begin:":[ \\t]*("+ma.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},yo={className:"variable",keywords:bi,begin:n,relevance:0,contains:[Sa,fa]},Io=i+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:bi,illegal:"\\$|\\?|%|,|;$|~|#|@|o(l,c,d-1))}function s(l){const c=l.regex,d="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",_=d+o("(?:<"+d+"~~~(?:\\s*,\\s*"+d+"~~~)*>)?",/~~~/g,2),S={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},C={className:"meta",begin:"@"+d,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},h={className:"params",begin:/\(/,end:/\)/,keywords:S,relevance:0,contains:[l.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:S,illegal:/<\/|#/,contains:[l.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[l.BACKSLASH_ESCAPE]},l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,d],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[c.concat(/(?!else)/,d),/\s+/,d,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,d],className:{1:"keyword",3:"title.class"},contains:[h,l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+_+"\\s+)",l.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:S,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:S,relevance:0,contains:[C,l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,i,l.C_BLOCK_COMMENT_MODE]},l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE]},i,C]}}return h_=s,h_}var T_,OT;function OAe(){if(OT)return T_;OT=1;const t="[A-Za-z$_][0-9A-Za-z$_]*",e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],i=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],o=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],s=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],l=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],c=[].concat(s,i,o);function d(_){const p=_.regex,g=(Ve,{after:xe})=>{const He="",end:""},S=/<[A-Za-z0-9\\._:-]+\s*\/>/,C={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Ve,xe)=>{const He=Ve[0].length+Ve.index,rt=Ve.input[He];if(rt==="<"||rt===","){xe.ignoreMatch();return}rt===">"&&(g(Ve,{after:He})||xe.ignoreMatch());let We;const te=Ve.input.substring(He);if(We=te.match(/^\s*=/)){xe.ignoreMatch();return}if((We=te.match(/^\s+extends\s+/))&&We.index===0){xe.ignoreMatch();return}}},h={$pattern:t,keyword:e,literal:n,built_in:c,"variable.language":l},T="[0-9](_?[0-9])*",N=`\\.(${T})`,y="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",x={className:"number",variants:[{begin:`(\\b(${y})((${N})|\\.)?|(${N}))[eE][+-]?(${T})\\b`},{begin:`\\b(${y})\\b((${N})\\b|\\.)?|(${N})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},P={className:"subst",begin:"\\$\\{",end:"\\}",keywords:h,contains:[]},D={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[_.BACKSLASH_ESCAPE,P],subLanguage:"xml"}},k={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[_.BACKSLASH_ESCAPE,P],subLanguage:"css"}},U={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[_.BACKSLASH_ESCAPE,P],subLanguage:"graphql"}},W={className:"string",begin:"`",end:"`",contains:[_.BACKSLASH_ESCAPE,P]},K={className:"comment",variants:[_.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:E+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),_.C_BLOCK_COMMENT_MODE,_.C_LINE_COMMENT_MODE]},Ee=[_.APOS_STRING_MODE,_.QUOTE_STRING_MODE,D,k,U,W,{match:/\$\d+/},x];P.contains=Ee.concat({begin:/\{/,end:/\}/,keywords:h,contains:["self"].concat(Ee)});const oe=[].concat(K,P.contains),L=oe.concat([{begin:/\(/,end:/\)/,keywords:h,contains:["self"].concat(oe)}]),J={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:L},re={variants:[{match:[/class/,/\s+/,E,/\s+/,/extends/,/\s+/,p.concat(E,"(",p.concat(/\./,E),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,E],scope:{1:"keyword",3:"title.class"}}]},G={relevance:0,match:p.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...i,...o]}},X={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},_e={variants:[{match:[/function/,/\s+/,E,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[J],illegal:/%/},ve={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function he(Ve){return p.concat("(?!",Ve.join("|"),")")}const tt={match:p.concat(/\b/,he([...s,"super","import"]),E,p.lookahead(/\(/)),className:"title.function",relevance:0},lt={begin:p.concat(/\./,p.lookahead(p.concat(E,/(?![0-9A-Za-z$_(])/))),end:E,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},$e={match:[/get|set/,/\s+/,E,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},J]},Ce="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+_.UNDERSCORE_IDENT_RE+")\\s*=>",Be={match:[/const|var|let/,/\s+/,E,/\s*/,/=\s*/,/(async\s*)?/,p.lookahead(Ce)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[J]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:h,exports:{PARAMS_CONTAINS:L,CLASS_REFERENCE:G},illegal:/#(?![$_A-z])/,contains:[_.SHEBANG({label:"shebang",binary:"node",relevance:5}),X,_.APOS_STRING_MODE,_.QUOTE_STRING_MODE,D,k,U,W,K,{match:/\$\d+/},x,G,{className:"attr",begin:E+p.lookahead(":"),relevance:0},Be,{begin:"("+_.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[K,_.REGEXP_MODE,{className:"function",begin:Ce,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:_.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:L}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:f.begin,end:f.end},{match:S},{begin:C.begin,"on:begin":C.isTrulyOpeningTag,end:C.end}],subLanguage:"xml",contains:[{begin:C.begin,end:C.end,skip:!0,contains:["self"]}]}]},_e,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+_.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[J,_.inherit(_.TITLE_MODE,{begin:E,className:"title.function"})]},{match:/\.\.\./,relevance:0},lt,{match:"\\$"+E,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[J]},tt,ve,re,$e,{match:/\$[(.]/}]}}return T_=d,T_}var v_,AT;function AAe(){if(AT)return v_;AT=1;function t(e){const i={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0},o={className:"function",begin:/:[\w\-.]+/,relevance:0},s={className:"string",begin:/\B([\/.])[\w\-.\/=]+/},l={className:"params",begin:/--[\w\-=\/]+/};return{name:"JBoss CLI",aliases:["wildfly-cli"],keywords:{$pattern:"[a-z-]+",keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,l,o,s,i]}}return v_=t,v_}var C_,yT;function yAe(){if(yT)return C_;yT=1;function t(e){const n={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},i={match:/[{}[\],:]/,className:"punctuation",relevance:0},o=["true","false","null"],s={scope:"literal",beginKeywords:o.join(" ")};return{name:"JSON",keywords:{literal:o},contains:[n,i,e.QUOTE_STRING_MODE,s,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return C_=t,C_}var R_,IT;function IAe(){if(IT)return R_;IT=1;function t(e){const n="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",l={$pattern:n,keyword:["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"],literal:["ARGS","C_NULL","DEPOT_PATH","ENDIAN_BOM","ENV","Inf","Inf16","Inf32","Inf64","InsertionSort","LOAD_PATH","MergeSort","NaN","NaN16","NaN32","NaN64","PROGRAM_FILE","QuickSort","RoundDown","RoundFromZero","RoundNearest","RoundNearestTiesAway","RoundNearestTiesUp","RoundToZero","RoundUp","VERSION|0","devnull","false","im","missing","nothing","pi","stderr","stdin","stdout","true","undef","π","ℯ"],built_in:["AbstractArray","AbstractChannel","AbstractChar","AbstractDict","AbstractDisplay","AbstractFloat","AbstractIrrational","AbstractMatrix","AbstractRange","AbstractSet","AbstractString","AbstractUnitRange","AbstractVecOrMat","AbstractVector","Any","ArgumentError","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError","LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","ProcessFailedException","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","TaskFailedException","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","UndefKeywordError","UndefRefError","UndefVarError","Union","UnionAll","UnitRange","Unsigned","Val","Vararg","VecElement","VecOrMat","Vector","VersionNumber","WeakKeyDict","WeakRef"]},c={keywords:l,illegal:/<\//},d={className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},_={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},p={className:"subst",begin:/\$\(/,end:/\)/,keywords:l},g={className:"variable",begin:"\\$"+n},E={className:"string",contains:[e.BACKSLASH_ESCAPE,p,g],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},f={className:"string",contains:[e.BACKSLASH_ESCAPE,p,g],begin:"`",end:"`"},S={className:"meta",begin:"@"+n},C={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return c.name="Julia",c.contains=[d,_,E,f,S,C,e.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],p.contains=c.contains,c}return R_=t,R_}var N_,DT;function DAe(){if(DT)return N_;DT=1;function t(e){return{name:"Julia REPL",contains:[{className:"meta.prompt",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"}}],aliases:["jldoctest"]}}return N_=t,N_}var O_,xT;function xAe(){if(xT)return O_;xT=1;var t="[0-9](_*[0-9])*",e=`\\.(${t})`,n="[0-9a-fA-F](_*[0-9a-fA-F])*",i={className:"number",variants:[{begin:`(\\b(${t})((${e})|\\.)?|(${e}))[eE][+-]?(${t})[fFdD]?\\b`},{begin:`\\b(${t})((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${e})[fFdD]?\\b`},{begin:`\\b(${t})[fFdD]\\b`},{begin:`\\b0[xX]((${n})\\.?|(${n})?\\.(${n}))[pP][+-]?(${t})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${n})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function o(s){const l={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},c={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},d={className:"symbol",begin:s.UNDERSCORE_IDENT_RE+"@"},_={className:"subst",begin:/\$\{/,end:/\}/,contains:[s.C_NUMBER_MODE]},p={className:"variable",begin:"\\$"+s.UNDERSCORE_IDENT_RE},g={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[p,_]},{begin:"'",end:"'",illegal:/\n/,contains:[s.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[s.BACKSLASH_ESCAPE,p,_]}]};_.contains.push(g);const E={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+s.UNDERSCORE_IDENT_RE+")?"},f={className:"meta",begin:"@"+s.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[s.inherit(g,{className:"string"}),"self"]}]},S=i,C=s.COMMENT("/\\*","\\*/",{contains:[s.C_BLOCK_COMMENT_MODE]}),h={variants:[{className:"type",begin:s.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},T=h;return T.variants[1].contains=[h],h.variants[1].contains=[T],{name:"Kotlin",aliases:["kt","kts"],keywords:l,contains:[s.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),s.C_LINE_COMMENT_MODE,C,c,d,E,f,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:l,relevance:5,contains:[{begin:s.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[s.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:l,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[h,s.C_LINE_COMMENT_MODE,C],relevance:0},s.C_LINE_COMMENT_MODE,C,E,f,g,s.C_NUMBER_MODE]},C]},{begin:[/class|interface|trait/,/\s+/,s.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},s.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},E,f]},g,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` -`},S]}}return O_=o,O_}var A_,wT;function wAe(){if(wT)return A_;wT=1;function t(e){const n="[a-zA-Z_][\\w.]*",i="<\\?(lasso(script)?|=)",o="\\]|\\?>",s={$pattern:n+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},l=e.COMMENT("",{relevance:0}),c={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[l]}},d={className:"meta",begin:"\\[/noprocess|"+i},_={className:"symbol",begin:"'"+n+"'"},p=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+n},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:n,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+n,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[_]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:n+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:s,contains:[{className:"meta",begin:o,relevance:0,starts:{end:"\\[|"+i,returnEnd:!0,relevance:0,contains:[l]}},c,d,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:s,contains:[{className:"meta",begin:o,relevance:0,starts:{end:"\\[noprocess\\]|"+i,returnEnd:!0,contains:[l]}},c,d].concat(p)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(p)}}return A_=t,A_}var y_,MT;function MAe(){if(MT)return y_;MT=1;function t(e){const i=e.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(K=>K+"(?![a-zA-Z@:_])")),o=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(K=>K+"(?![a-zA-Z:_])").join("|")),s=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],l=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],c={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:i},{endsParent:!0,begin:o},{endsParent:!0,variants:l},{endsParent:!0,relevance:0,variants:s}]},d={className:"params",relevance:0,begin:/#+\d?/},_={variants:l},p={className:"built_in",relevance:0,begin:/[$&^_]/},g={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},E=e.COMMENT("%","$",{relevance:0}),f=[c,d,_,p,g,E],S={begin:/\{/,end:/\}/,relevance:0,contains:["self",...f]},C=e.inherit(S,{relevance:0,endsParent:!0,contains:[S,...f]}),h={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[S,...f]},T={begin:/\s+/,relevance:0},N=[C],y=[h],x=function(K,Ee){return{contains:[T],starts:{relevance:0,contains:K,starts:Ee}}},P=function(K,Ee){return{begin:"\\\\"+K+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+K},relevance:0,contains:[T],starts:Ee}},D=function(K,Ee){return e.inherit({begin:"\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{"+K+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},x(N,Ee))},k=(K="string")=>e.END_SAME_AS_BEGIN({className:K,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),U=function(K){return{className:"string",end:"(?=\\\\end\\{"+K+"\\})"}},W=(K="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:K,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),z=[...["verb","lstinline"].map(K=>P(K,{contains:[k()]})),P("mint",x(N,{contains:[k()]})),P("mintinline",x(N,{contains:[W(),k()]})),P("url",{contains:[W("link"),W("link")]}),P("hyperref",{contains:[W("link")]}),P("href",x(y,{contains:[W("link")]})),...[].concat(...["","\\*"].map(K=>[D("verbatim"+K,U("verbatim"+K)),D("filecontents"+K,x(N,U("filecontents"+K))),...["","B","L"].map(Ee=>D(Ee+"Verbatim"+K,x(y,U(Ee+"Verbatim"+K))))])),D("minted",x(y,x(N,U("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...z,...f]}}return y_=t,y_}var I_,LT;function LAe(){if(LT)return I_;LT=1;function t(e){return{name:"LDIF",contains:[{className:"attribute",match:"^dn(?=:)",relevance:10},{className:"attribute",match:"^\\w+(?=:)"},{className:"literal",match:"^-"},e.HASH_COMMENT_MODE]}}return I_=t,I_}var D_,PT;function PAe(){if(PT)return D_;PT=1;function t(e){return{name:"Leaf",contains:[{className:"function",begin:"#+[A-Za-z_0-9]*\\(",end:/ \{/,returnBegin:!0,excludeEnd:!0,contains:[{className:"keyword",begin:"#+"},{className:"title",begin:"[A-Za-z_][A-Za-z_0-9]*"},{className:"params",begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"string",begin:'"',end:'"'},{className:"variable",begin:"[A-Za-z_][A-Za-z_0-9]*"}]}]}]}}return D_=t,D_}var x_,kT;function kAe(){if(kT)return x_;kT=1;const t=d=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:d.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:d.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],s=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),l=i.concat(o);function c(d){const _=t(d),p=l,g="and or not only",E="[\\w-]+",f="("+E+"|@\\{"+E+"\\})",S=[],C=[],h=function(K){return{className:"string",begin:"~?"+K+".*?"+K}},T=function(K,Ee,oe){return{className:K,begin:Ee,relevance:oe}},N={$pattern:/[a-z-]+/,keyword:g,attribute:n.join(" ")},y={begin:"\\(",end:"\\)",contains:C,keywords:N,relevance:0};C.push(d.C_LINE_COMMENT_MODE,d.C_BLOCK_COMMENT_MODE,h("'"),h('"'),_.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},_.HEXCOLOR,y,T("variable","@@?"+E,10),T("variable","@\\{"+E+"\\}"),T("built_in","~?`[^`]*?`"),{className:"attribute",begin:E+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},_.IMPORTANT,{beginKeywords:"and not"},_.FUNCTION_DISPATCH);const x=C.concat({begin:/\{/,end:/\}/,contains:S}),P={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(C)},D={begin:f+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},_.CSS_VARIABLE,{className:"attribute",begin:"\\b("+s.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:C}}]},k={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:N,returnEnd:!0,contains:C,relevance:0}},U={className:"variable",variants:[{begin:"@"+E+"\\s*:",relevance:15},{begin:"@"+E}],starts:{end:"[;}]",returnEnd:!0,contains:x}},W={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:f,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[d.C_LINE_COMMENT_MODE,d.C_BLOCK_COMMENT_MODE,P,T("keyword","all\\b"),T("variable","@\\{"+E+"\\}"),{begin:"\\b("+e.join("|")+")\\b",className:"selector-tag"},_.CSS_NUMBER_MODE,T("selector-tag",f,0),T("selector-id","#"+f),T("selector-class","\\."+f,0),T("selector-tag","&",0),_.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+i.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+o.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:x},{begin:"!important"},_.FUNCTION_DISPATCH]},z={begin:E+`:(:)?(${p.join("|")})`,returnBegin:!0,contains:[W]};return S.push(d.C_LINE_COMMENT_MODE,d.C_BLOCK_COMMENT_MODE,k,U,z,D,W,P,_.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:S}}return x_=c,x_}var w_,UT;function UAe(){if(UT)return w_;UT=1;function t(e){const n="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",i="\\|[^]*?\\|",o="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",s={className:"literal",begin:"\\b(t{1}|nil)\\b"},l={className:"number",variants:[{begin:o,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+o+" +"+o,end:"\\)"}]},c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),d=e.COMMENT(";","$",{relevance:0}),_={begin:"\\*",end:"\\*"},p={className:"symbol",begin:"[:&]"+n},g={begin:n,relevance:0},E={begin:i},S={contains:[l,c,_,p,{begin:"\\(",end:"\\)",contains:["self",s,c,l,g]},g],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+i}]},C={variants:[{begin:"'"+n},{begin:"#'"+n+"(::"+n+")*"}]},h={begin:"\\(\\s*",end:"\\)"},T={endsWithParent:!0,relevance:0};return h.contains=[{className:"name",variants:[{begin:n,relevance:0},{begin:i}]},T],T.contains=[S,C,h,s,l,c,d,_,p,E,g],{name:"Lisp",illegal:/\S/,contains:[l,e.SHEBANG(),s,c,d,S,C,h,g]}}return w_=t,w_}var M_,FT;function FAe(){if(FT)return M_;FT=1;function t(e){const n={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},i=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("--","$"),e.COMMENT("[^:]//","$")],o=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),s=e.inherit(e.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[n,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[n,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,o]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[s,o],relevance:0},{beginKeywords:"command on",end:"$",contains:[n,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,o]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,o].concat(i),illegal:";$|^\\[|^=|&|\\{"}}return M_=t,M_}var L_,BT;function BAe(){if(BT)return L_;BT=1;const t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],e=["true","false","null","undefined","NaN","Infinity"],n=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],i=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],o=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=[].concat(o,n,i);function l(c){const d=["npm","print"],_=["yes","no","on","off","it","that","void"],p=["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"],g={keyword:t.concat(p),literal:e.concat(_),built_in:s.concat(d)},E="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",f=c.inherit(c.TITLE_MODE,{begin:E}),S={className:"subst",begin:/#\{/,end:/\}/,keywords:g},C={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:g},h=[c.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[c.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[c.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[c.BACKSLASH_ESCAPE,S,C]},{begin:/"/,end:/"/,contains:[c.BACKSLASH_ESCAPE,S,C]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[S,c.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+E},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];S.contains=h;const T={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:g,contains:["self"].concat(h)}]},N={begin:"(#=>|=>|\\|>>|-?->|!->)"},y={variants:[{match:[/class\s+/,E,/\s+extends\s+/,E]},{match:[/class\s+/,E]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:g};return{name:"LiveScript",aliases:["ls"],keywords:g,illegal:/\/\*/,contains:h.concat([c.COMMENT("\\/\\*","\\*\\/"),c.HASH_COMMENT_MODE,N,{className:"function",contains:[f,T],returnBegin:!0,variants:[{begin:"("+E+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+E+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+E+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},y,{begin:E+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return L_=l,L_}var P_,GT;function GAe(){if(GT)return P_;GT=1;function t(e){const n=e.regex,i=/([-a-zA-Z$._][\w$.-]*)/,o={className:"type",begin:/\bi\d+(?=\s|\b)/},s={className:"operator",relevance:0,begin:/=/},l={className:"punctuation",relevance:0,begin:/,/},c={className:"number",variants:[{begin:/[su]?0[xX][KMLHR]?[a-fA-F0-9]+/},{begin:/[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},d={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},_={className:"variable",variants:[{begin:n.concat(/%/,i)},{begin:/%\d+/},{begin:/#\d+/}]},p={className:"title",variants:[{begin:n.concat(/@/,i)},{begin:/@\d+/},{begin:n.concat(/!/,i)},{begin:n.concat(/!\d+/,i)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly double",contains:[o,e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),{className:"string",begin:/"/,end:/"/,contains:[{className:"char.escape",match:/\\\d\d/}]},p,l,s,_,d,c]}}return P_=t,P_}var k_,YT;function YAe(){if(YT)return k_;YT=1;function t(e){const i={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},o={className:"number",relevance:0,begin:e.C_NUMBER_RE},s={className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},l={className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[i,{className:"comment",variants:[e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/")],relevance:0},o,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},l,s,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}return k_=t,k_}var U_,qT;function qAe(){if(qT)return U_;qT=1;function t(e){const n="\\[=*\\[",i="\\]=*\\]",o={begin:n,end:i,contains:["self"]},s=[e.COMMENT("--(?!"+n+")","$"),e.COMMENT("--"+n,i,{contains:[o],relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:s.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:s}].concat(s)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:n,end:i,contains:[o],relevance:5}])}}return U_=t,U_}var F_,$T;function $Ae(){if($T)return F_;$T=1;function t(e){const n={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%{C.has(k[0])||U.ignoreMatch()}},{className:"symbol",relevance:0,begin:S}]},T={className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},N={className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},y={className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},x={className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},P={className:"brace",relevance:0,begin:/[[\](){}]/},D={className:"message-name",relevance:0,begin:i.concat("::",S)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[n.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),y,x,D,h,T,n.QUOTE_STRING_MODE,f,N,P]}}return B_=e,B_}var G_,zT;function zAe(){if(zT)return G_;zT=1;function t(e){const n="('|\\.')+",i={relevance:0,contains:[{begin:n}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:i},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+n,relevance:0},{className:"number",begin:e.C_NUMBER_RE,relevance:0,starts:i},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:i},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}],starts:i},e.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),e.COMMENT("%","$")]}}return G_=t,G_}var Y_,VT;function VAe(){if(VT)return Y_;VT=1;function t(e){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},e.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}return Y_=t,Y_}var q_,WT;function WAe(){if(WT)return q_;WT=1;function t(e){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",illegal:""},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|-->"},{begin:"=",relevance:0}]},i,e.C_BLOCK_COMMENT_MODE,o,e.NUMBER_MODE,s,l,{begin:/:-/},{begin:/\.$/}]}}return $_=t,$_}var H_,QT;function QAe(){if(QT)return H_;QT=1;function t(e){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},e.COMMENT("[;#](?!\\s*$)","$"),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}}return H_=t,H_}var z_,XT;function XAe(){if(XT)return z_;XT=1;function t(e){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[e.COMMENT("::","$")]}}return z_=t,z_}var V_,ZT;function ZAe(){if(ZT)return V_;ZT=1;function t(e){const n=e.regex,i=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],o=/[dualxmsipngr]{0,12}/,s={$pattern:/[\w.]+/,keyword:i.join(" ")},l={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:s},c={begin:/->\{/,end:/\}/},d={variants:[{begin:/\$\d/},{begin:n.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},_=[e.BACKSLASH_ESCAPE,l,d],p=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],g=(S,C,h="\\1")=>{const T=h==="\\1"?h:n.concat(h,C);return n.concat(n.concat("(?:",S,")"),C,/(?:\\.|[^\\\/])*?/,T,/(?:\\.|[^\\\/])*?/,h,o)},E=(S,C,h)=>n.concat(n.concat("(?:",S,")"),C,/(?:\\.|[^\\\/])*?/,h,o),f=[d,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),c,{className:"string",contains:_,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:g("s|tr|y",n.either(...p,{capture:!0}))},{begin:g("s|tr|y","\\(","\\)")},{begin:g("s|tr|y","\\[","\\]")},{begin:g("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:E("(?:m|qr)?",/\//,/\//)},{begin:E("m|qr",n.either(...p,{capture:!0}),/\1/)},{begin:E("m|qr",/\(/,/\)/)},{begin:E("m|qr",/\[/,/\]/)},{begin:E("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return l.contains=f,c.contains=f,{name:"Perl",aliases:["pl","pm"],keywords:s,contains:f}}return V_=t,V_}var W_,JT;function JAe(){if(JT)return W_;JT=1;function t(e){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}return W_=t,W_}var K_,jT;function jAe(){if(jT)return K_;jT=1;function t(e){const n={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},e.NUMBER_MODE]},i={variants:[{match:[/(function|method)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.function"}},o={variants:[{match:[/(class|interface|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.class"}};return{name:"Monkey",case_insensitive:!0,keywords:{keyword:["public","private","property","continue","exit","extern","new","try","catch","eachin","not","abstract","final","select","case","default","const","local","global","field","end","if","then","else","elseif","endif","while","wend","repeat","until","forever","for","to","step","next","return","module","inline","throw","import","and","or","shl","shr","mod"],built_in:["DebugLog","DebugStop","Error","Print","ACos","ACosr","ASin","ASinr","ATan","ATan2","ATan2r","ATanr","Abs","Abs","Ceil","Clamp","Clamp","Cos","Cosr","Exp","Floor","Log","Max","Max","Min","Min","Pow","Sgn","Sgn","Sin","Sinr","Sqrt","Tan","Tanr","Seed","PI","HALFPI","TWOPI"],literal:["true","false","null"]},illegal:/\/\*/,contains:[e.COMMENT("#rem","#end"),e.COMMENT("'","$",{relevance:0}),i,o,{className:"variable.language",begin:/\b(self|super)\b/},{className:"meta",begin:/\s*#/,end:"$",keywords:{keyword:"if else elseif endif end then"}},{match:[/^\s*/,/strict\b/],scope:{2:"meta"}},{beginKeywords:"alias",end:"=",contains:[e.UNDERSCORE_TITLE_MODE]},e.QUOTE_STRING_MODE,n]}}return K_=t,K_}var Q_,ev;function eye(){if(ev)return Q_;ev=1;function t(e){const n={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},i="[A-Za-z$_][0-9A-Za-z$_]*",o={className:"subst",begin:/#\{/,end:/\}/,keywords:n},s=[e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,o]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];o.contains=s;const l=e.inherit(e.TITLE_MODE,{begin:i}),c="(\\(.*\\)\\s*)?\\B[-=]>",d={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:n,contains:["self"].concat(s)}]};return{name:"MoonScript",aliases:["moon"],keywords:n,illegal:/\/\*/,contains:s.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+i+"\\s*=\\s*"+c,end:"[-=]>",returnBegin:!0,contains:[l,d]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:c,end:"[-=]>",returnBegin:!0,contains:[d]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[l]},l]},{className:"name",begin:i+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return Q_=t,Q_}var X_,tv;function tye(){if(tv)return X_;tv=1;function t(e){return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,keywords:{keyword:["all","alter","analyze","and","any","array","as","asc","begin","between","binary","boolean","break","bucket","build","by","call","case","cast","cluster","collate","collection","commit","connect","continue","correlate","cover","create","database","dataset","datastore","declare","decrement","delete","derived","desc","describe","distinct","do","drop","each","element","else","end","every","except","exclude","execute","exists","explain","fetch","first","flatten","for","force","from","function","grant","group","gsi","having","if","ignore","ilike","in","include","increment","index","infer","inline","inner","insert","intersect","into","is","join","key","keys","keyspace","known","last","left","let","letting","like","limit","lsm","map","mapping","matched","materialized","merge","minus","namespace","nest","not","number","object","offset","on","option","or","order","outer","over","parse","partition","password","path","pool","prepare","primary","private","privilege","procedure","public","raw","realm","reduce","rename","return","returning","revoke","right","role","rollback","satisfies","schema","select","self","semi","set","show","some","start","statistics","string","system","then","to","transaction","trigger","truncate","under","union","unique","unknown","unnest","unset","update","upsert","use","user","using","validate","value","valued","values","via","view","when","where","while","with","within","work","xor"],literal:["true","false","null","missing|5"],built_in:["array_agg","array_append","array_concat","array_contains","array_count","array_distinct","array_ifnull","array_length","array_max","array_min","array_position","array_prepend","array_put","array_range","array_remove","array_repeat","array_replace","array_reverse","array_sort","array_sum","avg","count","max","min","sum","greatest","least","ifmissing","ifmissingornull","ifnull","missingif","nullif","ifinf","ifnan","ifnanorinf","naninf","neginfif","posinfif","clock_millis","clock_str","date_add_millis","date_add_str","date_diff_millis","date_diff_str","date_part_millis","date_part_str","date_trunc_millis","date_trunc_str","duration_to_str","millis","str_to_millis","millis_to_str","millis_to_utc","millis_to_zone_name","now_millis","now_str","str_to_duration","str_to_utc","str_to_zone_name","decode_json","encode_json","encoded_size","poly_length","base64","base64_encode","base64_decode","meta","uuid","abs","acos","asin","atan","atan2","ceil","cos","degrees","e","exp","ln","log","floor","pi","power","radians","random","round","sign","sin","sqrt","tan","trunc","object_length","object_names","object_pairs","object_inner_pairs","object_values","object_inner_values","object_add","object_put","object_remove","object_unwrap","regexp_contains","regexp_like","regexp_position","regexp_replace","contains","initcap","length","lower","ltrim","position","repeat","replace","rtrim","split","substr","title","trim","upper","isarray","isatom","isboolean","isnumber","isobject","isstring","type","toarray","toatom","toboolean","tonumber","toobject","tostring"]},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE]}}return X_=t,X_}var Z_,nv;function nye(){if(nv)return Z_;nv=1;function t(e){const n={match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:"attribute",3:"punctuation"}},i={match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:"attribute",3:"punctuation",5:"string"}},o={match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},s={variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:"bullet",4:"string"}};return{name:"Nested Text",aliases:["nt"],contains:[e.inherit(e.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),s,o,n,i]}}return Z_=t,Z_}var J_,rv;function rye(){if(rv)return J_;rv=1;function t(e){const n=e.regex,i={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:n.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},s={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,i],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[i]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,i],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},i]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:s.contains,keywords:{section:"upstream location"}},{className:"section",begin:n.concat(e.UNDERSCORE_IDENT_RE+n.lookahead(/\s+\{/)),relevance:0},{begin:n.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:s}],relevance:0}],illegal:"[^\\s\\}\\{]"}}return J_=t,J_}var j_,iv;function iye(){if(iv)return j_;iv=1;function t(e){return{name:"Nim",keywords:{keyword:["addr","and","as","asm","bind","block","break","case","cast","const","continue","converter","discard","distinct","div","do","elif","else","end","enum","except","export","finally","for","from","func","generic","guarded","if","import","in","include","interface","is","isnot","iterator","let","macro","method","mixin","mod","nil","not","notin","object","of","or","out","proc","ptr","raise","ref","return","shared","shl","shr","static","template","try","tuple","type","using","var","when","while","with","without","xor","yield"],literal:["true","false"],type:["int","int8","int16","int32","int64","uint","uint8","uint16","uint32","uint64","float","float32","float64","bool","char","string","cstring","pointer","expr","stmt","void","auto","any","range","array","openarray","varargs","seq","set","clong","culong","cchar","cschar","cshort","cint","csize","clonglong","cfloat","cdouble","clongdouble","cuchar","cushort","cuint","culonglong","cstringarray","semistatic"],built_in:["stdin","stdout","stderr","result"]},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},e.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},e.HASH_COMMENT_MODE]}}return j_=t,j_}var ep,av;function aye(){if(av)return ep;av=1;function t(e){const n={keyword:["rec","with","let","in","inherit","assert","if","else","then"],literal:["true","false","or","and","null"],built_in:["import","abort","baseNameOf","dirOf","isNull","builtins","map","removeAttrs","throw","toString","derivation"]},i={className:"subst",begin:/\$\{/,end:/\}/,keywords:n},o={className:"char.escape",begin:/''\$/},s={begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/\S+/,relevance:.2}]},l={className:"string",contains:[o,i],variants:[{begin:"''",end:"''"},{begin:'"',end:'"'}]},c=[e.NUMBER_MODE,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,l,s];return i.contains=c,{name:"Nix",aliases:["nixos"],keywords:n,contains:c}}return ep=t,ep}var tp,ov;function oye(){if(ov)return tp;ov=1;function t(e){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return tp=t,tp}var np,sv;function sye(){if(sv)return np;sv=1;function t(e){const n=e.regex,i=["ADMINTOOLS","APPDATA","CDBURN_AREA","CMDLINE","COMMONFILES32","COMMONFILES64","COMMONFILES","COOKIES","DESKTOP","DOCUMENTS","EXEDIR","EXEFILE","EXEPATH","FAVORITES","FONTS","HISTORY","HWNDPARENT","INSTDIR","INTERNET_CACHE","LANGUAGE","LOCALAPPDATA","MUSIC","NETHOOD","OUTDIR","PICTURES","PLUGINSDIR","PRINTHOOD","PROFILE","PROGRAMFILES32","PROGRAMFILES64","PROGRAMFILES","QUICKLAUNCH","RECENT","RESOURCES_LOCALIZED","RESOURCES","SENDTO","SMPROGRAMS","SMSTARTUP","STARTMENU","SYSDIR","TEMP","TEMPLATES","VIDEOS","WINDIR"],o=["ARCHIVE","FILE_ATTRIBUTE_ARCHIVE","FILE_ATTRIBUTE_NORMAL","FILE_ATTRIBUTE_OFFLINE","FILE_ATTRIBUTE_READONLY","FILE_ATTRIBUTE_SYSTEM","FILE_ATTRIBUTE_TEMPORARY","HKCR","HKCU","HKDD","HKEY_CLASSES_ROOT","HKEY_CURRENT_CONFIG","HKEY_CURRENT_USER","HKEY_DYN_DATA","HKEY_LOCAL_MACHINE","HKEY_PERFORMANCE_DATA","HKEY_USERS","HKLM","HKPD","HKU","IDABORT","IDCANCEL","IDIGNORE","IDNO","IDOK","IDRETRY","IDYES","MB_ABORTRETRYIGNORE","MB_DEFBUTTON1","MB_DEFBUTTON2","MB_DEFBUTTON3","MB_DEFBUTTON4","MB_ICONEXCLAMATION","MB_ICONINFORMATION","MB_ICONQUESTION","MB_ICONSTOP","MB_OK","MB_OKCANCEL","MB_RETRYCANCEL","MB_RIGHT","MB_RTLREADING","MB_SETFOREGROUND","MB_TOPMOST","MB_USERICON","MB_YESNO","NORMAL","OFFLINE","READONLY","SHCTX","SHELL_CONTEXT","SYSTEM|TEMPORARY"],s=["addincludedir","addplugindir","appendfile","cd","define","delfile","echo","else","endif","error","execute","finalize","getdllversion","gettlbversion","if","ifdef","ifmacrodef","ifmacrondef","ifndef","include","insertmacro","macro","macroend","makensis","packhdr","searchparse","searchreplace","system","tempfile","undef","uninstfinalize","verbose","warning"],l={className:"variable.constant",begin:n.concat(/\$/,n.either(...i))},c={className:"variable",begin:/\$+\{[\!\w.:-]+\}/},d={className:"variable",begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},_={className:"variable",begin:/\$+\([\w^.:!-]+\)/},p={className:"params",begin:n.either(...o)},g={className:"keyword",begin:n.concat(/!/,n.either(...s))},E={className:"char.escape",begin:/\$(\\[nrt]|\$)/},f={className:"title.function",begin:/\w+::\w+/},S={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[E,l,c,d,_]},C=["Abort","AddBrandingImage","AddSize","AllowRootDirInstall","AllowSkipFiles","AutoCloseWindow","BGFont","BGGradient","BrandingText","BringToFront","Call","CallInstDLL","Caption","ChangeUI","CheckBitmap","ClearErrors","CompletedText","ComponentText","CopyFiles","CRCCheck","CreateDirectory","CreateFont","CreateShortCut","Delete","DeleteINISec","DeleteINIStr","DeleteRegKey","DeleteRegValue","DetailPrint","DetailsButtonText","DirText","DirVar","DirVerify","EnableWindow","EnumRegKey","EnumRegValue","Exch","Exec","ExecShell","ExecShellWait","ExecWait","ExpandEnvStrings","File","FileBufSize","FileClose","FileErrorText","FileOpen","FileRead","FileReadByte","FileReadUTF16LE","FileReadWord","FileWriteUTF16LE","FileSeek","FileWrite","FileWriteByte","FileWriteWord","FindClose","FindFirst","FindNext","FindWindow","FlushINI","GetCurInstType","GetCurrentAddress","GetDlgItem","GetDLLVersion","GetDLLVersionLocal","GetErrorLevel","GetFileTime","GetFileTimeLocal","GetFullPathName","GetFunctionAddress","GetInstDirError","GetKnownFolderPath","GetLabelAddress","GetTempFileName","GetWinVer","Goto","HideWindow","Icon","IfAbort","IfErrors","IfFileExists","IfRebootFlag","IfRtlLanguage","IfShellVarContextAll","IfSilent","InitPluginsDir","InstallButtonText","InstallColors","InstallDir","InstallDirRegKey","InstProgressFlags","InstType","InstTypeGetText","InstTypeSetText","Int64Cmp","Int64CmpU","Int64Fmt","IntCmp","IntCmpU","IntFmt","IntOp","IntPtrCmp","IntPtrCmpU","IntPtrOp","IsWindow","LangString","LicenseBkColor","LicenseData","LicenseForceSelection","LicenseLangString","LicenseText","LoadAndSetImage","LoadLanguageFile","LockWindow","LogSet","LogText","ManifestDPIAware","ManifestLongPathAware","ManifestMaxVersionTested","ManifestSupportedOS","MessageBox","MiscButtonText","Name|0","Nop","OutFile","Page","PageCallbacks","PEAddResource","PEDllCharacteristics","PERemoveResource","PESubsysVer","Pop","Push","Quit","ReadEnvStr","ReadINIStr","ReadRegDWORD","ReadRegStr","Reboot","RegDLL","Rename","RequestExecutionLevel","ReserveFile","Return","RMDir","SearchPath","SectionGetFlags","SectionGetInstTypes","SectionGetSize","SectionGetText","SectionIn","SectionSetFlags","SectionSetInstTypes","SectionSetSize","SectionSetText","SendMessage","SetAutoClose","SetBrandingImage","SetCompress","SetCompressor","SetCompressorDictSize","SetCtlColors","SetCurInstType","SetDatablockOptimize","SetDateSave","SetDetailsPrint","SetDetailsView","SetErrorLevel","SetErrors","SetFileAttributes","SetFont","SetOutPath","SetOverwrite","SetRebootFlag","SetRegView","SetShellVarContext","SetSilent","ShowInstDetails","ShowUninstDetails","ShowWindow","SilentInstall","SilentUnInstall","Sleep","SpaceTexts","StrCmp","StrCmpS","StrCpy","StrLen","SubCaption","Unicode","UninstallButtonText","UninstallCaption","UninstallIcon","UninstallSubCaption","UninstallText","UninstPage","UnRegDLL","Var","VIAddVersionKey","VIFileVersion","VIProductVersion","WindowIcon","WriteINIStr","WriteRegBin","WriteRegDWORD","WriteRegExpandStr","WriteRegMultiStr","WriteRegNone","WriteRegStr","WriteUninstaller","XPStyle"],h=["admin","all","auto","both","bottom","bzip2","colored","components","current","custom","directory","false","force","hide","highest","ifdiff","ifnewer","instfiles","lastused","leave","left","license","listonly","lzma","nevershow","none","normal","notset","off","on","open","print","right","show","silent","silentlog","smooth","textonly","top","true","try","un.components","un.custom","un.directory","un.instfiles","un.license","uninstConfirm","user","Win10","Win7","Win8","WinVista","zlib"],T={match:[/Function/,/\s+/,n.concat(/(\.)?/,e.IDENT_RE)],scope:{1:"keyword",3:"title.function"}},y={match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,/[A-Za-z][\w.]*/],scope:{1:"keyword",3:"params",4:"variable"}};return{name:"NSIS",case_insensitive:!0,keywords:{keyword:C,literal:h},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),y,T,{beginKeywords:"Function PageEx Section SectionGroup FunctionEnd SectionEnd"},S,g,c,d,_,p,f,e.NUMBER_MODE]}}return np=t,np}var rp,lv;function lye(){if(lv)return rp;lv=1;function t(e){const n={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},i=/[a-zA-Z@][a-zA-Z0-9_]*/,d={"variable.language":["this","super"],$pattern:i,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},_={$pattern:i,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:d,illegal:"/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+_.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:_,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}return rp=t,rp}var ip,cv;function cye(){if(cv)return ip;cv=1;function t(e){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}}return ip=t,ip}var ap,uv;function uye(){if(uv)return ap;uv=1;function t(e){const n={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},i={className:"literal",begin:"false|true|PI|undef"},o={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},s=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),l={className:"meta",keywords:{keyword:"include use"},begin:"include|use <",end:">"},c={className:"params",begin:"\\(",end:"\\)",contains:["self",o,s,n,i]},d={begin:"[*!#%]",relevance:0},_={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[c,e.UNDERSCORE_TITLE_MODE]};return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o,l,s,n,d,_]}}return ap=t,ap}var op,dv;function dye(){if(dv)return op;dv=1;function t(e){const n={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},i=e.COMMENT(/\{/,/\}/,{relevance:0}),o=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),s={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},l={className:"string",begin:"(#\\d+)+"},c={beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[e.inherit(e.TITLE_MODE,{scope:"title.function"}),{className:"params",begin:"\\(",end:"\\)",keywords:n,contains:[s,l]},i,o]},d={scope:"punctuation",match:/;/,relevance:0};return{name:"Oxygene",case_insensitive:!0,keywords:n,illegal:'("|\\$[G-Zg-z]|\\/\\*||->)',contains:[i,o,e.C_LINE_COMMENT_MODE,s,l,e.NUMBER_MODE,c,d]}}return op=t,op}var sp,_v;function _ye(){if(_v)return sp;_v=1;function t(e){const n=e.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[e.COMMENT("^#","$"),e.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[n]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},e.C_NUMBER_MODE]}}return sp=t,sp}var lp,pv;function pye(){if(pv)return lp;pv=1;function t(e){const n={className:"variable",begin:/\$[\w\d#@][\w\d_]*/,relevance:0},i={className:"variable",begin:/<(?!\/)/,end:/>/};return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE,n,i]}}return lp=t,lp}var cp,mv;function mye(){if(mv)return cp;mv=1;function t(e){const n=e.COMMENT("--","$"),i="[a-zA-Z_][a-zA-Z_0-9$]*",o="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",s="<<\\s*"+i+"\\s*>>",l="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",c="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",d="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",_="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",p=_.trim().split(" ").map(function(h){return h.split("|")[0]}).join("|"),g="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",E="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",f="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",C="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(h){return h.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:l+d+c,built_in:g+E+f},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+C+")\\s*\\("},{begin:"\\.("+p+")\\b"},{begin:"\\b("+p+")\\s+PATH\\b",keywords:{keyword:"PATH",type:_.replace("PATH ","")}},{className:"type",begin:"\\b("+p+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},e.END_SAME_AS_BEGIN({begin:o,end:o,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:s,relevance:10}]}}return cp=t,cp}var up,gv;function gye(){if(gv)return up;gv=1;function t(e){const n=e.regex,i=/(?![A-Za-z0-9])(?![$])/,o=n.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,i),s=n.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,i),l={scope:"variable",match:"\\$+"+o},c={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},d={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},_=e.inherit(e.APOS_STRING_MODE,{illegal:null}),p=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(d)}),g={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(d),"on:begin":(L,J)=>{J.data._beginMatch=L[1]||L[2]},"on:end":(L,J)=>{J.data._beginMatch!==L[1]&&J.ignoreMatch()}},E=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),f=`[ -]`,S={scope:"string",variants:[p,_,g,E]},C={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},h=["false","null","true"],T=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],N=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],x={keyword:T,literal:(L=>{const J=[];return L.forEach(re=>{J.push(re),re.toLowerCase()===re?J.push(re.toUpperCase()):J.push(re.toLowerCase())}),J})(h),built_in:N},P=L=>L.map(J=>J.replace(/\|\d+$/,"")),D={variants:[{match:[/new/,n.concat(f,"+"),n.concat("(?!",P(N).join("\\b|"),"\\b)"),s],scope:{1:"keyword",4:"title.class"}}]},k=n.concat(o,"\\b(?!\\()"),U={variants:[{match:[n.concat(/::/,n.lookahead(/(?!class\b)/)),k],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[s,n.concat(/::/,n.lookahead(/(?!class\b)/)),k],scope:{1:"title.class",3:"variable.constant"}},{match:[s,n.concat("::",n.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[s,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},W={scope:"attr",match:n.concat(o,n.lookahead(":"),n.lookahead(/(?!::)/))},z={relevance:0,begin:/\(/,end:/\)/,keywords:x,contains:[W,l,U,e.C_BLOCK_COMMENT_MODE,S,C,D]},K={relevance:0,match:[/\b/,n.concat("(?!fn\\b|function\\b|",P(T).join("\\b|"),"|",P(N).join("\\b|"),"\\b)"),o,n.concat(f,"*"),n.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[z]};z.contains.push(K);const Ee=[W,U,e.C_BLOCK_COMMENT_MODE,S,C,D],oe={begin:n.concat(/#\[\s*/,s),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:h,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:h,keyword:["new","array"]},contains:["self",...Ee]},...Ee,{scope:"meta",match:s}]};return{case_insensitive:!1,keywords:x,contains:[oe,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},c,{scope:"variable.language",match:/\$this\b/},l,K,U,{match:[/const/,/\s/,o],scope:{1:"keyword",3:"variable.constant"}},D,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:x,contains:["self",l,U,e.C_BLOCK_COMMENT_MODE,S,C]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},S,C]}}return up=t,up}var dp,Ev;function Eye(){if(Ev)return dp;Ev=1;function t(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return dp=t,dp}var _p,fv;function fye(){if(fv)return _p;fv=1;function t(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return _p=t,_p}var pp,Sv;function Sye(){if(Sv)return pp;Sv=1;function t(e){const n={keyword:"actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},i={className:"string",begin:'"""',end:'"""',relevance:10},o={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},s={className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE],relevance:0},l={className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},c={begin:e.IDENT_RE+"'",relevance:0};return{name:"Pony",keywords:n,contains:[l,i,o,s,c,{className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return pp=t,pp}var mp,bv;function bye(){if(bv)return mp;bv=1;function t(e){const n=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],i="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",o="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",s={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},l=/\w[\w\d]*((-)[\w\d]+)*/,c={begin:"`[\\s\\S]",relevance:0},d={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},_={className:"literal",begin:/\$(null|true|false)\b/},p={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[c,d,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},g={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},E={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},f=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[E]}),S={className:"built_in",variants:[{begin:"(".concat(i,")+(-)[\\w\\d]+")}]},C={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},h={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:l,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[d]}]},T={begin:/using\s/,end:/$/,returnBegin:!0,contains:[p,g,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},N={variants:[{className:"operator",begin:"(".concat(o,")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},y={className:"selector-tag",begin:/@\B/,relevance:0},x={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(s.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},P=[x,f,c,e.NUMBER_MODE,p,g,S,d,_,y],D={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",P,{begin:"("+n.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return x.contains.unshift(D),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:s,contains:P.concat(C,h,T,N,D)}}return mp=t,mp}var gp,hv;function hye(){if(hv)return gp;hv=1;function t(e){const n=e.regex,i=["displayHeight","displayWidth","mouseY","mouseX","mousePressed","pmouseX","pmouseY","key","keyCode","pixels","focused","frameCount","frameRate","height","width","size","createGraphics","beginDraw","createShape","loadShape","PShape","arc","ellipse","line","point","quad","rect","triangle","bezier","bezierDetail","bezierPoint","bezierTangent","curve","curveDetail","curvePoint","curveTangent","curveTightness","shape","shapeMode","beginContour","beginShape","bezierVertex","curveVertex","endContour","endShape","quadraticVertex","vertex","ellipseMode","noSmooth","rectMode","smooth","strokeCap","strokeJoin","strokeWeight","mouseClicked","mouseDragged","mouseMoved","mousePressed","mouseReleased","mouseWheel","keyPressed","keyPressedkeyReleased","keyTyped","print","println","save","saveFrame","day","hour","millis","minute","month","second","year","background","clear","colorMode","fill","noFill","noStroke","stroke","alpha","blue","brightness","color","green","hue","lerpColor","red","saturation","modelX","modelY","modelZ","screenX","screenY","screenZ","ambient","emissive","shininess","specular","add","createImage","beginCamera","camera","endCamera","frustum","ortho","perspective","printCamera","printProjection","cursor","frameRate","noCursor","exit","loop","noLoop","popStyle","pushStyle","redraw","binary","boolean","byte","char","float","hex","int","str","unbinary","unhex","join","match","matchAll","nf","nfc","nfp","nfs","split","splitTokens","trim","append","arrayCopy","concat","expand","reverse","shorten","sort","splice","subset","box","sphere","sphereDetail","createInput","createReader","loadBytes","loadJSONArray","loadJSONObject","loadStrings","loadTable","loadXML","open","parseXML","saveTable","selectFolder","selectInput","beginRaw","beginRecord","createOutput","createWriter","endRaw","endRecord","PrintWritersaveBytes","saveJSONArray","saveJSONObject","saveStream","saveStrings","saveXML","selectOutput","popMatrix","printMatrix","pushMatrix","resetMatrix","rotate","rotateX","rotateY","rotateZ","scale","shearX","shearY","translate","ambientLight","directionalLight","lightFalloff","lights","lightSpecular","noLights","normal","pointLight","spotLight","image","imageMode","loadImage","noTint","requestImage","tint","texture","textureMode","textureWrap","blend","copy","filter","get","loadPixels","set","updatePixels","blendMode","loadShader","PShaderresetShader","shader","createFont","loadFont","text","textFont","textAlign","textLeading","textMode","textSize","textWidth","textAscent","textDescent","abs","ceil","constrain","dist","exp","floor","lerp","log","mag","map","max","min","norm","pow","round","sq","sqrt","acos","asin","atan","atan2","cos","degrees","radians","sin","tan","noise","noiseDetail","noiseSeed","random","randomGaussian","randomSeed"],o=e.IDENT_RE,s={variants:[{match:n.concat(n.either(...i),n.lookahead(/\s*\(/)),className:"built_in"},{relevance:0,match:n.concat(/\b(?!for|if|while)/,o,n.lookahead(/\s*\(/)),className:"title.function"}]},l={match:[/new\s+/,o],className:{1:"keyword",2:"class.title"}},c={relevance:0,match:[/\./,o],className:{2:"property"}},d={variants:[{match:[/class/,/\s+/,o,/\s+/,/extends/,/\s+/,o]},{match:[/class/,/\s+/,o]}],className:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},_=["boolean","byte","char","color","double","float","int","long","short"],p=["BufferedReader","PVector","PFont","PImage","PGraphics","HashMap","String","Array","FloatDict","ArrayList","FloatList","IntDict","IntList","JSONArray","JSONObject","Object","StringDict","StringList","Table","TableRow","XML"];return{name:"Processing",aliases:["pde"],keywords:{keyword:[...["abstract","assert","break","case","catch","const","continue","default","else","enum","final","finally","for","if","import","instanceof","long","native","new","package","private","private","protected","protected","public","public","return","static","strictfp","switch","synchronized","throw","throws","transient","try","void","volatile","while"]],literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false",title:"setup draw",variable:"super this",built_in:[...i,...p],type:_},contains:[d,l,s,c,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return gp=t,gp}var Ep,Tv;function Tye(){if(Tv)return Ep;Tv=1;function t(e){return{name:"Python profiler",contains:[e.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[e.C_NUMBER_MODE],relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}}return Ep=t,Ep}var fp,vv;function vye(){if(vv)return fp;vv=1;function t(e){const n={begin:/[a-z][A-Za-z0-9_]*/,relevance:0},i={className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},o={begin:/\(/,end:/\)/,relevance:0},s={begin:/\[/,end:/\]/},l={className:"comment",begin:/%/,end:/$/,contains:[e.PHRASAL_WORDS_MODE]},c={className:"string",begin:/`/,end:/`/,contains:[e.BACKSLASH_ESCAPE]},d={className:"string",begin:/0'(\\'|.)/},_={className:"string",begin:/0'\\s/},g=[n,i,o,{begin:/:-/},s,l,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,c,d,_,e.C_NUMBER_MODE];return o.contains=g,s.contains=g,{name:"Prolog",contains:g.concat([{begin:/\.$/}])}}return fp=t,fp}var Sp,Cv;function Cye(){if(Cv)return Sp;Cv=1;function t(e){const n="[ \\t\\f]*",i="[ \\t\\f]+",o=n+"[:=]"+n,s=i,l="("+o+"|"+s+")",c="([^\\\\:= \\t\\f\\n]|\\\\.)+",d={end:l,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:c+o},{begin:c+s}],contains:[{className:"attr",begin:c,endsParent:!0}],starts:d},{className:"attr",begin:c+n+"$"}]}}return Sp=t,Sp}var bp,Rv;function Rye(){if(Rv)return bp;Rv=1;function t(e){const n=["package","import","option","optional","required","repeated","group","oneof"],i=["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],o={match:[/(message|enum|service)\s+/,e.IDENT_RE],scope:{1:"keyword",2:"title.class"}};return{name:"Protocol Buffers",aliases:["proto"],keywords:{keyword:n,type:i,literal:["true","false"]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}return bp=t,bp}var hp,Nv;function Nye(){if(Nv)return hp;Nv=1;function t(e){const n={keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},i=e.COMMENT("#","$"),o="([A-Za-z_]|::)(\\w|::)*",s=e.inherit(e.TITLE_MODE,{begin:o}),l={className:"variable",begin:"\\$"+o},c={className:"string",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:"Puppet",aliases:["pp"],contains:[i,l,c,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[s,i]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:e.IDENT_RE,endsParent:!0}]},{begin:e.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:e.IDENT_RE,relevance:.2},{begin:/\{/,end:/\}/,keywords:n,relevance:0,contains:[c,i,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:e.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},l]}],relevance:0}]}}return hp=t,hp}var Tp,Ov;function Oye(){if(Ov)return Tp;Ov=1;function t(e){const n={className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},i={className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"};return{name:"PureBASIC",aliases:["pb","pbi"],keywords:"Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning Continue Data DataSection Debug DebugLevel Declare DeclareC DeclareCDLL DeclareDLL DeclareModule Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndDataSection EndDeclareModule EndEnumeration EndIf EndImport EndInterface EndMacro EndModule EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until UnuseModule UseModule Wend While With XIncludeFile XOr",contains:[e.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},e.UNDERSCORE_TITLE_MODE]},n,i]}}return Tp=t,Tp}var vp,Av;function Aye(){if(Av)return vp;Av=1;function t(e){const n=e.regex,i=/[\p{XID_Start}_]\p{XID_Continue}*/u,o=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],d={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:o,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},_={className:"meta",begin:/^(>>>|\.\.\.) /},p={className:"subst",begin:/\{/,end:/\}/,keywords:d,illegal:/#/},g={begin:/\{\{/,relevance:0},E={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,_],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,_],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,_,g,p]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,_,g,p]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,g,p]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,g,p]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},f="[0-9](_?[0-9])*",S=`(\\b(${f}))?\\.(${f})|\\b(${f})\\.`,C=`\\b|${o.join("|")}`,h={className:"number",relevance:0,variants:[{begin:`(\\b(${f})|(${S}))[eE][+-]?(${f})[jJ]?(?=${C})`},{begin:`(${S})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${C})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${C})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${C})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${C})`},{begin:`\\b(${f})[jJ](?=${C})`}]},T={className:"comment",begin:n.lookahead(/# type:/),end:/$/,keywords:d,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},N={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:["self",_,h,E,e.HASH_COMMENT_MODE]}]};return p.contains=[E,h,_],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:d,illegal:/(<\/|\?)|=>/,contains:[_,h,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},E,T,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,i],scope:{1:"keyword",3:"title.function"},contains:[N]},{variants:[{match:[/\bclass/,/\s+/,i,/\s*/,/\(\s*/,i,/\s*\)/]},{match:[/\bclass/,/\s+/,i]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[h,N,E]}]}}return vp=t,vp}var Cp,yv;function yye(){if(yv)return Cp;yv=1;function t(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return Cp=t,Cp}var Rp,Iv;function Iye(){if(Iv)return Rp;Iv=1;function t(e){return{name:"Q",aliases:["k","kdb"],keywords:{$pattern:/(`?)[A-Za-z0-9_]+\b/,keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},contains:[e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return Rp=t,Rp}var Np,Dv;function Dye(){if(Dv)return Np;Dv=1;function t(e){const n=e.regex,i={keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise"},o="[a-zA-Z_][a-zA-Z0-9\\._]*",s={className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},l={className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},c={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:o,returnEnd:!1}},d={begin:o+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:o,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},_={begin:n.concat(o,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:o})]};return{name:"QML",aliases:["qt"],case_insensitive:!1,keywords:i,contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{begin:/\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},l,s,{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+e.IDENT_RE,relevance:0},c,d,_],illegal:/#/}}return Np=t,Np}var Op,xv;function xye(){if(xv)return Op;xv=1;function t(e){const n=e.regex,i=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,o=n.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),s=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,l=n.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:i,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:n.lookahead(n.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:i},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[s,o]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,o]},{scope:{1:"punctuation",2:"number"},match:[l,o]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,o]}]},{scope:{3:"operator"},match:[i,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:s},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:l},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return Op=t,Op}var Ap,wv;function wye(){if(wv)return Ap;wv=1;function t(e){function n(D){return D.map(function(k){return k.split("").map(function(U){return"\\"+U}).join("")}).join("|")}const i="~?[a-z$_][0-9a-zA-Z$_]*",o="`?[A-Z$_][0-9a-zA-Z$_]*",s="'?[a-z$_][0-9a-z$_]*",l="\\s*:\\s*[a-z$_][0-9a-z$_]*(\\(\\s*("+s+"\\s*(,"+s+"\\s*)*)?\\))?",c=i+"("+l+"){0,2}",d="("+n(["||","++","**","+.","*","/","*.","/.","..."])+"|\\|>|&&|==|===)",_="\\s+"+d+"\\s+",p={keyword:"and as asr assert begin class constraint do done downto else end exception external for fun function functor if in include inherit initializer land lazy let lor lsl lsr lxor match method mod module mutable new nonrec object of open or private rec sig struct then to try type val virtual when while with",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 ref string unit ",literal:"true false"},g="\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",E={className:"number",relevance:0,variants:[{begin:g},{begin:"\\(-"+g+"\\)"}]},f={className:"operator",relevance:0,begin:d},S=[{className:"identifier",relevance:0,begin:i},f,E],C=[e.QUOTE_STRING_MODE,f,{className:"module",begin:"\\b"+o,returnBegin:!0,relevance:0,end:".",contains:[{className:"identifier",begin:o,relevance:0}]}],h=[{className:"module",begin:"\\b"+o,returnBegin:!0,end:".",relevance:0,contains:[{className:"identifier",begin:o,relevance:0}]}],T={begin:i,end:"(,|\\n|\\))",relevance:0,contains:[f,{className:"typing",begin:":",end:"(,|\\n)",returnBegin:!0,relevance:0,contains:h}]},N={className:"function",relevance:0,keywords:p,variants:[{begin:"\\s(\\(\\.?.*?\\)|"+i+")\\s*=>",end:"\\s*=>",returnBegin:!0,relevance:0,contains:[{className:"params",variants:[{begin:i},{begin:c},{begin:/\(\s*\)/}]}]},{begin:"\\s\\(\\.?[^;\\|]*\\)\\s*=>",end:"\\s=>",returnBegin:!0,relevance:0,contains:[{className:"params",relevance:0,variants:[T]}]},{begin:"\\(\\.\\s"+i+"\\)\\s*=>"}]};C.push(N);const y={className:"constructor",begin:o+"\\(",end:"\\)",illegal:"\\n",keywords:p,contains:[e.QUOTE_STRING_MODE,f,{className:"params",begin:"\\b"+i}]},x={className:"pattern-match",begin:"\\|",returnBegin:!0,keywords:p,end:"=>",relevance:0,contains:[y,f,{relevance:0,className:"constructor",begin:o}]},P={className:"module-access",keywords:p,returnBegin:!0,variants:[{begin:"\\b("+o+"\\.)+"+i},{begin:"\\b("+o+"\\.)+\\(",end:"\\)",returnBegin:!0,contains:[N,{begin:"\\(",end:"\\)",relevance:0,skip:!0}].concat(C)},{begin:"\\b("+o+"\\.)+\\{",end:/\}/}],contains:C};return h.push(P),{name:"ReasonML",aliases:["re"],keywords:p,illegal:"(:-|:=|\\$\\{|\\+=)",contains:[e.COMMENT("/\\*","\\*/",{illegal:"^(#,\\/\\/)"}),{className:"character",begin:"'(\\\\[^']+|[^'])'",illegal:"\\n",relevance:0},e.QUOTE_STRING_MODE,{className:"literal",begin:"\\(\\)",relevance:0},{className:"literal",begin:"\\[\\|",end:"\\|\\]",relevance:0,contains:S},{className:"literal",begin:"\\[",end:"\\]",relevance:0,contains:S},y,{className:"operator",begin:_,illegal:"-->",relevance:0},E,e.C_LINE_COMMENT_MODE,x,N,{className:"module-def",begin:"\\bmodule\\s+"+i+"\\s+"+o+"\\s+=\\s+\\{",end:/\}/,returnBegin:!0,keywords:p,relevance:0,contains:[{className:"module",relevance:0,begin:o},{begin:/\{/,end:/\}/,relevance:0,skip:!0}].concat(C)},P]}}return Ap=t,Ap}var yp,Mv;function Mye(){if(Mv)return yp;Mv=1;function t(e){return{name:"RenderMan RIB",keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:"/}],illegal:/./},e.COMMENT("^#","$"),d,_,c,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[d,_,c,{className:"literal",begin:"\\b("+s.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+o.split(" ").join("|")+")([\\s[(\\]|])",returnBegin:!0,contains:[{className:"built_in",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+l.split(" ").join("|")+");?\\s)+"},{begin:/\.\./,relevance:0}]}]}}return Dp=t,Dp}var xp,kv;function kye(){if(kv)return xp;kv=1;function t(e){const n=["abs","acos","ambient","area","asin","atan","atmosphere","attribute","calculatenormal","ceil","cellnoise","clamp","comp","concat","cos","degrees","depth","Deriv","diffuse","distance","Du","Dv","environment","exp","faceforward","filterstep","floor","format","fresnel","incident","length","lightsource","log","match","max","min","mod","noise","normalize","ntransform","opposite","option","phong","pnoise","pow","printf","ptlined","radians","random","reflect","refract","renderinfo","round","setcomp","setxcomp","setycomp","setzcomp","shadow","sign","sin","smoothstep","specular","specularbrdf","spline","sqrt","step","tan","texture","textureinfo","trace","transform","vtransform","xcomp","ycomp","zcomp"],i=["matrix","float","color","point","normal","vector"],o=["while","for","if","do","return","else","break","extern","continue"],s={match:[/(surface|displacement|light|volume|imager)/,/\s+/,e.IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"RenderMan RSL",keywords:{keyword:o,built_in:n,type:i},illegal:""},i]}}return Mp=t,Mp}var Lp,Bv;function Bye(){if(Bv)return Lp;Bv=1;function t(e){const n=e.regex,i=["do","if","then","else","end","until","while","abort","array","attrib","by","call","cards","cards4","catname","continue","datalines","datalines4","delete","delim","delimiter","display","dm","drop","endsas","error","file","filename","footnote","format","goto","in","infile","informat","input","keep","label","leave","length","libname","link","list","lostcard","merge","missing","modify","options","output","out","page","put","redirect","remove","rename","replace","retain","return","select","set","skip","startsas","stop","title","update","waitsas","where","window","x|0","systask","add","and","alter","as","cascade","check","create","delete","describe","distinct","drop","foreign","from","group","having","index","insert","into","in","key","like","message","modify","msgtype","not","null","on","or","order","primary","references","reset","restrict","select","set","table","unique","update","validate","view","where"],o=["abs","addr","airy","arcos","arsin","atan","attrc","attrn","band","betainv","blshift","bnot","bor","brshift","bxor","byte","cdf","ceil","cexist","cinv","close","cnonct","collate","compbl","compound","compress","cos","cosh","css","curobs","cv","daccdb","daccdbsl","daccsl","daccsyd","dacctab","dairy","date","datejul","datepart","datetime","day","dclose","depdb","depdbsl","depdbsl","depsl","depsl","depsyd","depsyd","deptab","deptab","dequote","dhms","dif","digamma","dim","dinfo","dnum","dopen","doptname","doptnum","dread","dropnote","dsname","erf","erfc","exist","exp","fappend","fclose","fcol","fdelete","fetch","fetchobs","fexist","fget","fileexist","filename","fileref","finfo","finv","fipname","fipnamel","fipstate","floor","fnonct","fnote","fopen","foptname","foptnum","fpoint","fpos","fput","fread","frewind","frlen","fsep","fuzz","fwrite","gaminv","gamma","getoption","getvarc","getvarn","hbound","hms","hosthelp","hour","ibessel","index","indexc","indexw","input","inputc","inputn","int","intck","intnx","intrr","irr","jbessel","juldate","kurtosis","lag","lbound","left","length","lgamma","libname","libref","log","log10","log2","logpdf","logpmf","logsdf","lowcase","max","mdy","mean","min","minute","mod","month","mopen","mort","n","netpv","nmiss","normal","note","npv","open","ordinal","pathname","pdf","peek","peekc","pmf","point","poisson","poke","probbeta","probbnml","probchi","probf","probgam","probhypr","probit","probnegb","probnorm","probt","put","putc","putn","qtr","quote","ranbin","rancau","ranexp","rangam","range","rank","rannor","ranpoi","rantbl","rantri","ranuni","repeat","resolve","reverse","rewind","right","round","saving","scan","sdf","second","sign","sin","sinh","skewness","soundex","spedis","sqrt","std","stderr","stfips","stname","stnamel","substr","sum","symget","sysget","sysmsg","sysprod","sysrc","system","tan","tanh","time","timepart","tinv","tnonct","today","translate","tranwrd","trigamma","trim","trimn","trunc","uniform","upcase","uss","var","varfmt","varinfmt","varlabel","varlen","varname","varnum","varray","varrayx","vartype","verify","vformat","vformatd","vformatdx","vformatn","vformatnx","vformatw","vformatwx","vformatx","vinarray","vinarrayx","vinformat","vinformatd","vinformatdx","vinformatn","vinformatnx","vinformatw","vinformatwx","vinformatx","vlabel","vlabelx","vlength","vlengthx","vname","vnamex","vtype","vtypex","weekday","year","yyq","zipfips","zipname","zipnamel","zipstate"],s=["bquote","nrbquote","cmpres","qcmpres","compstor","datatyp","display","do","else","end","eval","global","goto","if","index","input","keydef","label","left","length","let","local","lowcase","macro","mend","nrbquote","nrquote","nrstr","put","qcmpres","qleft","qlowcase","qscan","qsubstr","qsysfunc","qtrim","quote","qupcase","scan","str","substr","superq","syscall","sysevalf","sysexec","sysfunc","sysget","syslput","sysprod","sysrc","sysrput","then","to","trim","unquote","until","upcase","verify","while","window"];return{name:"SAS",case_insensitive:!0,keywords:{literal:["null","missing","_all_","_automatic_","_character_","_infile_","_n_","_name_","_null_","_numeric_","_user_","_webout_"],keyword:i},contains:[{className:"keyword",begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s;]/},{className:"variable",begin:/&[a-zA-Z_&][a-zA-Z0-9_]*\.?/},{begin:[/^\s*/,/datalines;|cards;/,/(?:.*\n)+/,/^\s*;\s*$/],className:{2:"keyword",3:"string"}},{begin:[/%mend|%macro/,/\s+/,/[a-zA-Z_&][a-zA-Z0-9_]*/],className:{1:"built_in",3:"title.function"}},{className:"built_in",begin:"%"+n.either(...s)},{className:"title.function",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:n.either(...o)+"(?=\\()"},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT("\\*",";"),e.C_BLOCK_COMMENT_MODE]}}return Lp=t,Lp}var Pp,Gv;function Gye(){if(Gv)return Pp;Gv=1;function t(e){const n=e.regex,i={className:"meta",begin:"@[A-Za-z]+"},o={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},s={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,o]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[o],relevance:10}]},l={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},c={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},d={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[l]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[l]},c]},_={className:"function",beginKeywords:"def",end:n.lookahead(/[:={\[(\n;]/),contains:[c]},p={begin:[/^\s*/,"extension",/\s+(?=[[(])/],beginScope:{2:"keyword"}},g={begin:[/^\s*/,/end/,/\s+/,/(extension\b)?/],beginScope:{2:"keyword",4:"keyword"}},E=[{match:/\.inline\b/},{begin:/\binline(?=\s)/,keywords:"inline"}],f={begin:[/\(\s*/,/using/,/\s+(?!\))/],beginScope:{2:"keyword"}};return{name:"Scala",keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if then forSome for while do throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit export enum given transparent"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,l,_,d,e.C_NUMBER_MODE,p,g,...E,f,i]}}return Pp=t,Pp}var kp,Yv;function Yye(){if(Yv)return kp;Yv=1;function t(e){const n="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",i="(-|\\+)?\\d+([./]\\d+)?",o=i+"[+\\-]"+i+"i",s={$pattern:n,built_in:"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},l={className:"literal",begin:"(#t|#f|#\\\\"+n+"|#\\\\.)"},c={className:"number",variants:[{begin:i,relevance:0},{begin:o,relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},d=e.QUOTE_STRING_MODE,_=[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#\\|","\\|#")],p={begin:n,relevance:0},g={className:"symbol",begin:"'"+n},E={endsWithParent:!0,relevance:0},f={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",l,d,c,p,g]}]},S={className:"name",relevance:0,begin:n,keywords:s},h={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[S,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[p]}]},S,E]};return E.contains=[l,c,d,p,g,f,h].concat(_),{name:"Scheme",aliases:["scm"],illegal:/\S/,contains:[e.SHEBANG(),c,d,g,f,h].concat(_)}}return kp=t,kp}var Up,qv;function qye(){if(qv)return Up;qv=1;function t(e){const n=[e.C_NUMBER_MODE,{className:"string",begin:`'|"`,end:`'|"`,contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]}];return{name:"Scilab",aliases:["sci"],keywords:{$pattern:/%?\w+/,keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*[\\.']+",relevance:0},{begin:"\\[",end:"\\][\\.']*",relevance:0,contains:n},e.COMMENT("//","$")].concat(n)}}return Up=t,Up}var Fp,$v;function $ye(){if($v)return Fp;$v=1;const t=c=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:c.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:c.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],s=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function l(c){const d=t(c),_=o,p=i,g="@[a-z-]+",E="and or not only",S={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,d.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},d.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+e.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+p.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+_.join("|")+")"},S,{begin:/\(/,end:/\)/,contains:[d.CSS_NUMBER_MODE]},d.CSS_VARIABLE,{className:"attribute",begin:"\\b("+s.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[d.BLOCK_COMMENT,S,d.HEXCOLOR,d.CSS_NUMBER_MODE,c.QUOTE_STRING_MODE,c.APOS_STRING_MODE,d.IMPORTANT,d.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:g,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:E,attribute:n.join(" ")},contains:[{begin:g,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},S,c.QUOTE_STRING_MODE,c.APOS_STRING_MODE,d.HEXCOLOR,d.CSS_NUMBER_MODE]},d.FUNCTION_DISPATCH]}}return Fp=l,Fp}var Bp,Hv;function Hye(){if(Hv)return Bp;Hv=1;function t(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return Bp=t,Bp}var Gp,zv;function zye(){if(zv)return Gp;zv=1;function t(e){const n=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"],i=["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"],o=["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"];return{name:"Smali",contains:[{className:"string",begin:'"',end:'"',relevance:0},e.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+o.join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+n.join("|")+")\\s"},{begin:"\\s("+n.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+i.join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:`L[^(;: -]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return Gp=t,Gp}var Yp,Vv;function Vye(){if(Vv)return Yp;Vv=1;function t(e){const n="[a-z][a-zA-Z0-9_]*",i={className:"string",begin:"\\$.{1}"},o={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:n+":",relevance:0},e.C_NUMBER_MODE,o,i,{begin:"\\|[ ]*"+n+"([ ]+"+n+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+n}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,i,e.C_NUMBER_MODE,o]}]}}return Yp=t,Yp}var qp,Wv;function Wye(){if(Wv)return qp;Wv=1;function t(e){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}return qp=t,qp}var $p,Kv;function Kye(){if(Kv)return $p;Kv=1;function t(e){const n={className:"variable",begin:/\b_+[a-zA-Z]\w*/},i={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},o={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},s=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],l=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],c=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addVehicle","addVest","addWaypoint","addWeapon","addWeaponCargo","addWeaponCargoGlobal","addWeaponGlobal","addWeaponItem","addWeaponPool","addWeaponTurret","addWeaponWithAttachmentsCargo","addWeaponWithAttachmentsCargoGlobal","admin","agent","agents","AGLToASL","aimedAtTarget","aimPos","airDensityCurveRTD","airDensityRTD","airplaneThrottle","airportSide","AISFinishHeal","alive","all3DENEntities","allActiveTitleEffects","allAddonsInfo","allAirports","allControls","allCurators","allCutLayers","allDead","allDeadMen","allDiaryRecords","allDiarySubjects","allDisplays","allEnv3DSoundSources","allGroups","allLODs","allMapMarkers","allMines","allMissionObjects","allObjects","allow3DMode","allowCrewInImmobile","allowCuratorLogicIgnoreAreas","allowDamage","allowDammage","allowedService","allowFileOperations","allowFleeing","allowGetIn","allowService","allowSprint","allPlayers","allSimpleObjects","allSites","allTurrets","allUnits","allUnitsUAV","allUsers","allVariables","ambientTemperature","ammo","ammoOnPylon","and","animate","animateBay","animateDoor","animatePylon","animateSource","animationNames","animationPhase","animationSourcePhase","animationState","apertureParams","append","apply","armoryPoints","arrayIntersect","asin","ASLToAGL","ASLToATL","assert","assignAsCargo","assignAsCargoIndex","assignAsCommander","assignAsDriver","assignAsGunner","assignAsTurret","assignCurator","assignedCargo","assignedCommander","assignedDriver","assignedGroup","assignedGunner","assignedItems","assignedTarget","assignedTeam","assignedVehicle","assignedVehicleRole","assignedVehicles","assignItem","assignTeam","assignToAirport","atan","atan2","atg","ATLToASL","attachedObject","attachedObjects","attachedTo","attachObject","attachTo","attackEnabled","awake","backpack","backpackCargo","backpackContainer","backpackItems","backpackMagazines","backpackSpaceFor","behaviour","benchmark","bezierInterpolation","binocular","binocularItems","binocularMagazine","boundingBox","boundingBoxReal","boundingCenter","brakesDisabled","briefingName","buildingExit","buildingPos","buldozer_EnableRoadDiag","buldozer_IsEnabledRoadDiag","buldozer_LoadNewRoads","buldozer_reloadOperMap","buttonAction","buttonSetAction","cadetMode","calculatePath","calculatePlayerVisibilityByFriendly","call","callExtension","camCommand","camCommit","camCommitPrepared","camCommitted","camConstuctionSetParams","camCreate","camDestroy","cameraEffect","cameraEffectEnableHUD","cameraInterest","cameraOn","cameraView","campaignConfigFile","camPreload","camPreloaded","camPrepareBank","camPrepareDir","camPrepareDive","camPrepareFocus","camPrepareFov","camPrepareFovRange","camPreparePos","camPrepareRelPos","camPrepareTarget","camSetBank","camSetDir","camSetDive","camSetFocus","camSetFov","camSetFovRange","camSetPos","camSetRelPos","camSetTarget","camTarget","camUseNVG","canAdd","canAddItemToBackpack","canAddItemToUniform","canAddItemToVest","cancelSimpleTaskDestination","canDeployWeapon","canFire","canMove","canSlingLoad","canStand","canSuspend","canTriggerDynamicSimulation","canUnloadInCombat","canVehicleCargo","captive","captiveNum","cbChecked","cbSetChecked","ceil","channelEnabled","cheatsEnabled","checkAIFeature","checkVisibility","className","clear3DENAttribute","clear3DENInventory","clearAllItemsFromBackpack","clearBackpackCargo","clearBackpackCargoGlobal","clearForcesRTD","clearGroupIcons","clearItemCargo","clearItemCargoGlobal","clearItemPool","clearMagazineCargo","clearMagazineCargoGlobal","clearMagazinePool","clearOverlay","clearRadio","clearWeaponCargo","clearWeaponCargoGlobal","clearWeaponPool","clientOwner","closeDialog","closeDisplay","closeOverlay","collapseObjectTree","collect3DENHistory","collectiveRTD","collisionDisabledWith","combatBehaviour","combatMode","commandArtilleryFire","commandChat","commander","commandFire","commandFollow","commandFSM","commandGetOut","commandingMenu","commandMove","commandRadio","commandStop","commandSuppressiveFire","commandTarget","commandWatch","comment","commitOverlay","compatibleItems","compatibleMagazines","compile","compileFinal","compileScript","completedFSM","composeText","configClasses","configFile","configHierarchy","configName","configOf","configProperties","configSourceAddonList","configSourceMod","configSourceModList","confirmSensorTarget","connectTerminalToUAV","connectToServer","controlsGroupCtrl","conversationDisabled","copyFromClipboard","copyToClipboard","copyWaypoints","cos","count","countEnemy","countFriendly","countSide","countType","countUnknown","create3DENComposition","create3DENEntity","createAgent","createCenter","createDialog","createDiaryLink","createDiaryRecord","createDiarySubject","createDisplay","createGearDialog","createGroup","createGuardedPoint","createHashMap","createHashMapFromArray","createLocation","createMarker","createMarkerLocal","createMenu","createMine","createMissionDisplay","createMPCampaignDisplay","createSimpleObject","createSimpleTask","createSite","createSoundSource","createTask","createTeam","createTrigger","createUnit","createVehicle","createVehicleCrew","createVehicleLocal","crew","ctAddHeader","ctAddRow","ctClear","ctCurSel","ctData","ctFindHeaderRows","ctFindRowHeader","ctHeaderControls","ctHeaderCount","ctRemoveHeaders","ctRemoveRows","ctrlActivate","ctrlAddEventHandler","ctrlAngle","ctrlAnimateModel","ctrlAnimationPhaseModel","ctrlAt","ctrlAutoScrollDelay","ctrlAutoScrollRewind","ctrlAutoScrollSpeed","ctrlBackgroundColor","ctrlChecked","ctrlClassName","ctrlCommit","ctrlCommitted","ctrlCreate","ctrlDelete","ctrlEnable","ctrlEnabled","ctrlFade","ctrlFontHeight","ctrlForegroundColor","ctrlHTMLLoaded","ctrlIDC","ctrlIDD","ctrlMapAnimAdd","ctrlMapAnimClear","ctrlMapAnimCommit","ctrlMapAnimDone","ctrlMapCursor","ctrlMapMouseOver","ctrlMapPosition","ctrlMapScale","ctrlMapScreenToWorld","ctrlMapSetPosition","ctrlMapWorldToScreen","ctrlModel","ctrlModelDirAndUp","ctrlModelScale","ctrlMousePosition","ctrlParent","ctrlParentControlsGroup","ctrlPosition","ctrlRemoveAllEventHandlers","ctrlRemoveEventHandler","ctrlScale","ctrlScrollValues","ctrlSetActiveColor","ctrlSetAngle","ctrlSetAutoScrollDelay","ctrlSetAutoScrollRewind","ctrlSetAutoScrollSpeed","ctrlSetBackgroundColor","ctrlSetChecked","ctrlSetDisabledColor","ctrlSetEventHandler","ctrlSetFade","ctrlSetFocus","ctrlSetFont","ctrlSetFontH1","ctrlSetFontH1B","ctrlSetFontH2","ctrlSetFontH2B","ctrlSetFontH3","ctrlSetFontH3B","ctrlSetFontH4","ctrlSetFontH4B","ctrlSetFontH5","ctrlSetFontH5B","ctrlSetFontH6","ctrlSetFontH6B","ctrlSetFontHeight","ctrlSetFontHeightH1","ctrlSetFontHeightH2","ctrlSetFontHeightH3","ctrlSetFontHeightH4","ctrlSetFontHeightH5","ctrlSetFontHeightH6","ctrlSetFontHeightSecondary","ctrlSetFontP","ctrlSetFontPB","ctrlSetFontSecondary","ctrlSetForegroundColor","ctrlSetModel","ctrlSetModelDirAndUp","ctrlSetModelScale","ctrlSetMousePosition","ctrlSetPixelPrecision","ctrlSetPosition","ctrlSetPositionH","ctrlSetPositionW","ctrlSetPositionX","ctrlSetPositionY","ctrlSetScale","ctrlSetScrollValues","ctrlSetShadow","ctrlSetStructuredText","ctrlSetText","ctrlSetTextColor","ctrlSetTextColorSecondary","ctrlSetTextSecondary","ctrlSetTextSelection","ctrlSetTooltip","ctrlSetTooltipColorBox","ctrlSetTooltipColorShade","ctrlSetTooltipColorText","ctrlSetTooltipMaxWidth","ctrlSetURL","ctrlSetURLOverlayMode","ctrlShadow","ctrlShow","ctrlShown","ctrlStyle","ctrlText","ctrlTextColor","ctrlTextHeight","ctrlTextSecondary","ctrlTextSelection","ctrlTextWidth","ctrlTooltip","ctrlType","ctrlURL","ctrlURLOverlayMode","ctrlVisible","ctRowControls","ctRowCount","ctSetCurSel","ctSetData","ctSetHeaderTemplate","ctSetRowTemplate","ctSetValue","ctValue","curatorAddons","curatorCamera","curatorCameraArea","curatorCameraAreaCeiling","curatorCoef","curatorEditableObjects","curatorEditingArea","curatorEditingAreaType","curatorMouseOver","curatorPoints","curatorRegisteredObjects","curatorSelected","curatorWaypointCost","current3DENOperation","currentChannel","currentCommand","currentMagazine","currentMagazineDetail","currentMagazineDetailTurret","currentMagazineTurret","currentMuzzle","currentNamespace","currentPilot","currentTask","currentTasks","currentThrowable","currentVisionMode","currentWaypoint","currentWeapon","currentWeaponMode","currentWeaponTurret","currentZeroing","cursorObject","cursorTarget","customChat","customRadio","customWaypointPosition","cutFadeOut","cutObj","cutRsc","cutText","damage","date","dateToNumber","dayTime","deActivateKey","debriefingText","debugFSM","debugLog","decayGraphValues","deg","delete3DENEntities","deleteAt","deleteCenter","deleteCollection","deleteEditorObject","deleteGroup","deleteGroupWhenEmpty","deleteIdentity","deleteLocation","deleteMarker","deleteMarkerLocal","deleteRange","deleteResources","deleteSite","deleteStatus","deleteTeam","deleteVehicle","deleteVehicleCrew","deleteWaypoint","detach","detectedMines","diag_activeMissionFSMs","diag_activeScripts","diag_activeSQFScripts","diag_activeSQSScripts","diag_allMissionEventHandlers","diag_captureFrame","diag_captureFrameToFile","diag_captureSlowFrame","diag_codePerformance","diag_deltaTime","diag_drawmode","diag_dumpCalltraceToLog","diag_dumpScriptAssembly","diag_dumpTerrainSynth","diag_dynamicSimulationEnd","diag_enable","diag_enabled","diag_exportConfig","diag_exportTerrainSVG","diag_fps","diag_fpsmin","diag_frameno","diag_getTerrainSegmentOffset","diag_lightNewLoad","diag_list","diag_localized","diag_log","diag_logSlowFrame","diag_mergeConfigFile","diag_recordTurretLimits","diag_resetFSM","diag_resetshapes","diag_scope","diag_setLightNew","diag_stacktrace","diag_tickTime","diag_toggle","dialog","diarySubjectExists","didJIP","didJIPOwner","difficulty","difficultyEnabled","difficultyEnabledRTD","difficultyOption","direction","directionStabilizationEnabled","directSay","disableAI","disableBrakes","disableCollisionWith","disableConversation","disableDebriefingStats","disableMapIndicators","disableNVGEquipment","disableRemoteSensors","disableSerialization","disableTIEquipment","disableUAVConnectability","disableUserInput","displayAddEventHandler","displayChild","displayCtrl","displayParent","displayRemoveAllEventHandlers","displayRemoveEventHandler","displaySetEventHandler","displayUniqueName","displayUpdate","dissolveTeam","distance","distance2D","distanceSqr","distributionRegion","do3DENAction","doArtilleryFire","doFire","doFollow","doFSM","doGetOut","doMove","doorPhase","doStop","doSuppressiveFire","doTarget","doWatch","drawArrow","drawEllipse","drawIcon","drawIcon3D","drawLaser","drawLine","drawLine3D","drawLink","drawLocation","drawPolygon","drawRectangle","drawTriangle","driver","drop","dynamicSimulationDistance","dynamicSimulationDistanceCoef","dynamicSimulationEnabled","dynamicSimulationSystemEnabled","echo","edit3DENMissionAttributes","editObject","editorSetEventHandler","effectiveCommander","elevatePeriscope","emptyPositions","enableAI","enableAIFeature","enableAimPrecision","enableAttack","enableAudioFeature","enableAutoStartUpRTD","enableAutoTrimRTD","enableCamShake","enableCaustics","enableChannel","enableCollisionWith","enableCopilot","enableDebriefingStats","enableDiagLegend","enableDirectionStabilization","enableDynamicSimulation","enableDynamicSimulationSystem","enableEndDialog","enableEngineArtillery","enableEnvironment","enableFatigue","enableGunLights","enableInfoPanelComponent","enableIRLasers","enableMimics","enablePersonTurret","enableRadio","enableReload","enableRopeAttach","enableSatNormalOnDetail","enableSaving","enableSentences","enableSimulation","enableSimulationGlobal","enableStamina","enableStressDamage","enableTeamSwitch","enableTraffic","enableUAVConnectability","enableUAVWaypoints","enableVehicleCargo","enableVehicleSensor","enableWeaponDisassembly","endLoadingScreen","endMission","engineOn","enginesIsOnRTD","enginesPowerRTD","enginesRpmRTD","enginesTorqueRTD","entities","environmentEnabled","environmentVolume","equipmentDisabled","estimatedEndServerTime","estimatedTimeLeft","evalObjectArgument","everyBackpack","everyContainer","exec","execEditorScript","execFSM","execVM","exp","expectedDestination","exportJIPMessages","eyeDirection","eyePos","face","faction","fadeEnvironment","fadeMusic","fadeRadio","fadeSound","fadeSpeech","failMission","fileExists","fillWeaponsFromPool","find","findAny","findCover","findDisplay","findEditorObject","findEmptyPosition","findEmptyPositionReady","findIf","findNearestEnemy","finishMissionInit","finite","fire","fireAtTarget","firstBackpack","flag","flagAnimationPhase","flagOwner","flagSide","flagTexture","flatten","fleeing","floor","flyInHeight","flyInHeightASL","focusedCtrl","fog","fogForecast","fogParams","forceAddUniform","forceAtPositionRTD","forceCadetDifficulty","forcedMap","forceEnd","forceFlagTexture","forceFollowRoad","forceGeneratorRTD","forceMap","forceRespawn","forceSpeed","forceUnicode","forceWalk","forceWeaponFire","forceWeatherChange","forEachMember","forEachMemberAgent","forEachMemberTeam","forgetTarget","format","formation","formationDirection","formationLeader","formationMembers","formationPosition","formationTask","formatText","formLeader","freeExtension","freeLook","fromEditor","fuel","fullCrew","gearIDCAmmoCount","gearSlotAmmoCount","gearSlotData","gestureState","get","get3DENActionState","get3DENAttribute","get3DENCamera","get3DENConnections","get3DENEntity","get3DENEntityID","get3DENGrid","get3DENIconsVisible","get3DENLayerEntities","get3DENLinesVisible","get3DENMissionAttribute","get3DENMouseOver","get3DENSelected","getAimingCoef","getAllEnv3DSoundControllers","getAllEnvSoundControllers","getAllHitPointsDamage","getAllOwnedMines","getAllPylonsInfo","getAllSoundControllers","getAllUnitTraits","getAmmoCargo","getAnimAimPrecision","getAnimSpeedCoef","getArray","getArtilleryAmmo","getArtilleryComputerSettings","getArtilleryETA","getAssetDLCInfo","getAssignedCuratorLogic","getAssignedCuratorUnit","getAttackTarget","getAudioOptionVolumes","getBackpackCargo","getBleedingRemaining","getBurningValue","getCalculatePlayerVisibilityByFriendly","getCameraViewDirection","getCargoIndex","getCenterOfMass","getClientState","getClientStateNumber","getCompatiblePylonMagazines","getConnectedUAV","getConnectedUAVUnit","getContainerMaxLoad","getCorpse","getCruiseControl","getCursorObjectParams","getCustomAimCoef","getCustomSoundController","getCustomSoundControllerCount","getDammage","getDebriefingText","getDescription","getDir","getDirVisual","getDiverState","getDLCAssetsUsage","getDLCAssetsUsageByName","getDLCs","getDLCUsageTime","getEditorCamera","getEditorMode","getEditorObjectScope","getElevationOffset","getEngineTargetRPMRTD","getEnv3DSoundController","getEnvSoundController","getEventHandlerInfo","getFatigue","getFieldManualStartPage","getForcedFlagTexture","getForcedSpeed","getFriend","getFSMVariable","getFuelCargo","getGraphValues","getGroupIcon","getGroupIconParams","getGroupIcons","getHideFrom","getHit","getHitIndex","getHitPointDamage","getItemCargo","getLighting","getLightingAt","getLoadedModsInfo","getMagazineCargo","getMarkerColor","getMarkerPos","getMarkerSize","getMarkerType","getMass","getMissionConfig","getMissionConfigValue","getMissionDLCs","getMissionLayerEntities","getMissionLayers","getMissionPath","getModelInfo","getMousePosition","getMusicPlayedTime","getNumber","getObjectArgument","getObjectChildren","getObjectDLC","getObjectFOV","getObjectID","getObjectMaterials","getObjectProxy","getObjectScale","getObjectTextures","getObjectType","getObjectViewDistance","getOpticsMode","getOrDefault","getOrDefaultCall","getOxygenRemaining","getPersonUsedDLCs","getPilotCameraDirection","getPilotCameraPosition","getPilotCameraRotation","getPilotCameraTarget","getPiPViewDistance","getPlateNumber","getPlayerChannel","getPlayerID","getPlayerScores","getPlayerUID","getPlayerVoNVolume","getPos","getPosASL","getPosASLVisual","getPosASLW","getPosATL","getPosATLVisual","getPosVisual","getPosWorld","getPosWorldVisual","getPylonMagazines","getRelDir","getRelPos","getRemoteSensorsDisabled","getRepairCargo","getResolution","getRoadInfo","getRotorBrakeRTD","getSensorTargets","getSensorThreats","getShadowDistance","getShotParents","getSlingLoad","getSoundController","getSoundControllerResult","getSpeed","getStamina","getStatValue","getSteamFriendsServers","getSubtitleOptions","getSuppression","getTerrainGrid","getTerrainHeight","getTerrainHeightASL","getTerrainInfo","getText","getTextRaw","getTextureInfo","getTextWidth","getTiParameters","getTotalDLCUsageTime","getTrimOffsetRTD","getTurretLimits","getTurretOpticsMode","getUnitFreefallInfo","getUnitLoadout","getUnitTrait","getUnloadInCombat","getUserInfo","getUserMFDText","getUserMFDValue","getVariable","getVehicleCargo","getVehicleTiPars","getWeaponCargo","getWeaponSway","getWingsOrientationRTD","getWingsPositionRTD","getWPPos","glanceAt","globalChat","globalRadio","goggles","goto","group","groupChat","groupFromNetId","groupIconSelectable","groupIconsVisible","groupID","groupOwner","groupRadio","groups","groupSelectedUnits","groupSelectUnit","gunner","gusts","halt","handgunItems","handgunMagazine","handgunWeapon","handsHit","hashValue","hasInterface","hasPilotCamera","hasWeapon","hcAllGroups","hcGroupParams","hcLeader","hcRemoveAllGroups","hcRemoveGroup","hcSelected","hcSelectGroup","hcSetGroup","hcShowBar","hcShownBar","headgear","hideBody","hideObject","hideObjectGlobal","hideSelection","hint","hintC","hintCadet","hintSilent","hmd","hostMission","htmlLoad","HUDMovementLevels","humidity","image","importAllGroups","importance","in","inArea","inAreaArray","incapacitatedState","inflame","inflamed","infoPanel","infoPanelComponentEnabled","infoPanelComponents","infoPanels","inGameUISetEventHandler","inheritsFrom","initAmbientLife","inPolygon","inputAction","inputController","inputMouse","inRangeOfArtillery","insert","insertEditorObject","intersect","is3DEN","is3DENMultiplayer","is3DENPreview","isAbleToBreathe","isActionMenuVisible","isAgent","isAimPrecisionEnabled","isAllowedCrewInImmobile","isArray","isAutoHoverOn","isAutonomous","isAutoStartUpEnabledRTD","isAutotest","isAutoTrimOnRTD","isAwake","isBleeding","isBurning","isClass","isCollisionLightOn","isCopilotEnabled","isDamageAllowed","isDedicated","isDLCAvailable","isEngineOn","isEqualRef","isEqualTo","isEqualType","isEqualTypeAll","isEqualTypeAny","isEqualTypeArray","isEqualTypeParams","isFilePatchingEnabled","isFinal","isFlashlightOn","isFlatEmpty","isForcedWalk","isFormationLeader","isGameFocused","isGamePaused","isGroupDeletedWhenEmpty","isHidden","isInRemainsCollector","isInstructorFigureEnabled","isIRLaserOn","isKeyActive","isKindOf","isLaserOn","isLightOn","isLocalized","isManualFire","isMarkedForCollection","isMissionProfileNamespaceLoaded","isMultiplayer","isMultiplayerSolo","isNil","isNotEqualRef","isNotEqualTo","isNull","isNumber","isObjectHidden","isObjectRTD","isOnRoad","isPiPEnabled","isPlayer","isRealTime","isRemoteExecuted","isRemoteExecutedJIP","isSaving","isSensorTargetConfirmed","isServer","isShowing3DIcons","isSimpleObject","isSprintAllowed","isStaminaEnabled","isSteamMission","isSteamOverlayEnabled","isStreamFriendlyUIEnabled","isStressDamageEnabled","isText","isTouchingGround","isTurnedOut","isTutHintsEnabled","isUAVConnectable","isUAVConnected","isUIContext","isUniformAllowed","isVehicleCargo","isVehicleRadarOn","isVehicleSensorEnabled","isWalking","isWeaponDeployed","isWeaponRested","itemCargo","items","itemsWithMagazines","join","joinAs","joinAsSilent","joinSilent","joinString","kbAddDatabase","kbAddDatabaseTargets","kbAddTopic","kbHasTopic","kbReact","kbRemoveTopic","kbTell","kbWasSaid","keyImage","keyName","keys","knowsAbout","land","landAt","landResult","language","laserTarget","lbAdd","lbClear","lbColor","lbColorRight","lbCurSel","lbData","lbDelete","lbIsSelected","lbPicture","lbPictureRight","lbSelection","lbSetColor","lbSetColorRight","lbSetCurSel","lbSetData","lbSetPicture","lbSetPictureColor","lbSetPictureColorDisabled","lbSetPictureColorSelected","lbSetPictureRight","lbSetPictureRightColor","lbSetPictureRightColorDisabled","lbSetPictureRightColorSelected","lbSetSelectColor","lbSetSelectColorRight","lbSetSelected","lbSetText","lbSetTextRight","lbSetTooltip","lbSetValue","lbSize","lbSort","lbSortBy","lbSortByValue","lbText","lbTextRight","lbTooltip","lbValue","leader","leaderboardDeInit","leaderboardGetRows","leaderboardInit","leaderboardRequestRowsFriends","leaderboardRequestRowsGlobal","leaderboardRequestRowsGlobalAroundUser","leaderboardsRequestUploadScore","leaderboardsRequestUploadScoreKeepBest","leaderboardState","leaveVehicle","libraryCredits","libraryDisclaimers","lifeState","lightAttachObject","lightDetachObject","lightIsOn","lightnings","limitSpeed","linearConversion","lineIntersects","lineIntersectsObjs","lineIntersectsSurfaces","lineIntersectsWith","linkItem","list","listObjects","listRemoteTargets","listVehicleSensors","ln","lnbAddArray","lnbAddColumn","lnbAddRow","lnbClear","lnbColor","lnbColorRight","lnbCurSelRow","lnbData","lnbDeleteColumn","lnbDeleteRow","lnbGetColumnsPosition","lnbPicture","lnbPictureRight","lnbSetColor","lnbSetColorRight","lnbSetColumnsPos","lnbSetCurSelRow","lnbSetData","lnbSetPicture","lnbSetPictureColor","lnbSetPictureColorRight","lnbSetPictureColorSelected","lnbSetPictureColorSelectedRight","lnbSetPictureRight","lnbSetText","lnbSetTextRight","lnbSetTooltip","lnbSetValue","lnbSize","lnbSort","lnbSortBy","lnbSortByValue","lnbText","lnbTextRight","lnbValue","load","loadAbs","loadBackpack","loadConfig","loadFile","loadGame","loadIdentity","loadMagazine","loadOverlay","loadStatus","loadUniform","loadVest","localize","localNamespace","locationPosition","lock","lockCameraTo","lockCargo","lockDriver","locked","lockedCameraTo","lockedCargo","lockedDriver","lockedInventory","lockedTurret","lockIdentity","lockInventory","lockTurret","lockWp","log","logEntities","logNetwork","logNetworkTerminate","lookAt","lookAtPos","magazineCargo","magazines","magazinesAllTurrets","magazinesAmmo","magazinesAmmoCargo","magazinesAmmoFull","magazinesDetail","magazinesDetailBackpack","magazinesDetailUniform","magazinesDetailVest","magazinesTurret","magazineTurretAmmo","mapAnimAdd","mapAnimClear","mapAnimCommit","mapAnimDone","mapCenterOnCamera","mapGridPosition","markAsFinishedOnSteam","markerAlpha","markerBrush","markerChannel","markerColor","markerDir","markerPolyline","markerPos","markerShadow","markerShape","markerSize","markerText","markerType","matrixMultiply","matrixTranspose","max","maxLoad","members","menuAction","menuAdd","menuChecked","menuClear","menuCollapse","menuData","menuDelete","menuEnable","menuEnabled","menuExpand","menuHover","menuPicture","menuSetAction","menuSetCheck","menuSetData","menuSetPicture","menuSetShortcut","menuSetText","menuSetURL","menuSetValue","menuShortcut","menuShortcutText","menuSize","menuSort","menuText","menuURL","menuValue","merge","min","mineActive","mineDetectedBy","missileTarget","missileTargetPos","missionConfigFile","missionDifficulty","missionEnd","missionName","missionNameSource","missionNamespace","missionProfileNamespace","missionStart","missionVersion","mod","modelToWorld","modelToWorldVisual","modelToWorldVisualWorld","modelToWorldWorld","modParams","moonIntensity","moonPhase","morale","move","move3DENCamera","moveInAny","moveInCargo","moveInCommander","moveInDriver","moveInGunner","moveInTurret","moveObjectToEnd","moveOut","moveTime","moveTo","moveToCompleted","moveToFailed","musicVolume","name","namedProperties","nameSound","nearEntities","nearestBuilding","nearestLocation","nearestLocations","nearestLocationWithDubbing","nearestMines","nearestObject","nearestObjects","nearestTerrainObjects","nearObjects","nearObjectsReady","nearRoads","nearSupplies","nearTargets","needReload","needService","netId","netObjNull","newOverlay","nextMenuItemIndex","nextWeatherChange","nMenuItems","not","numberOfEnginesRTD","numberToDate","objectCurators","objectFromNetId","objectParent","objStatus","onBriefingGroup","onBriefingNotes","onBriefingPlan","onBriefingTeamSwitch","onCommandModeChanged","onDoubleClick","onEachFrame","onGroupIconClick","onGroupIconOverEnter","onGroupIconOverLeave","onHCGroupSelectionChanged","onMapSingleClick","onPlayerConnected","onPlayerDisconnected","onPreloadFinished","onPreloadStarted","onShowNewObject","onTeamSwitch","openCuratorInterface","openDLCPage","openGPS","openMap","openSteamApp","openYoutubeVideo","or","orderGetIn","overcast","overcastForecast","owner","param","params","parseNumber","parseSimpleArray","parseText","parsingNamespace","particlesQuality","periscopeElevation","pickWeaponPool","pitch","pixelGrid","pixelGridBase","pixelGridNoUIScale","pixelH","pixelW","playableSlotsNumber","playableUnits","playAction","playActionNow","player","playerRespawnTime","playerSide","playersNumber","playGesture","playMission","playMove","playMoveNow","playMusic","playScriptedMission","playSound","playSound3D","playSoundUI","pose","position","positionCameraToWorld","posScreenToWorld","posWorldToScreen","ppEffectAdjust","ppEffectCommit","ppEffectCommitted","ppEffectCreate","ppEffectDestroy","ppEffectEnable","ppEffectEnabled","ppEffectForceInNVG","precision","preloadCamera","preloadObject","preloadSound","preloadTitleObj","preloadTitleRsc","preprocessFile","preprocessFileLineNumbers","primaryWeapon","primaryWeaponItems","primaryWeaponMagazine","priority","processDiaryLink","productVersion","profileName","profileNamespace","profileNameSteam","progressLoadingScreen","progressPosition","progressSetPosition","publicVariable","publicVariableClient","publicVariableServer","pushBack","pushBackUnique","putWeaponPool","queryItemsPool","queryMagazinePool","queryWeaponPool","rad","radioChannelAdd","radioChannelCreate","radioChannelInfo","radioChannelRemove","radioChannelSetCallSign","radioChannelSetLabel","radioEnabled","radioVolume","rain","rainbow","rainParams","random","rank","rankId","rating","rectangular","regexFind","regexMatch","regexReplace","registeredTasks","registerTask","reload","reloadEnabled","remoteControl","remoteExec","remoteExecCall","remoteExecutedOwner","remove3DENConnection","remove3DENEventHandler","remove3DENLayer","removeAction","removeAll3DENEventHandlers","removeAllActions","removeAllAssignedItems","removeAllBinocularItems","removeAllContainers","removeAllCuratorAddons","removeAllCuratorCameraAreas","removeAllCuratorEditingAreas","removeAllEventHandlers","removeAllHandgunItems","removeAllItems","removeAllItemsWithMagazines","removeAllMissionEventHandlers","removeAllMPEventHandlers","removeAllMusicEventHandlers","removeAllOwnedMines","removeAllPrimaryWeaponItems","removeAllSecondaryWeaponItems","removeAllUserActionEventHandlers","removeAllWeapons","removeBackpack","removeBackpackGlobal","removeBinocularItem","removeCuratorAddons","removeCuratorCameraArea","removeCuratorEditableObjects","removeCuratorEditingArea","removeDiaryRecord","removeDiarySubject","removeDrawIcon","removeDrawLinks","removeEventHandler","removeFromRemainsCollector","removeGoggles","removeGroupIcon","removeHandgunItem","removeHeadgear","removeItem","removeItemFromBackpack","removeItemFromUniform","removeItemFromVest","removeItems","removeMagazine","removeMagazineGlobal","removeMagazines","removeMagazinesTurret","removeMagazineTurret","removeMenuItem","removeMissionEventHandler","removeMPEventHandler","removeMusicEventHandler","removeOwnedMine","removePrimaryWeaponItem","removeSecondaryWeaponItem","removeSimpleTask","removeSwitchableUnit","removeTeamMember","removeUniform","removeUserActionEventHandler","removeVest","removeWeapon","removeWeaponAttachmentCargo","removeWeaponCargo","removeWeaponGlobal","removeWeaponTurret","reportRemoteTarget","requiredVersion","resetCamShake","resetSubgroupDirection","resize","resources","respawnVehicle","restartEditorCamera","reveal","revealMine","reverse","reversedMouseY","roadAt","roadsConnectedTo","roleDescription","ropeAttachedObjects","ropeAttachedTo","ropeAttachEnabled","ropeAttachTo","ropeCreate","ropeCut","ropeDestroy","ropeDetach","ropeEndPosition","ropeLength","ropes","ropesAttachedTo","ropeSegments","ropeUnwind","ropeUnwound","rotorsForcesRTD","rotorsRpmRTD","round","runInitScript","safeZoneH","safeZoneW","safeZoneWAbs","safeZoneX","safeZoneXAbs","safeZoneY","save3DENInventory","saveGame","saveIdentity","saveJoysticks","saveMissionProfileNamespace","saveOverlay","saveProfileNamespace","saveStatus","saveVar","savingEnabled","say","say2D","say3D","scopeName","score","scoreSide","screenshot","screenToWorld","scriptDone","scriptName","scudState","secondaryWeapon","secondaryWeaponItems","secondaryWeaponMagazine","select","selectBestPlaces","selectDiarySubject","selectedEditorObjects","selectEditorObject","selectionNames","selectionPosition","selectionVectorDirAndUp","selectLeader","selectMax","selectMin","selectNoPlayer","selectPlayer","selectRandom","selectRandomWeighted","selectWeapon","selectWeaponTurret","sendAUMessage","sendSimpleCommand","sendTask","sendTaskResult","sendUDPMessage","sentencesEnabled","serverCommand","serverCommandAvailable","serverCommandExecutable","serverName","serverNamespace","serverTime","set","set3DENAttribute","set3DENAttributes","set3DENGrid","set3DENIconsVisible","set3DENLayer","set3DENLinesVisible","set3DENLogicType","set3DENMissionAttribute","set3DENMissionAttributes","set3DENModelsVisible","set3DENObjectType","set3DENSelected","setAccTime","setActualCollectiveRTD","setAirplaneThrottle","setAirportSide","setAmmo","setAmmoCargo","setAmmoOnPylon","setAnimSpeedCoef","setAperture","setApertureNew","setArmoryPoints","setAttributes","setAutonomous","setBehaviour","setBehaviourStrong","setBleedingRemaining","setBrakesRTD","setCameraInterest","setCamShakeDefParams","setCamShakeParams","setCamUseTi","setCaptive","setCenterOfMass","setCollisionLight","setCombatBehaviour","setCombatMode","setCompassOscillation","setConvoySeparation","setCruiseControl","setCuratorCameraAreaCeiling","setCuratorCoef","setCuratorEditingAreaType","setCuratorWaypointCost","setCurrentChannel","setCurrentTask","setCurrentWaypoint","setCustomAimCoef","SetCustomMissionData","setCustomSoundController","setCustomWeightRTD","setDamage","setDammage","setDate","setDebriefingText","setDefaultCamera","setDestination","setDetailMapBlendPars","setDiaryRecordText","setDiarySubjectPicture","setDir","setDirection","setDrawIcon","setDriveOnPath","setDropInterval","setDynamicSimulationDistance","setDynamicSimulationDistanceCoef","setEditorMode","setEditorObjectScope","setEffectCondition","setEffectiveCommander","setEngineRpmRTD","setFace","setFaceanimation","setFatigue","setFeatureType","setFlagAnimationPhase","setFlagOwner","setFlagSide","setFlagTexture","setFog","setForceGeneratorRTD","setFormation","setFormationTask","setFormDir","setFriend","setFromEditor","setFSMVariable","setFuel","setFuelCargo","setGroupIcon","setGroupIconParams","setGroupIconsSelectable","setGroupIconsVisible","setGroupid","setGroupIdGlobal","setGroupOwner","setGusts","setHideBehind","setHit","setHitIndex","setHitPointDamage","setHorizonParallaxCoef","setHUDMovementLevels","setHumidity","setIdentity","setImportance","setInfoPanel","setLeader","setLightAmbient","setLightAttenuation","setLightBrightness","setLightColor","setLightConePars","setLightDayLight","setLightFlareMaxDistance","setLightFlareSize","setLightIntensity","setLightIR","setLightnings","setLightUseFlare","setLightVolumeShape","setLocalWindParams","setMagazineTurretAmmo","setMarkerAlpha","setMarkerAlphaLocal","setMarkerBrush","setMarkerBrushLocal","setMarkerColor","setMarkerColorLocal","setMarkerDir","setMarkerDirLocal","setMarkerPolyline","setMarkerPolylineLocal","setMarkerPos","setMarkerPosLocal","setMarkerShadow","setMarkerShadowLocal","setMarkerShape","setMarkerShapeLocal","setMarkerSize","setMarkerSizeLocal","setMarkerText","setMarkerTextLocal","setMarkerType","setMarkerTypeLocal","setMass","setMaxLoad","setMimic","setMissileTarget","setMissileTargetPos","setMousePosition","setMusicEffect","setMusicEventHandler","setName","setNameSound","setObjectArguments","setObjectMaterial","setObjectMaterialGlobal","setObjectProxy","setObjectScale","setObjectTexture","setObjectTextureGlobal","setObjectViewDistance","setOpticsMode","setOvercast","setOwner","setOxygenRemaining","setParticleCircle","setParticleClass","setParticleFire","setParticleParams","setParticleRandom","setPilotCameraDirection","setPilotCameraRotation","setPilotCameraTarget","setPilotLight","setPiPEffect","setPiPViewDistance","setPitch","setPlateNumber","setPlayable","setPlayerRespawnTime","setPlayerVoNVolume","setPos","setPosASL","setPosASL2","setPosASLW","setPosATL","setPosition","setPosWorld","setPylonLoadout","setPylonsPriority","setRadioMsg","setRain","setRainbow","setRandomLip","setRank","setRectangular","setRepairCargo","setRotorBrakeRTD","setShadowDistance","setShotParents","setSide","setSimpleTaskAlwaysVisible","setSimpleTaskCustomData","setSimpleTaskDescription","setSimpleTaskDestination","setSimpleTaskTarget","setSimpleTaskType","setSimulWeatherLayers","setSize","setSkill","setSlingLoad","setSoundEffect","setSpeaker","setSpeech","setSpeedMode","setStamina","setStaminaScheme","setStatValue","setSuppression","setSystemOfUnits","setTargetAge","setTaskMarkerOffset","setTaskResult","setTaskState","setTerrainGrid","setTerrainHeight","setText","setTimeMultiplier","setTiParameter","setTitleEffect","setTowParent","setTrafficDensity","setTrafficDistance","setTrafficGap","setTrafficSpeed","setTriggerActivation","setTriggerArea","setTriggerInterval","setTriggerStatements","setTriggerText","setTriggerTimeout","setTriggerType","setTurretLimits","setTurretOpticsMode","setType","setUnconscious","setUnitAbility","setUnitCombatMode","setUnitFreefallHeight","setUnitLoadout","setUnitPos","setUnitPosWeak","setUnitRank","setUnitRecoilCoefficient","setUnitTrait","setUnloadInCombat","setUserActionText","setUserMFDText","setUserMFDValue","setVariable","setVectorDir","setVectorDirAndUp","setVectorUp","setVehicleAmmo","setVehicleAmmoDef","setVehicleArmor","setVehicleCargo","setVehicleId","setVehicleLock","setVehiclePosition","setVehicleRadar","setVehicleReceiveRemoteTargets","setVehicleReportOwnPosition","setVehicleReportRemoteTargets","setVehicleTiPars","setVehicleVarName","setVelocity","setVelocityModelSpace","setVelocityTransformation","setViewDistance","setVisibleIfTreeCollapsed","setWantedRPMRTD","setWaves","setWaypointBehaviour","setWaypointCombatMode","setWaypointCompletionRadius","setWaypointDescription","setWaypointForceBehaviour","setWaypointFormation","setWaypointHousePosition","setWaypointLoiterAltitude","setWaypointLoiterRadius","setWaypointLoiterType","setWaypointName","setWaypointPosition","setWaypointScript","setWaypointSpeed","setWaypointStatements","setWaypointTimeout","setWaypointType","setWaypointVisible","setWeaponReloadingTime","setWeaponZeroing","setWind","setWindDir","setWindForce","setWindStr","setWingForceScaleRTD","setWPPos","show3DIcons","showChat","showCinemaBorder","showCommandingMenu","showCompass","showCuratorCompass","showGps","showHUD","showLegend","showMap","shownArtilleryComputer","shownChat","shownCompass","shownCuratorCompass","showNewEditorObject","shownGps","shownHUD","shownMap","shownPad","shownRadio","shownScoretable","shownSubtitles","shownUAVFeed","shownWarrant","shownWatch","showPad","showRadio","showScoretable","showSubtitles","showUAVFeed","showWarrant","showWatch","showWaypoint","showWaypoints","side","sideChat","sideRadio","simpleTasks","simulationEnabled","simulCloudDensity","simulCloudOcclusion","simulInClouds","simulWeatherSync","sin","size","sizeOf","skill","skillFinal","skipTime","sleep","sliderPosition","sliderRange","sliderSetPosition","sliderSetRange","sliderSetSpeed","sliderSpeed","slingLoadAssistantShown","soldierMagazines","someAmmo","sort","soundVolume","spawn","speaker","speechVolume","speed","speedMode","splitString","sqrt","squadParams","stance","startLoadingScreen","stop","stopEngineRTD","stopped","str","sunOrMoon","supportInfo","suppressFor","surfaceIsWater","surfaceNormal","surfaceTexture","surfaceType","swimInDepth","switchableUnits","switchAction","switchCamera","switchGesture","switchLight","switchMove","synchronizedObjects","synchronizedTriggers","synchronizedWaypoints","synchronizeObjectsAdd","synchronizeObjectsRemove","synchronizeTrigger","synchronizeWaypoint","systemChat","systemOfUnits","systemTime","systemTimeUTC","tan","targetKnowledge","targets","targetsAggregate","targetsQuery","taskAlwaysVisible","taskChildren","taskCompleted","taskCustomData","taskDescription","taskDestination","taskHint","taskMarkerOffset","taskName","taskParent","taskResult","taskState","taskType","teamMember","teamName","teams","teamSwitch","teamSwitchEnabled","teamType","terminate","terrainIntersect","terrainIntersectASL","terrainIntersectAtASL","text","textLog","textLogFormat","tg","time","timeMultiplier","titleCut","titleFadeOut","titleObj","titleRsc","titleText","toArray","toFixed","toLower","toLowerANSI","toString","toUpper","toUpperANSI","triggerActivated","triggerActivation","triggerAmmo","triggerArea","triggerAttachedVehicle","triggerAttachObject","triggerAttachVehicle","triggerDynamicSimulation","triggerInterval","triggerStatements","triggerText","triggerTimeout","triggerTimeoutCurrent","triggerType","trim","turretLocal","turretOwner","turretUnit","tvAdd","tvClear","tvCollapse","tvCollapseAll","tvCount","tvCurSel","tvData","tvDelete","tvExpand","tvExpandAll","tvIsSelected","tvPicture","tvPictureRight","tvSelection","tvSetColor","tvSetCurSel","tvSetData","tvSetPicture","tvSetPictureColor","tvSetPictureColorDisabled","tvSetPictureColorSelected","tvSetPictureRight","tvSetPictureRightColor","tvSetPictureRightColorDisabled","tvSetPictureRightColorSelected","tvSetSelectColor","tvSetSelected","tvSetText","tvSetTooltip","tvSetValue","tvSort","tvSortAll","tvSortByValue","tvSortByValueAll","tvText","tvTooltip","tvValue","type","typeName","typeOf","UAVControl","uiNamespace","uiSleep","unassignCurator","unassignItem","unassignTeam","unassignVehicle","underwater","uniform","uniformContainer","uniformItems","uniformMagazines","uniqueUnitItems","unitAddons","unitAimPosition","unitAimPositionVisual","unitBackpack","unitCombatMode","unitIsUAV","unitPos","unitReady","unitRecoilCoefficient","units","unitsBelowHeight","unitTurret","unlinkItem","unlockAchievement","unregisterTask","updateDrawIcon","updateMenuItem","updateObjectTree","useAIOperMapObstructionTest","useAISteeringComponent","useAudioTimeForMoves","userInputDisabled","values","vectorAdd","vectorCos","vectorCrossProduct","vectorDiff","vectorDir","vectorDirVisual","vectorDistance","vectorDistanceSqr","vectorDotProduct","vectorFromTo","vectorLinearConversion","vectorMagnitude","vectorMagnitudeSqr","vectorModelToWorld","vectorModelToWorldVisual","vectorMultiply","vectorNormalized","vectorUp","vectorUpVisual","vectorWorldToModel","vectorWorldToModelVisual","vehicle","vehicleCargoEnabled","vehicleChat","vehicleMoveInfo","vehicleRadio","vehicleReceiveRemoteTargets","vehicleReportOwnPosition","vehicleReportRemoteTargets","vehicles","vehicleVarName","velocity","velocityModelSpace","verifySignature","vest","vestContainer","vestItems","vestMagazines","viewDistance","visibleCompass","visibleGps","visibleMap","visiblePosition","visiblePositionASL","visibleScoretable","visibleWatch","waves","waypointAttachedObject","waypointAttachedVehicle","waypointAttachObject","waypointAttachVehicle","waypointBehaviour","waypointCombatMode","waypointCompletionRadius","waypointDescription","waypointForceBehaviour","waypointFormation","waypointHousePosition","waypointLoiterAltitude","waypointLoiterRadius","waypointLoiterType","waypointName","waypointPosition","waypoints","waypointScript","waypointsEnabledUAV","waypointShow","waypointSpeed","waypointStatements","waypointTimeout","waypointTimeoutCurrent","waypointType","waypointVisible","weaponAccessories","weaponAccessoriesCargo","weaponCargo","weaponDirection","weaponInertia","weaponLowered","weaponReloadingTime","weapons","weaponsInfo","weaponsItems","weaponsItemsCargo","weaponState","weaponsTurret","weightRTD","WFSideText","wind","windDir","windRTD","windStr","wingsForcesRTD","worldName","worldSize","worldToModel","worldToModelVisual","worldToScreen"],d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:"define undef ifdef ifndef else endif include if",contains:[{begin:/\\\n/,relevance:0},e.inherit(o,{className:"string"}),{begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"SQF",case_insensitive:!0,keywords:{keyword:s,built_in:c,literal:l},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,n,i,o,d],illegal:[/\$[^a-fA-F0-9]/,/\w\$/,/\?/,/@/,/ \| /,/[a-zA-Z_]\./,/\:\=/,/\[\:/]}}return $p=t,$p}var Hp,Qv;function Qye(){if(Qv)return Hp;Qv=1;function t(e){const n=e.regex,i=e.COMMENT("--","$"),o={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},s={begin:/"/,end:/"/,contains:[{begin:/""/}]},l=["true","false","unknown"],c=["double precision","large object","with timezone","without timezone"],d=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],_=["add","asc","collation","desc","final","first","last","view"],p=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],g=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],E=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],f=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],S=g,C=[...p,..._].filter(x=>!g.includes(x)),h={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},T={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},N={begin:n.concat(/\b/,n.either(...S),/\s*\(/),relevance:0,keywords:{built_in:S}};function y(x,{exceptions:P,when:D}={}){const k=D;return P=P||[],x.map(U=>U.match(/\|\d+$/)||P.includes(U)?U:k(U)?`${U}|0`:U)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:y(C,{when:x=>x.length<3}),literal:l,type:d,built_in:E},contains:[{begin:n.either(...f),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:C.concat(f),literal:l,type:d}},{className:"type",begin:n.either(...c)},N,h,o,s,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,i,T]}}return Hp=t,Hp}var zp,Xv;function Xye(){if(Xv)return zp;Xv=1;function t(e){const n=e.regex,i=["functions","model","data","parameters","quantities","transformed","generated"],o=["for","in","if","else","while","break","continue","return"],s=["array","complex","int","real","vector","ordered","positive_ordered","simplex","unit_vector","row_vector","matrix","cholesky_factor_corr|10","cholesky_factor_cov|10","corr_matrix|10","cov_matrix|10","void"],l=["Phi","Phi_approx","abs","acos","acosh","add_diag","algebra_solver","algebra_solver_newton","append_array","append_col","append_row","asin","asinh","atan","atan2","atanh","bessel_first_kind","bessel_second_kind","binary_log_loss","binomial_coefficient_log","block","cbrt","ceil","chol2inv","cholesky_decompose","choose","col","cols","columns_dot_product","columns_dot_self","conj","cos","cosh","cov_exp_quad","crossprod","csr_extract_u","csr_extract_v","csr_extract_w","csr_matrix_times_vector","csr_to_dense_matrix","cumulative_sum","determinant","diag_matrix","diag_post_multiply","diag_pre_multiply","diagonal","digamma","dims","distance","dot_product","dot_self","eigenvalues_sym","eigenvectors_sym","erf","erfc","exp","exp2","expm1","fabs","falling_factorial","fdim","floor","fma","fmax","fmin","fmod","gamma_p","gamma_q","generalized_inverse","get_imag","get_lp","get_real","head","hmm_hidden_state_prob","hmm_marginal","hypot","identity_matrix","inc_beta","int_step","integrate_1d","integrate_ode","integrate_ode_adams","integrate_ode_bdf","integrate_ode_rk45","inv","inv_Phi","inv_cloglog","inv_logit","inv_sqrt","inv_square","inverse","inverse_spd","is_inf","is_nan","lambert_w0","lambert_wm1","lbeta","lchoose","ldexp","lgamma","linspaced_array","linspaced_int_array","linspaced_row_vector","linspaced_vector","lmgamma","lmultiply","log","log1m","log1m_exp","log1m_inv_logit","log1p","log1p_exp","log_determinant","log_diff_exp","log_falling_factorial","log_inv_logit","log_inv_logit_diff","log_mix","log_modified_bessel_first_kind","log_rising_factorial","log_softmax","log_sum_exp","logit","machine_precision","map_rect","matrix_exp","matrix_exp_multiply","matrix_power","max","mdivide_left_spd","mdivide_left_tri_low","mdivide_right_spd","mdivide_right_tri_low","mean","min","modified_bessel_first_kind","modified_bessel_second_kind","multiply_log","multiply_lower_tri_self_transpose","negative_infinity","norm","not_a_number","num_elements","ode_adams","ode_adams_tol","ode_adjoint_tol_ctl","ode_bdf","ode_bdf_tol","ode_ckrk","ode_ckrk_tol","ode_rk45","ode_rk45_tol","one_hot_array","one_hot_int_array","one_hot_row_vector","one_hot_vector","ones_array","ones_int_array","ones_row_vector","ones_vector","owens_t","polar","positive_infinity","pow","print","prod","proj","qr_Q","qr_R","qr_thin_Q","qr_thin_R","quad_form","quad_form_diag","quad_form_sym","quantile","rank","reduce_sum","reject","rep_array","rep_matrix","rep_row_vector","rep_vector","reverse","rising_factorial","round","row","rows","rows_dot_product","rows_dot_self","scale_matrix_exp_multiply","sd","segment","sin","singular_values","sinh","size","softmax","sort_asc","sort_desc","sort_indices_asc","sort_indices_desc","sqrt","square","squared_distance","step","sub_col","sub_row","sum","svd_U","svd_V","symmetrize_from_lower_tri","tail","tan","tanh","target","tcrossprod","tgamma","to_array_1d","to_array_2d","to_complex","to_matrix","to_row_vector","to_vector","trace","trace_gen_quad_form","trace_quad_form","trigamma","trunc","uniform_simplex","variance","zeros_array","zeros_int_array","zeros_row_vector"],c=["bernoulli","bernoulli_logit","bernoulli_logit_glm","beta","beta_binomial","beta_proportion","binomial","binomial_logit","categorical","categorical_logit","categorical_logit_glm","cauchy","chi_square","dirichlet","discrete_range","double_exponential","exp_mod_normal","exponential","frechet","gamma","gaussian_dlm_obs","gumbel","hmm_latent","hypergeometric","inv_chi_square","inv_gamma","inv_wishart","lkj_corr","lkj_corr_cholesky","logistic","lognormal","multi_gp","multi_gp_cholesky","multi_normal","multi_normal_cholesky","multi_normal_prec","multi_student_t","multinomial","multinomial_logit","neg_binomial","neg_binomial_2","neg_binomial_2_log","neg_binomial_2_log_glm","normal","normal_id_glm","ordered_logistic","ordered_logistic_glm","ordered_probit","pareto","pareto_type_2","poisson","poisson_log","poisson_log_glm","rayleigh","scaled_inv_chi_square","skew_double_exponential","skew_normal","std_normal","student_t","uniform","von_mises","weibull","wiener","wishart"],d=e.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{scope:"doctag",match:/@(return|param)/}]}),_={scope:"meta",begin:/#include\b/,end:/$/,contains:[{match:/[a-z][a-z-._]+/,scope:"string"},e.C_LINE_COMMENT_MODE]},p=["lower","upper","offset","multiplier"];return{name:"Stan",aliases:["stanfuncs"],keywords:{$pattern:e.IDENT_RE,title:i,type:s,keyword:o,built_in:l},contains:[e.C_LINE_COMMENT_MODE,_,e.HASH_COMMENT_MODE,d,{scope:"built_in",match:/\s(pi|e|sqrt2|log2|log10)(?=\()/,relevance:0},{match:n.concat(/[<,]\s*/,n.either(...p),/\s*=/),keywords:p},{scope:"keyword",match:/\btarget(?=\s*\+=)/},{match:[/~\s*/,n.either(...c),/(?:\(\))/,/\s*T(?=\s*\[)/],scope:{2:"built_in",4:"keyword"}},{scope:"built_in",keywords:c,begin:n.concat(/\w*/,n.either(...c),/(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/)},{begin:[/~/,/\s*/,n.concat(n.either(...c),/(?=\s*[\(.*\)])/)],scope:{3:"built_in"}},{begin:[/~/,/\s*\w+(?=\s*[\(.*\)])/,"(?!.*/\b("+n.either(...c)+")\b)"],scope:{2:"title.function"}},{scope:"title.function",begin:/\w*(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/},{scope:"number",match:n.concat(/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)/,/(?:[eE][+-]?\d+(?:_\d+)*)?i?(?!\w)/),relevance:0},{scope:"string",begin:/"/,end:/"/}]}}return zp=t,zp}var Vp,Zv;function Zye(){if(Zv)return Vp;Zv=1;function t(e){return{name:"Stata",aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/,relevance:0},{className:"string",variants:[{begin:`\`"[^\r -]*?"'`},{begin:`"[^\r -"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},e.COMMENT("^[ ]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return Vp=t,Vp}var Wp,Jv;function Jye(){if(Jv)return Wp;Jv=1;function t(e){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}return Wp=t,Wp}var Kp,jv;function jye(){if(jv)return Kp;jv=1;const t=c=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:c.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:c.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],s=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function l(c){const d=t(c),_="and or not only",p={className:"variable",begin:"\\$"+c.IDENT_RE},g=["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"],E="(?=[.\\s\\n[:,(])";return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[c.QUOTE_STRING_MODE,c.APOS_STRING_MODE,c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,d.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+E,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+E,className:"selector-id"},{begin:"\\b("+e.join("|")+")"+E,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+i.join("|")+")"+E},{className:"selector-pseudo",begin:"&?:(:)?("+o.join("|")+")"+E},d.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:_,attribute:n.join(" ")},contains:[d.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+g.join("|")+"))\\b"},p,d.CSS_NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[d.HEXCOLOR,p,c.APOS_STRING_MODE,d.CSS_NUMBER_MODE,c.QUOTE_STRING_MODE]}]},d.CSS_VARIABLE,{className:"attribute",begin:"\\b("+s.join("|")+")\\b",starts:{end:/;|$/,contains:[d.HEXCOLOR,p,c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,d.CSS_NUMBER_MODE,c.C_BLOCK_COMMENT_MODE,d.IMPORTANT,d.FUNCTION_DISPATCH],illegal:/\./,relevance:0}},d.FUNCTION_DISPATCH]}}return Kp=l,Kp}var Qp,eC;function eIe(){if(eC)return Qp;eC=1;function t(e){return{name:"SubUnit",case_insensitive:!0,contains:[{className:"string",begin:`\\[ -(multipart)?`,end:`\\] -`},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}return Qp=t,Qp}var Xp,tC;function tIe(){if(tC)return Xp;tC=1;function t(U){return U?typeof U=="string"?U:U.source:null}function e(U){return n("(?=",U,")")}function n(...U){return U.map(z=>t(z)).join("")}function i(U){const W=U[U.length-1];return typeof W=="object"&&W.constructor===Object?(U.splice(U.length-1,1),W):{}}function o(...U){return"("+(i(U).capture?"":"?:")+U.map(K=>t(K)).join("|")+")"}const s=U=>n(/\b/,U,/\w$/.test(U)?/\b/:/\B/),l=["Protocol","Type"].map(s),c=["init","self"].map(s),d=["Any","Self"],_=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","distributed","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],p=["false","nil","true"],g=["assignment","associativity","higherThan","left","lowerThan","none","right"],E=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],f=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],S=o(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),C=o(S,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),h=n(S,C,"*"),T=o(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),N=o(T,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),y=n(T,N,"*"),x=n(/[A-Z]/,N,"*"),P=["autoclosure",n(/convention\(/,o("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",n(/objc\(/,y,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],D=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function k(U){const W={match:/\s+/,relevance:0},z=U.COMMENT("/\\*","\\*/",{contains:["self"]}),K=[U.C_LINE_COMMENT_MODE,z],Ee={match:[/\./,o(...l,...c)],className:{2:"keyword"}},oe={match:n(/\./,o(..._)),relevance:0},L=_.filter(Ze=>typeof Ze=="string").concat(["_|0"]),J=_.filter(Ze=>typeof Ze!="string").concat(d).map(s),re={variants:[{className:"keyword",match:o(...J,...c)}]},G={$pattern:o(/\b\w+/,/#\w+/),keyword:L.concat(E),literal:p},X=[Ee,oe,re],_e={match:n(/\./,o(...f)),relevance:0},ve={className:"built_in",match:n(/\b/,o(...f),/(?=\()/)},he=[_e,ve],tt={match:/->/,relevance:0},lt={className:"operator",relevance:0,variants:[{match:h},{match:`\\.(\\.|${C})+`}]},$e=[tt,lt],Ce="([0-9]_*)+",Be="([0-9a-fA-F]_*)+",Ve={className:"number",relevance:0,variants:[{match:`\\b(${Ce})(\\.(${Ce}))?([eE][+-]?(${Ce}))?\\b`},{match:`\\b0x(${Be})(\\.(${Be}))?([pP][+-]?(${Ce}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},xe=(Ze="")=>({className:"subst",variants:[{match:n(/\\/,Ze,/[0\\tnr"']/)},{match:n(/\\/,Ze,/u\{[0-9a-fA-F]{1,8}\}/)}]}),He=(Ze="")=>({className:"subst",match:n(/\\/,Ze,/[\t ]*(?:[\r\n]|\r\n)/)}),rt=(Ze="")=>({className:"subst",label:"interpol",begin:n(/\\/,Ze,/\(/),end:/\)/}),We=(Ze="")=>({begin:n(Ze,/"""/),end:n(/"""/,Ze),contains:[xe(Ze),He(Ze),rt(Ze)]}),te=(Ze="")=>({begin:n(Ze,/"/),end:n(/"/,Ze),contains:[xe(Ze),rt(Ze)]}),pe={className:"string",variants:[We(),We("#"),We("##"),We("###"),te(),te("#"),te("##"),te("###")]},ie={match:n(/`/,y,/`/)},Pe={className:"variable",match:/\$\d+/},we={className:"variable",match:`\\$${N}+`},Xe=[ie,Pe,we],pt={match:/(@|#(un)?)available/,className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:D,contains:[...$e,Ve,pe]}]}},me={className:"keyword",match:n(/@/,o(...P))},bt={className:"meta",match:n(/@/,y)},Ue=[pt,me,bt],Ie={match:e(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:n(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,N,"+")},{className:"type",match:x,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:n(/\s+&\s+/,e(x)),relevance:0}]},zt={begin://,keywords:G,contains:[...K,...X,...Ue,tt,Ie]};Ie.contains.push(zt);const Nt={match:n(y,/\s*:/),keywords:"_|0",relevance:0},Gt={begin:/\(/,end:/\)/,relevance:0,keywords:G,contains:["self",Nt,...K,...X,...he,...$e,Ve,pe,...Xe,...Ue,Ie]},Sn={begin://,contains:[...K,Ie]},ne={begin:o(e(n(y,/\s*:/)),e(n(y,/\s+/,y,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:y}]},ce={begin:/\(/,end:/\)/,keywords:G,contains:[ne,...K,...X,...$e,Ve,pe,...Ue,Ie,Gt],endsParent:!0,illegal:/["']/},Oe={match:[/func/,/\s+/,o(ie.match,y,h)],className:{1:"keyword",3:"title.function"},contains:[Sn,ce,W],illegal:[/\[/,/%/]},Me={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Sn,ce,W],illegal:/\[|%/},ct={match:[/operator/,/\s+/,h],className:{1:"keyword",3:"title"}},xt={begin:[/precedencegroup/,/\s+/,x],className:{1:"keyword",3:"title"},contains:[Ie],keywords:[...g,...p],end:/}/};for(const Ze of pe.variants){const Yt=Ze.contains.find(Z=>Z.label==="interpol");Yt.keywords=G;const er=[...X,...he,...$e,Ve,pe,...Xe];Yt.contains=[...er,{begin:/\(/,end:/\)/,contains:["self",...er]}]}return{name:"Swift",keywords:G,contains:[...K,Oe,Me,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:G,contains:[U.inherit(U.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...X]},ct,xt,{beginKeywords:"import",end:/$/,contains:[...K],relevance:0},...X,...he,...$e,Ve,pe,...Xe,...Ue,Ie,Gt]}}return Xp=k,Xp}var Zp,nC;function nIe(){if(nC)return Zp;nC=1;function t(e){return{name:"Tagger Script",contains:[{className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\\[()]/},{begin:/\(/,end:/\)/,contains:[{begin:/\\[()]/},"self"]}],relevance:10},{className:"keyword",begin:/\$[_a-zA-Z0-9]+(?=\()/},{className:"variable",begin:/%[_a-zA-Z0-9:]+%/},{className:"symbol",begin:/\\[\\nt$%,()]/},{className:"symbol",begin:/\\u[a-fA-F0-9]{4}/}]}}return Zp=t,Zp}var Jp,rC;function rIe(){if(rC)return Jp;rC=1;function t(e){const n="true false yes no null",i="[\\w#;/?:@&=+$,.~*'()[\\]]+",o={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},s={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},l={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,s]},c=e.inherit(l,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),d="[0-9]{4}(-[0-9][0-9]){0,2}",_="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",p="(\\.[0-9]*)?",g="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",E={className:"number",begin:"\\b"+d+_+p+g+"\\b"},f={end:",",endsWithParent:!0,excludeEnd:!0,keywords:n,relevance:0},S={begin:/\{/,end:/\}/,contains:[f],illegal:"\\n",relevance:0},C={begin:"\\[",end:"\\]",contains:[f],illegal:"\\n",relevance:0},h=[o,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+i},{className:"type",begin:"!<"+i+">"},{className:"type",begin:"!"+i},{className:"type",begin:"!!"+i},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:n,keywords:{literal:n}},E,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},S,C,l],T=[...h];return T.pop(),T.push(c),f.contains=T,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:h}}return Jp=t,Jp}var jp,iC;function iIe(){if(iC)return jp;iC=1;function t(e){return{name:"Test Anything Protocol",case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:/---$/,end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}return jp=t,jp}var em,aC;function aIe(){if(aC)return em;aC=1;function t(e){const n=e.regex,i=/[a-zA-Z_][a-zA-Z0-9_]*/,o={className:"number",variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{name:"Tcl",aliases:["tk"],keywords:["after","append","apply","array","auto_execok","auto_import","auto_load","auto_mkindex","auto_mkindex_old","auto_qualify","auto_reset","bgerror","binary","break","catch","cd","chan","clock","close","concat","continue","dde","dict","encoding","eof","error","eval","exec","exit","expr","fblocked","fconfigure","fcopy","file","fileevent","filename","flush","for","foreach","format","gets","glob","global","history","http","if","incr","info","interp","join","lappend|10","lassign|10","lindex|10","linsert|10","list","llength|10","load","lrange|10","lrepeat|10","lreplace|10","lreverse|10","lsearch|10","lset|10","lsort|10","mathfunc","mathop","memory","msgcat","namespace","open","package","parray","pid","pkg::create","pkg_mkIndex","platform","platform::shell","proc","puts","pwd","read","refchan","regexp","registry","regsub|10","rename","return","safe","scan","seek","set","socket","source","split","string","subst","switch","tcl_endOfWord","tcl_findLibrary","tcl_startOfNextWord","tcl_startOfPreviousWord","tcl_wordBreakAfter","tcl_wordBreakBefore","tcltest","tclvars","tell","time","tm","trace","unknown","unload","unset","update","uplevel","upvar","variable","vwait","while"],contains:[e.COMMENT(";[ \\t]*#","$"),e.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{className:"variable",variants:[{begin:n.concat(/\$/,n.optional(/::/),i,"(::",i,")*")},{begin:"\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"\\}",contains:[o]}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},o]}}return em=t,em}var tm,oC;function oIe(){if(oC)return tm;oC=1;function t(e){const n=["bool","byte","i16","i32","i64","double","string","binary"];return{name:"Thrift",keywords:{keyword:["namespace","const","typedef","struct","enum","service","exception","void","oneway","set","list","map","required","optional"],type:n,literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",keywords:{type:[...n,"set","list","map"]},end:">",contains:["self"]}]}}return tm=t,tm}var nm,sC;function sIe(){if(sC)return nm;sC=1;function t(e){const n={className:"number",begin:"[1-9][0-9]*",relevance:0},i={className:"symbol",begin:":[^\\]]+"},o={className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",n,i]},s={className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",n,e.QUOTE_STRING_MODE,i]};return{name:"TP",keywords:{keyword:["ABORT","ACC","ADJUST","AND","AP_LD","BREAK","CALL","CNT","COL","CONDITION","CONFIG","DA","DB","DIV","DETECT","ELSE","END","ENDFOR","ERR_NUM","ERROR_PROG","FINE","FOR","GP","GUARD","INC","IF","JMP","LINEAR_MAX_SPEED","LOCK","MOD","MONITOR","OFFSET","Offset","OR","OVERRIDE","PAUSE","PREG","PTH","RT_LD","RUN","SELECT","SKIP","Skip","TA","TB","TO","TOOL_OFFSET","Tool_Offset","UF","UT","UFRAME_NUM","UTOOL_NUM","UNLOCK","WAIT","X","Y","Z","W","P","R","STRLEN","SUBSTR","FINDSTR","VOFFSET","PROG","ATTR","MN","POS"],literal:["ON","OFF","max_speed","LPOS","JPOS","ENABLE","DISABLE","START","STOP","RESET"]},contains:[o,s,{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},e.COMMENT("//","[;$]"),e.COMMENT("!","[;$]"),e.COMMENT("--eg:","$"),e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},e.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}}return nm=t,nm}var rm,lC;function lIe(){if(lC)return rm;lC=1;function t(e){const n=e.regex,i=["absolute_url","asset|0","asset_version","attribute","block","constant","controller|0","country_timezones","csrf_token","cycle","date","dump","expression","form|0","form_end","form_errors","form_help","form_label","form_rest","form_row","form_start","form_widget","html_classes","include","is_granted","logout_path","logout_url","max","min","parent","path|0","random","range","relative_path","render","render_esi","source","template_from_string","url|0"],o=["abs","abbr_class","abbr_method","batch","capitalize","column","convert_encoding","country_name","currency_name","currency_symbol","data_uri","date","date_modify","default","escape","file_excerpt","file_link","file_relative","filter","first","format","format_args","format_args_as_text","format_currency","format_date","format_datetime","format_file","format_file_from_text","format_number","format_time","html_to_markdown","humanize","inky_to_html","inline_css","join","json_encode","keys","language_name","last","length","locale_name","lower","map","markdown","markdown_to_html","merge","nl2br","number_format","raw","reduce","replace","reverse","round","slice","slug","sort","spaceless","split","striptags","timezone_name","title","trans","transchoice","trim","u|0","upper","url_encode","yaml_dump","yaml_encode"];let s=["apply","autoescape","block","cache","deprecated","do","embed","extends","filter","flush","for","form_theme","from","if","import","include","macro","sandbox","set","stopwatch","trans","trans_default_domain","transchoice","use","verbatim","with"];s=s.concat(s.map(C=>`end${C}`));const l={scope:"string",variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},c={scope:"number",match:/\d+/},d={begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[l,c]},_={beginKeywords:i.join(" "),keywords:{name:i},relevance:0,contains:[d]},p={match:/\|(?=[A-Za-z_]+:?)/,beginScope:"punctuation",relevance:0,contains:[{match:/[A-Za-z_]+:?/,keywords:o}]},g=(C,{relevance:h})=>({beginScope:{1:"template-tag",3:"name"},relevance:h||2,endScope:"template-tag",begin:[/\{%/,/\s*/,n.either(...C)],end:/%\}/,keywords:"in",contains:[p,_,l,c]}),E=/[a-z_]+/,f=g(s,{relevance:2}),S=g([E],{relevance:1});return{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{#/,/#\}/),f,S,{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",p,_,l,c]}]}}return rm=t,rm}var im,cC;function cIe(){if(cC)return im;cC=1;const t="[A-Za-z$_][0-9A-Za-z$_]*",e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],i=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],o=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],s=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],l=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],c=[].concat(s,i,o);function d(p){const g=p.regex,E=(xe,{after:He})=>{const rt="",end:""},C=/<[A-Za-z0-9\\._:-]+\s*\/>/,h={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(xe,He)=>{const rt=xe[0].length+xe.index,We=xe.input[rt];if(We==="<"||We===","){He.ignoreMatch();return}We===">"&&(E(xe,{after:rt})||He.ignoreMatch());let te;const pe=xe.input.substring(rt);if(te=pe.match(/^\s*=/)){He.ignoreMatch();return}if((te=pe.match(/^\s+extends\s+/))&&te.index===0){He.ignoreMatch();return}}},T={$pattern:t,keyword:e,literal:n,built_in:c,"variable.language":l},N="[0-9](_?[0-9])*",y=`\\.(${N})`,x="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",P={className:"number",variants:[{begin:`(\\b(${x})((${y})|\\.)?|(${y}))[eE][+-]?(${N})\\b`},{begin:`\\b(${x})\\b((${y})\\b|\\.)?|(${y})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},D={className:"subst",begin:"\\$\\{",end:"\\}",keywords:T,contains:[]},k={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,D],subLanguage:"xml"}},U={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,D],subLanguage:"css"}},W={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,D],subLanguage:"graphql"}},z={className:"string",begin:"`",end:"`",contains:[p.BACKSLASH_ESCAPE,D]},Ee={className:"comment",variants:[p.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:f+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),p.C_BLOCK_COMMENT_MODE,p.C_LINE_COMMENT_MODE]},oe=[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,k,U,W,z,{match:/\$\d+/},P];D.contains=oe.concat({begin:/\{/,end:/\}/,keywords:T,contains:["self"].concat(oe)});const L=[].concat(Ee,D.contains),J=L.concat([{begin:/\(/,end:/\)/,keywords:T,contains:["self"].concat(L)}]),re={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:T,contains:J},G={variants:[{match:[/class/,/\s+/,f,/\s+/,/extends/,/\s+/,g.concat(f,"(",g.concat(/\./,f),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,f],scope:{1:"keyword",3:"title.class"}}]},X={relevance:0,match:g.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...i,...o]}},_e={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},ve={variants:[{match:[/function/,/\s+/,f,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[re],illegal:/%/},he={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function tt(xe){return g.concat("(?!",xe.join("|"),")")}const lt={match:g.concat(/\b/,tt([...s,"super","import"]),f,g.lookahead(/\(/)),className:"title.function",relevance:0},$e={begin:g.concat(/\./,g.lookahead(g.concat(f,/(?![0-9A-Za-z$_(])/))),end:f,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Ce={match:[/get|set/,/\s+/,f,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},re]},Be="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+p.UNDERSCORE_IDENT_RE+")\\s*=>",Ve={match:[/const|var|let/,/\s+/,f,/\s*/,/=\s*/,/(async\s*)?/,g.lookahead(Be)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[re]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:T,exports:{PARAMS_CONTAINS:J,CLASS_REFERENCE:X},illegal:/#(?![$_A-z])/,contains:[p.SHEBANG({label:"shebang",binary:"node",relevance:5}),_e,p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,k,U,W,z,Ee,{match:/\$\d+/},P,X,{className:"attr",begin:f+g.lookahead(":"),relevance:0},Ve,{begin:"("+p.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[Ee,p.REGEXP_MODE,{className:"function",begin:Be,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:p.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:T,contains:J}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:S.begin,end:S.end},{match:C},{begin:h.begin,"on:begin":h.isTrulyOpeningTag,end:h.end}],subLanguage:"xml",contains:[{begin:h.begin,end:h.end,skip:!0,contains:["self"]}]}]},ve,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+p.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[re,p.inherit(p.TITLE_MODE,{begin:f,className:"title.function"})]},{match:/\.\.\./,relevance:0},$e,{match:"\\$"+f,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[re]},lt,he,G,Ce,{match:/\$[(.]/}]}}function _(p){const g=d(p),E=t,f=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],S={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[g.exports.CLASS_REFERENCE]},C={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:f},contains:[g.exports.CLASS_REFERENCE]},h={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},T=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],N={$pattern:t,keyword:e.concat(T),literal:n,built_in:c.concat(f),"variable.language":l},y={className:"meta",begin:"@"+E},x=(D,k,U)=>{const W=D.contains.findIndex(z=>z.label===k);if(W===-1)throw new Error("can not find mode to replace");D.contains.splice(W,1,U)};Object.assign(g.keywords,N),g.exports.PARAMS_CONTAINS.push(y),g.contains=g.contains.concat([y,S,C]),x(g,"shebang",p.SHEBANG()),x(g,"use_strict",h);const P=g.contains.find(D=>D.label==="func.def");return P.relevance=0,Object.assign(g,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),g}return im=_,im}var am,uC;function uIe(){if(uC)return am;uC=1;function t(e){return{name:"Vala",keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:/\{/,excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[e.UNDERSCORE_TITLE_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$"}]}}return am=t,am}var om,dC;function dIe(){if(dC)return om;dC=1;function t(e){const n=e.regex,i={className:"string",begin:/"(""|[^/n])"C\b/},o={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},s=/\d{1,2}\/\d{1,2}\/\d{4}/,l=/\d{4}-\d{1,2}-\d{1,2}/,c=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,d=/\d{1,2}(:\d{1,2}){1,2}/,_={className:"literal",variants:[{begin:n.concat(/# */,n.either(l,s),/ *#/)},{begin:n.concat(/# */,d,/ *#/)},{begin:n.concat(/# */,c,/ *#/)},{begin:n.concat(/# */,n.either(l,s),/ +/,n.either(c,d),/ *#/)}]},p={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},g={className:"label",begin:/^\w+:/},E=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),f=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[i,o,_,p,g,E,f,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[f]}]}}return om=t,om}var sm,_C;function _Ie(){if(_C)return sm;_C=1;function t(e){const n=e.regex,i=["lcase","month","vartype","instrrev","ubound","setlocale","getobject","rgb","getref","string","weekdayname","rnd","dateadd","monthname","now","day","minute","isarray","cbool","round","formatcurrency","conversions","csng","timevalue","second","year","space","abs","clng","timeserial","fixs","len","asc","isempty","maths","dateserial","atn","timer","isobject","filter","weekday","datevalue","ccur","isdate","instr","datediff","formatdatetime","replace","isnull","right","sgn","array","snumeric","log","cdbl","hex","chr","lbound","msgbox","ucase","getlocale","cos","cdate","cbyte","rtrim","join","hour","oct","typename","trim","strcomp","int","createobject","loadpicture","tan","formatnumber","mid","split","cint","sin","datepart","ltrim","sqr","time","derived","eval","date","formatpercent","exp","inputbox","left","ascw","chrw","regexp","cstr","err"],o=["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],s={begin:n.concat(n.either(...i),"\\s*\\("),relevance:0,keywords:{built_in:i}};return{name:"VBScript",aliases:["vbs"],case_insensitive:!0,keywords:{keyword:["call","class","const","dim","do","loop","erase","execute","executeglobal","exit","for","each","next","function","if","then","else","on","error","option","explicit","new","private","property","let","get","public","randomize","redim","rem","select","case","set","stop","sub","while","wend","with","end","to","elseif","is","or","xor","and","not","class_initialize","class_terminate","default","preserve","in","me","byval","byref","step","resume","goto"],built_in:o,literal:["true","false","null","nothing","empty"]},illegal:"//",contains:[s,e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}}return sm=t,sm}var lm,pC;function pIe(){if(pC)return lm;pC=1;function t(e){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}return lm=t,lm}var cm,mC;function mIe(){if(mC)return cm;mC=1;function t(e){const n=e.regex,i={$pattern:/\$?[\w]+(\$[\w]+)*/,keyword:["accept_on","alias","always","always_comb","always_ff","always_latch","and","assert","assign","assume","automatic","before","begin","bind","bins","binsof","bit","break","buf|0","bufif0","bufif1","byte","case","casex","casez","cell","chandle","checker","class","clocking","cmos","config","const","constraint","context","continue","cover","covergroup","coverpoint","cross","deassign","default","defparam","design","disable","dist","do","edge","else","end","endcase","endchecker","endclass","endclocking","endconfig","endfunction","endgenerate","endgroup","endinterface","endmodule","endpackage","endprimitive","endprogram","endproperty","endspecify","endsequence","endtable","endtask","enum","event","eventually","expect","export","extends","extern","final","first_match","for","force","foreach","forever","fork","forkjoin","function","generate|5","genvar","global","highz0","highz1","if","iff","ifnone","ignore_bins","illegal_bins","implements","implies","import","incdir","include","initial","inout","input","inside","instance","int","integer","interconnect","interface","intersect","join","join_any","join_none","large","let","liblist","library","local","localparam","logic","longint","macromodule","matches","medium","modport","module","nand","negedge","nettype","new","nexttime","nmos","nor","noshowcancelled","not","notif0","notif1","or","output","package","packed","parameter","pmos","posedge","primitive","priority","program","property","protected","pull0","pull1","pulldown","pullup","pulsestyle_ondetect","pulsestyle_onevent","pure","rand","randc","randcase","randsequence","rcmos","real","realtime","ref","reg","reject_on","release","repeat","restrict","return","rnmos","rpmos","rtran","rtranif0","rtranif1","s_always","s_eventually","s_nexttime","s_until","s_until_with","scalared","sequence","shortint","shortreal","showcancelled","signed","small","soft","solve","specify","specparam","static","string","strong","strong0","strong1","struct","super","supply0","supply1","sync_accept_on","sync_reject_on","table","tagged","task","this","throughout","time","timeprecision","timeunit","tran","tranif0","tranif1","tri","tri0","tri1","triand","trior","trireg","type","typedef","union","unique","unique0","unsigned","until","until_with","untyped","use","uwire","var","vectored","virtual","void","wait","wait_order","wand","weak","weak0","weak1","while","wildcard","wire","with","within","wor","xnor","xor"],literal:["null"],built_in:["$finish","$stop","$exit","$fatal","$error","$warning","$info","$realtime","$time","$printtimescale","$bitstoreal","$bitstoshortreal","$itor","$signed","$cast","$bits","$stime","$timeformat","$realtobits","$shortrealtobits","$rtoi","$unsigned","$asserton","$assertkill","$assertpasson","$assertfailon","$assertnonvacuouson","$assertoff","$assertcontrol","$assertpassoff","$assertfailoff","$assertvacuousoff","$isunbounded","$sampled","$fell","$changed","$past_gclk","$fell_gclk","$changed_gclk","$rising_gclk","$steady_gclk","$coverage_control","$coverage_get","$coverage_save","$set_coverage_db_name","$rose","$stable","$past","$rose_gclk","$stable_gclk","$future_gclk","$falling_gclk","$changing_gclk","$display","$coverage_get_max","$coverage_merge","$get_coverage","$load_coverage_db","$typename","$unpacked_dimensions","$left","$low","$increment","$clog2","$ln","$log10","$exp","$sqrt","$pow","$floor","$ceil","$sin","$cos","$tan","$countbits","$onehot","$isunknown","$fatal","$warning","$dimensions","$right","$high","$size","$asin","$acos","$atan","$atan2","$hypot","$sinh","$cosh","$tanh","$asinh","$acosh","$atanh","$countones","$onehot0","$error","$info","$random","$dist_chi_square","$dist_erlang","$dist_exponential","$dist_normal","$dist_poisson","$dist_t","$dist_uniform","$q_initialize","$q_remove","$q_exam","$async$and$array","$async$nand$array","$async$or$array","$async$nor$array","$sync$and$array","$sync$nand$array","$sync$or$array","$sync$nor$array","$q_add","$q_full","$psprintf","$async$and$plane","$async$nand$plane","$async$or$plane","$async$nor$plane","$sync$and$plane","$sync$nand$plane","$sync$or$plane","$sync$nor$plane","$system","$display","$displayb","$displayh","$displayo","$strobe","$strobeb","$strobeh","$strobeo","$write","$readmemb","$readmemh","$writememh","$value$plusargs","$dumpvars","$dumpon","$dumplimit","$dumpports","$dumpportson","$dumpportslimit","$writeb","$writeh","$writeo","$monitor","$monitorb","$monitorh","$monitoro","$writememb","$dumpfile","$dumpoff","$dumpall","$dumpflush","$dumpportsoff","$dumpportsall","$dumpportsflush","$fclose","$fdisplay","$fdisplayb","$fdisplayh","$fdisplayo","$fstrobe","$fstrobeb","$fstrobeh","$fstrobeo","$swrite","$swriteb","$swriteh","$swriteo","$fscanf","$fread","$fseek","$fflush","$feof","$fopen","$fwrite","$fwriteb","$fwriteh","$fwriteo","$fmonitor","$fmonitorb","$fmonitorh","$fmonitoro","$sformat","$sformatf","$fgetc","$ungetc","$fgets","$sscanf","$rewind","$ftell","$ferror"]},o=["__FILE__","__LINE__"],s=["begin_keywords","celldefine","default_nettype","default_decay_time","default_trireg_strength","define","delay_mode_distributed","delay_mode_path","delay_mode_unit","delay_mode_zero","else","elsif","end_keywords","endcelldefine","endif","ifdef","ifndef","include","line","nounconnected_drive","pragma","resetall","timescale","unconnected_drive","undef","undefineall"];return{name:"Verilog",aliases:["v","sv","svh"],case_insensitive:!1,keywords:i,contains:[e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,{scope:"number",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/\b((\d+'([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\B(('([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\b[0-9][0-9_]*/,relevance:0}]},{scope:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{scope:"variable.constant",match:n.concat(/`/,n.either(...o))},{scope:"meta",begin:n.concat(/`/,n.either(...s)),end:/$|\/\/|\/\*/,returnEnd:!0,keywords:s}]}}return cm=t,cm}var um,gC;function gIe(){if(gC)return um;gC=1;function t(e){const n="\\d(_|\\d)*",i="[eE][-+]?"+n,o=n+"(\\."+n+")?("+i+")?",s="\\w+",c="\\b("+(n+"#"+s+"(\\."+s+")?#("+i+")?")+"|"+o+")";return{name:"VHDL",case_insensitive:!0,keywords:{keyword:["abs","access","after","alias","all","and","architecture","array","assert","assume","assume_guarantee","attribute","begin","block","body","buffer","bus","case","component","configuration","constant","context","cover","disconnect","downto","default","else","elsif","end","entity","exit","fairness","file","for","force","function","generate","generic","group","guarded","if","impure","in","inertial","inout","is","label","library","linkage","literal","loop","map","mod","nand","new","next","nor","not","null","of","on","open","or","others","out","package","parameter","port","postponed","procedure","process","property","protected","pure","range","record","register","reject","release","rem","report","restrict","restrict_guarantee","return","rol","ror","select","sequence","severity","shared","signal","sla","sll","sra","srl","strong","subtype","then","to","transport","type","unaffected","units","until","use","variable","view","vmode","vprop","vunit","wait","when","while","with","xnor","xor"],built_in:["boolean","bit","character","integer","time","delay_length","natural","positive","string","bit_vector","file_open_kind","file_open_status","std_logic","std_logic_vector","unsigned","signed","boolean_vector","integer_vector","std_ulogic","std_ulogic_vector","unresolved_unsigned","u_unsigned","unresolved_signed","u_signed","real_vector","time_vector"],literal:["false","true","note","warning","error","failure","line","text","side","width"]},illegal:/\{/,contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT("--","$"),e.QUOTE_STRING_MODE,{className:"number",begin:c,relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[e.BACKSLASH_ESCAPE]}]}}return um=t,um}var dm,EC;function EIe(){if(EC)return dm;EC=1;function t(e){return{name:"Vim Script",keywords:{$pattern:/[!#@\w]+/,keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp"},illegal:/;/,contains:[e.NUMBER_MODE,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},e.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]+/},{begin:[/\b(?:function|function!)/,/\s+/,e.IDENT_RE],className:{1:"keyword",3:"title"},end:"$",relevance:0,contains:[{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}}return dm=t,dm}var _m,fC;function fIe(){if(fC)return _m;fC=1;function t(e){e.regex;const n=e.COMMENT(/\(;/,/;\)/);n.contains.push("self");const i=e.COMMENT(/;;/,/$/),o=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],s={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},l={className:"variable",begin:/\$[\w_]+/},c={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},d={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},_={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},p={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:o},contains:[i,n,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},l,c,s,e.QUOTE_STRING_MODE,_,p,d]}}return _m=t,_m}var pm,SC;function SIe(){if(SC)return pm;SC=1;function t(e){const n=e.regex,i=/[a-zA-Z]\w*/,o=["as","break","class","construct","continue","else","for","foreign","if","import","in","is","return","static","var","while"],s=["true","false","null"],l=["this","super"],c=["Bool","Class","Fiber","Fn","List","Map","Null","Num","Object","Range","Sequence","String","System"],d=["-","~",/\*/,"%",/\.\.\./,/\.\./,/\+/,"<<",">>",">=","<=","<",">",/\^/,/!=/,/!/,/\bis\b/,"==","&&","&",/\|\|/,/\|/,/\?:/,"="],_={relevance:0,match:n.concat(/\b(?!(if|while|for|else|super)\b)/,i,/(?=\s*[({])/),className:"title.function"},p={match:n.concat(n.either(n.concat(/\b(?!(if|while|for|else|super)\b)/,i),n.either(...d)),/(?=\s*\([^)]+\)\s*\{)/),className:"title.function",starts:{contains:[{begin:/\(/,end:/\)/,contains:[{relevance:0,scope:"params",match:i}]}]}},g={variants:[{match:[/class\s+/,i,/\s+is\s+/,i]},{match:[/class\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},E={relevance:0,match:n.either(...d),className:"operator"},f={className:"string",begin:/"""/,end:/"""/},S={className:"property",begin:n.concat(/\./,n.lookahead(i)),end:i,excludeBegin:!0,relevance:0},C={relevance:0,match:n.concat(/\b_/,i),scope:"variable"},h={relevance:0,match:/\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,scope:"title.class",keywords:{_:c}},T=e.C_NUMBER_MODE,N={match:[i,/\s*/,/=/,/\s*/,/\(/,i,/\)\s*\{/],scope:{1:"title.function",3:"operator",6:"params"}},y=e.COMMENT(/\/\*\*/,/\*\//,{contains:[{match:/@[a-z]+/,scope:"doctag"},"self"]}),x={scope:"subst",begin:/%\(/,end:/\)/,contains:[T,h,_,C,E]},P={scope:"string",begin:/"/,end:/"/,contains:[x,{scope:"char.escape",variants:[{match:/\\\\|\\["0%abefnrtv]/},{match:/\\x[0-9A-F]{2}/},{match:/\\u[0-9A-F]{4}/},{match:/\\U[0-9A-F]{8}/}]}]};x.contains.push(P);const D=[...o,...l,...s],k={relevance:0,match:n.concat("\\b(?!",D.join("|"),"\\b)",/[a-zA-Z_]\w*(?:[?!]|\b)/),className:"variable"};return{name:"Wren",keywords:{keyword:o,"variable.language":l,literal:s},contains:[{scope:"comment",variants:[{begin:[/#!?/,/[A-Za-z_]+(?=\()/],beginScope:{},keywords:{literal:s},contains:[],end:/\)/},{begin:[/#!?/,/[A-Za-z_]+/],beginScope:{},end:/$/}]},T,P,f,y,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,h,g,N,p,_,E,C,S,k]}}return pm=t,pm}var mm,bC;function bIe(){if(bC)return mm;bC=1;function t(e){return{name:"Intel x86 Assembly",case_insensitive:!0,keywords:{$pattern:"[.%]?"+e.IDENT_RE,keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[e.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}}return mm=t,mm}var gm,hC;function hIe(){if(hC)return gm;hC=1;function t(e){const n=["if","then","else","do","while","until","for","loop","import","with","is","as","where","when","by","data","constant","integer","real","text","name","boolean","symbol","infix","prefix","postfix","block","tree"],i=["in","mod","rem","and","or","xor","not","abs","sign","floor","ceil","sqrt","sin","cos","tan","asin","acos","atan","exp","expm1","log","log2","log10","log1p","pi","at","text_length","text_range","text_find","text_replace","contains","page","slide","basic_slide","title_slide","title","subtitle","fade_in","fade_out","fade_at","clear_color","color","line_color","line_width","texture_wrap","texture_transform","texture","scale_?x","scale_?y","scale_?z?","translate_?x","translate_?y","translate_?z?","rotate_?x","rotate_?y","rotate_?z?","rectangle","circle","ellipse","sphere","path","line_to","move_to","quad_to","curve_to","theme","background","contents","locally","time","mouse_?x","mouse_?y","mouse_buttons"],o=["ObjectLoader","Animate","MovieCredits","Slides","Filters","Shading","Materials","LensFlare","Mapping","VLCAudioVideo","StereoDecoder","PointCloud","NetworkAccess","RemoteControl","RegExp","ChromaKey","Snowfall","NodeJS","Speech","Charts"],l={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:n,literal:["true","false","nil"],built_in:i.concat(o)},c={className:"string",begin:'"',end:'"',illegal:"\\n"},d={className:"string",begin:"'",end:"'",illegal:"\\n"},_={className:"string",begin:"<<",end:">>"},p={className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},g={beginKeywords:"import",end:"$",keywords:l,contains:[c]},E={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:l}})]};return{name:"XL",aliases:["tao"],keywords:l,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,c,d,_,E,g,p,e.NUMBER_MODE]}}return gm=t,gm}var Em,TC;function TIe(){if(TC)return Em;TC=1;function t(e){return{name:"XQuery",aliases:["xpath","xq"],case_insensitive:!1,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{$pattern:/[a-zA-Z$][a-zA-Z0-9_:-]*/,keyword:["module","schema","namespace","boundary-space","preserve","no-preserve","strip","default","collation","base-uri","ordering","context","decimal-format","decimal-separator","copy-namespaces","empty-sequence","except","exponent-separator","external","grouping-separator","inherit","no-inherit","lax","minus-sign","per-mille","percent","schema-attribute","schema-element","strict","unordered","zero-digit","declare","import","option","function","validate","variable","for","at","in","let","where","order","group","by","return","if","then","else","tumbling","sliding","window","start","when","only","end","previous","next","stable","ascending","descending","allowing","empty","greatest","least","some","every","satisfies","switch","case","typeswitch","try","catch","and","or","to","union","intersect","instance","of","treat","as","castable","cast","map","array","delete","insert","into","replace","value","rename","copy","modify","update"],type:["item","document-node","node","attribute","document","element","comment","namespace","namespace-node","processing-instruction","text","construction","xs:anyAtomicType","xs:untypedAtomic","xs:duration","xs:time","xs:decimal","xs:float","xs:double","xs:gYearMonth","xs:gYear","xs:gMonthDay","xs:gMonth","xs:gDay","xs:boolean","xs:base64Binary","xs:hexBinary","xs:anyURI","xs:QName","xs:NOTATION","xs:dateTime","xs:dateTimeStamp","xs:date","xs:string","xs:normalizedString","xs:token","xs:language","xs:NMTOKEN","xs:Name","xs:NCName","xs:ID","xs:IDREF","xs:ENTITY","xs:integer","xs:nonPositiveInteger","xs:negativeInteger","xs:long","xs:int","xs:short","xs:byte","xs:nonNegativeInteger","xs:unisignedLong","xs:unsignedInt","xs:unsignedShort","xs:unsignedByte","xs:positiveInteger","xs:yearMonthDuration","xs:dayTimeDuration"],literal:["eq","ne","lt","le","gt","ge","is","self::","child::","descendant::","descendant-or-self::","attribute::","following::","following-sibling::","parent::","ancestor::","ancestor-or-self::","preceding::","preceding-sibling::","NaN"]},contains:[{className:"variable",begin:/[$][\w\-:]+/},{className:"built_in",variants:[{begin:/\barray:/,end:/(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{begin:/\bmap:/,end:/(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\b/},{begin:/\bmath:/,end:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{begin:/\bop:/,end:/\(/,excludeEnd:!0},{begin:/\bfn:/,end:/\(/,excludeEnd:!0},{begin:/[^/,end:/(\/[\w._:-]+>)/,subLanguage:"xml",contains:[{begin:/\{/,end:/\}/,subLanguage:"xquery"},"self"]}]}}return Em=t,Em}var fm,vC;function vIe(){if(vC)return fm;vC=1;function t(e){const n={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},i=e.UNDERSCORE_TITLE_MODE,o={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},s="namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined";return{name:"Zephir",aliases:["zep"],keywords:s,contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{contains:[{className:"doctag",begin:/@[A-Za-z]+/}]}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;/,contains:[e.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function fn",end:/[;{]/,excludeEnd:!0,illegal:/\$|\[|%/,contains:[i,{className:"params",begin:/\(/,end:/\)/,keywords:s,contains:["self",e.C_BLOCK_COMMENT_MODE,n,o]}]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},i]},{beginKeywords:"namespace",end:/;/,illegal:/[.']/,contains:[i]},{beginKeywords:"use",end:/;/,contains:[i]},{begin:/=>/},n,o]}}return fm=t,fm}var I=VNe;I.registerLanguage("1c",WNe());I.registerLanguage("abnf",KNe());I.registerLanguage("accesslog",QNe());I.registerLanguage("actionscript",XNe());I.registerLanguage("ada",ZNe());I.registerLanguage("angelscript",JNe());I.registerLanguage("apache",jNe());I.registerLanguage("applescript",eOe());I.registerLanguage("arcade",tOe());I.registerLanguage("arduino",nOe());I.registerLanguage("armasm",rOe());I.registerLanguage("xml",iOe());I.registerLanguage("asciidoc",aOe());I.registerLanguage("aspectj",oOe());I.registerLanguage("autohotkey",sOe());I.registerLanguage("autoit",lOe());I.registerLanguage("avrasm",cOe());I.registerLanguage("awk",uOe());I.registerLanguage("axapta",dOe());I.registerLanguage("bash",_Oe());I.registerLanguage("basic",pOe());I.registerLanguage("bnf",mOe());I.registerLanguage("brainfuck",gOe());I.registerLanguage("c",EOe());I.registerLanguage("cal",fOe());I.registerLanguage("capnproto",SOe());I.registerLanguage("ceylon",bOe());I.registerLanguage("clean",hOe());I.registerLanguage("clojure",TOe());I.registerLanguage("clojure-repl",vOe());I.registerLanguage("cmake",COe());I.registerLanguage("coffeescript",ROe());I.registerLanguage("coq",NOe());I.registerLanguage("cos",OOe());I.registerLanguage("cpp",AOe());I.registerLanguage("crmsh",yOe());I.registerLanguage("crystal",IOe());I.registerLanguage("csharp",DOe());I.registerLanguage("csp",xOe());I.registerLanguage("css",wOe());I.registerLanguage("d",MOe());I.registerLanguage("markdown",LOe());I.registerLanguage("dart",POe());I.registerLanguage("delphi",kOe());I.registerLanguage("diff",UOe());I.registerLanguage("django",FOe());I.registerLanguage("dns",BOe());I.registerLanguage("dockerfile",GOe());I.registerLanguage("dos",YOe());I.registerLanguage("dsconfig",qOe());I.registerLanguage("dts",$Oe());I.registerLanguage("dust",HOe());I.registerLanguage("ebnf",zOe());I.registerLanguage("elixir",VOe());I.registerLanguage("elm",WOe());I.registerLanguage("ruby",KOe());I.registerLanguage("erb",QOe());I.registerLanguage("erlang-repl",XOe());I.registerLanguage("erlang",ZOe());I.registerLanguage("excel",JOe());I.registerLanguage("fix",jOe());I.registerLanguage("flix",eAe());I.registerLanguage("fortran",tAe());I.registerLanguage("fsharp",nAe());I.registerLanguage("gams",rAe());I.registerLanguage("gauss",iAe());I.registerLanguage("gcode",aAe());I.registerLanguage("gherkin",oAe());I.registerLanguage("glsl",sAe());I.registerLanguage("gml",lAe());I.registerLanguage("go",cAe());I.registerLanguage("golo",uAe());I.registerLanguage("gradle",dAe());I.registerLanguage("graphql",_Ae());I.registerLanguage("groovy",pAe());I.registerLanguage("haml",mAe());I.registerLanguage("handlebars",gAe());I.registerLanguage("haskell",EAe());I.registerLanguage("haxe",fAe());I.registerLanguage("hsp",SAe());I.registerLanguage("http",bAe());I.registerLanguage("hy",hAe());I.registerLanguage("inform7",TAe());I.registerLanguage("ini",vAe());I.registerLanguage("irpf90",CAe());I.registerLanguage("isbl",RAe());I.registerLanguage("java",NAe());I.registerLanguage("javascript",OAe());I.registerLanguage("jboss-cli",AAe());I.registerLanguage("json",yAe());I.registerLanguage("julia",IAe());I.registerLanguage("julia-repl",DAe());I.registerLanguage("kotlin",xAe());I.registerLanguage("lasso",wAe());I.registerLanguage("latex",MAe());I.registerLanguage("ldif",LAe());I.registerLanguage("leaf",PAe());I.registerLanguage("less",kAe());I.registerLanguage("lisp",UAe());I.registerLanguage("livecodeserver",FAe());I.registerLanguage("livescript",BAe());I.registerLanguage("llvm",GAe());I.registerLanguage("lsl",YAe());I.registerLanguage("lua",qAe());I.registerLanguage("makefile",$Ae());I.registerLanguage("mathematica",HAe());I.registerLanguage("matlab",zAe());I.registerLanguage("maxima",VAe());I.registerLanguage("mel",WAe());I.registerLanguage("mercury",KAe());I.registerLanguage("mipsasm",QAe());I.registerLanguage("mizar",XAe());I.registerLanguage("perl",ZAe());I.registerLanguage("mojolicious",JAe());I.registerLanguage("monkey",jAe());I.registerLanguage("moonscript",eye());I.registerLanguage("n1ql",tye());I.registerLanguage("nestedtext",nye());I.registerLanguage("nginx",rye());I.registerLanguage("nim",iye());I.registerLanguage("nix",aye());I.registerLanguage("node-repl",oye());I.registerLanguage("nsis",sye());I.registerLanguage("objectivec",lye());I.registerLanguage("ocaml",cye());I.registerLanguage("openscad",uye());I.registerLanguage("oxygene",dye());I.registerLanguage("parser3",_ye());I.registerLanguage("pf",pye());I.registerLanguage("pgsql",mye());I.registerLanguage("php",gye());I.registerLanguage("php-template",Eye());I.registerLanguage("plaintext",fye());I.registerLanguage("pony",Sye());I.registerLanguage("powershell",bye());I.registerLanguage("processing",hye());I.registerLanguage("profile",Tye());I.registerLanguage("prolog",vye());I.registerLanguage("properties",Cye());I.registerLanguage("protobuf",Rye());I.registerLanguage("puppet",Nye());I.registerLanguage("purebasic",Oye());I.registerLanguage("python",Aye());I.registerLanguage("python-repl",yye());I.registerLanguage("q",Iye());I.registerLanguage("qml",Dye());I.registerLanguage("r",xye());I.registerLanguage("reasonml",wye());I.registerLanguage("rib",Mye());I.registerLanguage("roboconf",Lye());I.registerLanguage("routeros",Pye());I.registerLanguage("rsl",kye());I.registerLanguage("ruleslanguage",Uye());I.registerLanguage("rust",Fye());I.registerLanguage("sas",Bye());I.registerLanguage("scala",Gye());I.registerLanguage("scheme",Yye());I.registerLanguage("scilab",qye());I.registerLanguage("scss",$ye());I.registerLanguage("shell",Hye());I.registerLanguage("smali",zye());I.registerLanguage("smalltalk",Vye());I.registerLanguage("sml",Wye());I.registerLanguage("sqf",Kye());I.registerLanguage("sql",Qye());I.registerLanguage("stan",Xye());I.registerLanguage("stata",Zye());I.registerLanguage("step21",Jye());I.registerLanguage("stylus",jye());I.registerLanguage("subunit",eIe());I.registerLanguage("swift",tIe());I.registerLanguage("taggerscript",nIe());I.registerLanguage("yaml",rIe());I.registerLanguage("tap",iIe());I.registerLanguage("tcl",aIe());I.registerLanguage("thrift",oIe());I.registerLanguage("tp",sIe());I.registerLanguage("twig",lIe());I.registerLanguage("typescript",cIe());I.registerLanguage("vala",uIe());I.registerLanguage("vbnet",dIe());I.registerLanguage("vbscript",_Ie());I.registerLanguage("vbscript-html",pIe());I.registerLanguage("verilog",mIe());I.registerLanguage("vhdl",gIe());I.registerLanguage("vim",EIe());I.registerLanguage("wasm",fIe());I.registerLanguage("wren",SIe());I.registerLanguage("x86asm",bIe());I.registerLanguage("xl",hIe());I.registerLanguage("xquery",TIe());I.registerLanguage("zephir",vIe());I.HighlightJS=I;I.default=I;var CIe=I;const CC=Qm(CIe);const RIe={class:"operation_wrap"},NIe=be({__name:"operateWrap",props:{operate:{},content:{}},setup(t){const e=t,n={copy:IC,download:CM},i=ee(!1),o=()=>{i.value=!0,setTimeout(()=>{i.value=!1},1e3)},s=le(()=>{const{operate:_}=e;return _?n[_]:""}),l=()=>{const{content:_}=e;_!==void 0&&(Wm(_),o())},c=()=>{const{content:_}=e;if(!_)return;const p=document.createElement("a");p.href=_,p.style.display="none",p.download="",document.body.appendChild(p),p.click(),p.addEventListener("load",()=>{o(),document.body.removeChild(p)})},d=()=>{if(i.value)return;const _={copy:l,download:c},{operate:p}=e;p&&_[p]()};return(_,p)=>(V(),ae("div",RIe,[oi(_.$slots,"default",{},void 0,!0),q(s)?(V(),ae("span",{key:0,class:"operate_icon",onClick:d},[q(i)?(V(),ot(q(aM),{key:0,size:"16"})):(V(),ot(ji(q(s)),{key:1,size:"16"}))])):Ge("",!0)]))}});const WN=Dt(NIe,[["__scopeId","data-v-ea9cc5f9"]]),Ig=t=>(Zi("data-v-4f00a864"),t=t(),Ji(),t),OIe={class:"code_container"},AIe={class:"tool_wrap"},yIe={key:0,class:"copy_icon",stroke:"currentColor",fill:"none","stroke-width":"2",viewBox:"0 0 24 24","stroke-linecap":"round","stroke-linejoin":"round",xmlns:"http://www.w3.org/2000/svg"},IIe=Ig(()=>B("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"},null,-1)),DIe=Ig(()=>B("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"},null,-1)),xIe=[IIe,DIe],wIe={key:1,class:"copy_icon",stroke:"currentColor",fill:"none","stroke-width":"2",viewBox:"0 0 24 24","stroke-linecap":"round","stroke-linejoin":"round",xmlns:"http://www.w3.org/2000/svg"},MIe=Ig(()=>B("polyline",{points:"20 6 9 17 4 12"},null,-1)),LIe=[MIe],PIe=be({name:"Copy",__name:"copy",props:{lang:{},content:{}},setup(t){const e=t,n=ee(!1),i=()=>{if(!n.value){if(!e.content){yC.warning(Km("复制失败"));return}Wm(e.content),n.value=!0,setTimeout(()=>{n.value=!1},1e3)}};return(o,s)=>(V(),ae("div",OIe,[B("div",AIe,[B("span",null,Qe(e.lang),1),B("button",{class:"copy_btn",onClick:i},[q(n)?(V(),ae("svg",wIe,LIe)):(V(),ae("svg",yIe,xIe)),vt(" "+Qe(q(n)?o.$t("复制代码成功"):o.$t("复制代码")),1)])]),oi(o.$slots,"default",{},void 0,!0)]))}});const RC=Dt(PIe,[["__scopeId","data-v-4f00a864"]]),kIe=/^[a-zA-Z_:][a-zA-Z0-9:._-]*$/,jn={};function UIe(t){return kIe.test(t)}function ml(t){const e=document.createElement("template");e.innerHTML=t;const n=e.content.children,i=[];for(let o=0;oNumber(h)),-1);if(o!==-1&&eYa(h)),n[e].preVNode=Ya(C),ue(st,{},[C])}jn.code_inline=function(e,n,i,o,s){const l=e[n];return ue("code",s.renderAttrs(l),l.content)};jn.code_block=function(e,n,i,o,s){const l=e[n],c=s.renderAttrs(l);return ue("pre",void 0,[ue("code",c,[ue(Vm,{},l.content)])])};jn.fence=function(e,n,i,o){const s=e[n],l=s.info?Je.unescapeAll(s.info).trim():"";let c="",d="",_,p;return l&&(p=l.split(/(\s+)/g),c=p[0],d=p.slice(2).join("")),i.highlight?_=i.highlight(s.content,c,d)||Je.escapeHtml(s.content):_=Je.escapeHtml(s.content),o.renderVnode&&(_=FIe(_,n,o)),$i(_)?ue(RC,{lang:l,content:s.content},{default:()=>_}):ue(RC,{lang:l,content:s.content},{default:()=>ml(_)})};jn.image=function(e,n,i,o,s){const l=e[n];return ue("img",{...s.renderAttrs(l),alt:s.renderInlineAsText(l.children||[],i,o)},[])};jn.hardbreak=function(){return ue("br")};jn.softbreak=function(e,n,i){return i.breaks?ue("br"):null};jn.text=function(e,n){return ue(Vm,{},e[n].content)};jn.html_block=function(e,n){const i=e[n];return i.contentVNode?i.contentVNode:ml(i.content)};jn.html_inline=function(e,n){const i=e[n];return i.contentVNode?i.contentVNode:ml(i.content)};function BIe(t,e){const n=t[e];return n.nesting===-1?null:n.hidden?ue(st,{},[]):n.tag==="--"?ue(Ws):ue(n.tag,this.renderAttrs(n),[])}function GIe(t){if(!t.attrs)return{};const e={};return t.attrs.forEach(([n,i])=>{UIe(n)&&(e[n]=i)}),e}function NC(t,e,n){const{rules:i}=this,o=[];return t.map((s,l)=>{var E;const{type:c}=s;let d=null,_=null;if(c==="inline")d=ue(st,{},this.render(s.children||[],e,n));else if(i[c]){const f=(E=i[c])==null?void 0:E.call(i,t,l,e,n,this);typeof f=="string"?d=ml(f):f&&f.node&&f.parent?(_=f.parent,d=f.node):d=f}else d=this.renderToken(t,l,e);let p=!1;const g=o.length>0?o[o.length-1]:null;if(d&&g){if(typeof g.type=="string"||g.type===st){const f=Array.isArray(g.children)?g.children:[];g.children=f.concat([d])}p=!0}return s.nesting===1&&(_?o.push(_):d&&o.push(d)),s.nesting===-1&&o.pop(),p?null:d}).filter(s=>!!s)}const YIe=t=>{t.renderer.rules={...t.renderer.rules,...jn},t.renderer.render=NC,t.renderer.renderInline=NC,t.renderer.renderAttrs=GIe,t.renderer.renderToken=BIe},qIe=be({__name:"textItem",props:{isTyping:{type:Boolean},content:{}},setup(t){const e=t,n=new GRe({html:!0,linkify:!1,typographer:!0,highlight(p,g){if(g&&CC.getLanguage(g))try{return`
        ${CC.highlight(p,{language:g,ignoreIllegals:!0}).value}
        `}catch(E){console.warn(E)}return`
        ${n.utils.escapeHtml(p)}
        `}});n.use(jRe),n.use(YIe);const i=$w({renderVnode:!1}),o=Hw([]),s=p=>p.shapeFlag&8,l=p=>p.shapeFlag&6,c=p=>{if(!p)return!1;const g=p.children;return l(p)?!1:s(p)?!0:g&&g.length?c(g[g.length]):!0},d=p=>{var f;let g=p[p.length-1];if(!g||!c(g))return p;const E=((f=g.props)==null?void 0:f.class)||[];return E.includes("typing-text")||(g=p.pop(),g=Ya(g,{class:[...E,"typing-text"]}),p.push(g)),p},_=Ir.throttle(()=>{const{content:p}=e;if(!p)return;const g=n.render(e.content,i);if(!i.renderVnode){o.value=g;return}o.value=d(g)},100);return Zt(()=>e.content,_,{immediate:!0}),Zt(()=>e.isTyping,()=>{i.renderVnode=e.isTyping},{immediate:!0}),(p,g)=>(V(),ot(WN,{operate:"copy",content:e.content},{default:dt(()=>[B("div",{ref:"markdownWrapRef",class:It(["markdown_wrap",{"typing-pre":e.isTyping}])},[(V(!0),ae(st,null,yn(q(o),(E,f)=>(V(),ot(ji(E),{key:f}))),128))],2)]),_:1},8,["content"]))}});const $Ie={class:"chatHistoryImageItem"},HIe={key:0,class:"maxCover"},zIe=be({__name:"imageItem",props:{images:{}},setup(t){const e=t;return(n,i)=>(V(),ae("div",$Ie,[ue(q(pq),null,{default:dt(()=>[(V(!0),ae(st,null,yn(e.images.slice(0,4),(o,s)=>(V(),ae("div",{key:o,class:"imageItem"},[ue(q(gq),{src:o,"object-fit":"cover",lazy:""},null,8,["src"]),e.images.length>4&&s===3?(V(),ae("div",HIe,"+"+Qe(e.images.length-4),1)):Ge("",!0)]))),128))]),_:1})]))}});const VIe={class:"chatHistoryAudioItem"},WIe={class:"audio"},KIe={class:"control"},QIe=["src"],XIe=be({__name:"audioItem",props:{audioUrl:{}},setup(t){const e=t,n=ee(),i=ee("pause"),o=zw({duration:0,currentTime:0}),s=g=>Ka(new Date(o.duration*g/100*1e3)).format("mm:ss"),l=le(()=>Ka(new Date((o.duration-o.currentTime)*1e3)).format("mm:ss")),c=()=>{var g;(g=n.value)==null||g.play(),i.value="play"},d=()=>{var g;(g=n.value)==null||g.pause(),i.value="pause"},_=()=>{const g=n.value;o.currentTime=g.currentTime},p=()=>{const g=n.value;o.currentTime=g.currentTime,o.duration=g.duration};return(g,E)=>(V(),ae("div",VIe,[B("div",WIe,[B("div",KIe,[q(i)==="pause"?(V(),ot(q(JM),{key:0,onClick:c})):Ge("",!0),q(i)==="play"?(V(),ot(q(VM),{key:1,onClick:d})):Ge("",!0)]),ue(q(oM),{"format-tooltip":s}),B("div",null,Qe(q(l)),1)]),B("audio",{ref_key:"audioRef",ref:n,src:e.audioUrl,autoplay:!1,onLoad:p,onTimeupdate:_},null,40,QIe)]))}});const ZIe={class:"error_msg"},JIe=be({__name:"errorItem",props:{content:{}},setup(t){const n=yt(t,"content");return(i,o)=>(V(),ot(WN,{operate:"copy",content:q(n)},{default:dt(()=>[B("div",ZIe,Qe(q(n)),1)]),_:1},8,["content"]))}});const jIe=Dt(JIe,[["__scopeId","data-v-84a7773a"]]),eDe={class:"agent_message_wrap"},tDe=be({__name:"index",props:{id:{},lastContet:{type:Boolean},contents:{}},setup(t){const e=t,{activeAgentNode:n}=aa(),i=ee(e.contents),o=g=>ue(qIe,{content:g},null),s=g=>ue(zIe,{images:g.split(",")},null),l=g=>ue(XIe,{audioUrl:g},null),c=g=>ue(jIe,{content:g},null),d={[Dr.TEXT]:o,[Dr.IMAGE]:s,[Dr.AUDIO]:l,[Dr.FAILED]:c},_=le(()=>{var g;return e.id===((g=n.value)==null?void 0:g.id)&&e.lastContet}),p=()=>{const g=Zt(n,(E,f)=>{var C;if(!n.value)return;if(f!=null&&E==null||!_.value){g();return}const S=n.value.steps[n.value.steps.length-1];(C=S==null?void 0:S.contents)!=null&&C.length&&(i.value=[...S.contents])},{deep:!0})};return Zt(_,()=>{_.value?p():i.value=e.contents},{immediate:!0}),(g,E)=>(V(),ae("div",eDe,[(V(!0),ae(st,null,yn(q(i),f=>(V(),ae(st,{key:f.id},[f?(V(),ot(ji(d[f.type](f.value.answer)),{key:0,"is-typing":q(_)},null,8,["is-typing"])):Ge("",!0)],64))),128))]))}});const nDe=Dt(tDe,[["__scopeId","data-v-898355de"]]),rDe={class:"steps_container"},iDe={class:"steps_wrap"},aDe={key:0,style:{width:"80%","vertical-align":"middle"},src:aN,alt:""},oDe={key:1,style:{width:"80%","vertical-align":"middle"},src:oN,alt:""},sDe={key:2,style:{width:"80%","vertical-align":"middle"},src:sN,alt:""},lDe={key:3,style:{width:"80%","vertical-align":"middle"},src:lN,alt:""},cDe=be({__name:"index",props:{activeNode:{}},setup(t){const n=yt(t.activeNode,"steps"),i=o=>{var l;if(!o)return"";const s=pN.find(c=>c.job===o);return{width:"100%",height:"100%",background:(l=s==null?void 0:s.color)==null?void 0:l[1],display:"flex","align-items":"center","justify-content":"center","border-radius":"50%"}};return(o,s)=>(V(),ae("div",rDe,[B("section",iDe,[ue(q(sM),{direction:"vertical","line-less":!0},{default:dt(()=>[(V(!0),ae(st,null,yn(q(n),(l,c)=>(V(),ot(w$,{key:l.id,status:l.status,skill:l.skill,title:l.role,description:l.description},{icon:dt(()=>[B("div",{style:Bt(i(l.role))},[l.role==="Product Manager"?(V(),ae("img",aDe)):Ge("",!0),l.role==="Project Manager"?(V(),ae("img",oDe)):Ge("",!0),l.role==="Architect"?(V(),ae("img",sDe)):Ge("",!0),l.role==="Engineer"?(V(),ae("img",lDe)):Ge("",!0)],4)]),default:dt(()=>[ue(nDe,{id:o.activeNode.id,"last-contet":c===q(n).length-1,contents:l.contents},null,8,["id","last-contet","contents"])]),_:2},1032,["status","skill","title","description"]))),128))]),_:1})])]))}});const uDe=Dt(cDe,[["__scopeId","data-v-77479ba1"]]),dDe=be({__name:"statusButton",setup(t){const e={[Ut.INIT]:{text:"",visibel:!1,icon:""},[Ut.IDLE]:{text:"Regenerate",visibel:!0,icon:gs},[Ut.RUNNING]:{text:"Stop Generation",visibel:!0,icon:oL},[Ut.FINISH]:{text:"Regenerate",visibel:!0,icon:gs},[Ut.FAILED]:{text:"Regenerate",visibel:!0,icon:gs},[Ut.TERMINATE]:{text:"Regenerate",visibel:!0,icon:gs}},{globalStatus:n,stopMessage:i,regenMessage:o,activeAgentNode:s}=aa(),l=le(()=>e[n.value]),c=le(()=>{var _;return n.value===Ut.RUNNING&&!((_=s.value)!=null&&_.steps.length)}),d=()=>{if(n.value===Ut.RUNNING){i();return}o()};return(_,p)=>q(l).visibel?(V(),ot(q(xC),{key:0,class:"status_btn",align:"center",direction:"vertical",size:8},{default:dt(()=>[q(c)?Ge("",!0):(V(),ot(q(hm),{key:0,style:{"background-color":"#fff","border-radius":"999px"},type:"outline",onClick:d},{icon:dt(()=>[(V(),ot(ji(q(l).icon)))]),default:dt(()=>[vt(" "+Qe(_.$t(q(l).text)),1)]),_:1}))]),_:1})):Ge("",!0)}});const _De=Dt(dDe,[["__scopeId","data-v-240aae5d"]]),pDe={class:"chatRoomWrapper"},mDe={class:"visionWrapper"},gDe={key:0,class:"emptyWrapper"},EDe=Ww('
        Chat with MetaGPT
        takes a one line requirement as input and outputs user stories / competitive analysis /
        requirements / data structures / APIs / documents,
        etc.
        ',1),fDe={class:"actionWrapper"},SDe=["onClick"],bDe={key:0,style:{width:"22px"},src:V2,alt:""},hDe={key:1,style:{width:"22px"},src:W2,alt:""},TDe={key:2,style:{width:"22px"},src:K2,alt:""},vDe={key:3,style:{width:"22px"},src:Q2,alt:""},CDe={class:"chatWrapper"},RDe={class:"msg_history_area"},NDe={key:0,class:"msg_text"},ODe={class:"bottom_trigger"},ADe={class:"inputWrapper"},yDe={class:"inputInner"},IDe=["disabled"],DDe=be({__name:"chatRoom",setup(t){const e=["Design a RecSys like Toutiao","Write a cli snake game based on pygame","Design a content-based recommendation system","Design a search algorithm framework"],n=ee(!1),i=ee(""),{chatRenderPathList:o,genRootNode:s,sendMessage:l,apiKey:c,shakeApiKeyInput:d,globalStatus:_}=T2(),{scroller:p,onScroll:g}=dN(),E=ee(!1),f=()=>c.value?!0:(d.value=!0,E.value===!0||(E.value=!0,setTimeout(()=>{E.value=!1,d.value=!1},2e3)),!1),S=async T=>{f()&&(await s(T),l(T))},C=async()=>{f()&&(o.value.length||await s(i.value),l(i.value),i.value="")},h=T=>{T.key==="Enter"&&C()};return(T,N)=>{const y=Vw("loading");return V(),ae("div",pDe,[q(E)?(V(),ot(q(lM),{key:0,type:"warning",style:{width:"500px",position:"absolute","z-index":"999"}},{default:dt(()=>[vt("Please Enter Your OpenAI Key to Activate Your Team First.")]),_:1})):Ge("",!0),B("div",mDe,[q(o).length?Ge("",!0):(V(),ae("div",gDe,[EDe,B("div",fDe,[(V(),ae(st,null,yn(e,(x,P)=>B("div",{key:P,class:"button",onClick:D=>S(x)},[P===0?(V(),ae("img",bDe)):Ge("",!0),P===1?(V(),ae("img",hDe)):Ge("",!0),P===2?(V(),ae("img",TDe)):Ge("",!0),P===3?(V(),ae("img",vDe)):Ge("",!0),B("span",null,Qe(x),1)],8,SDe)),64))])])),Pn(B("div",CDe,[Pn((V(),ae("section",RDe,[B("div",{ref_key:"scroller",ref:p,class:"scroll_wrap",onScroll:N[0]||(N[0]=(...x)=>q(g)&&q(g)(...x))},[q(o).length?(V(!0),ae(st,{key:0},yn(q(o),x=>(V(),ot(u$,{key:x.activeNode.id,"render-node":x,"is-root-node":x.activeNode.id===0},{content:dt(()=>[x.activeNode.id===0?(V(),ae("div",NDe,Qe(x.activeNode.steps[0].contents[0].value.answer),1)):x.is_user_message?(V(),ot(f$,{key:1,"active-node":x.activeNode},null,8,["active-node"])):(V(),ot(uDe,{key:2,"active-node":x.activeNode},null,8,["active-node"]))]),_:2},1032,["render-node","is-root-node"]))),128)):Ge("",!0),B("div",ODe,[ue(_De)])],544)])),[[y,q(n)]])],512),[[Qs,q(o).length]])]),ue(q(uM),{disabled:q(c).length,content:"Please fill in your OpenAI API key to activate the hired software team."},{default:dt(()=>[B("div",ADe,[B("div",yDe,[Pn(B("input",{"onUpdate:modelValue":N[1]||(N[1]=x=>wr(i)?i.value=x:null),disabled:!q(c),placeholder:"Please enter a one-sentence requirement.",type:"text",onKeydown:h},null,40,IDe),[[Kw,q(i)]]),q(_)===q(Ut).RUNNING?(V(),ot(q(cM),{key:0,style:{"margin-right":"12px","margin-top":"4px"},size:6,dot:""})):(V(),ae("button",{key:1,class:"sendBtn",onClick:C},[ue(ea,{size:20,fill:"#ffffff","icon-id":"icon-fasong"})]))])])]),_:1},8,["disabled"])])}}});const xDe=Dt(DDe,[["__scopeId","data-v-ae197aef"]]),wDe={class:"chatWrapper"},MDe=be({__name:"chatPage",setup(t){return(e,n)=>(V(),ae("div",wDe,[ue(z2),ue(xDe)]))}});const LDe=Dt(MDe,[["__scopeId","data-v-7d0d8d24"]]),PDe={class:"hfHomeWrapper"},kDe=be({__name:"home",setup(t){return(e,n)=>(V(),ae("div",PDe,[ue(Vq),ue(LDe)]))}});const $De=Dt(kDe,[["__scopeId","data-v-7444cb54"]]);export{$De as default}; diff --git a/spaces/whitphx/gradio-static-test/dist/assets/index-f109ef1d.js b/spaces/whitphx/gradio-static-test/dist/assets/index-f109ef1d.js deleted file mode 100644 index 54cc6faa753ac28e3759864ae1808f9420692d10..0000000000000000000000000000000000000000 --- a/spaces/whitphx/gradio-static-test/dist/assets/index-f109ef1d.js +++ /dev/null @@ -1,2 +0,0 @@ -import{S as A,i as G,s as N,H as S,e as D,I as J,D as _,h as B,F as q,m as M,af as C,K as k,ao as K,q as T,t as z,r as j,o as E,a1 as Q,u as V,aa as W,J as X,L as Y,y as Z,a0 as y,b as L,a as R,j as p,k as x,l as U,z as I}from"../lite.js";/* empty css */import{B as $}from"./Button-0391b19a.js";/* empty css */import{B as ee}from"./BlockTitle-a953ec46.js";import"./Info-7e9477b8.js";function le(l){let n;return{c(){n=X(l[5])},m(a,i){B(a,n,i)},p(a,i){i&32&&Y(n,a[5])},d(a){a&&j(n)}}}function ne(l){let n,a,i,f,b,s,h,m,d,r,c;return f=new ee({props:{show_label:l[7],info:l[6],$$slots:{default:[le]},$$scope:{ctx:l}}}),{c(){n=S("div"),a=S("div"),i=S("label"),D(f.$$.fragment),b=J(),s=S("input"),h=J(),m=S("input"),_(i,"for",l[8]),_(s,"data-testid","number-input"),_(s,"type","number"),_(s,"min",l[1]),_(s,"max",l[2]),_(s,"step",l[3]),s.disabled=l[4],_(s,"class","svelte-1cl284s"),_(a,"class","head svelte-1cl284s"),_(n,"class","wrap svelte-1cl284s"),_(m,"type","range"),_(m,"id",l[8]),_(m,"name","cowbell"),_(m,"min",l[1]),_(m,"max",l[2]),_(m,"step",l[3]),m.disabled=l[4],_(m,"class","svelte-1cl284s")},m(e,t){B(e,n,t),q(n,a),q(a,i),M(f,i,null),q(a,b),q(a,s),C(s,l[0]),B(e,h,t),B(e,m,t),C(m,l[0]),d=!0,r||(c=[k(s,"input",l[12]),k(s,"blur",l[10]),k(s,"pointerup",l[9]),k(m,"change",l[13]),k(m,"input",l[13]),k(m,"pointerup",l[9])],r=!0)},p(e,[t]){const v={};t&128&&(v.show_label=e[7]),t&64&&(v.info=e[6]),t&65568&&(v.$$scope={dirty:t,ctx:e}),f.$set(v),(!d||t&2)&&_(s,"min",e[1]),(!d||t&4)&&_(s,"max",e[2]),(!d||t&8)&&_(s,"step",e[3]),(!d||t&16)&&(s.disabled=e[4]),t&1&&K(s.value)!==e[0]&&C(s,e[0]),(!d||t&2)&&_(m,"min",e[1]),(!d||t&4)&&_(m,"max",e[2]),(!d||t&8)&&_(m,"step",e[3]),(!d||t&16)&&(m.disabled=e[4]),t&1&&C(m,e[0])},i(e){d||(T(f.$$.fragment,e),d=!0)},o(e){z(f.$$.fragment,e),d=!1},d(e){e&&j(n),E(f),e&&j(h),e&&j(m),r=!1,Q(c)}}}let ae=0;function ie(l,n,a){let{value:i=0}=n,{value_is_output:f=!1}=n,{minimum:b=0}=n,{maximum:s=100}=n,{step:h=1}=n,{disabled:m=!1}=n,{label:d}=n,{info:r=void 0}=n,{show_label:c}=n;const e=`range_id_${ae++}`,t=V();function v(){t("change",i),f||t("input")}W(()=>{a(11,f=!1)});function g(o){t("release",i)}const w=()=>{t("release",i),a(0,i=Math.min(Math.max(i,b),s))};function F(){i=K(this.value),a(0,i)}function H(){i=K(this.value),a(0,i)}return l.$$set=o=>{"value"in o&&a(0,i=o.value),"value_is_output"in o&&a(11,f=o.value_is_output),"minimum"in o&&a(1,b=o.minimum),"maximum"in o&&a(2,s=o.maximum),"step"in o&&a(3,h=o.step),"disabled"in o&&a(4,m=o.disabled),"label"in o&&a(5,d=o.label),"info"in o&&a(6,r=o.info),"show_label"in o&&a(7,c=o.show_label)},l.$$.update=()=>{l.$$.dirty&1&&v()},[i,b,s,h,m,d,r,c,e,g,w,f,F,H]}class te extends A{constructor(n){super(),G(this,n,ie,ne,N,{value:0,value_is_output:11,minimum:1,maximum:2,step:3,disabled:4,label:5,info:6,show_label:7})}}function ue(l){let n,a,i,f,b,s;const h=[l[13]];let m={};for(let e=0;eR(i,"value",d)),L.push(()=>R(i,"value_is_output",r)),i.$on("input",l[16]),i.$on("change",l[17]),i.$on("release",l[18]),{c(){D(n.$$.fragment),a=J(),D(i.$$.fragment)},m(e,t){M(n,e,t),B(e,a,t),M(i,e,t),s=!0},p(e,t){const v=t&8192?p(h,[x(e[13])]):{};n.$set(v);const g={};t&32&&(g.label=e[5]),t&64&&(g.info=e[6]),t&4096&&(g.show_label=e[12]),t&256&&(g.minimum=e[8]),t&512&&(g.maximum=e[9]),t&1024&&(g.step=e[10]),t&2048&&(g.disabled=e[11]==="static"),!f&&t&1&&(f=!0,g.value=e[0],U(()=>f=!1)),!b&&t&2&&(b=!0,g.value_is_output=e[1],U(()=>b=!1)),i.$set(g)},i(e){s||(T(n.$$.fragment,e),T(i.$$.fragment,e),s=!0)},o(e){z(n.$$.fragment,e),z(i.$$.fragment,e),s=!1},d(e){E(n,e),e&&j(a),E(i,e)}}}function se(l){let n,a;return n=new $({props:{visible:l[4],elem_id:l[2],elem_classes:l[3],disable:typeof l[7].container=="boolean"&&!l[7].container,$$slots:{default:[ue]},$$scope:{ctx:l}}}),{c(){D(n.$$.fragment)},m(i,f){M(n,i,f),a=!0},p(i,[f]){const b={};f&16&&(b.visible=i[4]),f&4&&(b.elem_id=i[2]),f&8&&(b.elem_classes=i[3]),f&128&&(b.disable=typeof i[7].container=="boolean"&&!i[7].container),f&540515&&(b.$$scope={dirty:f,ctx:i}),n.$set(b)},i(i){a||(T(n.$$.fragment,i),a=!0)},o(i){z(n.$$.fragment,i),a=!1},d(i){E(n,i)}}}function me(l,n,a){let{elem_id:i=""}=n,{elem_classes:f=[]}=n,{visible:b=!0}=n,{value:s=0}=n,{label:h="Slider"}=n,{info:m=void 0}=n,{style:d={}}=n,{minimum:r}=n,{maximum:c}=n,{step:e}=n,{mode:t}=n,{show_label:v}=n,{loading_status:g}=n,{value_is_output:w=!1}=n;function F(u){s=u,a(0,s)}function H(u){w=u,a(1,w)}function o(u){I.call(this,l,u)}function O(u){I.call(this,l,u)}function P(u){I.call(this,l,u)}return l.$$set=u=>{"elem_id"in u&&a(2,i=u.elem_id),"elem_classes"in u&&a(3,f=u.elem_classes),"visible"in u&&a(4,b=u.visible),"value"in u&&a(0,s=u.value),"label"in u&&a(5,h=u.label),"info"in u&&a(6,m=u.info),"style"in u&&a(7,d=u.style),"minimum"in u&&a(8,r=u.minimum),"maximum"in u&&a(9,c=u.maximum),"step"in u&&a(10,e=u.step),"mode"in u&&a(11,t=u.mode),"show_label"in u&&a(12,v=u.show_label),"loading_status"in u&&a(13,g=u.loading_status),"value_is_output"in u&&a(1,w=u.value_is_output)},[s,w,i,f,b,h,m,d,r,c,e,t,v,g,F,H,o,O,P]}class fe extends A{constructor(n){super(),G(this,n,me,se,N,{elem_id:2,elem_classes:3,visible:4,value:0,label:5,info:6,style:7,minimum:8,maximum:9,step:10,mode:11,show_label:12,loading_status:13,value_is_output:1})}}const ce=fe,re=["static","dynamic"],ve=l=>({type:{payload:"number"},description:{payload:"selected value"},example_data:l.value??l.minimum});export{ce as Component,ve as document,re as modes}; -//# sourceMappingURL=index-f109ef1d.js.map diff --git a/spaces/wouaf/WOUAF-Text-to-Image/torch_utils/ops/conv2d_gradfix.py b/spaces/wouaf/WOUAF-Text-to-Image/torch_utils/ops/conv2d_gradfix.py deleted file mode 100644 index e95e10d0b1d0315a63a76446fd4c5c293c8bbc6d..0000000000000000000000000000000000000000 --- a/spaces/wouaf/WOUAF-Text-to-Image/torch_utils/ops/conv2d_gradfix.py +++ /dev/null @@ -1,170 +0,0 @@ -# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. -# -# NVIDIA CORPORATION and its licensors retain all intellectual property -# and proprietary rights in and to this software, related documentation -# and any modifications thereto. Any use, reproduction, disclosure or -# distribution of this software and related documentation without an express -# license agreement from NVIDIA CORPORATION is strictly prohibited. - -"""Custom replacement for `torch.nn.functional.conv2d` that supports -arbitrarily high order gradients with zero performance penalty.""" - -import warnings -import contextlib -import torch - -# pylint: disable=redefined-builtin -# pylint: disable=arguments-differ -# pylint: disable=protected-access - -#---------------------------------------------------------------------------- - -enabled = False # Enable the custom op by setting this to true. -weight_gradients_disabled = False # Forcefully disable computation of gradients with respect to the weights. - -@contextlib.contextmanager -def no_weight_gradients(): - global weight_gradients_disabled - old = weight_gradients_disabled - weight_gradients_disabled = True - yield - weight_gradients_disabled = old - -#---------------------------------------------------------------------------- - -def conv2d(input, weight, bias=None, stride=1, padding=0, dilation=1, groups=1): - if _should_use_custom_op(input): - return _conv2d_gradfix(transpose=False, weight_shape=weight.shape, stride=stride, padding=padding, output_padding=0, dilation=dilation, groups=groups).apply(input, weight, bias) - return torch.nn.functional.conv2d(input=input, weight=weight, bias=bias, stride=stride, padding=padding, dilation=dilation, groups=groups) - -def conv_transpose2d(input, weight, bias=None, stride=1, padding=0, output_padding=0, groups=1, dilation=1): - if _should_use_custom_op(input): - return _conv2d_gradfix(transpose=True, weight_shape=weight.shape, stride=stride, padding=padding, output_padding=output_padding, groups=groups, dilation=dilation).apply(input, weight, bias) - return torch.nn.functional.conv_transpose2d(input=input, weight=weight, bias=bias, stride=stride, padding=padding, output_padding=output_padding, groups=groups, dilation=dilation) - -#---------------------------------------------------------------------------- - -def _should_use_custom_op(input): - assert isinstance(input, torch.Tensor) - if (not enabled) or (not torch.backends.cudnn.enabled): - return False - if input.device.type != 'cuda': - return False - if any(torch.__version__.startswith(x) for x in ['1.7.', '1.8.', '1.9']): - return True - warnings.warn(f'conv2d_gradfix not supported on PyTorch {torch.__version__}. Falling back to torch.nn.functional.conv2d().') - return False - -def _tuple_of_ints(xs, ndim): - xs = tuple(xs) if isinstance(xs, (tuple, list)) else (xs,) * ndim - assert len(xs) == ndim - assert all(isinstance(x, int) for x in xs) - return xs - -#---------------------------------------------------------------------------- - -_conv2d_gradfix_cache = dict() - -def _conv2d_gradfix(transpose, weight_shape, stride, padding, output_padding, dilation, groups): - # Parse arguments. - ndim = 2 - weight_shape = tuple(weight_shape) - stride = _tuple_of_ints(stride, ndim) - padding = _tuple_of_ints(padding, ndim) - output_padding = _tuple_of_ints(output_padding, ndim) - dilation = _tuple_of_ints(dilation, ndim) - - # Lookup from cache. - key = (transpose, weight_shape, stride, padding, output_padding, dilation, groups) - if key in _conv2d_gradfix_cache: - return _conv2d_gradfix_cache[key] - - # Validate arguments. - assert groups >= 1 - assert len(weight_shape) == ndim + 2 - assert all(stride[i] >= 1 for i in range(ndim)) - assert all(padding[i] >= 0 for i in range(ndim)) - assert all(dilation[i] >= 0 for i in range(ndim)) - if not transpose: - assert all(output_padding[i] == 0 for i in range(ndim)) - else: # transpose - assert all(0 <= output_padding[i] < max(stride[i], dilation[i]) for i in range(ndim)) - - # Helpers. - common_kwargs = dict(stride=stride, padding=padding, dilation=dilation, groups=groups) - def calc_output_padding(input_shape, output_shape): - if transpose: - return [0, 0] - return [ - input_shape[i + 2] - - (output_shape[i + 2] - 1) * stride[i] - - (1 - 2 * padding[i]) - - dilation[i] * (weight_shape[i + 2] - 1) - for i in range(ndim) - ] - - # Forward & backward. - class Conv2d(torch.autograd.Function): - @staticmethod - def forward(ctx, input, weight, bias): - assert weight.shape == weight_shape - if not transpose: - output = torch.nn.functional.conv2d(input=input, weight=weight, bias=bias, **common_kwargs) - else: # transpose - output = torch.nn.functional.conv_transpose2d(input=input, weight=weight, bias=bias, output_padding=output_padding, **common_kwargs) - ctx.save_for_backward(input, weight) - return output - - @staticmethod - def backward(ctx, grad_output): - input, weight = ctx.saved_tensors - grad_input = None - grad_weight = None - grad_bias = None - - if ctx.needs_input_grad[0]: - p = calc_output_padding(input_shape=input.shape, output_shape=grad_output.shape) - grad_input = _conv2d_gradfix(transpose=(not transpose), weight_shape=weight_shape, output_padding=p, **common_kwargs).apply(grad_output, weight, None) - assert grad_input.shape == input.shape - - if ctx.needs_input_grad[1] and not weight_gradients_disabled: - grad_weight = Conv2dGradWeight.apply(grad_output, input) - assert grad_weight.shape == weight_shape - - if ctx.needs_input_grad[2]: - grad_bias = grad_output.sum([0, 2, 3]) - - return grad_input, grad_weight, grad_bias - - # Gradient with respect to the weights. - class Conv2dGradWeight(torch.autograd.Function): - @staticmethod - def forward(ctx, grad_output, input): - op = torch._C._jit_get_operation('aten::cudnn_convolution_backward_weight' if not transpose else 'aten::cudnn_convolution_transpose_backward_weight') - flags = [torch.backends.cudnn.benchmark, torch.backends.cudnn.deterministic, torch.backends.cudnn.allow_tf32] - grad_weight = op(weight_shape, grad_output, input, padding, stride, dilation, groups, *flags) - assert grad_weight.shape == weight_shape - ctx.save_for_backward(grad_output, input) - return grad_weight - - @staticmethod - def backward(ctx, grad2_grad_weight): - grad_output, input = ctx.saved_tensors - grad2_grad_output = None - grad2_input = None - - if ctx.needs_input_grad[0]: - grad2_grad_output = Conv2d.apply(input, grad2_grad_weight, None) - assert grad2_grad_output.shape == grad_output.shape - - if ctx.needs_input_grad[1]: - p = calc_output_padding(input_shape=input.shape, output_shape=grad_output.shape) - grad2_input = _conv2d_gradfix(transpose=(not transpose), weight_shape=weight_shape, output_padding=p, **common_kwargs).apply(grad_output, grad2_grad_weight, None) - assert grad2_input.shape == input.shape - - return grad2_grad_output, grad2_input - - _conv2d_gradfix_cache[key] = Conv2d - return Conv2d - -#---------------------------------------------------------------------------- diff --git a/spaces/xdecoder/Demo/tasks/ref_in.py b/spaces/xdecoder/Demo/tasks/ref_in.py deleted file mode 100644 index d872a993eadae5cbd6c37e821232149fa2e3de16..0000000000000000000000000000000000000000 --- a/spaces/xdecoder/Demo/tasks/ref_in.py +++ /dev/null @@ -1,77 +0,0 @@ -# -------------------------------------------------------- -# X-Decoder -- Generalized Decoding for Pixel, Image, and Language -# Copyright (c) 2022 Microsoft -# Licensed under The MIT License [see LICENSE for details] -# Written by Jianwei Yang (jianwyan@microsoft.com), Xueyan Zou (xueyan@cs.wisc.edu) -# -------------------------------------------------------- - -import torch -import numpy as np -from PIL import Image -from utils.inpainting import pad_image -from torchvision import transforms -from utils.visualizer import Visualizer -from diffusers import StableDiffusionInpaintPipeline -from detectron2.utils.colormap import random_color -from detectron2.data import MetadataCatalog -from scipy import ndimage - - -t = [] -t.append(transforms.Resize(512, interpolation=Image.BICUBIC)) -transform = transforms.Compose(t) -metadata = MetadataCatalog.get('ade20k_panoptic_train') - -pipe = StableDiffusionInpaintPipeline.from_pretrained( - # "stabilityai/stable-diffusion-2-inpainting", - "runwayml/stable-diffusion-inpainting", - revision="fp16", - torch_dtype=torch.float16, -).to("cuda") - -def crop_image(input_image): - crop_w, crop_h = np.floor(np.array(input_image.size) / 64).astype(int) * 64 - im_cropped = Image.fromarray(np.array(input_image)[:crop_h, :crop_w]) - return im_cropped - -def referring_inpainting(model, image, texts, inpainting_text, *args, **kwargs): - model.model.metadata = metadata - texts = [[texts if texts.strip().endswith('.') else (texts.strip() + '.')]] - image_ori = crop_image(transform(image)) - - with torch.no_grad(): - width = image_ori.size[0] - height = image_ori.size[1] - image = np.asarray(image_ori) - image_ori_np = np.asarray(image_ori) - images = torch.from_numpy(image.copy()).permute(2,0,1).cuda() - - batch_inputs = [{'image': images, 'height': height, 'width': width, 'groundings': {'texts': texts}}] - outputs = model.model.evaluate_grounding(batch_inputs, None) - visual = Visualizer(image_ori_np, metadata=metadata) - - grd_mask = (outputs[0]['grounding_mask'] > 0).float().cpu().numpy() - for idx, mask in enumerate(grd_mask): - color = random_color(rgb=True, maximum=1).astype(np.int32).tolist() - demo = visual.draw_binary_mask(mask, color=color, text=texts[idx]) - res = demo.get_image() - - if inpainting_text not in ['no', '']: - # if we want to do inpainting - image_crop = image_ori - struct2 = ndimage.generate_binary_structure(2, 2) - mask_dilated = ndimage.binary_dilation(grd_mask[0], structure=struct2, iterations=3).astype(grd_mask[0].dtype) - mask = Image.fromarray(mask_dilated * 255).convert('RGB') - image_and_mask = { - "image": image_crop, - "mask": mask, - } - width = image_crop.size[0]; height = image_crop.size[1] - images_inpainting = pipe(prompt = inpainting_text.strip(), image=image_and_mask['image'], mask_image=image_and_mask['mask'], height=height, width=width).images[0] - # put images_inpainting back to original image - # image_ori.paste(images_inpainting) - torch.cuda.empty_cache() - return Image.fromarray(res) ,'' , images_inpainting - else: - torch.cuda.empty_cache() - return image_ori, 'text', Image.fromarray(res) \ No newline at end of file diff --git a/spaces/xfys/yolov5_tracking/trackers/strong_sort/deep/models/resnet.py b/spaces/xfys/yolov5_tracking/trackers/strong_sort/deep/models/resnet.py deleted file mode 100644 index 63d7f43ff43373d28c45de3930da0bdbee817b61..0000000000000000000000000000000000000000 --- a/spaces/xfys/yolov5_tracking/trackers/strong_sort/deep/models/resnet.py +++ /dev/null @@ -1,530 +0,0 @@ -""" -Code source: https://github.com/pytorch/vision -""" -from __future__ import division, absolute_import -import torch.utils.model_zoo as model_zoo -from torch import nn - -__all__ = [ - 'resnet18', 'resnet34', 'resnet50', 'resnet101', 'resnet152', - 'resnext50_32x4d', 'resnext101_32x8d', 'resnet50_fc512' -] - -model_urls = { - 'resnet18': - 'https://download.pytorch.org/models/resnet18-5c106cde.pth', - 'resnet34': - 'https://download.pytorch.org/models/resnet34-333f7ec4.pth', - 'resnet50': - 'https://download.pytorch.org/models/resnet50-19c8e357.pth', - 'resnet101': - 'https://download.pytorch.org/models/resnet101-5d3b4d8f.pth', - 'resnet152': - 'https://download.pytorch.org/models/resnet152-b121ed2d.pth', - 'resnext50_32x4d': - 'https://download.pytorch.org/models/resnext50_32x4d-7cdf4587.pth', - 'resnext101_32x8d': - 'https://download.pytorch.org/models/resnext101_32x8d-8ba56ff5.pth', -} - - -def conv3x3(in_planes, out_planes, stride=1, groups=1, dilation=1): - """3x3 convolution with padding""" - return nn.Conv2d( - in_planes, - out_planes, - kernel_size=3, - stride=stride, - padding=dilation, - groups=groups, - bias=False, - dilation=dilation - ) - - -def conv1x1(in_planes, out_planes, stride=1): - """1x1 convolution""" - return nn.Conv2d( - in_planes, out_planes, kernel_size=1, stride=stride, bias=False - ) - - -class BasicBlock(nn.Module): - expansion = 1 - - def __init__( - self, - inplanes, - planes, - stride=1, - downsample=None, - groups=1, - base_width=64, - dilation=1, - norm_layer=None - ): - super(BasicBlock, self).__init__() - if norm_layer is None: - norm_layer = nn.BatchNorm2d - if groups != 1 or base_width != 64: - raise ValueError( - 'BasicBlock only supports groups=1 and base_width=64' - ) - if dilation > 1: - raise NotImplementedError( - "Dilation > 1 not supported in BasicBlock" - ) - # Both self.conv1 and self.downsample layers downsample the input when stride != 1 - self.conv1 = conv3x3(inplanes, planes, stride) - self.bn1 = norm_layer(planes) - self.relu = nn.ReLU(inplace=True) - self.conv2 = conv3x3(planes, planes) - self.bn2 = norm_layer(planes) - self.downsample = downsample - self.stride = stride - - def forward(self, x): - identity = x - - out = self.conv1(x) - out = self.bn1(out) - out = self.relu(out) - - out = self.conv2(out) - out = self.bn2(out) - - if self.downsample is not None: - identity = self.downsample(x) - - out += identity - out = self.relu(out) - - return out - - -class Bottleneck(nn.Module): - expansion = 4 - - def __init__( - self, - inplanes, - planes, - stride=1, - downsample=None, - groups=1, - base_width=64, - dilation=1, - norm_layer=None - ): - super(Bottleneck, self).__init__() - if norm_layer is None: - norm_layer = nn.BatchNorm2d - width = int(planes * (base_width/64.)) * groups - # Both self.conv2 and self.downsample layers downsample the input when stride != 1 - self.conv1 = conv1x1(inplanes, width) - self.bn1 = norm_layer(width) - self.conv2 = conv3x3(width, width, stride, groups, dilation) - self.bn2 = norm_layer(width) - self.conv3 = conv1x1(width, planes * self.expansion) - self.bn3 = norm_layer(planes * self.expansion) - self.relu = nn.ReLU(inplace=True) - self.downsample = downsample - self.stride = stride - - def forward(self, x): - identity = x - - out = self.conv1(x) - out = self.bn1(out) - out = self.relu(out) - - out = self.conv2(out) - out = self.bn2(out) - out = self.relu(out) - - out = self.conv3(out) - out = self.bn3(out) - - if self.downsample is not None: - identity = self.downsample(x) - - out += identity - out = self.relu(out) - - return out - - -class ResNet(nn.Module): - """Residual network. - - Reference: - - He et al. Deep Residual Learning for Image Recognition. CVPR 2016. - - Xie et al. Aggregated Residual Transformations for Deep Neural Networks. CVPR 2017. - - Public keys: - - ``resnet18``: ResNet18. - - ``resnet34``: ResNet34. - - ``resnet50``: ResNet50. - - ``resnet101``: ResNet101. - - ``resnet152``: ResNet152. - - ``resnext50_32x4d``: ResNeXt50. - - ``resnext101_32x8d``: ResNeXt101. - - ``resnet50_fc512``: ResNet50 + FC. - """ - - def __init__( - self, - num_classes, - loss, - block, - layers, - zero_init_residual=False, - groups=1, - width_per_group=64, - replace_stride_with_dilation=None, - norm_layer=None, - last_stride=2, - fc_dims=None, - dropout_p=None, - **kwargs - ): - super(ResNet, self).__init__() - if norm_layer is None: - norm_layer = nn.BatchNorm2d - self._norm_layer = norm_layer - self.loss = loss - self.feature_dim = 512 * block.expansion - self.inplanes = 64 - self.dilation = 1 - if replace_stride_with_dilation is None: - # each element in the tuple indicates if we should replace - # the 2x2 stride with a dilated convolution instead - replace_stride_with_dilation = [False, False, False] - if len(replace_stride_with_dilation) != 3: - raise ValueError( - "replace_stride_with_dilation should be None " - "or a 3-element tuple, got {}". - format(replace_stride_with_dilation) - ) - self.groups = groups - self.base_width = width_per_group - self.conv1 = nn.Conv2d( - 3, self.inplanes, kernel_size=7, stride=2, padding=3, bias=False - ) - self.bn1 = norm_layer(self.inplanes) - self.relu = nn.ReLU(inplace=True) - self.maxpool = nn.MaxPool2d(kernel_size=3, stride=2, padding=1) - self.layer1 = self._make_layer(block, 64, layers[0]) - self.layer2 = self._make_layer( - block, - 128, - layers[1], - stride=2, - dilate=replace_stride_with_dilation[0] - ) - self.layer3 = self._make_layer( - block, - 256, - layers[2], - stride=2, - dilate=replace_stride_with_dilation[1] - ) - self.layer4 = self._make_layer( - block, - 512, - layers[3], - stride=last_stride, - dilate=replace_stride_with_dilation[2] - ) - self.global_avgpool = nn.AdaptiveAvgPool2d((1, 1)) - self.fc = self._construct_fc_layer( - fc_dims, 512 * block.expansion, dropout_p - ) - self.classifier = nn.Linear(self.feature_dim, num_classes) - - self._init_params() - - # Zero-initialize the last BN in each residual branch, - # so that the residual branch starts with zeros, and each residual block behaves like an identity. - # This improves the model by 0.2~0.3% according to https://arxiv.org/abs/1706.02677 - if zero_init_residual: - for m in self.modules(): - if isinstance(m, Bottleneck): - nn.init.constant_(m.bn3.weight, 0) - elif isinstance(m, BasicBlock): - nn.init.constant_(m.bn2.weight, 0) - - def _make_layer(self, block, planes, blocks, stride=1, dilate=False): - norm_layer = self._norm_layer - downsample = None - previous_dilation = self.dilation - if dilate: - self.dilation *= stride - stride = 1 - if stride != 1 or self.inplanes != planes * block.expansion: - downsample = nn.Sequential( - conv1x1(self.inplanes, planes * block.expansion, stride), - norm_layer(planes * block.expansion), - ) - - layers = [] - layers.append( - block( - self.inplanes, planes, stride, downsample, self.groups, - self.base_width, previous_dilation, norm_layer - ) - ) - self.inplanes = planes * block.expansion - for _ in range(1, blocks): - layers.append( - block( - self.inplanes, - planes, - groups=self.groups, - base_width=self.base_width, - dilation=self.dilation, - norm_layer=norm_layer - ) - ) - - return nn.Sequential(*layers) - - def _construct_fc_layer(self, fc_dims, input_dim, dropout_p=None): - """Constructs fully connected layer - - Args: - fc_dims (list or tuple): dimensions of fc layers, if None, no fc layers are constructed - input_dim (int): input dimension - dropout_p (float): dropout probability, if None, dropout is unused - """ - if fc_dims is None: - self.feature_dim = input_dim - return None - - assert isinstance( - fc_dims, (list, tuple) - ), 'fc_dims must be either list or tuple, but got {}'.format( - type(fc_dims) - ) - - layers = [] - for dim in fc_dims: - layers.append(nn.Linear(input_dim, dim)) - layers.append(nn.BatchNorm1d(dim)) - layers.append(nn.ReLU(inplace=True)) - if dropout_p is not None: - layers.append(nn.Dropout(p=dropout_p)) - input_dim = dim - - self.feature_dim = fc_dims[-1] - - return nn.Sequential(*layers) - - def _init_params(self): - for m in self.modules(): - if isinstance(m, nn.Conv2d): - nn.init.kaiming_normal_( - m.weight, mode='fan_out', nonlinearity='relu' - ) - if m.bias is not None: - nn.init.constant_(m.bias, 0) - elif isinstance(m, nn.BatchNorm2d): - nn.init.constant_(m.weight, 1) - nn.init.constant_(m.bias, 0) - elif isinstance(m, nn.BatchNorm1d): - nn.init.constant_(m.weight, 1) - nn.init.constant_(m.bias, 0) - elif isinstance(m, nn.Linear): - nn.init.normal_(m.weight, 0, 0.01) - if m.bias is not None: - nn.init.constant_(m.bias, 0) - - def featuremaps(self, x): - x = self.conv1(x) - x = self.bn1(x) - x = self.relu(x) - x = self.maxpool(x) - x = self.layer1(x) - x = self.layer2(x) - x = self.layer3(x) - x = self.layer4(x) - return x - - def forward(self, x): - f = self.featuremaps(x) - v = self.global_avgpool(f) - v = v.view(v.size(0), -1) - - if self.fc is not None: - v = self.fc(v) - - if not self.training: - return v - - y = self.classifier(v) - - if self.loss == 'softmax': - return y - elif self.loss == 'triplet': - return y, v - else: - raise KeyError("Unsupported loss: {}".format(self.loss)) - - -def init_pretrained_weights(model, model_url): - """Initializes model with pretrained weights. - - Layers that don't match with pretrained layers in name or size are kept unchanged. - """ - pretrain_dict = model_zoo.load_url(model_url) - model_dict = model.state_dict() - pretrain_dict = { - k: v - for k, v in pretrain_dict.items() - if k in model_dict and model_dict[k].size() == v.size() - } - model_dict.update(pretrain_dict) - model.load_state_dict(model_dict) - - -"""ResNet""" - - -def resnet18(num_classes, loss='softmax', pretrained=True, **kwargs): - model = ResNet( - num_classes=num_classes, - loss=loss, - block=BasicBlock, - layers=[2, 2, 2, 2], - last_stride=2, - fc_dims=None, - dropout_p=None, - **kwargs - ) - if pretrained: - init_pretrained_weights(model, model_urls['resnet18']) - return model - - -def resnet34(num_classes, loss='softmax', pretrained=True, **kwargs): - model = ResNet( - num_classes=num_classes, - loss=loss, - block=BasicBlock, - layers=[3, 4, 6, 3], - last_stride=2, - fc_dims=None, - dropout_p=None, - **kwargs - ) - if pretrained: - init_pretrained_weights(model, model_urls['resnet34']) - return model - - -def resnet50(num_classes, loss='softmax', pretrained=True, **kwargs): - model = ResNet( - num_classes=num_classes, - loss=loss, - block=Bottleneck, - layers=[3, 4, 6, 3], - last_stride=2, - fc_dims=None, - dropout_p=None, - **kwargs - ) - if pretrained: - init_pretrained_weights(model, model_urls['resnet50']) - return model - - -def resnet101(num_classes, loss='softmax', pretrained=True, **kwargs): - model = ResNet( - num_classes=num_classes, - loss=loss, - block=Bottleneck, - layers=[3, 4, 23, 3], - last_stride=2, - fc_dims=None, - dropout_p=None, - **kwargs - ) - if pretrained: - init_pretrained_weights(model, model_urls['resnet101']) - return model - - -def resnet152(num_classes, loss='softmax', pretrained=True, **kwargs): - model = ResNet( - num_classes=num_classes, - loss=loss, - block=Bottleneck, - layers=[3, 8, 36, 3], - last_stride=2, - fc_dims=None, - dropout_p=None, - **kwargs - ) - if pretrained: - init_pretrained_weights(model, model_urls['resnet152']) - return model - - -"""ResNeXt""" - - -def resnext50_32x4d(num_classes, loss='softmax', pretrained=True, **kwargs): - model = ResNet( - num_classes=num_classes, - loss=loss, - block=Bottleneck, - layers=[3, 4, 6, 3], - last_stride=2, - fc_dims=None, - dropout_p=None, - groups=32, - width_per_group=4, - **kwargs - ) - if pretrained: - init_pretrained_weights(model, model_urls['resnext50_32x4d']) - return model - - -def resnext101_32x8d(num_classes, loss='softmax', pretrained=True, **kwargs): - model = ResNet( - num_classes=num_classes, - loss=loss, - block=Bottleneck, - layers=[3, 4, 23, 3], - last_stride=2, - fc_dims=None, - dropout_p=None, - groups=32, - width_per_group=8, - **kwargs - ) - if pretrained: - init_pretrained_weights(model, model_urls['resnext101_32x8d']) - return model - - -""" -ResNet + FC -""" - - -def resnet50_fc512(num_classes, loss='softmax', pretrained=True, **kwargs): - model = ResNet( - num_classes=num_classes, - loss=loss, - block=Bottleneck, - layers=[3, 4, 6, 3], - last_stride=1, - fc_dims=[512], - dropout_p=None, - **kwargs - ) - if pretrained: - init_pretrained_weights(model, model_urls['resnet50']) - return model diff --git a/spaces/xfys/yolov5_tracking/yolov5/utils/augmentations.py b/spaces/xfys/yolov5_tracking/yolov5/utils/augmentations.py deleted file mode 100644 index 6cbbc990501d8aa902117369aa6f5c4ee0a244be..0000000000000000000000000000000000000000 --- a/spaces/xfys/yolov5_tracking/yolov5/utils/augmentations.py +++ /dev/null @@ -1,397 +0,0 @@ -# YOLOv5 🚀 by Ultralytics, AGPL-3.0 license -""" -Image augmentation functions -""" - -import math -import random - -import cv2 -import numpy as np -import torch -import torchvision.transforms as T -import torchvision.transforms.functional as TF - -from yolov5.utils.general import LOGGER, check_version, colorstr, resample_segments, segment2box, xywhn2xyxy -from yolov5.utils.metrics import bbox_ioa - -IMAGENET_MEAN = 0.485, 0.456, 0.406 # RGB mean -IMAGENET_STD = 0.229, 0.224, 0.225 # RGB standard deviation - - -class Albumentations: - # YOLOv5 Albumentations class (optional, only used if package is installed) - def __init__(self, size=640): - self.transform = None - prefix = colorstr('albumentations: ') - try: - import albumentations as A - check_version(A.__version__, '1.0.3', hard=True) # version requirement - - T = [ - A.RandomResizedCrop(height=size, width=size, scale=(0.8, 1.0), ratio=(0.9, 1.11), p=0.0), - A.Blur(p=0.01), - A.MedianBlur(p=0.01), - A.ToGray(p=0.01), - A.CLAHE(p=0.01), - A.RandomBrightnessContrast(p=0.0), - A.RandomGamma(p=0.0), - A.ImageCompression(quality_lower=75, p=0.0)] # transforms - self.transform = A.Compose(T, bbox_params=A.BboxParams(format='yolo', label_fields=['class_labels'])) - - LOGGER.info(prefix + ', '.join(f'{x}'.replace('always_apply=False, ', '') for x in T if x.p)) - except ImportError: # package not installed, skip - pass - except Exception as e: - LOGGER.info(f'{prefix}{e}') - - def __call__(self, im, labels, p=1.0): - if self.transform and random.random() < p: - new = self.transform(image=im, bboxes=labels[:, 1:], class_labels=labels[:, 0]) # transformed - im, labels = new['image'], np.array([[c, *b] for c, b in zip(new['class_labels'], new['bboxes'])]) - return im, labels - - -def normalize(x, mean=IMAGENET_MEAN, std=IMAGENET_STD, inplace=False): - # Denormalize RGB images x per ImageNet stats in BCHW format, i.e. = (x - mean) / std - return TF.normalize(x, mean, std, inplace=inplace) - - -def denormalize(x, mean=IMAGENET_MEAN, std=IMAGENET_STD): - # Denormalize RGB images x per ImageNet stats in BCHW format, i.e. = x * std + mean - for i in range(3): - x[:, i] = x[:, i] * std[i] + mean[i] - return x - - -def augment_hsv(im, hgain=0.5, sgain=0.5, vgain=0.5): - # HSV color-space augmentation - if hgain or sgain or vgain: - r = np.random.uniform(-1, 1, 3) * [hgain, sgain, vgain] + 1 # random gains - hue, sat, val = cv2.split(cv2.cvtColor(im, cv2.COLOR_BGR2HSV)) - dtype = im.dtype # uint8 - - x = np.arange(0, 256, dtype=r.dtype) - lut_hue = ((x * r[0]) % 180).astype(dtype) - lut_sat = np.clip(x * r[1], 0, 255).astype(dtype) - lut_val = np.clip(x * r[2], 0, 255).astype(dtype) - - im_hsv = cv2.merge((cv2.LUT(hue, lut_hue), cv2.LUT(sat, lut_sat), cv2.LUT(val, lut_val))) - cv2.cvtColor(im_hsv, cv2.COLOR_HSV2BGR, dst=im) # no return needed - - -def hist_equalize(im, clahe=True, bgr=False): - # Equalize histogram on BGR image 'im' with im.shape(n,m,3) and range 0-255 - yuv = cv2.cvtColor(im, cv2.COLOR_BGR2YUV if bgr else cv2.COLOR_RGB2YUV) - if clahe: - c = cv2.createCLAHE(clipLimit=2.0, tileGridSize=(8, 8)) - yuv[:, :, 0] = c.apply(yuv[:, :, 0]) - else: - yuv[:, :, 0] = cv2.equalizeHist(yuv[:, :, 0]) # equalize Y channel histogram - return cv2.cvtColor(yuv, cv2.COLOR_YUV2BGR if bgr else cv2.COLOR_YUV2RGB) # convert YUV image to RGB - - -def replicate(im, labels): - # Replicate labels - h, w = im.shape[:2] - boxes = labels[:, 1:].astype(int) - x1, y1, x2, y2 = boxes.T - s = ((x2 - x1) + (y2 - y1)) / 2 # side length (pixels) - for i in s.argsort()[:round(s.size * 0.5)]: # smallest indices - x1b, y1b, x2b, y2b = boxes[i] - bh, bw = y2b - y1b, x2b - x1b - yc, xc = int(random.uniform(0, h - bh)), int(random.uniform(0, w - bw)) # offset x, y - x1a, y1a, x2a, y2a = [xc, yc, xc + bw, yc + bh] - im[y1a:y2a, x1a:x2a] = im[y1b:y2b, x1b:x2b] # im4[ymin:ymax, xmin:xmax] - labels = np.append(labels, [[labels[i, 0], x1a, y1a, x2a, y2a]], axis=0) - - return im, labels - - -def letterbox(im, new_shape=(640, 640), color=(114, 114, 114), auto=True, scaleFill=False, scaleup=True, stride=32): - # Resize and pad image while meeting stride-multiple constraints - shape = im.shape[:2] # current shape [height, width] - if isinstance(new_shape, int): - new_shape = (new_shape, new_shape) - - # Scale ratio (new / old) - r = min(new_shape[0] / shape[0], new_shape[1] / shape[1]) - if not scaleup: # only scale down, do not scale up (for better val mAP) - r = min(r, 1.0) - - # Compute padding - ratio = r, r # width, height ratios - new_unpad = int(round(shape[1] * r)), int(round(shape[0] * r)) - dw, dh = new_shape[1] - new_unpad[0], new_shape[0] - new_unpad[1] # wh padding - if auto: # minimum rectangle - dw, dh = np.mod(dw, stride), np.mod(dh, stride) # wh padding - elif scaleFill: # stretch - dw, dh = 0.0, 0.0 - new_unpad = (new_shape[1], new_shape[0]) - ratio = new_shape[1] / shape[1], new_shape[0] / shape[0] # width, height ratios - - dw /= 2 # divide padding into 2 sides - dh /= 2 - - if shape[::-1] != new_unpad: # resize - im = cv2.resize(im, new_unpad, interpolation=cv2.INTER_LINEAR) - top, bottom = int(round(dh - 0.1)), int(round(dh + 0.1)) - left, right = int(round(dw - 0.1)), int(round(dw + 0.1)) - im = cv2.copyMakeBorder(im, top, bottom, left, right, cv2.BORDER_CONSTANT, value=color) # add border - return im, ratio, (dw, dh) - - -def random_perspective(im, - targets=(), - segments=(), - degrees=10, - translate=.1, - scale=.1, - shear=10, - perspective=0.0, - border=(0, 0)): - # torchvision.transforms.RandomAffine(degrees=(-10, 10), translate=(0.1, 0.1), scale=(0.9, 1.1), shear=(-10, 10)) - # targets = [cls, xyxy] - - height = im.shape[0] + border[0] * 2 # shape(h,w,c) - width = im.shape[1] + border[1] * 2 - - # Center - C = np.eye(3) - C[0, 2] = -im.shape[1] / 2 # x translation (pixels) - C[1, 2] = -im.shape[0] / 2 # y translation (pixels) - - # Perspective - P = np.eye(3) - P[2, 0] = random.uniform(-perspective, perspective) # x perspective (about y) - P[2, 1] = random.uniform(-perspective, perspective) # y perspective (about x) - - # Rotation and Scale - R = np.eye(3) - a = random.uniform(-degrees, degrees) - # a += random.choice([-180, -90, 0, 90]) # add 90deg rotations to small rotations - s = random.uniform(1 - scale, 1 + scale) - # s = 2 ** random.uniform(-scale, scale) - R[:2] = cv2.getRotationMatrix2D(angle=a, center=(0, 0), scale=s) - - # Shear - S = np.eye(3) - S[0, 1] = math.tan(random.uniform(-shear, shear) * math.pi / 180) # x shear (deg) - S[1, 0] = math.tan(random.uniform(-shear, shear) * math.pi / 180) # y shear (deg) - - # Translation - T = np.eye(3) - T[0, 2] = random.uniform(0.5 - translate, 0.5 + translate) * width # x translation (pixels) - T[1, 2] = random.uniform(0.5 - translate, 0.5 + translate) * height # y translation (pixels) - - # Combined rotation matrix - M = T @ S @ R @ P @ C # order of operations (right to left) is IMPORTANT - if (border[0] != 0) or (border[1] != 0) or (M != np.eye(3)).any(): # image changed - if perspective: - im = cv2.warpPerspective(im, M, dsize=(width, height), borderValue=(114, 114, 114)) - else: # affine - im = cv2.warpAffine(im, M[:2], dsize=(width, height), borderValue=(114, 114, 114)) - - # Visualize - # import matplotlib.pyplot as plt - # ax = plt.subplots(1, 2, figsize=(12, 6))[1].ravel() - # ax[0].imshow(im[:, :, ::-1]) # base - # ax[1].imshow(im2[:, :, ::-1]) # warped - - # Transform label coordinates - n = len(targets) - if n: - use_segments = any(x.any() for x in segments) and len(segments) == n - new = np.zeros((n, 4)) - if use_segments: # warp segments - segments = resample_segments(segments) # upsample - for i, segment in enumerate(segments): - xy = np.ones((len(segment), 3)) - xy[:, :2] = segment - xy = xy @ M.T # transform - xy = xy[:, :2] / xy[:, 2:3] if perspective else xy[:, :2] # perspective rescale or affine - - # clip - new[i] = segment2box(xy, width, height) - - else: # warp boxes - xy = np.ones((n * 4, 3)) - xy[:, :2] = targets[:, [1, 2, 3, 4, 1, 4, 3, 2]].reshape(n * 4, 2) # x1y1, x2y2, x1y2, x2y1 - xy = xy @ M.T # transform - xy = (xy[:, :2] / xy[:, 2:3] if perspective else xy[:, :2]).reshape(n, 8) # perspective rescale or affine - - # create new boxes - x = xy[:, [0, 2, 4, 6]] - y = xy[:, [1, 3, 5, 7]] - new = np.concatenate((x.min(1), y.min(1), x.max(1), y.max(1))).reshape(4, n).T - - # clip - new[:, [0, 2]] = new[:, [0, 2]].clip(0, width) - new[:, [1, 3]] = new[:, [1, 3]].clip(0, height) - - # filter candidates - i = box_candidates(box1=targets[:, 1:5].T * s, box2=new.T, area_thr=0.01 if use_segments else 0.10) - targets = targets[i] - targets[:, 1:5] = new[i] - - return im, targets - - -def copy_paste(im, labels, segments, p=0.5): - # Implement Copy-Paste augmentation https://arxiv.org/abs/2012.07177, labels as nx5 np.array(cls, xyxy) - n = len(segments) - if p and n: - h, w, c = im.shape # height, width, channels - im_new = np.zeros(im.shape, np.uint8) - for j in random.sample(range(n), k=round(p * n)): - l, s = labels[j], segments[j] - box = w - l[3], l[2], w - l[1], l[4] - ioa = bbox_ioa(box, labels[:, 1:5]) # intersection over area - if (ioa < 0.30).all(): # allow 30% obscuration of existing labels - labels = np.concatenate((labels, [[l[0], *box]]), 0) - segments.append(np.concatenate((w - s[:, 0:1], s[:, 1:2]), 1)) - cv2.drawContours(im_new, [segments[j].astype(np.int32)], -1, (1, 1, 1), cv2.FILLED) - - result = cv2.flip(im, 1) # augment segments (flip left-right) - i = cv2.flip(im_new, 1).astype(bool) - im[i] = result[i] # cv2.imwrite('debug.jpg', im) # debug - - return im, labels, segments - - -def cutout(im, labels, p=0.5): - # Applies image cutout augmentation https://arxiv.org/abs/1708.04552 - if random.random() < p: - h, w = im.shape[:2] - scales = [0.5] * 1 + [0.25] * 2 + [0.125] * 4 + [0.0625] * 8 + [0.03125] * 16 # image size fraction - for s in scales: - mask_h = random.randint(1, int(h * s)) # create random masks - mask_w = random.randint(1, int(w * s)) - - # box - xmin = max(0, random.randint(0, w) - mask_w // 2) - ymin = max(0, random.randint(0, h) - mask_h // 2) - xmax = min(w, xmin + mask_w) - ymax = min(h, ymin + mask_h) - - # apply random color mask - im[ymin:ymax, xmin:xmax] = [random.randint(64, 191) for _ in range(3)] - - # return unobscured labels - if len(labels) and s > 0.03: - box = np.array([xmin, ymin, xmax, ymax], dtype=np.float32) - ioa = bbox_ioa(box, xywhn2xyxy(labels[:, 1:5], w, h)) # intersection over area - labels = labels[ioa < 0.60] # remove >60% obscured labels - - return labels - - -def mixup(im, labels, im2, labels2): - # Applies MixUp augmentation https://arxiv.org/pdf/1710.09412.pdf - r = np.random.beta(32.0, 32.0) # mixup ratio, alpha=beta=32.0 - im = (im * r + im2 * (1 - r)).astype(np.uint8) - labels = np.concatenate((labels, labels2), 0) - return im, labels - - -def box_candidates(box1, box2, wh_thr=2, ar_thr=100, area_thr=0.1, eps=1e-16): # box1(4,n), box2(4,n) - # Compute candidate boxes: box1 before augment, box2 after augment, wh_thr (pixels), aspect_ratio_thr, area_ratio - w1, h1 = box1[2] - box1[0], box1[3] - box1[1] - w2, h2 = box2[2] - box2[0], box2[3] - box2[1] - ar = np.maximum(w2 / (h2 + eps), h2 / (w2 + eps)) # aspect ratio - return (w2 > wh_thr) & (h2 > wh_thr) & (w2 * h2 / (w1 * h1 + eps) > area_thr) & (ar < ar_thr) # candidates - - -def classify_albumentations( - augment=True, - size=224, - scale=(0.08, 1.0), - ratio=(0.75, 1.0 / 0.75), # 0.75, 1.33 - hflip=0.5, - vflip=0.0, - jitter=0.4, - mean=IMAGENET_MEAN, - std=IMAGENET_STD, - auto_aug=False): - # YOLOv5 classification Albumentations (optional, only used if package is installed) - prefix = colorstr('albumentations: ') - try: - import albumentations as A - from albumentations.pytorch import ToTensorV2 - check_version(A.__version__, '1.0.3', hard=True) # version requirement - if augment: # Resize and crop - T = [A.RandomResizedCrop(height=size, width=size, scale=scale, ratio=ratio)] - if auto_aug: - # TODO: implement AugMix, AutoAug & RandAug in albumentation - LOGGER.info(f'{prefix}auto augmentations are currently not supported') - else: - if hflip > 0: - T += [A.HorizontalFlip(p=hflip)] - if vflip > 0: - T += [A.VerticalFlip(p=vflip)] - if jitter > 0: - color_jitter = (float(jitter),) * 3 # repeat value for brightness, contrast, satuaration, 0 hue - T += [A.ColorJitter(*color_jitter, 0)] - else: # Use fixed crop for eval set (reproducibility) - T = [A.SmallestMaxSize(max_size=size), A.CenterCrop(height=size, width=size)] - T += [A.Normalize(mean=mean, std=std), ToTensorV2()] # Normalize and convert to Tensor - LOGGER.info(prefix + ', '.join(f'{x}'.replace('always_apply=False, ', '') for x in T if x.p)) - return A.Compose(T) - - except ImportError: # package not installed, skip - LOGGER.warning(f'{prefix}⚠️ not found, install with `pip install albumentations` (recommended)') - except Exception as e: - LOGGER.info(f'{prefix}{e}') - - -def classify_transforms(size=224): - # Transforms to apply if albumentations not installed - assert isinstance(size, int), f'ERROR: classify_transforms size {size} must be integer, not (list, tuple)' - # T.Compose([T.ToTensor(), T.Resize(size), T.CenterCrop(size), T.Normalize(IMAGENET_MEAN, IMAGENET_STD)]) - return T.Compose([CenterCrop(size), ToTensor(), T.Normalize(IMAGENET_MEAN, IMAGENET_STD)]) - - -class LetterBox: - # YOLOv5 LetterBox class for image preprocessing, i.e. T.Compose([LetterBox(size), ToTensor()]) - def __init__(self, size=(640, 640), auto=False, stride=32): - super().__init__() - self.h, self.w = (size, size) if isinstance(size, int) else size - self.auto = auto # pass max size integer, automatically solve for short side using stride - self.stride = stride # used with auto - - def __call__(self, im): # im = np.array HWC - imh, imw = im.shape[:2] - r = min(self.h / imh, self.w / imw) # ratio of new/old - h, w = round(imh * r), round(imw * r) # resized image - hs, ws = (math.ceil(x / self.stride) * self.stride for x in (h, w)) if self.auto else self.h, self.w - top, left = round((hs - h) / 2 - 0.1), round((ws - w) / 2 - 0.1) - im_out = np.full((self.h, self.w, 3), 114, dtype=im.dtype) - im_out[top:top + h, left:left + w] = cv2.resize(im, (w, h), interpolation=cv2.INTER_LINEAR) - return im_out - - -class CenterCrop: - # YOLOv5 CenterCrop class for image preprocessing, i.e. T.Compose([CenterCrop(size), ToTensor()]) - def __init__(self, size=640): - super().__init__() - self.h, self.w = (size, size) if isinstance(size, int) else size - - def __call__(self, im): # im = np.array HWC - imh, imw = im.shape[:2] - m = min(imh, imw) # min dimension - top, left = (imh - m) // 2, (imw - m) // 2 - return cv2.resize(im[top:top + m, left:left + m], (self.w, self.h), interpolation=cv2.INTER_LINEAR) - - -class ToTensor: - # YOLOv5 ToTensor class for image preprocessing, i.e. T.Compose([LetterBox(size), ToTensor()]) - def __init__(self, half=False): - super().__init__() - self.half = half - - def __call__(self, im): # im = np.array HWC in BGR order - im = np.ascontiguousarray(im.transpose((2, 0, 1))[::-1]) # HWC to CHW -> BGR to RGB -> contiguous - im = torch.from_numpy(im) # to torch - im = im.half() if self.half else im.float() # uint8 to fp16/32 - im /= 255.0 # 0-255 to 0.0-1.0 - return im diff --git a/spaces/xinhai/Spleeter/README.md b/spaces/xinhai/Spleeter/README.md deleted file mode 100644 index c35291f4dce76daf61d33a687a81796fc210749b..0000000000000000000000000000000000000000 --- a/spaces/xinhai/Spleeter/README.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -title: Spleeter -emoji: 💻 -colorFrom: purple -colorTo: blue -sdk: gradio -app_file: app.py -pinned: false -duplicated_from: akhaliq/Spleeter ---- - -# Configuration - -`title`: _string_ -Display title for the Space - -`emoji`: _string_ -Space emoji (emoji-only character allowed) - -`colorFrom`: _string_ -Color for Thumbnail gradient (red, yellow, green, blue, indigo, purple, pink, gray) - -`colorTo`: _string_ -Color for Thumbnail gradient (red, yellow, green, blue, indigo, purple, pink, gray) - -`sdk`: _string_ -Can be either `gradio` or `streamlit` - -`app_file`: _string_ -Path to your main application file (which contains either `gradio` or `streamlit` Python code). -Path is relative to the root of the repository. - -`pinned`: _boolean_ -Whether the Space stays on top of your list. diff --git a/spaces/xinyu2/anime-remove-background/README.md b/spaces/xinyu2/anime-remove-background/README.md deleted file mode 100644 index 1ba3cb5ea0e994e246d57b7d62b8aa5a6331901c..0000000000000000000000000000000000000000 --- a/spaces/xinyu2/anime-remove-background/README.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -title: Anime Remove Background -emoji: 🪄🖼️ -colorFrom: indigo -colorTo: pink -sdk: gradio -sdk_version: 3.1.4 -app_file: app.py -pinned: false -license: apache-2.0 -duplicated_from: skytnt/anime-remove-background ---- - -Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference diff --git a/spaces/xwsm/gpt/crazy_functions/test_project/cpp/libJPG/jpgd.cpp b/spaces/xwsm/gpt/crazy_functions/test_project/cpp/libJPG/jpgd.cpp deleted file mode 100644 index 36d06c8e9068570c3e7624895d474f33dbfe3d29..0000000000000000000000000000000000000000 --- a/spaces/xwsm/gpt/crazy_functions/test_project/cpp/libJPG/jpgd.cpp +++ /dev/null @@ -1,3276 +0,0 @@ -// jpgd.cpp - C++ class for JPEG decompression. -// Public domain, Rich Geldreich -// Last updated Apr. 16, 2011 -// Alex Evans: Linear memory allocator (taken from jpge.h). -// -// Supports progressive and baseline sequential JPEG image files, and the most common chroma subsampling factors: Y, H1V1, H2V1, H1V2, and H2V2. -// -// Chroma upsampling quality: H2V2 is upsampled in the frequency domain, H2V1 and H1V2 are upsampled using point sampling. -// Chroma upsampling reference: "Fast Scheme for Image Size Change in the Compressed Domain" -// http://vision.ai.uiuc.edu/~dugad/research/dct/index.html - -#include "jpgd.h" -#include - -#include -// BEGIN EPIC MOD -#define JPGD_ASSERT(x) { assert(x); CA_ASSUME(x); } (void)0 -// END EPIC MOD - -#ifdef _MSC_VER -#pragma warning (disable : 4611) // warning C4611: interaction between '_setjmp' and C++ object destruction is non-portable -#endif - -// Set to 1 to enable freq. domain chroma upsampling on images using H2V2 subsampling (0=faster nearest neighbor sampling). -// This is slower, but results in higher quality on images with highly saturated colors. -#define JPGD_SUPPORT_FREQ_DOMAIN_UPSAMPLING 1 - -#define JPGD_TRUE (1) -#define JPGD_FALSE (0) - -#define JPGD_MAX(a,b) (((a)>(b)) ? (a) : (b)) -#define JPGD_MIN(a,b) (((a)<(b)) ? (a) : (b)) - -namespace jpgd { - - static inline void *jpgd_malloc(size_t nSize) { return FMemory::Malloc(nSize); } - static inline void jpgd_free(void *p) { FMemory::Free(p); } - -// BEGIN EPIC MOD -//@UE3 - use UE3 BGRA encoding instead of assuming RGBA - // stolen from IImageWrapper.h - enum ERGBFormatJPG - { - Invalid = -1, - RGBA = 0, - BGRA = 1, - Gray = 2, - }; - static ERGBFormatJPG jpg_format; -// END EPIC MOD - - // DCT coefficients are stored in this sequence. - static int g_ZAG[64] = { 0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63 }; - - enum JPEG_MARKER - { - M_SOF0 = 0xC0, M_SOF1 = 0xC1, M_SOF2 = 0xC2, M_SOF3 = 0xC3, M_SOF5 = 0xC5, M_SOF6 = 0xC6, M_SOF7 = 0xC7, M_JPG = 0xC8, - M_SOF9 = 0xC9, M_SOF10 = 0xCA, M_SOF11 = 0xCB, M_SOF13 = 0xCD, M_SOF14 = 0xCE, M_SOF15 = 0xCF, M_DHT = 0xC4, M_DAC = 0xCC, - M_RST0 = 0xD0, M_RST1 = 0xD1, M_RST2 = 0xD2, M_RST3 = 0xD3, M_RST4 = 0xD4, M_RST5 = 0xD5, M_RST6 = 0xD6, M_RST7 = 0xD7, - M_SOI = 0xD8, M_EOI = 0xD9, M_SOS = 0xDA, M_DQT = 0xDB, M_DNL = 0xDC, M_DRI = 0xDD, M_DHP = 0xDE, M_EXP = 0xDF, - M_APP0 = 0xE0, M_APP15 = 0xEF, M_JPG0 = 0xF0, M_JPG13 = 0xFD, M_COM = 0xFE, M_TEM = 0x01, M_ERROR = 0x100, RST0 = 0xD0 - }; - - enum JPEG_SUBSAMPLING { JPGD_GRAYSCALE = 0, JPGD_YH1V1, JPGD_YH2V1, JPGD_YH1V2, JPGD_YH2V2 }; - -#define CONST_BITS 13 -#define PASS1_BITS 2 -#define SCALEDONE ((int32)1) - -#define FIX_0_298631336 ((int32)2446) /* FIX(0.298631336) */ -#define FIX_0_390180644 ((int32)3196) /* FIX(0.390180644) */ -#define FIX_0_541196100 ((int32)4433) /* FIX(0.541196100) */ -#define FIX_0_765366865 ((int32)6270) /* FIX(0.765366865) */ -#define FIX_0_899976223 ((int32)7373) /* FIX(0.899976223) */ -#define FIX_1_175875602 ((int32)9633) /* FIX(1.175875602) */ -#define FIX_1_501321110 ((int32)12299) /* FIX(1.501321110) */ -#define FIX_1_847759065 ((int32)15137) /* FIX(1.847759065) */ -#define FIX_1_961570560 ((int32)16069) /* FIX(1.961570560) */ -#define FIX_2_053119869 ((int32)16819) /* FIX(2.053119869) */ -#define FIX_2_562915447 ((int32)20995) /* FIX(2.562915447) */ -#define FIX_3_072711026 ((int32)25172) /* FIX(3.072711026) */ - -#define DESCALE(x,n) (((x) + (SCALEDONE << ((n)-1))) >> (n)) -#define DESCALE_ZEROSHIFT(x,n) (((x) + (128 << (n)) + (SCALEDONE << ((n)-1))) >> (n)) - -#define MULTIPLY(var, cnst) ((var) * (cnst)) - -#define CLAMP(i) ((static_cast(i) > 255) ? (((~i) >> 31) & 0xFF) : (i)) - - // Compiler creates a fast path 1D IDCT for X non-zero columns - template - struct Row - { - static void idct(int* pTemp, const jpgd_block_t* pSrc) - { - // ACCESS_COL() will be optimized at compile time to either an array access, or 0. -#define ACCESS_COL(x) (((x) < NONZERO_COLS) ? (int)pSrc[x] : 0) - - const int z2 = ACCESS_COL(2), z3 = ACCESS_COL(6); - - const int z1 = MULTIPLY(z2 + z3, FIX_0_541196100); - const int tmp2 = z1 + MULTIPLY(z3, - FIX_1_847759065); - const int tmp3 = z1 + MULTIPLY(z2, FIX_0_765366865); - - const int tmp0 = (ACCESS_COL(0) + ACCESS_COL(4)) << CONST_BITS; - const int tmp1 = (ACCESS_COL(0) - ACCESS_COL(4)) << CONST_BITS; - - const int tmp10 = tmp0 + tmp3, tmp13 = tmp0 - tmp3, tmp11 = tmp1 + tmp2, tmp12 = tmp1 - tmp2; - - const int atmp0 = ACCESS_COL(7), atmp1 = ACCESS_COL(5), atmp2 = ACCESS_COL(3), atmp3 = ACCESS_COL(1); - - const int bz1 = atmp0 + atmp3, bz2 = atmp1 + atmp2, bz3 = atmp0 + atmp2, bz4 = atmp1 + atmp3; - const int bz5 = MULTIPLY(bz3 + bz4, FIX_1_175875602); - - const int az1 = MULTIPLY(bz1, - FIX_0_899976223); - const int az2 = MULTIPLY(bz2, - FIX_2_562915447); - const int az3 = MULTIPLY(bz3, - FIX_1_961570560) + bz5; - const int az4 = MULTIPLY(bz4, - FIX_0_390180644) + bz5; - - const int btmp0 = MULTIPLY(atmp0, FIX_0_298631336) + az1 + az3; - const int btmp1 = MULTIPLY(atmp1, FIX_2_053119869) + az2 + az4; - const int btmp2 = MULTIPLY(atmp2, FIX_3_072711026) + az2 + az3; - const int btmp3 = MULTIPLY(atmp3, FIX_1_501321110) + az1 + az4; - - pTemp[0] = DESCALE(tmp10 + btmp3, CONST_BITS-PASS1_BITS); - pTemp[7] = DESCALE(tmp10 - btmp3, CONST_BITS-PASS1_BITS); - pTemp[1] = DESCALE(tmp11 + btmp2, CONST_BITS-PASS1_BITS); - pTemp[6] = DESCALE(tmp11 - btmp2, CONST_BITS-PASS1_BITS); - pTemp[2] = DESCALE(tmp12 + btmp1, CONST_BITS-PASS1_BITS); - pTemp[5] = DESCALE(tmp12 - btmp1, CONST_BITS-PASS1_BITS); - pTemp[3] = DESCALE(tmp13 + btmp0, CONST_BITS-PASS1_BITS); - pTemp[4] = DESCALE(tmp13 - btmp0, CONST_BITS-PASS1_BITS); - } - }; - - template <> - struct Row<0> - { - static void idct(int* pTemp, const jpgd_block_t* pSrc) - { -#ifdef _MSC_VER - pTemp; pSrc; -#endif - } - }; - - template <> - struct Row<1> - { - static void idct(int* pTemp, const jpgd_block_t* pSrc) - { - const int dcval = (pSrc[0] << PASS1_BITS); - - pTemp[0] = dcval; - pTemp[1] = dcval; - pTemp[2] = dcval; - pTemp[3] = dcval; - pTemp[4] = dcval; - pTemp[5] = dcval; - pTemp[6] = dcval; - pTemp[7] = dcval; - } - }; - - // Compiler creates a fast path 1D IDCT for X non-zero rows - template - struct Col - { - static void idct(uint8* pDst_ptr, const int* pTemp) - { - // ACCESS_ROW() will be optimized at compile time to either an array access, or 0. -#define ACCESS_ROW(x) (((x) < NONZERO_ROWS) ? pTemp[x * 8] : 0) - - const int z2 = ACCESS_ROW(2); - const int z3 = ACCESS_ROW(6); - - const int z1 = MULTIPLY(z2 + z3, FIX_0_541196100); - const int tmp2 = z1 + MULTIPLY(z3, - FIX_1_847759065); - const int tmp3 = z1 + MULTIPLY(z2, FIX_0_765366865); - - const int tmp0 = (ACCESS_ROW(0) + ACCESS_ROW(4)) << CONST_BITS; - const int tmp1 = (ACCESS_ROW(0) - ACCESS_ROW(4)) << CONST_BITS; - - const int tmp10 = tmp0 + tmp3, tmp13 = tmp0 - tmp3, tmp11 = tmp1 + tmp2, tmp12 = tmp1 - tmp2; - - const int atmp0 = ACCESS_ROW(7), atmp1 = ACCESS_ROW(5), atmp2 = ACCESS_ROW(3), atmp3 = ACCESS_ROW(1); - - const int bz1 = atmp0 + atmp3, bz2 = atmp1 + atmp2, bz3 = atmp0 + atmp2, bz4 = atmp1 + atmp3; - const int bz5 = MULTIPLY(bz3 + bz4, FIX_1_175875602); - - const int az1 = MULTIPLY(bz1, - FIX_0_899976223); - const int az2 = MULTIPLY(bz2, - FIX_2_562915447); - const int az3 = MULTIPLY(bz3, - FIX_1_961570560) + bz5; - const int az4 = MULTIPLY(bz4, - FIX_0_390180644) + bz5; - - const int btmp0 = MULTIPLY(atmp0, FIX_0_298631336) + az1 + az3; - const int btmp1 = MULTIPLY(atmp1, FIX_2_053119869) + az2 + az4; - const int btmp2 = MULTIPLY(atmp2, FIX_3_072711026) + az2 + az3; - const int btmp3 = MULTIPLY(atmp3, FIX_1_501321110) + az1 + az4; - - int i = DESCALE_ZEROSHIFT(tmp10 + btmp3, CONST_BITS+PASS1_BITS+3); - pDst_ptr[8*0] = (uint8)CLAMP(i); - - i = DESCALE_ZEROSHIFT(tmp10 - btmp3, CONST_BITS+PASS1_BITS+3); - pDst_ptr[8*7] = (uint8)CLAMP(i); - - i = DESCALE_ZEROSHIFT(tmp11 + btmp2, CONST_BITS+PASS1_BITS+3); - pDst_ptr[8*1] = (uint8)CLAMP(i); - - i = DESCALE_ZEROSHIFT(tmp11 - btmp2, CONST_BITS+PASS1_BITS+3); - pDst_ptr[8*6] = (uint8)CLAMP(i); - - i = DESCALE_ZEROSHIFT(tmp12 + btmp1, CONST_BITS+PASS1_BITS+3); - pDst_ptr[8*2] = (uint8)CLAMP(i); - - i = DESCALE_ZEROSHIFT(tmp12 - btmp1, CONST_BITS+PASS1_BITS+3); - pDst_ptr[8*5] = (uint8)CLAMP(i); - - i = DESCALE_ZEROSHIFT(tmp13 + btmp0, CONST_BITS+PASS1_BITS+3); - pDst_ptr[8*3] = (uint8)CLAMP(i); - - i = DESCALE_ZEROSHIFT(tmp13 - btmp0, CONST_BITS+PASS1_BITS+3); - pDst_ptr[8*4] = (uint8)CLAMP(i); - } - }; - - template <> - struct Col<1> - { - static void idct(uint8* pDst_ptr, const int* pTemp) - { - int dcval = DESCALE_ZEROSHIFT(pTemp[0], PASS1_BITS+3); - const uint8 dcval_clamped = (uint8)CLAMP(dcval); - pDst_ptr[0*8] = dcval_clamped; - pDst_ptr[1*8] = dcval_clamped; - pDst_ptr[2*8] = dcval_clamped; - pDst_ptr[3*8] = dcval_clamped; - pDst_ptr[4*8] = dcval_clamped; - pDst_ptr[5*8] = dcval_clamped; - pDst_ptr[6*8] = dcval_clamped; - pDst_ptr[7*8] = dcval_clamped; - } - }; - - static const uint8 s_idct_row_table[] = - { - 1,0,0,0,0,0,0,0, 2,0,0,0,0,0,0,0, 2,1,0,0,0,0,0,0, 2,1,1,0,0,0,0,0, 2,2,1,0,0,0,0,0, 3,2,1,0,0,0,0,0, 4,2,1,0,0,0,0,0, 4,3,1,0,0,0,0,0, - 4,3,2,0,0,0,0,0, 4,3,2,1,0,0,0,0, 4,3,2,1,1,0,0,0, 4,3,2,2,1,0,0,0, 4,3,3,2,1,0,0,0, 4,4,3,2,1,0,0,0, 5,4,3,2,1,0,0,0, 6,4,3,2,1,0,0,0, - 6,5,3,2,1,0,0,0, 6,5,4,2,1,0,0,0, 6,5,4,3,1,0,0,0, 6,5,4,3,2,0,0,0, 6,5,4,3,2,1,0,0, 6,5,4,3,2,1,1,0, 6,5,4,3,2,2,1,0, 6,5,4,3,3,2,1,0, - 6,5,4,4,3,2,1,0, 6,5,5,4,3,2,1,0, 6,6,5,4,3,2,1,0, 7,6,5,4,3,2,1,0, 8,6,5,4,3,2,1,0, 8,7,5,4,3,2,1,0, 8,7,6,4,3,2,1,0, 8,7,6,5,3,2,1,0, - 8,7,6,5,4,2,1,0, 8,7,6,5,4,3,1,0, 8,7,6,5,4,3,2,0, 8,7,6,5,4,3,2,1, 8,7,6,5,4,3,2,2, 8,7,6,5,4,3,3,2, 8,7,6,5,4,4,3,2, 8,7,6,5,5,4,3,2, - 8,7,6,6,5,4,3,2, 8,7,7,6,5,4,3,2, 8,8,7,6,5,4,3,2, 8,8,8,6,5,4,3,2, 8,8,8,7,5,4,3,2, 8,8,8,7,6,4,3,2, 8,8,8,7,6,5,3,2, 8,8,8,7,6,5,4,2, - 8,8,8,7,6,5,4,3, 8,8,8,7,6,5,4,4, 8,8,8,7,6,5,5,4, 8,8,8,7,6,6,5,4, 8,8,8,7,7,6,5,4, 8,8,8,8,7,6,5,4, 8,8,8,8,8,6,5,4, 8,8,8,8,8,7,5,4, - 8,8,8,8,8,7,6,4, 8,8,8,8,8,7,6,5, 8,8,8,8,8,7,6,6, 8,8,8,8,8,7,7,6, 8,8,8,8,8,8,7,6, 8,8,8,8,8,8,8,6, 8,8,8,8,8,8,8,7, 8,8,8,8,8,8,8,8, - }; - - static const uint8 s_idct_col_table[] = { 1, 1, 2, 3, 3, 3, 3, 3, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8 }; - - void idct(const jpgd_block_t* pSrc_ptr, uint8* pDst_ptr, int block_max_zag) - { - JPGD_ASSERT(block_max_zag >= 1); - JPGD_ASSERT(block_max_zag <= 64); - - if (block_max_zag == 1) - { - int k = ((pSrc_ptr[0] + 4) >> 3) + 128; - k = CLAMP(k); - k = k | (k<<8); - k = k | (k<<16); - - for (int i = 8; i > 0; i--) - { - *(int*)&pDst_ptr[0] = k; - *(int*)&pDst_ptr[4] = k; - pDst_ptr += 8; - } - return; - } - - int temp[64]; - - const jpgd_block_t* pSrc = pSrc_ptr; - int* pTemp = temp; - - const uint8* pRow_tab = &s_idct_row_table[(block_max_zag - 1) * 8]; - int i; - for (i = 8; i > 0; i--, pRow_tab++) - { - switch (*pRow_tab) - { - case 0: Row<0>::idct(pTemp, pSrc); break; - case 1: Row<1>::idct(pTemp, pSrc); break; - case 2: Row<2>::idct(pTemp, pSrc); break; - case 3: Row<3>::idct(pTemp, pSrc); break; - case 4: Row<4>::idct(pTemp, pSrc); break; - case 5: Row<5>::idct(pTemp, pSrc); break; - case 6: Row<6>::idct(pTemp, pSrc); break; - case 7: Row<7>::idct(pTemp, pSrc); break; - case 8: Row<8>::idct(pTemp, pSrc); break; - } - - pSrc += 8; - pTemp += 8; - } - - pTemp = temp; - - const int nonzero_rows = s_idct_col_table[block_max_zag - 1]; - for (i = 8; i > 0; i--) - { - switch (nonzero_rows) - { - case 1: Col<1>::idct(pDst_ptr, pTemp); break; - case 2: Col<2>::idct(pDst_ptr, pTemp); break; - case 3: Col<3>::idct(pDst_ptr, pTemp); break; - case 4: Col<4>::idct(pDst_ptr, pTemp); break; - case 5: Col<5>::idct(pDst_ptr, pTemp); break; - case 6: Col<6>::idct(pDst_ptr, pTemp); break; - case 7: Col<7>::idct(pDst_ptr, pTemp); break; - case 8: Col<8>::idct(pDst_ptr, pTemp); break; - } - - pTemp++; - pDst_ptr++; - } - } - - void idct_4x4(const jpgd_block_t* pSrc_ptr, uint8* pDst_ptr) - { - int temp[64]; - int* pTemp = temp; - const jpgd_block_t* pSrc = pSrc_ptr; - - for (int i = 4; i > 0; i--) - { - Row<4>::idct(pTemp, pSrc); - pSrc += 8; - pTemp += 8; - } - - pTemp = temp; - for (int i = 8; i > 0; i--) - { - Col<4>::idct(pDst_ptr, pTemp); - pTemp++; - pDst_ptr++; - } - } - - // Retrieve one character from the input stream. - inline uint jpeg_decoder::get_char() - { - // Any bytes remaining in buffer? - if (!m_in_buf_left) - { - // Try to get more bytes. - prep_in_buffer(); - // Still nothing to get? - if (!m_in_buf_left) - { - // Pad the end of the stream with 0xFF 0xD9 (EOI marker) - int t = m_tem_flag; - m_tem_flag ^= 1; - if (t) - return 0xD9; - else - return 0xFF; - } - } - - uint c = *m_pIn_buf_ofs++; - m_in_buf_left--; - - return c; - } - - // Same as previous method, except can indicate if the character is a pad character or not. - inline uint jpeg_decoder::get_char(bool *pPadding_flag) - { - if (!m_in_buf_left) - { - prep_in_buffer(); - if (!m_in_buf_left) - { - *pPadding_flag = true; - int t = m_tem_flag; - m_tem_flag ^= 1; - if (t) - return 0xD9; - else - return 0xFF; - } - } - - *pPadding_flag = false; - - uint c = *m_pIn_buf_ofs++; - m_in_buf_left--; - - return c; - } - - // Inserts a previously retrieved character back into the input buffer. - inline void jpeg_decoder::stuff_char(uint8 q) - { - *(--m_pIn_buf_ofs) = q; - m_in_buf_left++; - } - - // Retrieves one character from the input stream, but does not read past markers. Will continue to return 0xFF when a marker is encountered. - inline uint8 jpeg_decoder::get_octet() - { - bool padding_flag; - int c = get_char(&padding_flag); - - if (c == 0xFF) - { - if (padding_flag) - return 0xFF; - - c = get_char(&padding_flag); - if (padding_flag) - { - stuff_char(0xFF); - return 0xFF; - } - - if (c == 0x00) - return 0xFF; - else - { - stuff_char(static_cast(c)); - stuff_char(0xFF); - return 0xFF; - } - } - - return static_cast(c); - } - - // Retrieves a variable number of bits from the input stream. Does not recognize markers. - inline uint jpeg_decoder::get_bits(int num_bits) - { - if (!num_bits) - return 0; - - uint i = m_bit_buf >> (32 - num_bits); - - if ((m_bits_left -= num_bits) <= 0) - { - m_bit_buf <<= (num_bits += m_bits_left); - - uint c1 = get_char(); - uint c2 = get_char(); - m_bit_buf = (m_bit_buf & 0xFFFF0000) | (c1 << 8) | c2; - - m_bit_buf <<= -m_bits_left; - - m_bits_left += 16; - - JPGD_ASSERT(m_bits_left >= 0); - } - else - m_bit_buf <<= num_bits; - - return i; - } - - // Retrieves a variable number of bits from the input stream. Markers will not be read into the input bit buffer. Instead, an infinite number of all 1's will be returned when a marker is encountered. - inline uint jpeg_decoder::get_bits_no_markers(int num_bits) - { - if (!num_bits) - return 0; - - uint i = m_bit_buf >> (32 - num_bits); - - if ((m_bits_left -= num_bits) <= 0) - { - m_bit_buf <<= (num_bits += m_bits_left); - - if ((m_in_buf_left < 2) || (m_pIn_buf_ofs[0] == 0xFF) || (m_pIn_buf_ofs[1] == 0xFF)) - { - uint c1 = get_octet(); - uint c2 = get_octet(); - m_bit_buf |= (c1 << 8) | c2; - } - else - { - m_bit_buf |= ((uint)m_pIn_buf_ofs[0] << 8) | m_pIn_buf_ofs[1]; - m_in_buf_left -= 2; - m_pIn_buf_ofs += 2; - } - - m_bit_buf <<= -m_bits_left; - - m_bits_left += 16; - - JPGD_ASSERT(m_bits_left >= 0); - } - else - m_bit_buf <<= num_bits; - - return i; - } - - // Decodes a Huffman encoded symbol. - inline int jpeg_decoder::huff_decode(huff_tables *pH) - { - int symbol; - - // Check first 8-bits: do we have a complete symbol? - if ((symbol = pH->look_up[m_bit_buf >> 24]) < 0) - { - // Decode more bits, use a tree traversal to find symbol. - int ofs = 23; - do - { - symbol = pH->tree[-(int)(symbol + ((m_bit_buf >> ofs) & 1))]; - ofs--; - } while (symbol < 0); - - get_bits_no_markers(8 + (23 - ofs)); - } - else - get_bits_no_markers(pH->code_size[symbol]); - - return symbol; - } - - // Decodes a Huffman encoded symbol. - inline int jpeg_decoder::huff_decode(huff_tables *pH, int& extra_bits) - { - int symbol; - - // Check first 8-bits: do we have a complete symbol? - if ((symbol = pH->look_up2[m_bit_buf >> 24]) < 0) - { - // Use a tree traversal to find symbol. - int ofs = 23; - do - { - symbol = pH->tree[-(int)(symbol + ((m_bit_buf >> ofs) & 1))]; - ofs--; - } while (symbol < 0); - - get_bits_no_markers(8 + (23 - ofs)); - - extra_bits = get_bits_no_markers(symbol & 0xF); - } - else - { - JPGD_ASSERT(((symbol >> 8) & 31) == pH->code_size[symbol & 255] + ((symbol & 0x8000) ? (symbol & 15) : 0)); - - if (symbol & 0x8000) - { - get_bits_no_markers((symbol >> 8) & 31); - extra_bits = symbol >> 16; - } - else - { - int code_size = (symbol >> 8) & 31; - int num_extra_bits = symbol & 0xF; - int bits = code_size + num_extra_bits; - if (bits <= (m_bits_left + 16)) - extra_bits = get_bits_no_markers(bits) & ((1 << num_extra_bits) - 1); - else - { - get_bits_no_markers(code_size); - extra_bits = get_bits_no_markers(num_extra_bits); - } - } - - symbol &= 0xFF; - } - - return symbol; - } - - // Tables and macro used to fully decode the DPCM differences. - static const int s_extend_test[16] = { 0, 0x0001, 0x0002, 0x0004, 0x0008, 0x0010, 0x0020, 0x0040, 0x0080, 0x0100, 0x0200, 0x0400, 0x0800, 0x1000, 0x2000, 0x4000 }; - static const int s_extend_offset[16] = { 0, -1, -3, -7, -15, -31, -63, -127, -255, -511, -1023, -2047, -4095, -8191, -16383, -32767 }; - static const int s_extend_mask[] = { 0, (1<<0), (1<<1), (1<<2), (1<<3), (1<<4), (1<<5), (1<<6), (1<<7), (1<<8), (1<<9), (1<<10), (1<<11), (1<<12), (1<<13), (1<<14), (1<<15), (1<<16) }; -#define HUFF_EXTEND(x,s) ((x) < s_extend_test[s] ? (x) + s_extend_offset[s] : (x)) - - // Clamps a value between 0-255. - inline uint8 jpeg_decoder::clamp(int i) - { - if (static_cast(i) > 255) - i = (((~i) >> 31) & 0xFF); - - return static_cast(i); - } - - namespace DCT_Upsample - { - struct Matrix44 - { - typedef int Element_Type; - enum { NUM_ROWS = 4, NUM_COLS = 4 }; - - Element_Type v[NUM_ROWS][NUM_COLS]; - - inline int rows() const { return NUM_ROWS; } - inline int cols() const { return NUM_COLS; } - - inline const Element_Type & at(int r, int c) const { return v[r][c]; } - inline Element_Type & at(int r, int c) { return v[r][c]; } - - inline Matrix44() { } - - inline Matrix44& operator += (const Matrix44& a) - { - for (int r = 0; r < NUM_ROWS; r++) - { - at(r, 0) += a.at(r, 0); - at(r, 1) += a.at(r, 1); - at(r, 2) += a.at(r, 2); - at(r, 3) += a.at(r, 3); - } - return *this; - } - - inline Matrix44& operator -= (const Matrix44& a) - { - for (int r = 0; r < NUM_ROWS; r++) - { - at(r, 0) -= a.at(r, 0); - at(r, 1) -= a.at(r, 1); - at(r, 2) -= a.at(r, 2); - at(r, 3) -= a.at(r, 3); - } - return *this; - } - - friend inline Matrix44 operator + (const Matrix44& a, const Matrix44& b) - { - Matrix44 ret; - for (int r = 0; r < NUM_ROWS; r++) - { - ret.at(r, 0) = a.at(r, 0) + b.at(r, 0); - ret.at(r, 1) = a.at(r, 1) + b.at(r, 1); - ret.at(r, 2) = a.at(r, 2) + b.at(r, 2); - ret.at(r, 3) = a.at(r, 3) + b.at(r, 3); - } - return ret; - } - - friend inline Matrix44 operator - (const Matrix44& a, const Matrix44& b) - { - Matrix44 ret; - for (int r = 0; r < NUM_ROWS; r++) - { - ret.at(r, 0) = a.at(r, 0) - b.at(r, 0); - ret.at(r, 1) = a.at(r, 1) - b.at(r, 1); - ret.at(r, 2) = a.at(r, 2) - b.at(r, 2); - ret.at(r, 3) = a.at(r, 3) - b.at(r, 3); - } - return ret; - } - - static inline void add_and_store(jpgd_block_t* pDst, const Matrix44& a, const Matrix44& b) - { - for (int r = 0; r < 4; r++) - { - pDst[0*8 + r] = static_cast(a.at(r, 0) + b.at(r, 0)); - pDst[1*8 + r] = static_cast(a.at(r, 1) + b.at(r, 1)); - pDst[2*8 + r] = static_cast(a.at(r, 2) + b.at(r, 2)); - pDst[3*8 + r] = static_cast(a.at(r, 3) + b.at(r, 3)); - } - } - - static inline void sub_and_store(jpgd_block_t* pDst, const Matrix44& a, const Matrix44& b) - { - for (int r = 0; r < 4; r++) - { - pDst[0*8 + r] = static_cast(a.at(r, 0) - b.at(r, 0)); - pDst[1*8 + r] = static_cast(a.at(r, 1) - b.at(r, 1)); - pDst[2*8 + r] = static_cast(a.at(r, 2) - b.at(r, 2)); - pDst[3*8 + r] = static_cast(a.at(r, 3) - b.at(r, 3)); - } - } - }; - - const int FRACT_BITS = 10; - const int SCALE = 1 << FRACT_BITS; - - typedef int Temp_Type; -#define D(i) (((i) + (SCALE >> 1)) >> FRACT_BITS) -#define F(i) ((int)((i) * SCALE + .5f)) - - // Any decent C++ compiler will optimize this at compile time to a 0, or an array access. -#define AT(c, r) ((((c)>=NUM_COLS)||((r)>=NUM_ROWS)) ? 0 : pSrc[(c)+(r)*8]) - - // NUM_ROWS/NUM_COLS = # of non-zero rows/cols in input matrix - template - struct P_Q - { - static void calc(Matrix44& P, Matrix44& Q, const jpgd_block_t* pSrc) - { - // 4x8 = 4x8 times 8x8, matrix 0 is constant - const Temp_Type X000 = AT(0, 0); - const Temp_Type X001 = AT(0, 1); - const Temp_Type X002 = AT(0, 2); - const Temp_Type X003 = AT(0, 3); - const Temp_Type X004 = AT(0, 4); - const Temp_Type X005 = AT(0, 5); - const Temp_Type X006 = AT(0, 6); - const Temp_Type X007 = AT(0, 7); - const Temp_Type X010 = D(F(0.415735f) * AT(1, 0) + F(0.791065f) * AT(3, 0) + F(-0.352443f) * AT(5, 0) + F(0.277785f) * AT(7, 0)); - const Temp_Type X011 = D(F(0.415735f) * AT(1, 1) + F(0.791065f) * AT(3, 1) + F(-0.352443f) * AT(5, 1) + F(0.277785f) * AT(7, 1)); - const Temp_Type X012 = D(F(0.415735f) * AT(1, 2) + F(0.791065f) * AT(3, 2) + F(-0.352443f) * AT(5, 2) + F(0.277785f) * AT(7, 2)); - const Temp_Type X013 = D(F(0.415735f) * AT(1, 3) + F(0.791065f) * AT(3, 3) + F(-0.352443f) * AT(5, 3) + F(0.277785f) * AT(7, 3)); - const Temp_Type X014 = D(F(0.415735f) * AT(1, 4) + F(0.791065f) * AT(3, 4) + F(-0.352443f) * AT(5, 4) + F(0.277785f) * AT(7, 4)); - const Temp_Type X015 = D(F(0.415735f) * AT(1, 5) + F(0.791065f) * AT(3, 5) + F(-0.352443f) * AT(5, 5) + F(0.277785f) * AT(7, 5)); - const Temp_Type X016 = D(F(0.415735f) * AT(1, 6) + F(0.791065f) * AT(3, 6) + F(-0.352443f) * AT(5, 6) + F(0.277785f) * AT(7, 6)); - const Temp_Type X017 = D(F(0.415735f) * AT(1, 7) + F(0.791065f) * AT(3, 7) + F(-0.352443f) * AT(5, 7) + F(0.277785f) * AT(7, 7)); - const Temp_Type X020 = AT(4, 0); - const Temp_Type X021 = AT(4, 1); - const Temp_Type X022 = AT(4, 2); - const Temp_Type X023 = AT(4, 3); - const Temp_Type X024 = AT(4, 4); - const Temp_Type X025 = AT(4, 5); - const Temp_Type X026 = AT(4, 6); - const Temp_Type X027 = AT(4, 7); - const Temp_Type X030 = D(F(0.022887f) * AT(1, 0) + F(-0.097545f) * AT(3, 0) + F(0.490393f) * AT(5, 0) + F(0.865723f) * AT(7, 0)); - const Temp_Type X031 = D(F(0.022887f) * AT(1, 1) + F(-0.097545f) * AT(3, 1) + F(0.490393f) * AT(5, 1) + F(0.865723f) * AT(7, 1)); - const Temp_Type X032 = D(F(0.022887f) * AT(1, 2) + F(-0.097545f) * AT(3, 2) + F(0.490393f) * AT(5, 2) + F(0.865723f) * AT(7, 2)); - const Temp_Type X033 = D(F(0.022887f) * AT(1, 3) + F(-0.097545f) * AT(3, 3) + F(0.490393f) * AT(5, 3) + F(0.865723f) * AT(7, 3)); - const Temp_Type X034 = D(F(0.022887f) * AT(1, 4) + F(-0.097545f) * AT(3, 4) + F(0.490393f) * AT(5, 4) + F(0.865723f) * AT(7, 4)); - const Temp_Type X035 = D(F(0.022887f) * AT(1, 5) + F(-0.097545f) * AT(3, 5) + F(0.490393f) * AT(5, 5) + F(0.865723f) * AT(7, 5)); - const Temp_Type X036 = D(F(0.022887f) * AT(1, 6) + F(-0.097545f) * AT(3, 6) + F(0.490393f) * AT(5, 6) + F(0.865723f) * AT(7, 6)); - const Temp_Type X037 = D(F(0.022887f) * AT(1, 7) + F(-0.097545f) * AT(3, 7) + F(0.490393f) * AT(5, 7) + F(0.865723f) * AT(7, 7)); - - // 4x4 = 4x8 times 8x4, matrix 1 is constant - P.at(0, 0) = X000; - P.at(0, 1) = D(X001 * F(0.415735f) + X003 * F(0.791065f) + X005 * F(-0.352443f) + X007 * F(0.277785f)); - P.at(0, 2) = X004; - P.at(0, 3) = D(X001 * F(0.022887f) + X003 * F(-0.097545f) + X005 * F(0.490393f) + X007 * F(0.865723f)); - P.at(1, 0) = X010; - P.at(1, 1) = D(X011 * F(0.415735f) + X013 * F(0.791065f) + X015 * F(-0.352443f) + X017 * F(0.277785f)); - P.at(1, 2) = X014; - P.at(1, 3) = D(X011 * F(0.022887f) + X013 * F(-0.097545f) + X015 * F(0.490393f) + X017 * F(0.865723f)); - P.at(2, 0) = X020; - P.at(2, 1) = D(X021 * F(0.415735f) + X023 * F(0.791065f) + X025 * F(-0.352443f) + X027 * F(0.277785f)); - P.at(2, 2) = X024; - P.at(2, 3) = D(X021 * F(0.022887f) + X023 * F(-0.097545f) + X025 * F(0.490393f) + X027 * F(0.865723f)); - P.at(3, 0) = X030; - P.at(3, 1) = D(X031 * F(0.415735f) + X033 * F(0.791065f) + X035 * F(-0.352443f) + X037 * F(0.277785f)); - P.at(3, 2) = X034; - P.at(3, 3) = D(X031 * F(0.022887f) + X033 * F(-0.097545f) + X035 * F(0.490393f) + X037 * F(0.865723f)); - // 40 muls 24 adds - - // 4x4 = 4x8 times 8x4, matrix 1 is constant - Q.at(0, 0) = D(X001 * F(0.906127f) + X003 * F(-0.318190f) + X005 * F(0.212608f) + X007 * F(-0.180240f)); - Q.at(0, 1) = X002; - Q.at(0, 2) = D(X001 * F(-0.074658f) + X003 * F(0.513280f) + X005 * F(0.768178f) + X007 * F(-0.375330f)); - Q.at(0, 3) = X006; - Q.at(1, 0) = D(X011 * F(0.906127f) + X013 * F(-0.318190f) + X015 * F(0.212608f) + X017 * F(-0.180240f)); - Q.at(1, 1) = X012; - Q.at(1, 2) = D(X011 * F(-0.074658f) + X013 * F(0.513280f) + X015 * F(0.768178f) + X017 * F(-0.375330f)); - Q.at(1, 3) = X016; - Q.at(2, 0) = D(X021 * F(0.906127f) + X023 * F(-0.318190f) + X025 * F(0.212608f) + X027 * F(-0.180240f)); - Q.at(2, 1) = X022; - Q.at(2, 2) = D(X021 * F(-0.074658f) + X023 * F(0.513280f) + X025 * F(0.768178f) + X027 * F(-0.375330f)); - Q.at(2, 3) = X026; - Q.at(3, 0) = D(X031 * F(0.906127f) + X033 * F(-0.318190f) + X035 * F(0.212608f) + X037 * F(-0.180240f)); - Q.at(3, 1) = X032; - Q.at(3, 2) = D(X031 * F(-0.074658f) + X033 * F(0.513280f) + X035 * F(0.768178f) + X037 * F(-0.375330f)); - Q.at(3, 3) = X036; - // 40 muls 24 adds - } - }; - - template - struct R_S - { - static void calc(Matrix44& R, Matrix44& S, const jpgd_block_t* pSrc) - { - // 4x8 = 4x8 times 8x8, matrix 0 is constant - const Temp_Type X100 = D(F(0.906127f) * AT(1, 0) + F(-0.318190f) * AT(3, 0) + F(0.212608f) * AT(5, 0) + F(-0.180240f) * AT(7, 0)); - const Temp_Type X101 = D(F(0.906127f) * AT(1, 1) + F(-0.318190f) * AT(3, 1) + F(0.212608f) * AT(5, 1) + F(-0.180240f) * AT(7, 1)); - const Temp_Type X102 = D(F(0.906127f) * AT(1, 2) + F(-0.318190f) * AT(3, 2) + F(0.212608f) * AT(5, 2) + F(-0.180240f) * AT(7, 2)); - const Temp_Type X103 = D(F(0.906127f) * AT(1, 3) + F(-0.318190f) * AT(3, 3) + F(0.212608f) * AT(5, 3) + F(-0.180240f) * AT(7, 3)); - const Temp_Type X104 = D(F(0.906127f) * AT(1, 4) + F(-0.318190f) * AT(3, 4) + F(0.212608f) * AT(5, 4) + F(-0.180240f) * AT(7, 4)); - const Temp_Type X105 = D(F(0.906127f) * AT(1, 5) + F(-0.318190f) * AT(3, 5) + F(0.212608f) * AT(5, 5) + F(-0.180240f) * AT(7, 5)); - const Temp_Type X106 = D(F(0.906127f) * AT(1, 6) + F(-0.318190f) * AT(3, 6) + F(0.212608f) * AT(5, 6) + F(-0.180240f) * AT(7, 6)); - const Temp_Type X107 = D(F(0.906127f) * AT(1, 7) + F(-0.318190f) * AT(3, 7) + F(0.212608f) * AT(5, 7) + F(-0.180240f) * AT(7, 7)); - const Temp_Type X110 = AT(2, 0); - const Temp_Type X111 = AT(2, 1); - const Temp_Type X112 = AT(2, 2); - const Temp_Type X113 = AT(2, 3); - const Temp_Type X114 = AT(2, 4); - const Temp_Type X115 = AT(2, 5); - const Temp_Type X116 = AT(2, 6); - const Temp_Type X117 = AT(2, 7); - const Temp_Type X120 = D(F(-0.074658f) * AT(1, 0) + F(0.513280f) * AT(3, 0) + F(0.768178f) * AT(5, 0) + F(-0.375330f) * AT(7, 0)); - const Temp_Type X121 = D(F(-0.074658f) * AT(1, 1) + F(0.513280f) * AT(3, 1) + F(0.768178f) * AT(5, 1) + F(-0.375330f) * AT(7, 1)); - const Temp_Type X122 = D(F(-0.074658f) * AT(1, 2) + F(0.513280f) * AT(3, 2) + F(0.768178f) * AT(5, 2) + F(-0.375330f) * AT(7, 2)); - const Temp_Type X123 = D(F(-0.074658f) * AT(1, 3) + F(0.513280f) * AT(3, 3) + F(0.768178f) * AT(5, 3) + F(-0.375330f) * AT(7, 3)); - const Temp_Type X124 = D(F(-0.074658f) * AT(1, 4) + F(0.513280f) * AT(3, 4) + F(0.768178f) * AT(5, 4) + F(-0.375330f) * AT(7, 4)); - const Temp_Type X125 = D(F(-0.074658f) * AT(1, 5) + F(0.513280f) * AT(3, 5) + F(0.768178f) * AT(5, 5) + F(-0.375330f) * AT(7, 5)); - const Temp_Type X126 = D(F(-0.074658f) * AT(1, 6) + F(0.513280f) * AT(3, 6) + F(0.768178f) * AT(5, 6) + F(-0.375330f) * AT(7, 6)); - const Temp_Type X127 = D(F(-0.074658f) * AT(1, 7) + F(0.513280f) * AT(3, 7) + F(0.768178f) * AT(5, 7) + F(-0.375330f) * AT(7, 7)); - const Temp_Type X130 = AT(6, 0); - const Temp_Type X131 = AT(6, 1); - const Temp_Type X132 = AT(6, 2); - const Temp_Type X133 = AT(6, 3); - const Temp_Type X134 = AT(6, 4); - const Temp_Type X135 = AT(6, 5); - const Temp_Type X136 = AT(6, 6); - const Temp_Type X137 = AT(6, 7); - // 80 muls 48 adds - - // 4x4 = 4x8 times 8x4, matrix 1 is constant - R.at(0, 0) = X100; - R.at(0, 1) = D(X101 * F(0.415735f) + X103 * F(0.791065f) + X105 * F(-0.352443f) + X107 * F(0.277785f)); - R.at(0, 2) = X104; - R.at(0, 3) = D(X101 * F(0.022887f) + X103 * F(-0.097545f) + X105 * F(0.490393f) + X107 * F(0.865723f)); - R.at(1, 0) = X110; - R.at(1, 1) = D(X111 * F(0.415735f) + X113 * F(0.791065f) + X115 * F(-0.352443f) + X117 * F(0.277785f)); - R.at(1, 2) = X114; - R.at(1, 3) = D(X111 * F(0.022887f) + X113 * F(-0.097545f) + X115 * F(0.490393f) + X117 * F(0.865723f)); - R.at(2, 0) = X120; - R.at(2, 1) = D(X121 * F(0.415735f) + X123 * F(0.791065f) + X125 * F(-0.352443f) + X127 * F(0.277785f)); - R.at(2, 2) = X124; - R.at(2, 3) = D(X121 * F(0.022887f) + X123 * F(-0.097545f) + X125 * F(0.490393f) + X127 * F(0.865723f)); - R.at(3, 0) = X130; - R.at(3, 1) = D(X131 * F(0.415735f) + X133 * F(0.791065f) + X135 * F(-0.352443f) + X137 * F(0.277785f)); - R.at(3, 2) = X134; - R.at(3, 3) = D(X131 * F(0.022887f) + X133 * F(-0.097545f) + X135 * F(0.490393f) + X137 * F(0.865723f)); - // 40 muls 24 adds - // 4x4 = 4x8 times 8x4, matrix 1 is constant - S.at(0, 0) = D(X101 * F(0.906127f) + X103 * F(-0.318190f) + X105 * F(0.212608f) + X107 * F(-0.180240f)); - S.at(0, 1) = X102; - S.at(0, 2) = D(X101 * F(-0.074658f) + X103 * F(0.513280f) + X105 * F(0.768178f) + X107 * F(-0.375330f)); - S.at(0, 3) = X106; - S.at(1, 0) = D(X111 * F(0.906127f) + X113 * F(-0.318190f) + X115 * F(0.212608f) + X117 * F(-0.180240f)); - S.at(1, 1) = X112; - S.at(1, 2) = D(X111 * F(-0.074658f) + X113 * F(0.513280f) + X115 * F(0.768178f) + X117 * F(-0.375330f)); - S.at(1, 3) = X116; - S.at(2, 0) = D(X121 * F(0.906127f) + X123 * F(-0.318190f) + X125 * F(0.212608f) + X127 * F(-0.180240f)); - S.at(2, 1) = X122; - S.at(2, 2) = D(X121 * F(-0.074658f) + X123 * F(0.513280f) + X125 * F(0.768178f) + X127 * F(-0.375330f)); - S.at(2, 3) = X126; - S.at(3, 0) = D(X131 * F(0.906127f) + X133 * F(-0.318190f) + X135 * F(0.212608f) + X137 * F(-0.180240f)); - S.at(3, 1) = X132; - S.at(3, 2) = D(X131 * F(-0.074658f) + X133 * F(0.513280f) + X135 * F(0.768178f) + X137 * F(-0.375330f)); - S.at(3, 3) = X136; - // 40 muls 24 adds - } - }; - } // end namespace DCT_Upsample - - // Unconditionally frees all allocated m_blocks. - void jpeg_decoder::free_all_blocks() - { - m_pStream = NULL; - for (mem_block *b = m_pMem_blocks; b; ) - { - mem_block *n = b->m_pNext; - jpgd_free(b); - b = n; - } - m_pMem_blocks = NULL; - } - - // This method handles all errors. - // It could easily be changed to use C++ exceptions. - void jpeg_decoder::stop_decoding(jpgd_status status) - { - m_error_code = status; - free_all_blocks(); - longjmp(m_jmp_state, status); - - // we shouldn't get here as longjmp shouldn't return, but we put it here to make it explicit - // that this function doesn't return, otherwise we get this error: - // - // error : function declared 'noreturn' should not return - exit(1); - } - - void *jpeg_decoder::alloc(size_t nSize, bool zero) - { - nSize = (JPGD_MAX(nSize, 1) + 3) & ~3; - char *rv = NULL; - for (mem_block *b = m_pMem_blocks; b; b = b->m_pNext) - { - if ((b->m_used_count + nSize) <= b->m_size) - { - rv = b->m_data + b->m_used_count; - b->m_used_count += nSize; - break; - } - } - if (!rv) - { - int capacity = JPGD_MAX(32768 - 256, (nSize + 2047) & ~2047); - mem_block *b = (mem_block*)jpgd_malloc(sizeof(mem_block) + capacity); - if (!b) stop_decoding(JPGD_NOTENOUGHMEM); - b->m_pNext = m_pMem_blocks; m_pMem_blocks = b; - b->m_used_count = nSize; - b->m_size = capacity; - rv = b->m_data; - } - if (zero) memset(rv, 0, nSize); - return rv; - } - - void jpeg_decoder::word_clear(void *p, uint16 c, uint n) - { - uint8 *pD = (uint8*)p; - const uint8 l = c & 0xFF, h = (c >> 8) & 0xFF; - while (n) - { - pD[0] = l; pD[1] = h; pD += 2; - n--; - } - } - - // Refill the input buffer. - // This method will sit in a loop until (A) the buffer is full or (B) - // the stream's read() method reports and end of file condition. - void jpeg_decoder::prep_in_buffer() - { - m_in_buf_left = 0; - m_pIn_buf_ofs = m_in_buf; - - if (m_eof_flag) - return; - - do - { - int bytes_read = m_pStream->read(m_in_buf + m_in_buf_left, JPGD_IN_BUF_SIZE - m_in_buf_left, &m_eof_flag); - if (bytes_read == -1) - stop_decoding(JPGD_STREAM_READ); - - m_in_buf_left += bytes_read; - } while ((m_in_buf_left < JPGD_IN_BUF_SIZE) && (!m_eof_flag)); - - m_total_bytes_read += m_in_buf_left; - - // Pad the end of the block with M_EOI (prevents the decompressor from going off the rails if the stream is invalid). - // (This dates way back to when this decompressor was written in C/asm, and the all-asm Huffman decoder did some fancy things to increase perf.) - word_clear(m_pIn_buf_ofs + m_in_buf_left, 0xD9FF, 64); - } - - // Read a Huffman code table. - void jpeg_decoder::read_dht_marker() - { - int i, index, count; - uint8 huff_num[17]; - uint8 huff_val[256]; - - uint num_left = get_bits(16); - - if (num_left < 2) - stop_decoding(JPGD_BAD_DHT_MARKER); - - num_left -= 2; - - while (num_left) - { - index = get_bits(8); - - huff_num[0] = 0; - - count = 0; - - for (i = 1; i <= 16; i++) - { - huff_num[i] = static_cast(get_bits(8)); - count += huff_num[i]; - } - - if (count > 255) - stop_decoding(JPGD_BAD_DHT_COUNTS); - - for (i = 0; i < count; i++) - huff_val[i] = static_cast(get_bits(8)); - - i = 1 + 16 + count; - - if (num_left < (uint)i) - stop_decoding(JPGD_BAD_DHT_MARKER); - - num_left -= i; - - if ((index & 0x10) > 0x10) - stop_decoding(JPGD_BAD_DHT_INDEX); - - index = (index & 0x0F) + ((index & 0x10) >> 4) * (JPGD_MAX_HUFF_TABLES >> 1); - - if (index >= JPGD_MAX_HUFF_TABLES) - stop_decoding(JPGD_BAD_DHT_INDEX); - - if (!m_huff_num[index]) - m_huff_num[index] = (uint8 *)alloc(17); - - if (!m_huff_val[index]) - m_huff_val[index] = (uint8 *)alloc(256); - - m_huff_ac[index] = (index & 0x10) != 0; - memcpy(m_huff_num[index], huff_num, 17); - memcpy(m_huff_val[index], huff_val, 256); - } - } - - // Read a quantization table. - void jpeg_decoder::read_dqt_marker() - { - int n, i, prec; - uint num_left; - uint temp; - - num_left = get_bits(16); - - if (num_left < 2) - stop_decoding(JPGD_BAD_DQT_MARKER); - - num_left -= 2; - - while (num_left) - { - n = get_bits(8); - prec = n >> 4; - n &= 0x0F; - - if (n >= JPGD_MAX_QUANT_TABLES) - stop_decoding(JPGD_BAD_DQT_TABLE); - - if (!m_quant[n]) - m_quant[n] = (jpgd_quant_t *)alloc(64 * sizeof(jpgd_quant_t)); - - // read quantization entries, in zag order - for (i = 0; i < 64; i++) - { - temp = get_bits(8); - - if (prec) - temp = (temp << 8) + get_bits(8); - - m_quant[n][i] = static_cast(temp); - } - - i = 64 + 1; - - if (prec) - i += 64; - - if (num_left < (uint)i) - stop_decoding(JPGD_BAD_DQT_LENGTH); - - num_left -= i; - } - } - - // Read the start of frame (SOF) marker. - void jpeg_decoder::read_sof_marker() - { - int i; - uint num_left; - - num_left = get_bits(16); - - if (get_bits(8) != 8) /* precision: sorry, only 8-bit precision is supported right now */ - stop_decoding(JPGD_BAD_PRECISION); - - m_image_y_size = get_bits(16); - - if ((m_image_y_size < 1) || (m_image_y_size > JPGD_MAX_HEIGHT)) - stop_decoding(JPGD_BAD_HEIGHT); - - m_image_x_size = get_bits(16); - - if ((m_image_x_size < 1) || (m_image_x_size > JPGD_MAX_WIDTH)) - stop_decoding(JPGD_BAD_WIDTH); - - m_comps_in_frame = get_bits(8); - - if (m_comps_in_frame > JPGD_MAX_COMPONENTS) - stop_decoding(JPGD_TOO_MANY_COMPONENTS); - - if (num_left != (uint)(m_comps_in_frame * 3 + 8)) - stop_decoding(JPGD_BAD_SOF_LENGTH); - - for (i = 0; i < m_comps_in_frame; i++) - { - m_comp_ident[i] = get_bits(8); - m_comp_h_samp[i] = get_bits(4); - m_comp_v_samp[i] = get_bits(4); - m_comp_quant[i] = get_bits(8); - } - } - - // Used to skip unrecognized markers. - void jpeg_decoder::skip_variable_marker() - { - uint num_left; - - num_left = get_bits(16); - - if (num_left < 2) - stop_decoding(JPGD_BAD_VARIABLE_MARKER); - - num_left -= 2; - - while (num_left) - { - get_bits(8); - num_left--; - } - } - - // Read a define restart interval (DRI) marker. - void jpeg_decoder::read_dri_marker() - { - if (get_bits(16) != 4) - stop_decoding(JPGD_BAD_DRI_LENGTH); - - m_restart_interval = get_bits(16); - } - - // Read a start of scan (SOS) marker. - void jpeg_decoder::read_sos_marker() - { - uint num_left; - int i, ci, n, c, cc; - - num_left = get_bits(16); - - n = get_bits(8); - - m_comps_in_scan = n; - - num_left -= 3; - - if ( (num_left != (uint)(n * 2 + 3)) || (n < 1) || (n > JPGD_MAX_COMPS_IN_SCAN) ) - stop_decoding(JPGD_BAD_SOS_LENGTH); - - for (i = 0; i < n; i++) - { - cc = get_bits(8); - c = get_bits(8); - num_left -= 2; - - for (ci = 0; ci < m_comps_in_frame; ci++) - if (cc == m_comp_ident[ci]) - break; - - if (ci >= m_comps_in_frame) - stop_decoding(JPGD_BAD_SOS_COMP_ID); - - m_comp_list[i] = ci; - m_comp_dc_tab[ci] = (c >> 4) & 15; - m_comp_ac_tab[ci] = (c & 15) + (JPGD_MAX_HUFF_TABLES >> 1); - } - - m_spectral_start = get_bits(8); - m_spectral_end = get_bits(8); - m_successive_high = get_bits(4); - m_successive_low = get_bits(4); - - if (!m_progressive_flag) - { - m_spectral_start = 0; - m_spectral_end = 63; - } - - num_left -= 3; - - while (num_left) /* read past whatever is num_left */ - { - get_bits(8); - num_left--; - } - } - - // Finds the next marker. - int jpeg_decoder::next_marker() - { - uint c, bytes; - - bytes = 0; - - do - { - do - { - bytes++; - c = get_bits(8); - } while (c != 0xFF); - - do - { - c = get_bits(8); - } while (c == 0xFF); - - } while (c == 0); - - // If bytes > 0 here, there where extra bytes before the marker (not good). - - return c; - } - - // Process markers. Returns when an SOFx, SOI, EOI, or SOS marker is - // encountered. - int jpeg_decoder::process_markers() - { - int c; - - for ( ; ; ) - { - c = next_marker(); - - switch (c) - { - case M_SOF0: - case M_SOF1: - case M_SOF2: - case M_SOF3: - case M_SOF5: - case M_SOF6: - case M_SOF7: - // case M_JPG: - case M_SOF9: - case M_SOF10: - case M_SOF11: - case M_SOF13: - case M_SOF14: - case M_SOF15: - case M_SOI: - case M_EOI: - case M_SOS: - { - return c; - } - case M_DHT: - { - read_dht_marker(); - break; - } - // No arithmitic support - dumb patents! - case M_DAC: - { - stop_decoding(JPGD_NO_ARITHMITIC_SUPPORT); - break; - } - case M_DQT: - { - read_dqt_marker(); - break; - } - case M_DRI: - { - read_dri_marker(); - break; - } - //case M_APP0: /* no need to read the JFIF marker */ - - case M_JPG: - case M_RST0: /* no parameters */ - case M_RST1: - case M_RST2: - case M_RST3: - case M_RST4: - case M_RST5: - case M_RST6: - case M_RST7: - case M_TEM: - { - stop_decoding(JPGD_UNEXPECTED_MARKER); - break; - } - default: /* must be DNL, DHP, EXP, APPn, JPGn, COM, or RESn or APP0 */ - { - skip_variable_marker(); - break; - } - } - } - } - - // Finds the start of image (SOI) marker. - // This code is rather defensive: it only checks the first 512 bytes to avoid - // false positives. - void jpeg_decoder::locate_soi_marker() - { - uint lastchar, thischar; - uint bytesleft; - - lastchar = get_bits(8); - - thischar = get_bits(8); - - /* ok if it's a normal JPEG file without a special header */ - - if ((lastchar == 0xFF) && (thischar == M_SOI)) - return; - - bytesleft = 4096; //512; - - for ( ; ; ) - { - if (--bytesleft == 0) - stop_decoding(JPGD_NOT_JPEG); - - lastchar = thischar; - - thischar = get_bits(8); - - if (lastchar == 0xFF) - { - if (thischar == M_SOI) - break; - else if (thischar == M_EOI) // get_bits will keep returning M_EOI if we read past the end - stop_decoding(JPGD_NOT_JPEG); - } - } - - // Check the next character after marker: if it's not 0xFF, it can't be the start of the next marker, so the file is bad. - thischar = (m_bit_buf >> 24) & 0xFF; - - if (thischar != 0xFF) - stop_decoding(JPGD_NOT_JPEG); - } - - // Find a start of frame (SOF) marker. - void jpeg_decoder::locate_sof_marker() - { - locate_soi_marker(); - - int c = process_markers(); - - switch (c) - { - case M_SOF2: - m_progressive_flag = JPGD_TRUE; - case M_SOF0: /* baseline DCT */ - case M_SOF1: /* extended sequential DCT */ - { - read_sof_marker(); - break; - } - case M_SOF9: /* Arithmitic coding */ - { - stop_decoding(JPGD_NO_ARITHMITIC_SUPPORT); - break; - } - default: - { - stop_decoding(JPGD_UNSUPPORTED_MARKER); - break; - } - } - } - - // Find a start of scan (SOS) marker. - int jpeg_decoder::locate_sos_marker() - { - int c; - - c = process_markers(); - - if (c == M_EOI) - return JPGD_FALSE; - else if (c != M_SOS) - stop_decoding(JPGD_UNEXPECTED_MARKER); - - read_sos_marker(); - - return JPGD_TRUE; - } - - // Reset everything to default/uninitialized state. - void jpeg_decoder::init(jpeg_decoder_stream *pStream) - { - m_pMem_blocks = NULL; - m_error_code = JPGD_SUCCESS; - m_ready_flag = false; - m_image_x_size = m_image_y_size = 0; - m_pStream = pStream; - m_progressive_flag = JPGD_FALSE; - - memset(m_huff_ac, 0, sizeof(m_huff_ac)); - memset(m_huff_num, 0, sizeof(m_huff_num)); - memset(m_huff_val, 0, sizeof(m_huff_val)); - memset(m_quant, 0, sizeof(m_quant)); - - m_scan_type = 0; - m_comps_in_frame = 0; - - memset(m_comp_h_samp, 0, sizeof(m_comp_h_samp)); - memset(m_comp_v_samp, 0, sizeof(m_comp_v_samp)); - memset(m_comp_quant, 0, sizeof(m_comp_quant)); - memset(m_comp_ident, 0, sizeof(m_comp_ident)); - memset(m_comp_h_blocks, 0, sizeof(m_comp_h_blocks)); - memset(m_comp_v_blocks, 0, sizeof(m_comp_v_blocks)); - - m_comps_in_scan = 0; - memset(m_comp_list, 0, sizeof(m_comp_list)); - memset(m_comp_dc_tab, 0, sizeof(m_comp_dc_tab)); - memset(m_comp_ac_tab, 0, sizeof(m_comp_ac_tab)); - - m_spectral_start = 0; - m_spectral_end = 0; - m_successive_low = 0; - m_successive_high = 0; - m_max_mcu_x_size = 0; - m_max_mcu_y_size = 0; - m_blocks_per_mcu = 0; - m_max_blocks_per_row = 0; - m_mcus_per_row = 0; - m_mcus_per_col = 0; - m_expanded_blocks_per_component = 0; - m_expanded_blocks_per_mcu = 0; - m_expanded_blocks_per_row = 0; - m_freq_domain_chroma_upsample = false; - - memset(m_mcu_org, 0, sizeof(m_mcu_org)); - - m_total_lines_left = 0; - m_mcu_lines_left = 0; - m_real_dest_bytes_per_scan_line = 0; - m_dest_bytes_per_scan_line = 0; - m_dest_bytes_per_pixel = 0; - - memset(m_pHuff_tabs, 0, sizeof(m_pHuff_tabs)); - - memset(m_dc_coeffs, 0, sizeof(m_dc_coeffs)); - memset(m_ac_coeffs, 0, sizeof(m_ac_coeffs)); - memset(m_block_y_mcu, 0, sizeof(m_block_y_mcu)); - - m_eob_run = 0; - - memset(m_block_y_mcu, 0, sizeof(m_block_y_mcu)); - - m_pIn_buf_ofs = m_in_buf; - m_in_buf_left = 0; - m_eof_flag = false; - m_tem_flag = 0; - - memset(m_in_buf_pad_start, 0, sizeof(m_in_buf_pad_start)); - memset(m_in_buf, 0, sizeof(m_in_buf)); - memset(m_in_buf_pad_end, 0, sizeof(m_in_buf_pad_end)); - - m_restart_interval = 0; - m_restarts_left = 0; - m_next_restart_num = 0; - - m_max_mcus_per_row = 0; - m_max_blocks_per_mcu = 0; - m_max_mcus_per_col = 0; - - memset(m_last_dc_val, 0, sizeof(m_last_dc_val)); - m_pMCU_coefficients = NULL; - m_pSample_buf = NULL; - - m_total_bytes_read = 0; - - m_pScan_line_0 = NULL; - m_pScan_line_1 = NULL; - - // Ready the input buffer. - prep_in_buffer(); - - // Prime the bit buffer. - m_bits_left = 16; - m_bit_buf = 0; - - get_bits(16); - get_bits(16); - - for (int i = 0; i < JPGD_MAX_BLOCKS_PER_MCU; i++) - m_mcu_block_max_zag[i] = 64; - } - -#define SCALEBITS 16 -#define ONE_HALF ((int) 1 << (SCALEBITS-1)) -#define FIX(x) ((int) ((x) * (1L<> SCALEBITS; - m_cbb[i] = ( FIX(1.77200f) * k + ONE_HALF) >> SCALEBITS; - m_crg[i] = (-FIX(0.71414f)) * k; - m_cbg[i] = (-FIX(0.34414f)) * k + ONE_HALF; - } - } - - // This method throws back into the stream any bytes that where read - // into the bit buffer during initial marker scanning. - void jpeg_decoder::fix_in_buffer() - { - // In case any 0xFF's where pulled into the buffer during marker scanning. - JPGD_ASSERT((m_bits_left & 7) == 0); - - if (m_bits_left == 16) - stuff_char( (uint8)(m_bit_buf & 0xFF)); - - if (m_bits_left >= 8) - stuff_char( (uint8)((m_bit_buf >> 8) & 0xFF)); - - stuff_char((uint8)((m_bit_buf >> 16) & 0xFF)); - stuff_char((uint8)((m_bit_buf >> 24) & 0xFF)); - - m_bits_left = 16; - get_bits_no_markers(16); - get_bits_no_markers(16); - } - - void jpeg_decoder::transform_mcu(int mcu_row) - { - jpgd_block_t* pSrc_ptr = m_pMCU_coefficients; - uint8* pDst_ptr = m_pSample_buf + mcu_row * m_blocks_per_mcu * 64; - - for (int mcu_block = 0; mcu_block < m_blocks_per_mcu; mcu_block++) - { - idct(pSrc_ptr, pDst_ptr, m_mcu_block_max_zag[mcu_block]); - pSrc_ptr += 64; - pDst_ptr += 64; - } - } - - static const uint8 s_max_rc[64] = - { - 17, 18, 34, 50, 50, 51, 52, 52, 52, 68, 84, 84, 84, 84, 85, 86, 86, 86, 86, 86, - 102, 118, 118, 118, 118, 118, 118, 119, 120, 120, 120, 120, 120, 120, 120, 136, - 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, - 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136 - }; - - void jpeg_decoder::transform_mcu_expand(int mcu_row) - { - jpgd_block_t* pSrc_ptr = m_pMCU_coefficients; - uint8* pDst_ptr = m_pSample_buf + mcu_row * m_expanded_blocks_per_mcu * 64; - - // Y IDCT - int mcu_block; - for (mcu_block = 0; mcu_block < m_expanded_blocks_per_component; mcu_block++) - { - idct(pSrc_ptr, pDst_ptr, m_mcu_block_max_zag[mcu_block]); - pSrc_ptr += 64; - pDst_ptr += 64; - } - - // Chroma IDCT, with upsampling - jpgd_block_t temp_block[64]; - - for (int i = 0; i < 2; i++) - { - DCT_Upsample::Matrix44 P, Q, R, S; - - JPGD_ASSERT(m_mcu_block_max_zag[mcu_block] >= 1); - JPGD_ASSERT(m_mcu_block_max_zag[mcu_block] <= 64); - - switch (s_max_rc[m_mcu_block_max_zag[mcu_block++] - 1]) - { - case 1*16+1: - DCT_Upsample::P_Q<1, 1>::calc(P, Q, pSrc_ptr); - DCT_Upsample::R_S<1, 1>::calc(R, S, pSrc_ptr); - break; - case 1*16+2: - DCT_Upsample::P_Q<1, 2>::calc(P, Q, pSrc_ptr); - DCT_Upsample::R_S<1, 2>::calc(R, S, pSrc_ptr); - break; - case 2*16+2: - DCT_Upsample::P_Q<2, 2>::calc(P, Q, pSrc_ptr); - DCT_Upsample::R_S<2, 2>::calc(R, S, pSrc_ptr); - break; - case 3*16+2: - DCT_Upsample::P_Q<3, 2>::calc(P, Q, pSrc_ptr); - DCT_Upsample::R_S<3, 2>::calc(R, S, pSrc_ptr); - break; - case 3*16+3: - DCT_Upsample::P_Q<3, 3>::calc(P, Q, pSrc_ptr); - DCT_Upsample::R_S<3, 3>::calc(R, S, pSrc_ptr); - break; - case 3*16+4: - DCT_Upsample::P_Q<3, 4>::calc(P, Q, pSrc_ptr); - DCT_Upsample::R_S<3, 4>::calc(R, S, pSrc_ptr); - break; - case 4*16+4: - DCT_Upsample::P_Q<4, 4>::calc(P, Q, pSrc_ptr); - DCT_Upsample::R_S<4, 4>::calc(R, S, pSrc_ptr); - break; - case 5*16+4: - DCT_Upsample::P_Q<5, 4>::calc(P, Q, pSrc_ptr); - DCT_Upsample::R_S<5, 4>::calc(R, S, pSrc_ptr); - break; - case 5*16+5: - DCT_Upsample::P_Q<5, 5>::calc(P, Q, pSrc_ptr); - DCT_Upsample::R_S<5, 5>::calc(R, S, pSrc_ptr); - break; - case 5*16+6: - DCT_Upsample::P_Q<5, 6>::calc(P, Q, pSrc_ptr); - DCT_Upsample::R_S<5, 6>::calc(R, S, pSrc_ptr); - break; - case 6*16+6: - DCT_Upsample::P_Q<6, 6>::calc(P, Q, pSrc_ptr); - DCT_Upsample::R_S<6, 6>::calc(R, S, pSrc_ptr); - break; - case 7*16+6: - DCT_Upsample::P_Q<7, 6>::calc(P, Q, pSrc_ptr); - DCT_Upsample::R_S<7, 6>::calc(R, S, pSrc_ptr); - break; - case 7*16+7: - DCT_Upsample::P_Q<7, 7>::calc(P, Q, pSrc_ptr); - DCT_Upsample::R_S<7, 7>::calc(R, S, pSrc_ptr); - break; - case 7*16+8: - DCT_Upsample::P_Q<7, 8>::calc(P, Q, pSrc_ptr); - DCT_Upsample::R_S<7, 8>::calc(R, S, pSrc_ptr); - break; - case 8*16+8: - DCT_Upsample::P_Q<8, 8>::calc(P, Q, pSrc_ptr); - DCT_Upsample::R_S<8, 8>::calc(R, S, pSrc_ptr); - break; - default: - JPGD_ASSERT(false); - } - - DCT_Upsample::Matrix44 a(P + Q); P -= Q; - DCT_Upsample::Matrix44& b = P; - DCT_Upsample::Matrix44 c(R + S); R -= S; - DCT_Upsample::Matrix44& d = R; - - DCT_Upsample::Matrix44::add_and_store(temp_block, a, c); - idct_4x4(temp_block, pDst_ptr); - pDst_ptr += 64; - - DCT_Upsample::Matrix44::sub_and_store(temp_block, a, c); - idct_4x4(temp_block, pDst_ptr); - pDst_ptr += 64; - - DCT_Upsample::Matrix44::add_and_store(temp_block, b, d); - idct_4x4(temp_block, pDst_ptr); - pDst_ptr += 64; - - DCT_Upsample::Matrix44::sub_and_store(temp_block, b, d); - idct_4x4(temp_block, pDst_ptr); - pDst_ptr += 64; - - pSrc_ptr += 64; - } - } - - // Loads and dequantizes the next row of (already decoded) coefficients. - // Progressive images only. - void jpeg_decoder::load_next_row() - { - int i; - jpgd_block_t *p; - jpgd_quant_t *q; - int mcu_row, mcu_block, row_block = 0; - int component_num, component_id; - int block_x_mcu[JPGD_MAX_COMPONENTS]; - - memset(block_x_mcu, 0, JPGD_MAX_COMPONENTS * sizeof(int)); - - for (mcu_row = 0; mcu_row < m_mcus_per_row; mcu_row++) - { - int block_x_mcu_ofs = 0, block_y_mcu_ofs = 0; - - for (mcu_block = 0; mcu_block < m_blocks_per_mcu; mcu_block++) - { - component_id = m_mcu_org[mcu_block]; - q = m_quant[m_comp_quant[component_id]]; - - p = m_pMCU_coefficients + 64 * mcu_block; - - jpgd_block_t* pAC = coeff_buf_getp(m_ac_coeffs[component_id], block_x_mcu[component_id] + block_x_mcu_ofs, m_block_y_mcu[component_id] + block_y_mcu_ofs); - jpgd_block_t* pDC = coeff_buf_getp(m_dc_coeffs[component_id], block_x_mcu[component_id] + block_x_mcu_ofs, m_block_y_mcu[component_id] + block_y_mcu_ofs); - p[0] = pDC[0]; - memcpy(&p[1], &pAC[1], 63 * sizeof(jpgd_block_t)); - - for (i = 63; i > 0; i--) - if (p[g_ZAG[i]]) - break; - - m_mcu_block_max_zag[mcu_block] = i + 1; - - for ( ; i >= 0; i--) - if (p[g_ZAG[i]]) - p[g_ZAG[i]] = static_cast(p[g_ZAG[i]] * q[i]); - - row_block++; - - if (m_comps_in_scan == 1) - block_x_mcu[component_id]++; - else - { - if (++block_x_mcu_ofs == m_comp_h_samp[component_id]) - { - block_x_mcu_ofs = 0; - - if (++block_y_mcu_ofs == m_comp_v_samp[component_id]) - { - block_y_mcu_ofs = 0; - - block_x_mcu[component_id] += m_comp_h_samp[component_id]; - } - } - } - } - - if (m_freq_domain_chroma_upsample) - transform_mcu_expand(mcu_row); - else - transform_mcu(mcu_row); - } - - if (m_comps_in_scan == 1) - m_block_y_mcu[m_comp_list[0]]++; - else - { - for (component_num = 0; component_num < m_comps_in_scan; component_num++) - { - component_id = m_comp_list[component_num]; - - m_block_y_mcu[component_id] += m_comp_v_samp[component_id]; - } - } - } - - // Restart interval processing. - void jpeg_decoder::process_restart() - { - int i; - int c = 0; - - // Align to a byte boundry - // FIXME: Is this really necessary? get_bits_no_markers() never reads in markers! - //get_bits_no_markers(m_bits_left & 7); - - // Let's scan a little bit to find the marker, but not _too_ far. - // 1536 is a "fudge factor" that determines how much to scan. - for (i = 1536; i > 0; i--) - if (get_char() == 0xFF) - break; - - if (i == 0) - stop_decoding(JPGD_BAD_RESTART_MARKER); - - for ( ; i > 0; i--) - if ((c = get_char()) != 0xFF) - break; - - if (i == 0) - stop_decoding(JPGD_BAD_RESTART_MARKER); - - // Is it the expected marker? If not, something bad happened. - if (c != (m_next_restart_num + M_RST0)) - stop_decoding(JPGD_BAD_RESTART_MARKER); - - // Reset each component's DC prediction values. - memset(&m_last_dc_val, 0, m_comps_in_frame * sizeof(uint)); - - m_eob_run = 0; - - m_restarts_left = m_restart_interval; - - m_next_restart_num = (m_next_restart_num + 1) & 7; - - // Get the bit buffer going again... - - m_bits_left = 16; - get_bits_no_markers(16); - get_bits_no_markers(16); - } - - static inline int dequantize_ac(int c, int q) { c *= q; return c; } - - // Decodes and dequantizes the next row of coefficients. - void jpeg_decoder::decode_next_row() - { - int row_block = 0; - - for (int mcu_row = 0; mcu_row < m_mcus_per_row; mcu_row++) - { - if ((m_restart_interval) && (m_restarts_left == 0)) - process_restart(); - - jpgd_block_t* p = m_pMCU_coefficients; - for (int mcu_block = 0; mcu_block < m_blocks_per_mcu; mcu_block++, p += 64) - { - int component_id = m_mcu_org[mcu_block]; - jpgd_quant_t* q = m_quant[m_comp_quant[component_id]]; - - int r, s; - s = huff_decode(m_pHuff_tabs[m_comp_dc_tab[component_id]], r); - s = HUFF_EXTEND(r, s); - - m_last_dc_val[component_id] = (s += m_last_dc_val[component_id]); - - p[0] = static_cast(s * q[0]); - - int prev_num_set = m_mcu_block_max_zag[mcu_block]; - - huff_tables *pH = m_pHuff_tabs[m_comp_ac_tab[component_id]]; - - int k; - for (k = 1; k < 64; k++) - { - int extra_bits; - s = huff_decode(pH, extra_bits); - - r = s >> 4; - s &= 15; - - if (s) - { - if (r) - { - if ((k + r) > 63) - stop_decoding(JPGD_DECODE_ERROR); - - if (k < prev_num_set) - { - int n = JPGD_MIN(r, prev_num_set - k); - int kt = k; - while (n--) - p[g_ZAG[kt++]] = 0; - } - - k += r; - } - - s = HUFF_EXTEND(extra_bits, s); - - JPGD_ASSERT(k < 64); - - p[g_ZAG[k]] = static_cast(dequantize_ac(s, q[k])); //s * q[k]; - } - else - { - if (r == 15) - { - if ((k + 16) > 64) - stop_decoding(JPGD_DECODE_ERROR); - - if (k < prev_num_set) - { - int n = JPGD_MIN(16, prev_num_set - k); - int kt = k; - while (n--) - { - JPGD_ASSERT(kt <= 63); - p[g_ZAG[kt++]] = 0; - } - } - - k += 16 - 1; // - 1 because the loop counter is k - // BEGIN EPIC MOD - JPGD_ASSERT(k < 64 && p[g_ZAG[k]] == 0); - // END EPIC MOD - } - else - break; - } - } - - if (k < prev_num_set) - { - int kt = k; - while (kt < prev_num_set) - p[g_ZAG[kt++]] = 0; - } - - m_mcu_block_max_zag[mcu_block] = k; - - row_block++; - } - - if (m_freq_domain_chroma_upsample) - transform_mcu_expand(mcu_row); - else - transform_mcu(mcu_row); - - m_restarts_left--; - } - } - - // YCbCr H1V1 (1x1:1:1, 3 m_blocks per MCU) to RGB - void jpeg_decoder::H1V1Convert() - { - int row = m_max_mcu_y_size - m_mcu_lines_left; - uint8 *d = m_pScan_line_0; - uint8 *s = m_pSample_buf + row * 8; - - for (int i = m_max_mcus_per_row; i > 0; i--) - { - for (int j = 0; j < 8; j++) - { - int y = s[j]; - int cb = s[64+j]; - int cr = s[128+j]; - - if (jpg_format == ERGBFormatJPG::BGRA) - { - d[0] = clamp(y + m_cbb[cb]); - d[1] = clamp(y + ((m_crg[cr] + m_cbg[cb]) >> 16)); - d[2] = clamp(y + m_crr[cr]); - d[3] = 255; - } - else - { - d[0] = clamp(y + m_crr[cr]); - d[1] = clamp(y + ((m_crg[cr] + m_cbg[cb]) >> 16)); - d[2] = clamp(y + m_cbb[cb]); - d[3] = 255; - } - d += 4; - } - - s += 64*3; - } - } - - // YCbCr H2V1 (2x1:1:1, 4 m_blocks per MCU) to RGB - void jpeg_decoder::H2V1Convert() - { - int row = m_max_mcu_y_size - m_mcu_lines_left; - uint8 *d0 = m_pScan_line_0; - uint8 *y = m_pSample_buf + row * 8; - uint8 *c = m_pSample_buf + 2*64 + row * 8; - - for (int i = m_max_mcus_per_row; i > 0; i--) - { - for (int l = 0; l < 2; l++) - { - for (int j = 0; j < 4; j++) - { - int cb = c[0]; - int cr = c[64]; - - int rc = m_crr[cr]; - int gc = ((m_crg[cr] + m_cbg[cb]) >> 16); - int bc = m_cbb[cb]; - - int yy = y[j<<1]; - if (jpg_format == ERGBFormatJPG::BGRA) - { - d0[0] = clamp(yy+bc); - d0[1] = clamp(yy+gc); - d0[2] = clamp(yy+rc); - d0[3] = 255; - yy = y[(j<<1)+1]; - d0[4] = clamp(yy+bc); - d0[5] = clamp(yy+gc); - d0[6] = clamp(yy+rc); - d0[7] = 255; - } - else - { - d0[0] = clamp(yy+rc); - d0[1] = clamp(yy+gc); - d0[2] = clamp(yy+bc); - d0[3] = 255; - yy = y[(j<<1)+1]; - d0[4] = clamp(yy+rc); - d0[5] = clamp(yy+gc); - d0[6] = clamp(yy+bc); - d0[7] = 255; - } - - d0 += 8; - - c++; - } - y += 64; - } - - y += 64*4 - 64*2; - c += 64*4 - 8; - } - } - - // YCbCr H2V1 (1x2:1:1, 4 m_blocks per MCU) to RGB - void jpeg_decoder::H1V2Convert() - { - int row = m_max_mcu_y_size - m_mcu_lines_left; - uint8 *d0 = m_pScan_line_0; - uint8 *d1 = m_pScan_line_1; - uint8 *y; - uint8 *c; - - if (row < 8) - y = m_pSample_buf + row * 8; - else - y = m_pSample_buf + 64*1 + (row & 7) * 8; - - c = m_pSample_buf + 64*2 + (row >> 1) * 8; - - for (int i = m_max_mcus_per_row; i > 0; i--) - { - for (int j = 0; j < 8; j++) - { - int cb = c[0+j]; - int cr = c[64+j]; - - int rc = m_crr[cr]; - int gc = ((m_crg[cr] + m_cbg[cb]) >> 16); - int bc = m_cbb[cb]; - - int yy = y[j]; - if (jpg_format == ERGBFormatJPG::BGRA) - { - d0[0] = clamp(yy+bc); - d0[1] = clamp(yy+gc); - d0[2] = clamp(yy+rc); - d0[3] = 255; - yy = y[8+j]; - d1[0] = clamp(yy+bc); - d1[1] = clamp(yy+gc); - d1[2] = clamp(yy+rc); - d1[3] = 255; - } - else - { - d0[0] = clamp(yy+rc); - d0[1] = clamp(yy+gc); - d0[2] = clamp(yy+bc); - d0[3] = 255; - yy = y[8+j]; - d1[0] = clamp(yy+rc); - d1[1] = clamp(yy+gc); - d1[2] = clamp(yy+bc); - d1[3] = 255; - } - - d0 += 4; - d1 += 4; - } - - y += 64*4; - c += 64*4; - } - } - - // YCbCr H2V2 (2x2:1:1, 6 m_blocks per MCU) to RGB - void jpeg_decoder::H2V2Convert() - { - int row = m_max_mcu_y_size - m_mcu_lines_left; - uint8 *d0 = m_pScan_line_0; - uint8 *d1 = m_pScan_line_1; - uint8 *y; - uint8 *c; - - if (row < 8) - y = m_pSample_buf + row * 8; - else - y = m_pSample_buf + 64*2 + (row & 7) * 8; - - c = m_pSample_buf + 64*4 + (row >> 1) * 8; - - for (int i = m_max_mcus_per_row; i > 0; i--) - { - for (int l = 0; l < 2; l++) - { - for (int j = 0; j < 8; j += 2) - { - int cb = c[0]; - int cr = c[64]; - - int rc = m_crr[cr]; - int gc = ((m_crg[cr] + m_cbg[cb]) >> 16); - int bc = m_cbb[cb]; - - int yy = y[j]; - if (jpg_format == ERGBFormatJPG::BGRA) - { - d0[0] = clamp(yy+bc); - d0[1] = clamp(yy+gc); - d0[2] = clamp(yy+rc); - d0[3] = 255; - yy = y[j+1]; - d0[4] = clamp(yy+bc); - d0[5] = clamp(yy+gc); - d0[6] = clamp(yy+rc); - d0[7] = 255; - yy = y[j+8]; - d1[0] = clamp(yy+bc); - d1[1] = clamp(yy+gc); - d1[2] = clamp(yy+rc); - d1[3] = 255; - yy = y[j+8+1]; - d1[4] = clamp(yy+bc); - d1[5] = clamp(yy+gc); - d1[6] = clamp(yy+rc); - d1[7] = 255; - } - else - { - d0[0] = clamp(yy+rc); - d0[1] = clamp(yy+gc); - d0[2] = clamp(yy+bc); - d0[3] = 255; - yy = y[j+1]; - d0[4] = clamp(yy+rc); - d0[5] = clamp(yy+gc); - d0[6] = clamp(yy+bc); - d0[7] = 255; - yy = y[j+8]; - d1[0] = clamp(yy+rc); - d1[1] = clamp(yy+gc); - d1[2] = clamp(yy+bc); - d1[3] = 255; - yy = y[j+8+1]; - d1[4] = clamp(yy+rc); - d1[5] = clamp(yy+gc); - d1[6] = clamp(yy+bc); - d1[7] = 255; - } - - d0 += 8; - d1 += 8; - - c++; - } - y += 64; - } - - y += 64*6 - 64*2; - c += 64*6 - 8; - } - } - - // Y (1 block per MCU) to 8-bit grayscale - void jpeg_decoder::gray_convert() - { - int row = m_max_mcu_y_size - m_mcu_lines_left; - uint8 *d = m_pScan_line_0; - uint8 *s = m_pSample_buf + row * 8; - - for (int i = m_max_mcus_per_row; i > 0; i--) - { - *(uint *)d = *(uint *)s; - *(uint *)(&d[4]) = *(uint *)(&s[4]); - - s += 64; - d += 8; - } - } - - void jpeg_decoder::expanded_convert() - { - int row = m_max_mcu_y_size - m_mcu_lines_left; - - uint8* Py = m_pSample_buf + (row / 8) * 64 * m_comp_h_samp[0] + (row & 7) * 8; - - uint8* d = m_pScan_line_0; - - for (int i = m_max_mcus_per_row; i > 0; i--) - { - for (int k = 0; k < m_max_mcu_x_size; k += 8) - { - const int Y_ofs = k * 8; - const int Cb_ofs = Y_ofs + 64 * m_expanded_blocks_per_component; - const int Cr_ofs = Y_ofs + 64 * m_expanded_blocks_per_component * 2; - for (int j = 0; j < 8; j++) - { - int y = Py[Y_ofs + j]; - int cb = Py[Cb_ofs + j]; - int cr = Py[Cr_ofs + j]; - - if (jpg_format == ERGBFormatJPG::BGRA) - { - d[0] = clamp(y + m_cbb[cb]); - d[1] = clamp(y + ((m_crg[cr] + m_cbg[cb]) >> 16)); - d[2] = clamp(y + m_crr[cr]); - d[3] = 255; - } - else - { - d[0] = clamp(y + m_crr[cr]); - d[1] = clamp(y + ((m_crg[cr] + m_cbg[cb]) >> 16)); - d[2] = clamp(y + m_cbb[cb]); - d[3] = 255; - } - - d += 4; - } - } - - Py += 64 * m_expanded_blocks_per_mcu; - } - } - - // Find end of image (EOI) marker, so we can return to the user the exact size of the input stream. - void jpeg_decoder::find_eoi() - { - if (!m_progressive_flag) - { - // Attempt to read the EOI marker. - //get_bits_no_markers(m_bits_left & 7); - - // Prime the bit buffer - m_bits_left = 16; - get_bits(16); - get_bits(16); - - // The next marker _should_ be EOI - process_markers(); - } - - m_total_bytes_read -= m_in_buf_left; - } - - int jpeg_decoder::decode(const void** pScan_line, uint* pScan_line_len) - { - if ((m_error_code) || (!m_ready_flag)) - return JPGD_FAILED; - - if (m_total_lines_left == 0) - return JPGD_DONE; - - if (m_mcu_lines_left == 0) - { - if (setjmp(m_jmp_state)) - return JPGD_FAILED; - - if (m_progressive_flag) - load_next_row(); - else - decode_next_row(); - - // Find the EOI marker if that was the last row. - if (m_total_lines_left <= m_max_mcu_y_size) - find_eoi(); - - m_mcu_lines_left = m_max_mcu_y_size; - } - - if (m_freq_domain_chroma_upsample) - { - expanded_convert(); - *pScan_line = m_pScan_line_0; - } - else - { - switch (m_scan_type) - { - case JPGD_YH2V2: - { - if ((m_mcu_lines_left & 1) == 0) - { - H2V2Convert(); - *pScan_line = m_pScan_line_0; - } - else - *pScan_line = m_pScan_line_1; - - break; - } - case JPGD_YH2V1: - { - H2V1Convert(); - *pScan_line = m_pScan_line_0; - break; - } - case JPGD_YH1V2: - { - if ((m_mcu_lines_left & 1) == 0) - { - H1V2Convert(); - *pScan_line = m_pScan_line_0; - } - else - *pScan_line = m_pScan_line_1; - - break; - } - case JPGD_YH1V1: - { - H1V1Convert(); - *pScan_line = m_pScan_line_0; - break; - } - case JPGD_GRAYSCALE: - { - gray_convert(); - *pScan_line = m_pScan_line_0; - - break; - } - } - } - - *pScan_line_len = m_real_dest_bytes_per_scan_line; - - m_mcu_lines_left--; - m_total_lines_left--; - - return JPGD_SUCCESS; - } - - // Creates the tables needed for efficient Huffman decoding. - void jpeg_decoder::make_huff_table(int index, huff_tables *pH) - { - int p, i, l, si; - uint8 huffsize[257]; - uint huffcode[257]; - uint code; - uint subtree; - int code_size; - int lastp; - int nextfreeentry; - int currententry; - - pH->ac_table = m_huff_ac[index] != 0; - - p = 0; - - for (l = 1; l <= 16; l++) - { - for (i = 1; i <= m_huff_num[index][l]; i++) - huffsize[p++] = static_cast(l); - } - - huffsize[p] = 0; - - lastp = p; - - code = 0; - si = huffsize[0]; - p = 0; - - while (huffsize[p]) - { - while (huffsize[p] == si) - { - huffcode[p++] = code; - code++; - } - - code <<= 1; - si++; - } - - memset(pH->look_up, 0, sizeof(pH->look_up)); - memset(pH->look_up2, 0, sizeof(pH->look_up2)); - memset(pH->tree, 0, sizeof(pH->tree)); - memset(pH->code_size, 0, sizeof(pH->code_size)); - - nextfreeentry = -1; - - p = 0; - - while (p < lastp) - { - i = m_huff_val[index][p]; - code = huffcode[p]; - code_size = huffsize[p]; - - pH->code_size[i] = static_cast(code_size); - - if (code_size <= 8) - { - code <<= (8 - code_size); - - for (l = 1 << (8 - code_size); l > 0; l--) - { - JPGD_ASSERT(i < 256); - - pH->look_up[code] = i; - - bool has_extrabits = false; - int extra_bits = 0; - int num_extra_bits = i & 15; - - int bits_to_fetch = code_size; - if (num_extra_bits) - { - int total_codesize = code_size + num_extra_bits; - if (total_codesize <= 8) - { - has_extrabits = true; - extra_bits = ((1 << num_extra_bits) - 1) & (code >> (8 - total_codesize)); - JPGD_ASSERT(extra_bits <= 0x7FFF); - bits_to_fetch += num_extra_bits; - } - } - - if (!has_extrabits) - pH->look_up2[code] = i | (bits_to_fetch << 8); - else - pH->look_up2[code] = i | 0x8000 | (extra_bits << 16) | (bits_to_fetch << 8); - - code++; - } - } - else - { - subtree = (code >> (code_size - 8)) & 0xFF; - - currententry = pH->look_up[subtree]; - - if (currententry == 0) - { - pH->look_up[subtree] = currententry = nextfreeentry; - pH->look_up2[subtree] = currententry = nextfreeentry; - - nextfreeentry -= 2; - } - - code <<= (16 - (code_size - 8)); - - for (l = code_size; l > 9; l--) - { - if ((code & 0x8000) == 0) - currententry--; - - if (pH->tree[-currententry - 1] == 0) - { - pH->tree[-currententry - 1] = nextfreeentry; - - currententry = nextfreeentry; - - nextfreeentry -= 2; - } - else - currententry = pH->tree[-currententry - 1]; - - code <<= 1; - } - - if ((code & 0x8000) == 0) - currententry--; - - pH->tree[-currententry - 1] = i; - } - - p++; - } - } - - // Verifies the quantization tables needed for this scan are available. - void jpeg_decoder::check_quant_tables() - { - for (int i = 0; i < m_comps_in_scan; i++) - if (m_quant[m_comp_quant[m_comp_list[i]]] == NULL) - stop_decoding(JPGD_UNDEFINED_QUANT_TABLE); - } - - // Verifies that all the Huffman tables needed for this scan are available. - void jpeg_decoder::check_huff_tables() - { - for (int i = 0; i < m_comps_in_scan; i++) - { - if ((m_spectral_start == 0) && (m_huff_num[m_comp_dc_tab[m_comp_list[i]]] == NULL)) - stop_decoding(JPGD_UNDEFINED_HUFF_TABLE); - - if ((m_spectral_end > 0) && (m_huff_num[m_comp_ac_tab[m_comp_list[i]]] == NULL)) - stop_decoding(JPGD_UNDEFINED_HUFF_TABLE); - } - - for (int i = 0; i < JPGD_MAX_HUFF_TABLES; i++) - if (m_huff_num[i]) - { - if (!m_pHuff_tabs[i]) - m_pHuff_tabs[i] = (huff_tables *)alloc(sizeof(huff_tables)); - - make_huff_table(i, m_pHuff_tabs[i]); - } - } - - // Determines the component order inside each MCU. - // Also calcs how many MCU's are on each row, etc. - void jpeg_decoder::calc_mcu_block_order() - { - int component_num, component_id; - int max_h_samp = 0, max_v_samp = 0; - - for (component_id = 0; component_id < m_comps_in_frame; component_id++) - { - if (m_comp_h_samp[component_id] > max_h_samp) - max_h_samp = m_comp_h_samp[component_id]; - - if (m_comp_v_samp[component_id] > max_v_samp) - max_v_samp = m_comp_v_samp[component_id]; - } - - for (component_id = 0; component_id < m_comps_in_frame; component_id++) - { - m_comp_h_blocks[component_id] = ((((m_image_x_size * m_comp_h_samp[component_id]) + (max_h_samp - 1)) / max_h_samp) + 7) / 8; - m_comp_v_blocks[component_id] = ((((m_image_y_size * m_comp_v_samp[component_id]) + (max_v_samp - 1)) / max_v_samp) + 7) / 8; - } - - if (m_comps_in_scan == 1) - { - m_mcus_per_row = m_comp_h_blocks[m_comp_list[0]]; - m_mcus_per_col = m_comp_v_blocks[m_comp_list[0]]; - } - else - { - m_mcus_per_row = (((m_image_x_size + 7) / 8) + (max_h_samp - 1)) / max_h_samp; - m_mcus_per_col = (((m_image_y_size + 7) / 8) + (max_v_samp - 1)) / max_v_samp; - } - - if (m_comps_in_scan == 1) - { - m_mcu_org[0] = m_comp_list[0]; - - m_blocks_per_mcu = 1; - } - else - { - m_blocks_per_mcu = 0; - - for (component_num = 0; component_num < m_comps_in_scan; component_num++) - { - int num_blocks; - - component_id = m_comp_list[component_num]; - - num_blocks = m_comp_h_samp[component_id] * m_comp_v_samp[component_id]; - - while (num_blocks--) - m_mcu_org[m_blocks_per_mcu++] = component_id; - } - } - } - - // Starts a new scan. - int jpeg_decoder::init_scan() - { - if (!locate_sos_marker()) - return JPGD_FALSE; - - calc_mcu_block_order(); - - check_huff_tables(); - - check_quant_tables(); - - memset(m_last_dc_val, 0, m_comps_in_frame * sizeof(uint)); - - m_eob_run = 0; - - if (m_restart_interval) - { - m_restarts_left = m_restart_interval; - m_next_restart_num = 0; - } - - fix_in_buffer(); - - return JPGD_TRUE; - } - - // Starts a frame. Determines if the number of components or sampling factors - // are supported. - void jpeg_decoder::init_frame() - { - int i; - - if (m_comps_in_frame == 1) - { - if ((m_comp_h_samp[0] != 1) || (m_comp_v_samp[0] != 1)) - stop_decoding(JPGD_UNSUPPORTED_SAMP_FACTORS); - - m_scan_type = JPGD_GRAYSCALE; - m_max_blocks_per_mcu = 1; - m_max_mcu_x_size = 8; - m_max_mcu_y_size = 8; - } - else if (m_comps_in_frame == 3) - { - if ( ((m_comp_h_samp[1] != 1) || (m_comp_v_samp[1] != 1)) || - ((m_comp_h_samp[2] != 1) || (m_comp_v_samp[2] != 1)) ) - stop_decoding(JPGD_UNSUPPORTED_SAMP_FACTORS); - - if ((m_comp_h_samp[0] == 1) && (m_comp_v_samp[0] == 1)) - { - m_scan_type = JPGD_YH1V1; - - m_max_blocks_per_mcu = 3; - m_max_mcu_x_size = 8; - m_max_mcu_y_size = 8; - } - else if ((m_comp_h_samp[0] == 2) && (m_comp_v_samp[0] == 1)) - { - m_scan_type = JPGD_YH2V1; - m_max_blocks_per_mcu = 4; - m_max_mcu_x_size = 16; - m_max_mcu_y_size = 8; - } - else if ((m_comp_h_samp[0] == 1) && (m_comp_v_samp[0] == 2)) - { - m_scan_type = JPGD_YH1V2; - m_max_blocks_per_mcu = 4; - m_max_mcu_x_size = 8; - m_max_mcu_y_size = 16; - } - else if ((m_comp_h_samp[0] == 2) && (m_comp_v_samp[0] == 2)) - { - m_scan_type = JPGD_YH2V2; - m_max_blocks_per_mcu = 6; - m_max_mcu_x_size = 16; - m_max_mcu_y_size = 16; - } - else - stop_decoding(JPGD_UNSUPPORTED_SAMP_FACTORS); - } - else - stop_decoding(JPGD_UNSUPPORTED_COLORSPACE); - - m_max_mcus_per_row = (m_image_x_size + (m_max_mcu_x_size - 1)) / m_max_mcu_x_size; - m_max_mcus_per_col = (m_image_y_size + (m_max_mcu_y_size - 1)) / m_max_mcu_y_size; - - // These values are for the *destination* pixels: after conversion. - if (m_scan_type == JPGD_GRAYSCALE) - m_dest_bytes_per_pixel = 1; - else - m_dest_bytes_per_pixel = 4; - - m_dest_bytes_per_scan_line = ((m_image_x_size + 15) & 0xFFF0) * m_dest_bytes_per_pixel; - - m_real_dest_bytes_per_scan_line = (m_image_x_size * m_dest_bytes_per_pixel); - - // Initialize two scan line buffers. - m_pScan_line_0 = (uint8 *)alloc(m_dest_bytes_per_scan_line, true); - if ((m_scan_type == JPGD_YH1V2) || (m_scan_type == JPGD_YH2V2)) - m_pScan_line_1 = (uint8 *)alloc(m_dest_bytes_per_scan_line, true); - - m_max_blocks_per_row = m_max_mcus_per_row * m_max_blocks_per_mcu; - - // Should never happen - if (m_max_blocks_per_row > JPGD_MAX_BLOCKS_PER_ROW) - stop_decoding(JPGD_ASSERTION_ERROR); - - // Allocate the coefficient buffer, enough for one MCU - m_pMCU_coefficients = (jpgd_block_t*)alloc(m_max_blocks_per_mcu * 64 * sizeof(jpgd_block_t)); - - for (i = 0; i < m_max_blocks_per_mcu; i++) - m_mcu_block_max_zag[i] = 64; - - m_expanded_blocks_per_component = m_comp_h_samp[0] * m_comp_v_samp[0]; - m_expanded_blocks_per_mcu = m_expanded_blocks_per_component * m_comps_in_frame; - m_expanded_blocks_per_row = m_max_mcus_per_row * m_expanded_blocks_per_mcu; - // Freq. domain chroma upsampling is only supported for H2V2 subsampling factor. -// BEGIN EPIC MOD -#if JPGD_SUPPORT_FREQ_DOMAIN_UPSAMPLING - m_freq_domain_chroma_upsample = (m_expanded_blocks_per_mcu == 4*3); -#else - m_freq_domain_chroma_upsample = 0; -#endif -// END EPIC MOD - - if (m_freq_domain_chroma_upsample) - m_pSample_buf = (uint8 *)alloc(m_expanded_blocks_per_row * 64); - else - m_pSample_buf = (uint8 *)alloc(m_max_blocks_per_row * 64); - - m_total_lines_left = m_image_y_size; - - m_mcu_lines_left = 0; - - create_look_ups(); - } - - // The coeff_buf series of methods originally stored the coefficients - // into a "virtual" file which was located in EMS, XMS, or a disk file. A cache - // was used to make this process more efficient. Now, we can store the entire - // thing in RAM. - jpeg_decoder::coeff_buf* jpeg_decoder::coeff_buf_open(int block_num_x, int block_num_y, int block_len_x, int block_len_y) - { - coeff_buf* cb = (coeff_buf*)alloc(sizeof(coeff_buf)); - - cb->block_num_x = block_num_x; - cb->block_num_y = block_num_y; - cb->block_len_x = block_len_x; - cb->block_len_y = block_len_y; - cb->block_size = (block_len_x * block_len_y) * sizeof(jpgd_block_t); - cb->pData = (uint8 *)alloc(cb->block_size * block_num_x * block_num_y, true); - return cb; - } - - inline jpgd_block_t *jpeg_decoder::coeff_buf_getp(coeff_buf *cb, int block_x, int block_y) - { - JPGD_ASSERT((block_x < cb->block_num_x) && (block_y < cb->block_num_y)); - return (jpgd_block_t *)(cb->pData + block_x * cb->block_size + block_y * (cb->block_size * cb->block_num_x)); - } - - // The following methods decode the various types of m_blocks encountered - // in progressively encoded images. - void jpeg_decoder::decode_block_dc_first(jpeg_decoder *pD, int component_id, int block_x, int block_y) - { - int s, r; - jpgd_block_t *p = pD->coeff_buf_getp(pD->m_dc_coeffs[component_id], block_x, block_y); - - if ((s = pD->huff_decode(pD->m_pHuff_tabs[pD->m_comp_dc_tab[component_id]])) != 0) - { - r = pD->get_bits_no_markers(s); - s = HUFF_EXTEND(r, s); - } - - pD->m_last_dc_val[component_id] = (s += pD->m_last_dc_val[component_id]); - - p[0] = static_cast(s << pD->m_successive_low); - } - - void jpeg_decoder::decode_block_dc_refine(jpeg_decoder *pD, int component_id, int block_x, int block_y) - { - if (pD->get_bits_no_markers(1)) - { - jpgd_block_t *p = pD->coeff_buf_getp(pD->m_dc_coeffs[component_id], block_x, block_y); - - p[0] |= (1 << pD->m_successive_low); - } - } - - void jpeg_decoder::decode_block_ac_first(jpeg_decoder *pD, int component_id, int block_x, int block_y) - { - int k, s, r; - - if (pD->m_eob_run) - { - pD->m_eob_run--; - return; - } - - jpgd_block_t *p = pD->coeff_buf_getp(pD->m_ac_coeffs[component_id], block_x, block_y); - - for (k = pD->m_spectral_start; k <= pD->m_spectral_end; k++) - { - s = pD->huff_decode(pD->m_pHuff_tabs[pD->m_comp_ac_tab[component_id]]); - - r = s >> 4; - s &= 15; - - if (s) - { - if ((k += r) > 63) - pD->stop_decoding(JPGD_DECODE_ERROR); - - r = pD->get_bits_no_markers(s); - s = HUFF_EXTEND(r, s); - - p[g_ZAG[k]] = static_cast(s << pD->m_successive_low); - } - else - { - if (r == 15) - { - if ((k += 15) > 63) - pD->stop_decoding(JPGD_DECODE_ERROR); - } - else - { - pD->m_eob_run = 1 << r; - - if (r) - pD->m_eob_run += pD->get_bits_no_markers(r); - - pD->m_eob_run--; - - break; - } - } - } - } - - void jpeg_decoder::decode_block_ac_refine(jpeg_decoder *pD, int component_id, int block_x, int block_y) - { - int s, k, r; - int p1 = 1 << pD->m_successive_low; - int m1 = (-1) << pD->m_successive_low; - jpgd_block_t *p = pD->coeff_buf_getp(pD->m_ac_coeffs[component_id], block_x, block_y); - - k = pD->m_spectral_start; - - if (pD->m_eob_run == 0) - { - for ( ; k <= pD->m_spectral_end; k++) - { - s = pD->huff_decode(pD->m_pHuff_tabs[pD->m_comp_ac_tab[component_id]]); - - r = s >> 4; - s &= 15; - - if (s) - { - if (s != 1) - pD->stop_decoding(JPGD_DECODE_ERROR); - - if (pD->get_bits_no_markers(1)) - s = p1; - else - s = m1; - } - else - { - if (r != 15) - { - pD->m_eob_run = 1 << r; - - if (r) - pD->m_eob_run += pD->get_bits_no_markers(r); - - break; - } - } - - do - { - // BEGIN EPIC MOD - JPGD_ASSERT(k < 64); - // END EPIC MOD - - jpgd_block_t *this_coef = p + g_ZAG[k]; - - if (*this_coef != 0) - { - if (pD->get_bits_no_markers(1)) - { - if ((*this_coef & p1) == 0) - { - if (*this_coef >= 0) - *this_coef = static_cast(*this_coef + p1); - else - *this_coef = static_cast(*this_coef + m1); - } - } - } - else - { - if (--r < 0) - break; - } - - k++; - - } while (k <= pD->m_spectral_end); - - if ((s) && (k < 64)) - { - p[g_ZAG[k]] = static_cast(s); - } - } - } - - if (pD->m_eob_run > 0) - { - for ( ; k <= pD->m_spectral_end; k++) - { - // BEGIN EPIC MOD - JPGD_ASSERT(k < 64); - // END EPIC MOD - - jpgd_block_t *this_coef = p + g_ZAG[k]; - - if (*this_coef != 0) - { - if (pD->get_bits_no_markers(1)) - { - if ((*this_coef & p1) == 0) - { - if (*this_coef >= 0) - *this_coef = static_cast(*this_coef + p1); - else - *this_coef = static_cast(*this_coef + m1); - } - } - } - } - - pD->m_eob_run--; - } - } - - // Decode a scan in a progressively encoded image. - void jpeg_decoder::decode_scan(pDecode_block_func decode_block_func) - { - int mcu_row, mcu_col, mcu_block; - int block_x_mcu[JPGD_MAX_COMPONENTS], m_block_y_mcu[JPGD_MAX_COMPONENTS]; - - memset(m_block_y_mcu, 0, sizeof(m_block_y_mcu)); - - for (mcu_col = 0; mcu_col < m_mcus_per_col; mcu_col++) - { - int component_num, component_id; - - memset(block_x_mcu, 0, sizeof(block_x_mcu)); - - for (mcu_row = 0; mcu_row < m_mcus_per_row; mcu_row++) - { - int block_x_mcu_ofs = 0, block_y_mcu_ofs = 0; - - if ((m_restart_interval) && (m_restarts_left == 0)) - process_restart(); - - for (mcu_block = 0; mcu_block < m_blocks_per_mcu; mcu_block++) - { - component_id = m_mcu_org[mcu_block]; - - decode_block_func(this, component_id, block_x_mcu[component_id] + block_x_mcu_ofs, m_block_y_mcu[component_id] + block_y_mcu_ofs); - - if (m_comps_in_scan == 1) - block_x_mcu[component_id]++; - else - { - if (++block_x_mcu_ofs == m_comp_h_samp[component_id]) - { - block_x_mcu_ofs = 0; - - if (++block_y_mcu_ofs == m_comp_v_samp[component_id]) - { - block_y_mcu_ofs = 0; - block_x_mcu[component_id] += m_comp_h_samp[component_id]; - } - } - } - } - - m_restarts_left--; - } - - if (m_comps_in_scan == 1) - m_block_y_mcu[m_comp_list[0]]++; - else - { - for (component_num = 0; component_num < m_comps_in_scan; component_num++) - { - component_id = m_comp_list[component_num]; - m_block_y_mcu[component_id] += m_comp_v_samp[component_id]; - } - } - } - } - - // Decode a progressively encoded image. - void jpeg_decoder::init_progressive() - { - int i; - - if (m_comps_in_frame == 4) - stop_decoding(JPGD_UNSUPPORTED_COLORSPACE); - - // Allocate the coefficient buffers. - for (i = 0; i < m_comps_in_frame; i++) - { - m_dc_coeffs[i] = coeff_buf_open(m_max_mcus_per_row * m_comp_h_samp[i], m_max_mcus_per_col * m_comp_v_samp[i], 1, 1); - m_ac_coeffs[i] = coeff_buf_open(m_max_mcus_per_row * m_comp_h_samp[i], m_max_mcus_per_col * m_comp_v_samp[i], 8, 8); - } - - for ( ; ; ) - { - int dc_only_scan, refinement_scan; - pDecode_block_func decode_block_func; - - if (!init_scan()) - break; - - dc_only_scan = (m_spectral_start == 0); - refinement_scan = (m_successive_high != 0); - - if ((m_spectral_start > m_spectral_end) || (m_spectral_end > 63)) - stop_decoding(JPGD_BAD_SOS_SPECTRAL); - - if (dc_only_scan) - { - if (m_spectral_end) - stop_decoding(JPGD_BAD_SOS_SPECTRAL); - } - else if (m_comps_in_scan != 1) /* AC scans can only contain one component */ - stop_decoding(JPGD_BAD_SOS_SPECTRAL); - - if ((refinement_scan) && (m_successive_low != m_successive_high - 1)) - stop_decoding(JPGD_BAD_SOS_SUCCESSIVE); - - if (dc_only_scan) - { - if (refinement_scan) - decode_block_func = decode_block_dc_refine; - else - decode_block_func = decode_block_dc_first; - } - else - { - if (refinement_scan) - decode_block_func = decode_block_ac_refine; - else - decode_block_func = decode_block_ac_first; - } - - decode_scan(decode_block_func); - - m_bits_left = 16; - get_bits(16); - get_bits(16); - } - - m_comps_in_scan = m_comps_in_frame; - - for (i = 0; i < m_comps_in_frame; i++) - m_comp_list[i] = i; - - calc_mcu_block_order(); - } - - void jpeg_decoder::init_sequential() - { - if (!init_scan()) - stop_decoding(JPGD_UNEXPECTED_MARKER); - } - - void jpeg_decoder::decode_start() - { - init_frame(); - - if (m_progressive_flag) - init_progressive(); - else - init_sequential(); - } - - void jpeg_decoder::decode_init(jpeg_decoder_stream *pStream) - { - init(pStream); - locate_sof_marker(); - } - - jpeg_decoder::jpeg_decoder(jpeg_decoder_stream *pStream) - { - if (setjmp(m_jmp_state)) - return; - decode_init(pStream); - } - - int jpeg_decoder::begin_decoding() - { - if (m_ready_flag) - return JPGD_SUCCESS; - - if (m_error_code) - return JPGD_FAILED; - - if (setjmp(m_jmp_state)) - return JPGD_FAILED; - - decode_start(); - - m_ready_flag = true; - - return JPGD_SUCCESS; - } - - jpeg_decoder::~jpeg_decoder() - { - free_all_blocks(); - } - - jpeg_decoder_file_stream::jpeg_decoder_file_stream() - { - m_pFile = NULL; - m_eof_flag = false; - m_error_flag = false; - } - - void jpeg_decoder_file_stream::close() - { - if (m_pFile) - { - fclose(m_pFile); - m_pFile = NULL; - } - - m_eof_flag = false; - m_error_flag = false; - } - - jpeg_decoder_file_stream::~jpeg_decoder_file_stream() - { - close(); - } - - bool jpeg_decoder_file_stream::open(const char *Pfilename) - { - close(); - - m_eof_flag = false; - m_error_flag = false; - -#if defined(_MSC_VER) - m_pFile = NULL; - fopen_s(&m_pFile, Pfilename, "rb"); -#else - m_pFile = fopen(Pfilename, "rb"); -#endif - return m_pFile != NULL; - } - - int jpeg_decoder_file_stream::read(uint8 *pBuf, int max_bytes_to_read, bool *pEOF_flag) - { - if (!m_pFile) - return -1; - - if (m_eof_flag) - { - *pEOF_flag = true; - return 0; - } - - if (m_error_flag) - return -1; - - int bytes_read = static_cast(fread(pBuf, 1, max_bytes_to_read, m_pFile)); - if (bytes_read < max_bytes_to_read) - { - if (ferror(m_pFile)) - { - m_error_flag = true; - return -1; - } - - m_eof_flag = true; - *pEOF_flag = true; - } - - return bytes_read; - } - - bool jpeg_decoder_mem_stream::open(const uint8 *pSrc_data, uint size) - { - close(); - m_pSrc_data = pSrc_data; - m_ofs = 0; - m_size = size; - return true; - } - - int jpeg_decoder_mem_stream::read(uint8 *pBuf, int max_bytes_to_read, bool *pEOF_flag) - { - *pEOF_flag = false; - - if (!m_pSrc_data) - return -1; - - uint bytes_remaining = m_size - m_ofs; - if ((uint)max_bytes_to_read > bytes_remaining) - { - max_bytes_to_read = bytes_remaining; - *pEOF_flag = true; - } - - memcpy(pBuf, m_pSrc_data + m_ofs, max_bytes_to_read); - m_ofs += max_bytes_to_read; - - return max_bytes_to_read; - } - - unsigned char *decompress_jpeg_image_from_stream(jpeg_decoder_stream *pStream, int *width, int *height, int *actual_comps, int req_comps) - { - if (!actual_comps) - return NULL; - *actual_comps = 0; - - if ((!pStream) || (!width) || (!height) || (!req_comps)) - return NULL; - - if ((req_comps != 1) && (req_comps != 3) && (req_comps != 4)) - return NULL; - - jpeg_decoder decoder(pStream); - if (decoder.get_error_code() != JPGD_SUCCESS) - return NULL; - - const int image_width = decoder.get_width(), image_height = decoder.get_height(); - *width = image_width; - *height = image_height; - *actual_comps = decoder.get_num_components(); - - if (decoder.begin_decoding() != JPGD_SUCCESS) - return NULL; - - const int dst_bpl = image_width * req_comps; - - uint8 *pImage_data = (uint8*)jpgd_malloc(dst_bpl * image_height); - if (!pImage_data) - return NULL; - - for (int y = 0; y < image_height; y++) - { - const uint8* pScan_line = 0; - uint scan_line_len; - if (decoder.decode((const void**)&pScan_line, &scan_line_len) != JPGD_SUCCESS) - { - jpgd_free(pImage_data); - return NULL; - } - - uint8 *pDst = pImage_data + y * dst_bpl; - - if (((req_comps == 4) && (decoder.get_num_components() == 3)) || - ((req_comps == 1) && (decoder.get_num_components() == 1))) - { - memcpy(pDst, pScan_line, dst_bpl); - } - else if (decoder.get_num_components() == 1) - { - if (req_comps == 3) - { - for (int x = 0; x < image_width; x++) - { - uint8 luma = pScan_line[x]; - pDst[0] = luma; - pDst[1] = luma; - pDst[2] = luma; - pDst += 3; - } - } - else - { - for (int x = 0; x < image_width; x++) - { - uint8 luma = pScan_line[x]; - pDst[0] = luma; - pDst[1] = luma; - pDst[2] = luma; - pDst[3] = 255; - pDst += 4; - } - } - } - else if (decoder.get_num_components() == 3) - { - if (req_comps == 1) - { - const int YR = 19595, YG = 38470, YB = 7471; - for (int x = 0; x < image_width; x++) - { - int r = pScan_line[x*4+0]; - int g = pScan_line[x*4+1]; - int b = pScan_line[x*4+2]; - *pDst++ = static_cast((r * YR + g * YG + b * YB + 32768) >> 16); - } - } - else - { - for (int x = 0; x < image_width; x++) - { - pDst[0] = pScan_line[x*4+0]; - pDst[1] = pScan_line[x*4+1]; - pDst[2] = pScan_line[x*4+2]; - pDst += 3; - } - } - } - } - - return pImage_data; - } - -// BEGIN EPIC MOD - unsigned char *decompress_jpeg_image_from_memory(const unsigned char *pSrc_data, int src_data_size, int *width, int *height, int *actual_comps, int req_comps, int format) - { - jpg_format = (ERGBFormatJPG)format; -// EMD EPIC MOD - jpgd::jpeg_decoder_mem_stream mem_stream(pSrc_data, src_data_size); - return decompress_jpeg_image_from_stream(&mem_stream, width, height, actual_comps, req_comps); - } - - unsigned char *decompress_jpeg_image_from_file(const char *pSrc_filename, int *width, int *height, int *actual_comps, int req_comps) - { - jpgd::jpeg_decoder_file_stream file_stream; - if (!file_stream.open(pSrc_filename)) - return NULL; - return decompress_jpeg_image_from_stream(&file_stream, width, height, actual_comps, req_comps); - } - -} // namespace jpgd diff --git "a/spaces/xxccc/gpt-academic/crazy_functions/\346\225\260\345\255\246\345\212\250\347\224\273\347\224\237\346\210\220manim.py" "b/spaces/xxccc/gpt-academic/crazy_functions/\346\225\260\345\255\246\345\212\250\347\224\273\347\224\237\346\210\220manim.py" deleted file mode 100644 index 5851b9c67110ddcdb2ada0bb4d32e4c0154bb272..0000000000000000000000000000000000000000 --- "a/spaces/xxccc/gpt-academic/crazy_functions/\346\225\260\345\255\246\345\212\250\347\224\273\347\224\237\346\210\220manim.py" +++ /dev/null @@ -1,187 +0,0 @@ -from toolbox import CatchException, update_ui, gen_time_str -from .crazy_utils import request_gpt_model_in_new_thread_with_ui_alive -from .crazy_utils import input_clipping - -def inspect_dependency(chatbot, history): - # 尝试导入依赖,如果缺少依赖,则给出安装建议 - try: - import manim - return True - except: - chatbot.append(["导入依赖失败", "使用该模块需要额外依赖,安装方法:```pip install manimgl```"]) - yield from update_ui(chatbot=chatbot, history=history) # 刷新界面 - return False - -def eval_manim(code): - import subprocess, sys, os, shutil - - with open('gpt_log/MyAnimation.py', 'w', encoding='utf8') as f: - f.write(code) - - def get_class_name(class_string): - import re - # Use regex to extract the class name - class_name = re.search(r'class (\w+)\(', class_string).group(1) - return class_name - - class_name = get_class_name(code) - - try: - subprocess.check_output([sys.executable, '-c', f"from gpt_log.MyAnimation import {class_name}; {class_name}().render()"]) - shutil.move('media/videos/1080p60/{class_name}.mp4', f'gpt_log/{class_name}-{gen_time_str()}.mp4') - return f'gpt_log/{gen_time_str()}.mp4' - except subprocess.CalledProcessError as e: - output = e.output.decode() - print(f"Command returned non-zero exit status {e.returncode}: {output}.") - return f"Evaluating python script failed: {e.output}." - except: - print('generating mp4 failed') - return "Generating mp4 failed." - - -def get_code_block(reply): - import re - pattern = r"```([\s\S]*?)```" # regex pattern to match code blocks - matches = re.findall(pattern, reply) # find all code blocks in text - if len(matches) != 1: - raise RuntimeError("GPT is not generating proper code.") - return matches[0].strip('python') # code block - -@CatchException -def 动画生成(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port): - """ - txt 输入栏用户输入的文本,例如需要翻译的一段话,再例如一个包含了待处理文件的路径 - llm_kwargs gpt模型参数,如温度和top_p等,一般原样传递下去就行 - plugin_kwargs 插件模型的参数,暂时没有用武之地 - chatbot 聊天显示框的句柄,用于显示给用户 - history 聊天历史,前情提要 - system_prompt 给gpt的静默提醒 - web_port 当前软件运行的端口号 - """ - # 清空历史,以免输入溢出 - history = [] - - # 基本信息:功能、贡献者 - chatbot.append([ - "函数插件功能?", - "生成数学动画, 此插件处于开发阶段, 建议暂时不要使用, 作者: binary-husky, 插件初始化中 ..." - ]) - yield from update_ui(chatbot=chatbot, history=history) # 刷新界面 - - # 尝试导入依赖, 如果缺少依赖, 则给出安装建议 - dep_ok = yield from inspect_dependency(chatbot=chatbot, history=history) # 刷新界面 - if not dep_ok: return - - # 输入 - i_say = f'Generate a animation to show: ' + txt - demo = ["Here is some examples of manim", examples_of_manim()] - _, demo = input_clipping(inputs="", history=demo, max_token_limit=2560) - # 开始 - gpt_say = yield from request_gpt_model_in_new_thread_with_ui_alive( - inputs=i_say, inputs_show_user=i_say, - llm_kwargs=llm_kwargs, chatbot=chatbot, history=demo, - sys_prompt= - r"Write a animation script with 3blue1brown's manim. "+ - r"Please begin with `from manim import *`. " + - r"Answer me with a code block wrapped by ```." - ) - chatbot.append(["开始生成动画", "..."]) - history.extend([i_say, gpt_say]) - yield from update_ui(chatbot=chatbot, history=history) # 刷新界面 # 界面更新 - - # 将代码转为动画 - code = get_code_block(gpt_say) - res = eval_manim(code) - - chatbot.append(("生成的视频文件路径", res)) - yield from update_ui(chatbot=chatbot, history=history) # 刷新界面 # 界面更新 - -# 在这里放一些网上搜集的demo,辅助gpt生成代码 -def examples_of_manim(): - return r""" - - -``` - -class MovingGroupToDestination(Scene): - def construct(self): - group = VGroup(Dot(LEFT), Dot(ORIGIN), Dot(RIGHT, color=RED), Dot(2 * RIGHT)).scale(1.4) - dest = Dot([4, 3, 0], color=YELLOW) - self.add(group, dest) - self.play(group.animate.shift(dest.get_center() - group[2].get_center())) - self.wait(0.5) - -``` - - -``` - -class LatexWithMovingFramebox(Scene): - def construct(self): - text=MathTex( - "\\frac{d}{dx}f(x)g(x)=","f(x)\\frac{d}{dx}g(x)","+", - "g(x)\\frac{d}{dx}f(x)" - ) - self.play(Write(text)) - framebox1 = SurroundingRectangle(text[1], buff = .1) - framebox2 = SurroundingRectangle(text[3], buff = .1) - self.play( - Create(framebox1), - ) - self.wait() - self.play( - ReplacementTransform(framebox1,framebox2), - ) - self.wait() - -``` - - - -``` - -class PointWithTrace(Scene): - def construct(self): - path = VMobject() - dot = Dot() - path.set_points_as_corners([dot.get_center(), dot.get_center()]) - def update_path(path): - previous_path = path.copy() - previous_path.add_points_as_corners([dot.get_center()]) - path.become(previous_path) - path.add_updater(update_path) - self.add(path, dot) - self.play(Rotating(dot, radians=PI, about_point=RIGHT, run_time=2)) - self.wait() - self.play(dot.animate.shift(UP)) - self.play(dot.animate.shift(LEFT)) - self.wait() - -``` - -``` - -# do not use get_graph, this funciton is deprecated - -class ExampleFunctionGraph(Scene): - def construct(self): - cos_func = FunctionGraph( - lambda t: np.cos(t) + 0.5 * np.cos(7 * t) + (1 / 7) * np.cos(14 * t), - color=RED, - ) - - sin_func_1 = FunctionGraph( - lambda t: np.sin(t) + 0.5 * np.sin(7 * t) + (1 / 7) * np.sin(14 * t), - color=BLUE, - ) - - sin_func_2 = FunctionGraph( - lambda t: np.sin(t) + 0.5 * np.sin(7 * t) + (1 / 7) * np.sin(14 * t), - x_range=[-4, 4], - color=GREEN, - ).move_to([0, 1, 0]) - - self.add(cos_func, sin_func_1, sin_func_2) - -``` -""" \ No newline at end of file diff --git a/spaces/xxie92/antibody_visulization/diffab/utils/transforms/select_atom.py b/spaces/xxie92/antibody_visulization/diffab/utils/transforms/select_atom.py deleted file mode 100644 index 7d067ecb50873dc3ec3c5626bc8d1a836258780a..0000000000000000000000000000000000000000 --- a/spaces/xxie92/antibody_visulization/diffab/utils/transforms/select_atom.py +++ /dev/null @@ -1,20 +0,0 @@ - -from ._base import register_transform - - -@register_transform('select_atom') -class SelectAtom(object): - - def __init__(self, resolution): - super().__init__() - assert resolution in ('full', 'backbone') - self.resolution = resolution - - def __call__(self, data): - if self.resolution == 'full': - data['pos_atoms'] = data['pos_heavyatom'][:, :] - data['mask_atoms'] = data['mask_heavyatom'][:, :] - elif self.resolution == 'backbone': - data['pos_atoms'] = data['pos_heavyatom'][:, :5] - data['mask_atoms'] = data['mask_heavyatom'][:, :5] - return data diff --git a/spaces/ybelkada/interfacegan_pp/torch_utils/ops/filtered_lrelu.h b/spaces/ybelkada/interfacegan_pp/torch_utils/ops/filtered_lrelu.h deleted file mode 100644 index 2c403e3f275f472315662321cad54dd0dbc56d00..0000000000000000000000000000000000000000 --- a/spaces/ybelkada/interfacegan_pp/torch_utils/ops/filtered_lrelu.h +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. -// -// NVIDIA CORPORATION and its licensors retain all intellectual property -// and proprietary rights in and to this software, related documentation -// and any modifications thereto. Any use, reproduction, disclosure or -// distribution of this software and related documentation without an express -// license agreement from NVIDIA CORPORATION is strictly prohibited. - -#include - -//------------------------------------------------------------------------ -// CUDA kernel parameters. - -struct filtered_lrelu_kernel_params -{ - // These parameters decide which kernel to use. - int up; // upsampling ratio (1, 2, 4) - int down; // downsampling ratio (1, 2, 4) - int2 fuShape; // [size, 1] | [size, size] - int2 fdShape; // [size, 1] | [size, size] - - int _dummy; // Alignment. - - // Rest of the parameters. - const void* x; // Input tensor. - void* y; // Output tensor. - const void* b; // Bias tensor. - unsigned char* s; // Sign tensor in/out. NULL if unused. - const float* fu; // Upsampling filter. - const float* fd; // Downsampling filter. - - int2 pad0; // Left/top padding. - float gain; // Additional gain factor. - float slope; // Leaky ReLU slope on negative side. - float clamp; // Clamp after nonlinearity. - int flip; // Filter kernel flip for gradient computation. - - int tilesXdim; // Original number of horizontal output tiles. - int tilesXrep; // Number of horizontal tiles per CTA. - int blockZofs; // Block z offset to support large minibatch, channel dimensions. - - int4 xShape; // [width, height, channel, batch] - int4 yShape; // [width, height, channel, batch] - int2 sShape; // [width, height] - width is in bytes. Contiguous. Zeros if unused. - int2 sOfs; // [ofs_x, ofs_y] - offset between upsampled data and sign tensor. - int swLimit; // Active width of sign tensor in bytes. - - longlong4 xStride; // Strides of all tensors except signs, same component order as shapes. - longlong4 yStride; // - int64_t bStride; // - longlong3 fuStride; // - longlong3 fdStride; // -}; - -struct filtered_lrelu_act_kernel_params -{ - void* x; // Input/output, modified in-place. - unsigned char* s; // Sign tensor in/out. NULL if unused. - - float gain; // Additional gain factor. - float slope; // Leaky ReLU slope on negative side. - float clamp; // Clamp after nonlinearity. - - int4 xShape; // [width, height, channel, batch] - longlong4 xStride; // Input/output tensor strides, same order as in shape. - int2 sShape; // [width, height] - width is in elements. Contiguous. Zeros if unused. - int2 sOfs; // [ofs_x, ofs_y] - offset between upsampled data and sign tensor. -}; - -//------------------------------------------------------------------------ -// CUDA kernel specialization. - -struct filtered_lrelu_kernel_spec -{ - void* setup; // Function for filter kernel setup. - void* exec; // Function for main operation. - int2 tileOut; // Width/height of launch tile. - int numWarps; // Number of warps per thread block, determines launch block size. - int xrep; // For processing multiple horizontal tiles per thread block. - int dynamicSharedKB; // How much dynamic shared memory the exec kernel wants. -}; - -//------------------------------------------------------------------------ -// CUDA kernel selection. - -template filtered_lrelu_kernel_spec choose_filtered_lrelu_kernel(const filtered_lrelu_kernel_params& p, int sharedKB); -template void* choose_filtered_lrelu_act_kernel(void); -template cudaError_t copy_filters(cudaStream_t stream); - -//------------------------------------------------------------------------ diff --git a/spaces/yfyangd/PictureBookUnderstanding/BLIP/data/__init__.py b/spaces/yfyangd/PictureBookUnderstanding/BLIP/data/__init__.py deleted file mode 100644 index 0be209acf415855ea6ef753efedf903b5decb6b9..0000000000000000000000000000000000000000 --- a/spaces/yfyangd/PictureBookUnderstanding/BLIP/data/__init__.py +++ /dev/null @@ -1,101 +0,0 @@ -import torch -from torch.utils.data import DataLoader -from torchvision import transforms -from torchvision.transforms.functional import InterpolationMode - -from data.coco_karpathy_dataset import coco_karpathy_train, coco_karpathy_caption_eval, coco_karpathy_retrieval_eval -from data.nocaps_dataset import nocaps_eval -from data.flickr30k_dataset import flickr30k_train, flickr30k_retrieval_eval -from data.vqa_dataset import vqa_dataset -from data.nlvr_dataset import nlvr_dataset -from data.pretrain_dataset import pretrain_dataset -from transform.randaugment import RandomAugment - -def create_dataset(dataset, config, min_scale=0.5): - - normalize = transforms.Normalize((0.48145466, 0.4578275, 0.40821073), (0.26862954, 0.26130258, 0.27577711)) - - transform_train = transforms.Compose([ - transforms.RandomResizedCrop(config['image_size'],scale=(min_scale, 1.0),interpolation=InterpolationMode.BICUBIC), - transforms.RandomHorizontalFlip(), - RandomAugment(2,5,isPIL=True,augs=['Identity','AutoContrast','Brightness','Sharpness','Equalize', - 'ShearX', 'ShearY', 'TranslateX', 'TranslateY', 'Rotate']), - transforms.ToTensor(), - normalize, - ]) - transform_test = transforms.Compose([ - transforms.Resize((config['image_size'],config['image_size']),interpolation=InterpolationMode.BICUBIC), - transforms.ToTensor(), - normalize, - ]) - - if dataset=='pretrain': - dataset = pretrain_dataset(config['train_file'], config['laion_path'], transform_train) - return dataset - - elif dataset=='caption_coco': - train_dataset = coco_karpathy_train(transform_train, config['image_root'], config['ann_root'], prompt=config['prompt']) - val_dataset = coco_karpathy_caption_eval(transform_test, config['image_root'], config['ann_root'], 'val') - test_dataset = coco_karpathy_caption_eval(transform_test, config['image_root'], config['ann_root'], 'test') - return train_dataset, val_dataset, test_dataset - - elif dataset=='nocaps': - val_dataset = nocaps_eval(transform_test, config['image_root'], config['ann_root'], 'val') - test_dataset = nocaps_eval(transform_test, config['image_root'], config['ann_root'], 'test') - return val_dataset, test_dataset - - elif dataset=='retrieval_coco': - train_dataset = coco_karpathy_train(transform_train, config['image_root'], config['ann_root']) - val_dataset = coco_karpathy_retrieval_eval(transform_test, config['image_root'], config['ann_root'], 'val') - test_dataset = coco_karpathy_retrieval_eval(transform_test, config['image_root'], config['ann_root'], 'test') - return train_dataset, val_dataset, test_dataset - - elif dataset=='retrieval_flickr': - train_dataset = flickr30k_train(transform_train, config['image_root'], config['ann_root']) - val_dataset = flickr30k_retrieval_eval(transform_test, config['image_root'], config['ann_root'], 'val') - test_dataset = flickr30k_retrieval_eval(transform_test, config['image_root'], config['ann_root'], 'test') - return train_dataset, val_dataset, test_dataset - - elif dataset=='vqa': - train_dataset = vqa_dataset(transform_train, config['ann_root'], config['vqa_root'], config['vg_root'], - train_files = config['train_files'], split='train') - test_dataset = vqa_dataset(transform_test, config['ann_root'], config['vqa_root'], config['vg_root'], split='test') - return train_dataset, test_dataset - - elif dataset=='nlvr': - train_dataset = nlvr_dataset(transform_train, config['image_root'], config['ann_root'],'train') - val_dataset = nlvr_dataset(transform_test, config['image_root'], config['ann_root'],'val') - test_dataset = nlvr_dataset(transform_test, config['image_root'], config['ann_root'],'test') - return train_dataset, val_dataset, test_dataset - - -def create_sampler(datasets, shuffles, num_tasks, global_rank): - samplers = [] - for dataset,shuffle in zip(datasets,shuffles): - sampler = torch.utils.data.DistributedSampler(dataset, num_replicas=num_tasks, rank=global_rank, shuffle=shuffle) - samplers.append(sampler) - return samplers - - -def create_loader(datasets, samplers, batch_size, num_workers, is_trains, collate_fns): - loaders = [] - for dataset,sampler,bs,n_worker,is_train,collate_fn in zip(datasets,samplers,batch_size,num_workers,is_trains,collate_fns): - if is_train: - shuffle = (sampler is None) - drop_last = True - else: - shuffle = False - drop_last = False - loader = DataLoader( - dataset, - batch_size=bs, - num_workers=n_worker, - pin_memory=True, - sampler=sampler, - shuffle=shuffle, - collate_fn=collate_fn, - drop_last=drop_last, - ) - loaders.append(loader) - return loaders - diff --git a/spaces/yizhangliu/Grounded-Segment-Anything/GroundingDINO/groundingdino/util/time_counter.py b/spaces/yizhangliu/Grounded-Segment-Anything/GroundingDINO/groundingdino/util/time_counter.py deleted file mode 100644 index 0aedb2e4d61bfbe7571dca9d50053f0fedaa1359..0000000000000000000000000000000000000000 --- a/spaces/yizhangliu/Grounded-Segment-Anything/GroundingDINO/groundingdino/util/time_counter.py +++ /dev/null @@ -1,62 +0,0 @@ -import json -import time - - -class TimeCounter: - def __init__(self) -> None: - pass - - def clear(self): - self.timedict = {} - self.basetime = time.perf_counter() - - def timeit(self, name): - nowtime = time.perf_counter() - self.basetime - self.timedict[name] = nowtime - self.basetime = time.perf_counter() - - -class TimeHolder: - def __init__(self) -> None: - self.timedict = {} - - def update(self, _timedict: dict): - for k, v in _timedict.items(): - if k not in self.timedict: - self.timedict[k] = AverageMeter(name=k, val_only=True) - self.timedict[k].update(val=v) - - def final_res(self): - return {k: v.avg for k, v in self.timedict.items()} - - def __str__(self): - return json.dumps(self.final_res(), indent=2) - - -class AverageMeter(object): - """Computes and stores the average and current value""" - - def __init__(self, name, fmt=":f", val_only=False): - self.name = name - self.fmt = fmt - self.val_only = val_only - self.reset() - - def reset(self): - self.val = 0 - self.avg = 0 - self.sum = 0 - self.count = 0 - - def update(self, val, n=1): - self.val = val - self.sum += val * n - self.count += n - self.avg = self.sum / self.count - - def __str__(self): - if self.val_only: - fmtstr = "{name} {val" + self.fmt + "}" - else: - fmtstr = "{name} {val" + self.fmt + "} ({avg" + self.fmt + "})" - return fmtstr.format(**self.__dict__) diff --git a/spaces/yizhangliu/Grounded-Segment-Anything/transformers_4_35_0/models/gpt2/tokenization_gpt2_tf.py b/spaces/yizhangliu/Grounded-Segment-Anything/transformers_4_35_0/models/gpt2/tokenization_gpt2_tf.py deleted file mode 100644 index 4ab4af5b9d66f306b179e6b1e2158be83be5e330..0000000000000000000000000000000000000000 --- a/spaces/yizhangliu/Grounded-Segment-Anything/transformers_4_35_0/models/gpt2/tokenization_gpt2_tf.py +++ /dev/null @@ -1,103 +0,0 @@ -import os -from typing import Dict, List, Union - -import tensorflow as tf -from keras_nlp.tokenizers import BytePairTokenizer -from tensorflow_text import pad_model_inputs - -from .tokenization_gpt2 import GPT2Tokenizer - - -class TFGPT2Tokenizer(tf.keras.layers.Layer): - """ - This is an in-graph tokenizer for GPT2. It should be initialized similarly to other tokenizers, using the - `from_pretrained()` method. It can also be initialized with the `from_tokenizer()` method, which imports settings - from an existing standard tokenizer object. - - In-graph tokenizers, unlike other Hugging Face tokenizers, are actually Keras layers and are designed to be run - when the model is called, rather than during preprocessing. As a result, they have somewhat more limited options - than standard tokenizer classes. They are most useful when you want to create an end-to-end model that goes - straight from `tf.string` inputs to outputs. - - Args: - vocab (Dict[str, int]): Vocabulary dict for Byte Pair Tokenizer - merges (List[str]): Merges list for Byte Pair Tokenizer - """ - - def __init__(self, vocab: Dict[str, int], merges: List[str], max_length: int = None, pad_token_id: int = None): - super().__init__() - self.pad_token_id = pad_token_id - self.max_length = max_length - self.vocab = vocab - self.merges = merges - self.tf_tokenizer = BytePairTokenizer(vocab, merges, sequence_length=max_length) - - @classmethod - def from_tokenizer(cls, tokenizer: GPT2Tokenizer, *args, **kwargs): - """Creates TFGPT2Tokenizer from GPT2Tokenizer - - Args: - tokenizer (GPT2Tokenizer) - - Examples: - - ```python - from transformers import AutoTokenizer, TFGPT2Tokenizer - - tokenizer = AutoTokenizer.from_pretrained("gpt2") - tf_tokenizer = TFGPT2Tokenizer.from_tokenizer(tokenizer) - ``` - """ - merges = [" ".join(m) for m in tokenizer.bpe_ranks.keys()] - vocab = tokenizer.get_vocab() - return cls(vocab, merges, *args, **kwargs) - - @classmethod - def from_pretrained(cls, pretrained_model_name_or_path: Union[str, os.PathLike], *init_inputs, **kwargs): - """Creates TFGPT2Tokenizer from pretrained GPT2Tokenizer - - Args: - pretrained_model_name_or_path (Union[str, os.PathLike]): Path to pretrained model - - Examples: - - ```python - from transformers import TFGPT2Tokenizer - - tf_tokenizer = TFGPT2Tokenizer.from_pretrained("gpt2") - ``` - """ - tokenizer = GPT2Tokenizer.from_pretrained(pretrained_model_name_or_path, *init_inputs, **kwargs) - return cls.from_tokenizer(tokenizer, *init_inputs, **kwargs) - - @classmethod - def from_config(cls, config): - """Creates TFGPT2Tokenizer from configurations - - Args: - config (Dict): Dictionary with keys such as stated in `get_config`. - """ - return cls(**config) - - def get_config(self): - return { - "vocab": self.vocab, - "merges": self.merges, - "max_length": self.max_length, - "pad_token_id": self.pad_token_id, - } - - def call(self, x, max_length: int = None): - input_ids = self.tf_tokenizer(x) - attention_mask = tf.ones_like(input_ids) - - if self.pad_token_id is not None: - # pad the tokens up to max length - max_length = max_length if max_length is not None else self.max_length - - if max_length is not None: - input_ids, attention_mask = pad_model_inputs( - input_ids, max_seq_length=max_length, pad_value=self.pad_token_id - ) - - return {"attention_mask": attention_mask, "input_ids": input_ids} diff --git a/spaces/yl12053/so-vits-4.1-Grass-Wonder/vencoder/ContentVec768L12_Onnx.py b/spaces/yl12053/so-vits-4.1-Grass-Wonder/vencoder/ContentVec768L12_Onnx.py deleted file mode 100644 index 8dde0f173ed60169282128cc51eb1c200c5d82c5..0000000000000000000000000000000000000000 --- a/spaces/yl12053/so-vits-4.1-Grass-Wonder/vencoder/ContentVec768L12_Onnx.py +++ /dev/null @@ -1,28 +0,0 @@ -from vencoder.encoder import SpeechEncoder -import onnxruntime -import torch - -class ContentVec768L12_Onnx(SpeechEncoder): - def __init__(self,vec_path = "pretrain/vec-768-layer-12.onnx",device=None): - print("load model(s) from {}".format(vec_path)) - self.hidden_dim = 768 - if device is None: - self.dev = torch.device("cpu") - else: - self.dev = torch.device(device) - if device == 'cpu' or device == torch.device("cpu") or device is None: - providers = ['CPUExecutionProvider'] - elif device == 'cuda' or device == torch.device("cuda"): - providers = ['CUDAExecutionProvider', 'CPUExecutionProvider'] - self.model = onnxruntime.InferenceSession(vec_path, providers=providers) - - def encoder(self, wav): - feats = wav - if feats.dim() == 2: # double channels - feats = feats.mean(-1) - assert feats.dim() == 1, feats.dim() - feats = feats.view(1, -1) - feats = feats.unsqueeze(0).cpu().detach().numpy() - onnx_input = {self.model.get_inputs()[0].name: feats} - logits = self.model.run(None, onnx_input) - return torch.tensor(logits[0]).transpose(1, 2).to(self.dev) \ No newline at end of file diff --git a/spaces/yulet1de/StableDiffusion2/README.md b/spaces/yulet1de/StableDiffusion2/README.md deleted file mode 100644 index ab81bd442aeb772cb95d25ab1a1f1f0fad3777db..0000000000000000000000000000000000000000 --- a/spaces/yulet1de/StableDiffusion2/README.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -title: StableDiffusion2 -emoji: 🌖 -colorFrom: indigo -colorTo: pink -sdk: gradio -sdk_version: 3.12.0 -app_file: app.py -pinned: false -license: openrail ---- - -Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference diff --git a/spaces/zdxiaoda/sovits-4.0-V1-anime-character-model/so-vits-svc/onnxexport/model_onnx.py b/spaces/zdxiaoda/sovits-4.0-V1-anime-character-model/so-vits-svc/onnxexport/model_onnx.py deleted file mode 100644 index e28bae95ec1e53aa05d06fc784ff86d55f228d60..0000000000000000000000000000000000000000 --- a/spaces/zdxiaoda/sovits-4.0-V1-anime-character-model/so-vits-svc/onnxexport/model_onnx.py +++ /dev/null @@ -1,335 +0,0 @@ -import torch -from torch import nn -from torch.nn import functional as F - -import modules.attentions as attentions -import modules.commons as commons -import modules.modules as modules - -from torch.nn import Conv1d, ConvTranspose1d, AvgPool1d, Conv2d -from torch.nn.utils import weight_norm, remove_weight_norm, spectral_norm - -import utils -from modules.commons import init_weights, get_padding -from vdecoder.hifigan.models import Generator -from utils import f0_to_coarse - - -class ResidualCouplingBlock(nn.Module): - def __init__(self, - channels, - hidden_channels, - kernel_size, - dilation_rate, - n_layers, - n_flows=4, - gin_channels=0): - super().__init__() - self.channels = channels - self.hidden_channels = hidden_channels - self.kernel_size = kernel_size - self.dilation_rate = dilation_rate - self.n_layers = n_layers - self.n_flows = n_flows - self.gin_channels = gin_channels - - self.flows = nn.ModuleList() - for i in range(n_flows): - self.flows.append( - modules.ResidualCouplingLayer(channels, hidden_channels, kernel_size, dilation_rate, n_layers, - gin_channels=gin_channels, mean_only=True)) - self.flows.append(modules.Flip()) - - def forward(self, x, x_mask, g=None, reverse=False): - if not reverse: - for flow in self.flows: - x, _ = flow(x, x_mask, g=g, reverse=reverse) - else: - for flow in reversed(self.flows): - x = flow(x, x_mask, g=g, reverse=reverse) - return x - - -class Encoder(nn.Module): - def __init__(self, - in_channels, - out_channels, - hidden_channels, - kernel_size, - dilation_rate, - n_layers, - gin_channels=0): - super().__init__() - self.in_channels = in_channels - self.out_channels = out_channels - self.hidden_channels = hidden_channels - self.kernel_size = kernel_size - self.dilation_rate = dilation_rate - self.n_layers = n_layers - self.gin_channels = gin_channels - - self.pre = nn.Conv1d(in_channels, hidden_channels, 1) - self.enc = modules.WN(hidden_channels, kernel_size, dilation_rate, n_layers, gin_channels=gin_channels) - self.proj = nn.Conv1d(hidden_channels, out_channels * 2, 1) - - def forward(self, x, x_lengths, g=None): - # print(x.shape,x_lengths.shape) - x_mask = torch.unsqueeze(commons.sequence_mask(x_lengths, x.size(2)), 1).to(x.dtype) - x = self.pre(x) * x_mask - x = self.enc(x, x_mask, g=g) - stats = self.proj(x) * x_mask - m, logs = torch.split(stats, self.out_channels, dim=1) - z = (m + torch.randn_like(m) * torch.exp(logs)) * x_mask - return z, m, logs, x_mask - - -class TextEncoder(nn.Module): - def __init__(self, - out_channels, - hidden_channels, - kernel_size, - n_layers, - gin_channels=0, - filter_channels=None, - n_heads=None, - p_dropout=None): - super().__init__() - self.out_channels = out_channels - self.hidden_channels = hidden_channels - self.kernel_size = kernel_size - self.n_layers = n_layers - self.gin_channels = gin_channels - self.proj = nn.Conv1d(hidden_channels, out_channels * 2, 1) - self.f0_emb = nn.Embedding(256, hidden_channels) - - self.enc_ = attentions.Encoder( - hidden_channels, - filter_channels, - n_heads, - n_layers, - kernel_size, - p_dropout) - - def forward(self, x, x_mask, f0=None, z=None): - x = x + self.f0_emb(f0).transpose(1, 2) - x = self.enc_(x * x_mask, x_mask) - stats = self.proj(x) * x_mask - m, logs = torch.split(stats, self.out_channels, dim=1) - z = (m + z * torch.exp(logs)) * x_mask - return z, m, logs, x_mask - - -class DiscriminatorP(torch.nn.Module): - def __init__(self, period, kernel_size=5, stride=3, use_spectral_norm=False): - super(DiscriminatorP, self).__init__() - self.period = period - self.use_spectral_norm = use_spectral_norm - norm_f = weight_norm if use_spectral_norm == False else spectral_norm - self.convs = nn.ModuleList([ - norm_f(Conv2d(1, 32, (kernel_size, 1), (stride, 1), padding=(get_padding(kernel_size, 1), 0))), - norm_f(Conv2d(32, 128, (kernel_size, 1), (stride, 1), padding=(get_padding(kernel_size, 1), 0))), - norm_f(Conv2d(128, 512, (kernel_size, 1), (stride, 1), padding=(get_padding(kernel_size, 1), 0))), - norm_f(Conv2d(512, 1024, (kernel_size, 1), (stride, 1), padding=(get_padding(kernel_size, 1), 0))), - norm_f(Conv2d(1024, 1024, (kernel_size, 1), 1, padding=(get_padding(kernel_size, 1), 0))), - ]) - self.conv_post = norm_f(Conv2d(1024, 1, (3, 1), 1, padding=(1, 0))) - - def forward(self, x): - fmap = [] - - # 1d to 2d - b, c, t = x.shape - if t % self.period != 0: # pad first - n_pad = self.period - (t % self.period) - x = F.pad(x, (0, n_pad), "reflect") - t = t + n_pad - x = x.view(b, c, t // self.period, self.period) - - for l in self.convs: - x = l(x) - x = F.leaky_relu(x, modules.LRELU_SLOPE) - fmap.append(x) - x = self.conv_post(x) - fmap.append(x) - x = torch.flatten(x, 1, -1) - - return x, fmap - - -class DiscriminatorS(torch.nn.Module): - def __init__(self, use_spectral_norm=False): - super(DiscriminatorS, self).__init__() - norm_f = weight_norm if use_spectral_norm == False else spectral_norm - self.convs = nn.ModuleList([ - norm_f(Conv1d(1, 16, 15, 1, padding=7)), - norm_f(Conv1d(16, 64, 41, 4, groups=4, padding=20)), - norm_f(Conv1d(64, 256, 41, 4, groups=16, padding=20)), - norm_f(Conv1d(256, 1024, 41, 4, groups=64, padding=20)), - norm_f(Conv1d(1024, 1024, 41, 4, groups=256, padding=20)), - norm_f(Conv1d(1024, 1024, 5, 1, padding=2)), - ]) - self.conv_post = norm_f(Conv1d(1024, 1, 3, 1, padding=1)) - - def forward(self, x): - fmap = [] - - for l in self.convs: - x = l(x) - x = F.leaky_relu(x, modules.LRELU_SLOPE) - fmap.append(x) - x = self.conv_post(x) - fmap.append(x) - x = torch.flatten(x, 1, -1) - - return x, fmap - - -class F0Decoder(nn.Module): - def __init__(self, - out_channels, - hidden_channels, - filter_channels, - n_heads, - n_layers, - kernel_size, - p_dropout, - spk_channels=0): - super().__init__() - self.out_channels = out_channels - self.hidden_channels = hidden_channels - self.filter_channels = filter_channels - self.n_heads = n_heads - self.n_layers = n_layers - self.kernel_size = kernel_size - self.p_dropout = p_dropout - self.spk_channels = spk_channels - - self.prenet = nn.Conv1d(hidden_channels, hidden_channels, 3, padding=1) - self.decoder = attentions.FFT( - hidden_channels, - filter_channels, - n_heads, - n_layers, - kernel_size, - p_dropout) - self.proj = nn.Conv1d(hidden_channels, out_channels, 1) - self.f0_prenet = nn.Conv1d(1, hidden_channels, 3, padding=1) - self.cond = nn.Conv1d(spk_channels, hidden_channels, 1) - - def forward(self, x, norm_f0, x_mask, spk_emb=None): - x = torch.detach(x) - if spk_emb is not None: - x = x + self.cond(spk_emb) - x += self.f0_prenet(norm_f0) - x = self.prenet(x) * x_mask - x = self.decoder(x * x_mask, x_mask) - x = self.proj(x) * x_mask - return x - - -class SynthesizerTrn(nn.Module): - """ - Synthesizer for Training - """ - - def __init__(self, - spec_channels, - segment_size, - inter_channels, - hidden_channels, - filter_channels, - n_heads, - n_layers, - kernel_size, - p_dropout, - resblock, - resblock_kernel_sizes, - resblock_dilation_sizes, - upsample_rates, - upsample_initial_channel, - upsample_kernel_sizes, - gin_channels, - ssl_dim, - n_speakers, - sampling_rate=44100, - **kwargs): - super().__init__() - self.spec_channels = spec_channels - self.inter_channels = inter_channels - self.hidden_channels = hidden_channels - self.filter_channels = filter_channels - self.n_heads = n_heads - self.n_layers = n_layers - self.kernel_size = kernel_size - self.p_dropout = p_dropout - self.resblock = resblock - self.resblock_kernel_sizes = resblock_kernel_sizes - self.resblock_dilation_sizes = resblock_dilation_sizes - self.upsample_rates = upsample_rates - self.upsample_initial_channel = upsample_initial_channel - self.upsample_kernel_sizes = upsample_kernel_sizes - self.segment_size = segment_size - self.gin_channels = gin_channels - self.ssl_dim = ssl_dim - self.emb_g = nn.Embedding(n_speakers, gin_channels) - - self.pre = nn.Conv1d(ssl_dim, hidden_channels, kernel_size=5, padding=2) - - self.enc_p = TextEncoder( - inter_channels, - hidden_channels, - filter_channels=filter_channels, - n_heads=n_heads, - n_layers=n_layers, - kernel_size=kernel_size, - p_dropout=p_dropout - ) - hps = { - "sampling_rate": sampling_rate, - "inter_channels": inter_channels, - "resblock": resblock, - "resblock_kernel_sizes": resblock_kernel_sizes, - "resblock_dilation_sizes": resblock_dilation_sizes, - "upsample_rates": upsample_rates, - "upsample_initial_channel": upsample_initial_channel, - "upsample_kernel_sizes": upsample_kernel_sizes, - "gin_channels": gin_channels, - } - self.dec = Generator(h=hps) - self.enc_q = Encoder(spec_channels, inter_channels, hidden_channels, 5, 1, 16, gin_channels=gin_channels) - self.flow = ResidualCouplingBlock(inter_channels, hidden_channels, 5, 1, 4, gin_channels=gin_channels) - self.f0_decoder = F0Decoder( - 1, - hidden_channels, - filter_channels, - n_heads, - n_layers, - kernel_size, - p_dropout, - spk_channels=gin_channels - ) - self.emb_uv = nn.Embedding(2, hidden_channels) - self.predict_f0 = False - - def forward(self, c, f0, mel2ph, uv, noise=None, g=None): - - decoder_inp = F.pad(c, [0, 0, 1, 0]) - mel2ph_ = mel2ph.unsqueeze(2).repeat([1, 1, c.shape[-1]]) - c = torch.gather(decoder_inp, 1, mel2ph_).transpose(1, 2) # [B, T, H] - - c_lengths = (torch.ones(c.size(0)) * c.size(-1)).to(c.device) - g = g.unsqueeze(0) - g = self.emb_g(g).transpose(1, 2) - x_mask = torch.unsqueeze(commons.sequence_mask(c_lengths, c.size(2)), 1).to(c.dtype) - x = self.pre(c) * x_mask + self.emb_uv(uv.long()).transpose(1, 2) - - if self.predict_f0: - lf0 = 2595. * torch.log10(1. + f0.unsqueeze(1) / 700.) / 500 - norm_lf0 = utils.normalize_f0(lf0, x_mask, uv, random_scale=False) - pred_lf0 = self.f0_decoder(x, norm_lf0, x_mask, spk_emb=g) - f0 = (700 * (torch.pow(10, pred_lf0 * 500 / 2595) - 1)).squeeze(1) - - z_p, m_p, logs_p, c_mask = self.enc_p(x, x_mask, f0=f0_to_coarse(f0), z=noise) - z = self.flow(z_p, c_mask, g=g, reverse=True) - o = self.dec(z * c_mask, g=g, f0=f0) - return o diff --git a/spaces/zhang-wei-jian/docker/node_modules/ee-first/index.js b/spaces/zhang-wei-jian/docker/node_modules/ee-first/index.js deleted file mode 100644 index 501287cd3b7024435d85a872bb1ba0b234db8e7f..0000000000000000000000000000000000000000 --- a/spaces/zhang-wei-jian/docker/node_modules/ee-first/index.js +++ /dev/null @@ -1,95 +0,0 @@ -/*! - * ee-first - * Copyright(c) 2014 Jonathan Ong - * MIT Licensed - */ - -'use strict' - -/** - * Module exports. - * @public - */ - -module.exports = first - -/** - * Get the first event in a set of event emitters and event pairs. - * - * @param {array} stuff - * @param {function} done - * @public - */ - -function first(stuff, done) { - if (!Array.isArray(stuff)) - throw new TypeError('arg must be an array of [ee, events...] arrays') - - var cleanups = [] - - for (var i = 0; i < stuff.length; i++) { - var arr = stuff[i] - - if (!Array.isArray(arr) || arr.length < 2) - throw new TypeError('each array member must be [ee, events...]') - - var ee = arr[0] - - for (var j = 1; j < arr.length; j++) { - var event = arr[j] - var fn = listener(event, callback) - - // listen to the event - ee.on(event, fn) - // push this listener to the list of cleanups - cleanups.push({ - ee: ee, - event: event, - fn: fn, - }) - } - } - - function callback() { - cleanup() - done.apply(null, arguments) - } - - function cleanup() { - var x - for (var i = 0; i < cleanups.length; i++) { - x = cleanups[i] - x.ee.removeListener(x.event, x.fn) - } - } - - function thunk(fn) { - done = fn - } - - thunk.cancel = cleanup - - return thunk -} - -/** - * Create the event listener. - * @private - */ - -function listener(event, done) { - return function onevent(arg1) { - var args = new Array(arguments.length) - var ee = this - var err = event === 'error' - ? arg1 - : null - - // copy args to prevent arguments escaping scope - for (var i = 0; i < args.length; i++) { - args[i] = arguments[i] - } - - done(err, ee, event, args) - } -} diff --git a/spaces/zhang-wei-jian/docker/node_modules/mime-db/HISTORY.md b/spaces/zhang-wei-jian/docker/node_modules/mime-db/HISTORY.md deleted file mode 100644 index 7436f64146e87d2ebe6cacac33af0aeedcc798fb..0000000000000000000000000000000000000000 --- a/spaces/zhang-wei-jian/docker/node_modules/mime-db/HISTORY.md +++ /dev/null @@ -1,507 +0,0 @@ -1.52.0 / 2022-02-21 -=================== - - * Add extensions from IANA for more `image/*` types - * Add extension `.asc` to `application/pgp-keys` - * Add extensions to various XML types - * Add new upstream MIME types - -1.51.0 / 2021-11-08 -=================== - - * Add new upstream MIME types - * Mark `image/vnd.microsoft.icon` as compressible - * Mark `image/vnd.ms-dds` as compressible - -1.50.0 / 2021-09-15 -=================== - - * Add deprecated iWorks mime types and extensions - * Add new upstream MIME types - -1.49.0 / 2021-07-26 -=================== - - * Add extension `.trig` to `application/trig` - * Add new upstream MIME types - -1.48.0 / 2021-05-30 -=================== - - * Add extension `.mvt` to `application/vnd.mapbox-vector-tile` - * Add new upstream MIME types - * Mark `text/yaml` as compressible - -1.47.0 / 2021-04-01 -=================== - - * Add new upstream MIME types - * Remove ambigious extensions from IANA for `application/*+xml` types - * Update primary extension to `.es` for `application/ecmascript` - -1.46.0 / 2021-02-13 -=================== - - * Add extension `.amr` to `audio/amr` - * Add extension `.m4s` to `video/iso.segment` - * Add extension `.opus` to `audio/ogg` - * Add new upstream MIME types - -1.45.0 / 2020-09-22 -=================== - - * Add `application/ubjson` with extension `.ubj` - * Add `image/avif` with extension `.avif` - * Add `image/ktx2` with extension `.ktx2` - * Add extension `.dbf` to `application/vnd.dbf` - * Add extension `.rar` to `application/vnd.rar` - * Add extension `.td` to `application/urc-targetdesc+xml` - * Add new upstream MIME types - * Fix extension of `application/vnd.apple.keynote` to be `.key` - -1.44.0 / 2020-04-22 -=================== - - * Add charsets from IANA - * Add extension `.cjs` to `application/node` - * Add new upstream MIME types - -1.43.0 / 2020-01-05 -=================== - - * Add `application/x-keepass2` with extension `.kdbx` - * Add extension `.mxmf` to `audio/mobile-xmf` - * Add extensions from IANA for `application/*+xml` types - * Add new upstream MIME types - -1.42.0 / 2019-09-25 -=================== - - * Add `image/vnd.ms-dds` with extension `.dds` - * Add new upstream MIME types - * Remove compressible from `multipart/mixed` - -1.41.0 / 2019-08-30 -=================== - - * Add new upstream MIME types - * Add `application/toml` with extension `.toml` - * Mark `font/ttf` as compressible - -1.40.0 / 2019-04-20 -=================== - - * Add extensions from IANA for `model/*` types - * Add `text/mdx` with extension `.mdx` - -1.39.0 / 2019-04-04 -=================== - - * Add extensions `.siv` and `.sieve` to `application/sieve` - * Add new upstream MIME types - -1.38.0 / 2019-02-04 -=================== - - * Add extension `.nq` to `application/n-quads` - * Add extension `.nt` to `application/n-triples` - * Add new upstream MIME types - * Mark `text/less` as compressible - -1.37.0 / 2018-10-19 -=================== - - * Add extensions to HEIC image types - * Add new upstream MIME types - -1.36.0 / 2018-08-20 -=================== - - * Add Apple file extensions from IANA - * Add extensions from IANA for `image/*` types - * Add new upstream MIME types - -1.35.0 / 2018-07-15 -=================== - - * Add extension `.owl` to `application/rdf+xml` - * Add new upstream MIME types - - Removes extension `.woff` from `application/font-woff` - -1.34.0 / 2018-06-03 -=================== - - * Add extension `.csl` to `application/vnd.citationstyles.style+xml` - * Add extension `.es` to `application/ecmascript` - * Add new upstream MIME types - * Add `UTF-8` as default charset for `text/turtle` - * Mark all XML-derived types as compressible - -1.33.0 / 2018-02-15 -=================== - - * Add extensions from IANA for `message/*` types - * Add new upstream MIME types - * Fix some incorrect OOXML types - * Remove `application/font-woff2` - -1.32.0 / 2017-11-29 -=================== - - * Add new upstream MIME types - * Update `text/hjson` to registered `application/hjson` - * Add `text/shex` with extension `.shex` - -1.31.0 / 2017-10-25 -=================== - - * Add `application/raml+yaml` with extension `.raml` - * Add `application/wasm` with extension `.wasm` - * Add new `font` type from IANA - * Add new upstream font extensions - * Add new upstream MIME types - * Add extensions for JPEG-2000 images - -1.30.0 / 2017-08-27 -=================== - - * Add `application/vnd.ms-outlook` - * Add `application/x-arj` - * Add extension `.mjs` to `application/javascript` - * Add glTF types and extensions - * Add new upstream MIME types - * Add `text/x-org` - * Add VirtualBox MIME types - * Fix `source` records for `video/*` types that are IANA - * Update `font/opentype` to registered `font/otf` - -1.29.0 / 2017-07-10 -=================== - - * Add `application/fido.trusted-apps+json` - * Add extension `.wadl` to `application/vnd.sun.wadl+xml` - * Add new upstream MIME types - * Add `UTF-8` as default charset for `text/css` - -1.28.0 / 2017-05-14 -=================== - - * Add new upstream MIME types - * Add extension `.gz` to `application/gzip` - * Update extensions `.md` and `.markdown` to be `text/markdown` - -1.27.0 / 2017-03-16 -=================== - - * Add new upstream MIME types - * Add `image/apng` with extension `.apng` - -1.26.0 / 2017-01-14 -=================== - - * Add new upstream MIME types - * Add extension `.geojson` to `application/geo+json` - -1.25.0 / 2016-11-11 -=================== - - * Add new upstream MIME types - -1.24.0 / 2016-09-18 -=================== - - * Add `audio/mp3` - * Add new upstream MIME types - -1.23.0 / 2016-05-01 -=================== - - * Add new upstream MIME types - * Add extension `.3gpp` to `audio/3gpp` - -1.22.0 / 2016-02-15 -=================== - - * Add `text/slim` - * Add extension `.rng` to `application/xml` - * Add new upstream MIME types - * Fix extension of `application/dash+xml` to be `.mpd` - * Update primary extension to `.m4a` for `audio/mp4` - -1.21.0 / 2016-01-06 -=================== - - * Add Google document types - * Add new upstream MIME types - -1.20.0 / 2015-11-10 -=================== - - * Add `text/x-suse-ymp` - * Add new upstream MIME types - -1.19.0 / 2015-09-17 -=================== - - * Add `application/vnd.apple.pkpass` - * Add new upstream MIME types - -1.18.0 / 2015-09-03 -=================== - - * Add new upstream MIME types - -1.17.0 / 2015-08-13 -=================== - - * Add `application/x-msdos-program` - * Add `audio/g711-0` - * Add `image/vnd.mozilla.apng` - * Add extension `.exe` to `application/x-msdos-program` - -1.16.0 / 2015-07-29 -=================== - - * Add `application/vnd.uri-map` - -1.15.0 / 2015-07-13 -=================== - - * Add `application/x-httpd-php` - -1.14.0 / 2015-06-25 -=================== - - * Add `application/scim+json` - * Add `application/vnd.3gpp.ussd+xml` - * Add `application/vnd.biopax.rdf+xml` - * Add `text/x-processing` - -1.13.0 / 2015-06-07 -=================== - - * Add nginx as a source - * Add `application/x-cocoa` - * Add `application/x-java-archive-diff` - * Add `application/x-makeself` - * Add `application/x-perl` - * Add `application/x-pilot` - * Add `application/x-redhat-package-manager` - * Add `application/x-sea` - * Add `audio/x-m4a` - * Add `audio/x-realaudio` - * Add `image/x-jng` - * Add `text/mathml` - -1.12.0 / 2015-06-05 -=================== - - * Add `application/bdoc` - * Add `application/vnd.hyperdrive+json` - * Add `application/x-bdoc` - * Add extension `.rtf` to `text/rtf` - -1.11.0 / 2015-05-31 -=================== - - * Add `audio/wav` - * Add `audio/wave` - * Add extension `.litcoffee` to `text/coffeescript` - * Add extension `.sfd-hdstx` to `application/vnd.hydrostatix.sof-data` - * Add extension `.n-gage` to `application/vnd.nokia.n-gage.symbian.install` - -1.10.0 / 2015-05-19 -=================== - - * Add `application/vnd.balsamiq.bmpr` - * Add `application/vnd.microsoft.portable-executable` - * Add `application/x-ns-proxy-autoconfig` - -1.9.1 / 2015-04-19 -================== - - * Remove `.json` extension from `application/manifest+json` - - This is causing bugs downstream - -1.9.0 / 2015-04-19 -================== - - * Add `application/manifest+json` - * Add `application/vnd.micro+json` - * Add `image/vnd.zbrush.pcx` - * Add `image/x-ms-bmp` - -1.8.0 / 2015-03-13 -================== - - * Add `application/vnd.citationstyles.style+xml` - * Add `application/vnd.fastcopy-disk-image` - * Add `application/vnd.gov.sk.xmldatacontainer+xml` - * Add extension `.jsonld` to `application/ld+json` - -1.7.0 / 2015-02-08 -================== - - * Add `application/vnd.gerber` - * Add `application/vnd.msa-disk-image` - -1.6.1 / 2015-02-05 -================== - - * Community extensions ownership transferred from `node-mime` - -1.6.0 / 2015-01-29 -================== - - * Add `application/jose` - * Add `application/jose+json` - * Add `application/json-seq` - * Add `application/jwk+json` - * Add `application/jwk-set+json` - * Add `application/jwt` - * Add `application/rdap+json` - * Add `application/vnd.gov.sk.e-form+xml` - * Add `application/vnd.ims.imsccv1p3` - -1.5.0 / 2014-12-30 -================== - - * Add `application/vnd.oracle.resource+json` - * Fix various invalid MIME type entries - - `application/mbox+xml` - - `application/oscp-response` - - `application/vwg-multiplexed` - - `audio/g721` - -1.4.0 / 2014-12-21 -================== - - * Add `application/vnd.ims.imsccv1p2` - * Fix various invalid MIME type entries - - `application/vnd-acucobol` - - `application/vnd-curl` - - `application/vnd-dart` - - `application/vnd-dxr` - - `application/vnd-fdf` - - `application/vnd-mif` - - `application/vnd-sema` - - `application/vnd-wap-wmlc` - - `application/vnd.adobe.flash-movie` - - `application/vnd.dece-zip` - - `application/vnd.dvb_service` - - `application/vnd.micrografx-igx` - - `application/vnd.sealed-doc` - - `application/vnd.sealed-eml` - - `application/vnd.sealed-mht` - - `application/vnd.sealed-ppt` - - `application/vnd.sealed-tiff` - - `application/vnd.sealed-xls` - - `application/vnd.sealedmedia.softseal-html` - - `application/vnd.sealedmedia.softseal-pdf` - - `application/vnd.wap-slc` - - `application/vnd.wap-wbxml` - - `audio/vnd.sealedmedia.softseal-mpeg` - - `image/vnd-djvu` - - `image/vnd-svf` - - `image/vnd-wap-wbmp` - - `image/vnd.sealed-png` - - `image/vnd.sealedmedia.softseal-gif` - - `image/vnd.sealedmedia.softseal-jpg` - - `model/vnd-dwf` - - `model/vnd.parasolid.transmit-binary` - - `model/vnd.parasolid.transmit-text` - - `text/vnd-a` - - `text/vnd-curl` - - `text/vnd.wap-wml` - * Remove example template MIME types - - `application/example` - - `audio/example` - - `image/example` - - `message/example` - - `model/example` - - `multipart/example` - - `text/example` - - `video/example` - -1.3.1 / 2014-12-16 -================== - - * Fix missing extensions - - `application/json5` - - `text/hjson` - -1.3.0 / 2014-12-07 -================== - - * Add `application/a2l` - * Add `application/aml` - * Add `application/atfx` - * Add `application/atxml` - * Add `application/cdfx+xml` - * Add `application/dii` - * Add `application/json5` - * Add `application/lxf` - * Add `application/mf4` - * Add `application/vnd.apache.thrift.compact` - * Add `application/vnd.apache.thrift.json` - * Add `application/vnd.coffeescript` - * Add `application/vnd.enphase.envoy` - * Add `application/vnd.ims.imsccv1p1` - * Add `text/csv-schema` - * Add `text/hjson` - * Add `text/markdown` - * Add `text/yaml` - -1.2.0 / 2014-11-09 -================== - - * Add `application/cea` - * Add `application/dit` - * Add `application/vnd.gov.sk.e-form+zip` - * Add `application/vnd.tmd.mediaflex.api+xml` - * Type `application/epub+zip` is now IANA-registered - -1.1.2 / 2014-10-23 -================== - - * Rebuild database for `application/x-www-form-urlencoded` change - -1.1.1 / 2014-10-20 -================== - - * Mark `application/x-www-form-urlencoded` as compressible. - -1.1.0 / 2014-09-28 -================== - - * Add `application/font-woff2` - -1.0.3 / 2014-09-25 -================== - - * Fix engine requirement in package - -1.0.2 / 2014-09-25 -================== - - * Add `application/coap-group+json` - * Add `application/dcd` - * Add `application/vnd.apache.thrift.binary` - * Add `image/vnd.tencent.tap` - * Mark all JSON-derived types as compressible - * Update `text/vtt` data - -1.0.1 / 2014-08-30 -================== - - * Fix extension ordering - -1.0.0 / 2014-08-30 -================== - - * Add `application/atf` - * Add `application/merge-patch+json` - * Add `multipart/x-mixed-replace` - * Add `source: 'apache'` metadata - * Add `source: 'iana'` metadata - * Remove badly-assumed charset data diff --git a/spaces/zixian/Zhenhuan-VITS/voice_upload.py b/spaces/zixian/Zhenhuan-VITS/voice_upload.py deleted file mode 100644 index 5c825a933a7970e17e57c381b59a5fc4e06ea569..0000000000000000000000000000000000000000 --- a/spaces/zixian/Zhenhuan-VITS/voice_upload.py +++ /dev/null @@ -1,28 +0,0 @@ -from google.colab import files -import shutil -import os -import argparse -if __name__ == "__main__": - parser = argparse.ArgumentParser() - parser.add_argument("--type", type=str, required=True, help="type of file to upload") - args = parser.parse_args() - file_type = args.type - - basepath = os.getcwd() - uploaded = files.upload() # 上传文件 - assert(file_type in ['zip', 'audio', 'video']) - if file_type == "zip": - upload_path = "./custom_character_voice/" - for filename in uploaded.keys(): - #将上传的文件移动到指定的位置上 - shutil.move(os.path.join(basepath, filename), os.path.join(upload_path, "custom_character_voice.zip")) - elif file_type == "audio": - upload_path = "./raw_audio/" - for filename in uploaded.keys(): - #将上传的文件移动到指定的位置上 - shutil.move(os.path.join(basepath, filename), os.path.join(upload_path, filename)) - elif file_type == "video": - upload_path = "./video_data/" - for filename in uploaded.keys(): - # 将上传的文件移动到指定的位置上 - shutil.move(os.path.join(basepath, filename), os.path.join(upload_path, filename)) \ No newline at end of file diff --git a/spaces/zomehwh/sovits-goldship/cluster/__init__.py b/spaces/zomehwh/sovits-goldship/cluster/__init__.py deleted file mode 100644 index f1b9bde04e73e9218a5d534227caa4c25332f424..0000000000000000000000000000000000000000 --- a/spaces/zomehwh/sovits-goldship/cluster/__init__.py +++ /dev/null @@ -1,29 +0,0 @@ -import numpy as np -import torch -from sklearn.cluster import KMeans - -def get_cluster_model(ckpt_path): - checkpoint = torch.load(ckpt_path) - kmeans_dict = {} - for spk, ckpt in checkpoint.items(): - km = KMeans(ckpt["n_features_in_"]) - km.__dict__["n_features_in_"] = ckpt["n_features_in_"] - km.__dict__["_n_threads"] = ckpt["_n_threads"] - km.__dict__["cluster_centers_"] = ckpt["cluster_centers_"] - kmeans_dict[spk] = km - return kmeans_dict - -def get_cluster_result(model, x, speaker): - """ - x: np.array [t, 256] - return cluster class result - """ - return model[speaker].predict(x) - -def get_cluster_center_result(model, x,speaker): - """x: np.array [t, 256]""" - predict = model[speaker].predict(x) - return model[speaker].cluster_centers_[predict] - -def get_center(model, x,speaker): - return model[speaker].cluster_centers_[x]