mygitphase commited on
Commit
432f678
·
verified ·
1 Parent(s): 21b25bc

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. Dataset/.gitattributes +60 -0
  2. indus/indus +161 -0
  3. models/sarvam-1-v0.5/.gitattributes +35 -0
  4. models/sarvam-1-v0.5/LICENSE.md +84 -0
  5. models/sarvam-1-v0.5/README.md +46 -0
  6. models/sarvam-1-v0.5/config.json +29 -0
  7. models/sarvam-1-v0.5/generation_config.json +10 -0
  8. models/sarvam-1-v0.5/model.safetensors.index.json +262 -0
  9. models/sarvam-1-v0.5/special_tokens_map.json +23 -0
  10. models/sarvam-1-v0.5/tokenizer.json +0 -0
  11. models/sarvam-1-v0.5/tokenizer_config.json +1067 -0
  12. venv/bin/Activate.ps1 +247 -0
  13. venv/bin/activate +70 -0
  14. venv/bin/activate.csh +27 -0
  15. venv/bin/activate.fish +69 -0
  16. venv/bin/httpx +8 -0
  17. venv/bin/pip +8 -0
  18. venv/bin/pip3 +8 -0
  19. venv/bin/pip3.12 +8 -0
  20. venv/bin/websockets +8 -0
  21. venv/lib/python3.12/site-packages/anyio/__init__.py +111 -0
  22. venv/lib/python3.12/site-packages/anyio/from_thread.py +578 -0
  23. venv/lib/python3.12/site-packages/anyio/functools.py +409 -0
  24. venv/lib/python3.12/site-packages/anyio/lowlevel.py +196 -0
  25. venv/lib/python3.12/site-packages/anyio/py.typed +0 -0
  26. venv/lib/python3.12/site-packages/anyio/pytest_plugin.py +363 -0
  27. venv/lib/python3.12/site-packages/anyio/to_interpreter.py +246 -0
  28. venv/lib/python3.12/site-packages/anyio/to_process.py +266 -0
  29. venv/lib/python3.12/site-packages/anyio/to_thread.py +78 -0
  30. venv/lib/python3.12/site-packages/httpcore/__init__.py +141 -0
  31. venv/lib/python3.12/site-packages/httpcore/_api.py +94 -0
  32. venv/lib/python3.12/site-packages/httpcore/_exceptions.py +81 -0
  33. venv/lib/python3.12/site-packages/httpcore/_models.py +516 -0
  34. venv/lib/python3.12/site-packages/httpcore/_ssl.py +9 -0
  35. venv/lib/python3.12/site-packages/httpcore/_synchronization.py +318 -0
  36. venv/lib/python3.12/site-packages/httpcore/_trace.py +107 -0
  37. venv/lib/python3.12/site-packages/httpcore/_utils.py +37 -0
  38. venv/lib/python3.12/site-packages/httpcore/py.typed +0 -0
  39. venv/lib/python3.12/site-packages/idna/codec.py +122 -0
  40. venv/lib/python3.12/site-packages/idna/compat.py +15 -0
  41. venv/lib/python3.12/site-packages/idna/core.py +440 -0
  42. venv/lib/python3.12/site-packages/idna/idnadata.py +4367 -0
  43. venv/lib/python3.12/site-packages/idna/intranges.py +57 -0
  44. venv/lib/python3.12/site-packages/idna/package_data.py +1 -0
  45. venv/lib/python3.12/site-packages/idna/py.typed +0 -0
  46. venv/lib/python3.12/site-packages/idna/uts46data.py +0 -0
  47. venv/lib/python3.12/site-packages/pip/__init__.py +13 -0
  48. venv/lib/python3.12/site-packages/pip/__main__.py +24 -0
  49. venv/lib/python3.12/site-packages/pip/__pip-runner__.py +50 -0
  50. venv/lib/python3.12/site-packages/pip/py.typed +4 -0
Dataset/.gitattributes ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.avro filter=lfs diff=lfs merge=lfs -text
4
+ *.bin filter=lfs diff=lfs merge=lfs -text
5
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
6
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
7
+ *.ftz filter=lfs diff=lfs merge=lfs -text
8
+ *.gz filter=lfs diff=lfs merge=lfs -text
9
+ *.h5 filter=lfs diff=lfs merge=lfs -text
10
+ *.joblib filter=lfs diff=lfs merge=lfs -text
11
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
12
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
13
+ *.mds filter=lfs diff=lfs merge=lfs -text
14
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
15
+ *.model filter=lfs diff=lfs merge=lfs -text
16
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
17
+ *.npy filter=lfs diff=lfs merge=lfs -text
18
+ *.npz filter=lfs diff=lfs merge=lfs -text
19
+ *.onnx filter=lfs diff=lfs merge=lfs -text
20
+ *.ot filter=lfs diff=lfs merge=lfs -text
21
+ *.parquet filter=lfs diff=lfs merge=lfs -text
22
+ *.pb filter=lfs diff=lfs merge=lfs -text
23
+ *.pickle filter=lfs diff=lfs merge=lfs -text
24
+ *.pkl filter=lfs diff=lfs merge=lfs -text
25
+ *.pt filter=lfs diff=lfs merge=lfs -text
26
+ *.pth filter=lfs diff=lfs merge=lfs -text
27
+ *.rar filter=lfs diff=lfs merge=lfs -text
28
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
29
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
30
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
31
+ *.tar filter=lfs diff=lfs merge=lfs -text
32
+ *.tflite filter=lfs diff=lfs merge=lfs -text
33
+ *.tgz filter=lfs diff=lfs merge=lfs -text
34
+ *.wasm filter=lfs diff=lfs merge=lfs -text
35
+ *.xz filter=lfs diff=lfs merge=lfs -text
36
+ *.zip filter=lfs diff=lfs merge=lfs -text
37
+ *.zst filter=lfs diff=lfs merge=lfs -text
38
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
39
+ # Audio files - uncompressed
40
+ *.pcm filter=lfs diff=lfs merge=lfs -text
41
+ *.sam filter=lfs diff=lfs merge=lfs -text
42
+ *.raw filter=lfs diff=lfs merge=lfs -text
43
+ # Audio files - compressed
44
+ *.aac filter=lfs diff=lfs merge=lfs -text
45
+ *.flac filter=lfs diff=lfs merge=lfs -text
46
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
47
+ *.ogg filter=lfs diff=lfs merge=lfs -text
48
+ *.wav filter=lfs diff=lfs merge=lfs -text
49
+ # Image files - uncompressed
50
+ *.bmp filter=lfs diff=lfs merge=lfs -text
51
+ *.gif filter=lfs diff=lfs merge=lfs -text
52
+ *.png filter=lfs diff=lfs merge=lfs -text
53
+ *.tiff filter=lfs diff=lfs merge=lfs -text
54
+ # Image files - compressed
55
+ *.jpg filter=lfs diff=lfs merge=lfs -text
56
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
57
+ *.webp filter=lfs diff=lfs merge=lfs -text
58
+ # Video files - compressed
59
+ *.mp4 filter=lfs diff=lfs merge=lfs -text
60
+ *.webm filter=lfs diff=lfs merge=lfs -text
indus/indus ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """
3
+ Indus - CLI AI Assistant powered by Sarvam AI
4
+ A command-line interface for interacting with Sarvam's AI models
5
+ """
6
+
7
+ import argparse
8
+ import os
9
+ import sys
10
+ from sarvamai import SarvamAI
11
+
12
+ def create_client(api_key=None):
13
+ """Create SarvamAI client with API key"""
14
+ if api_key is None:
15
+ api_key = os.getenv('SARVAM_API_KEY')
16
+
17
+ if not api_key:
18
+ print("❌ Error: SARVAM_API_KEY not found!")
19
+ print("Set it with: export SARVAM_API_KEY='your-api-key'")
20
+ print("Get your key from: dashboard.sarvam.ai")
21
+ sys.exit(1)
22
+
23
+ return SarvamAI(api_subscription_key=api_key)
24
+
25
+ def single_query(client, message, model="sarvam-105b"):
26
+ """Handle single query interaction"""
27
+ print(f"\n🤖 Indus: {message}")
28
+ print("⏳ Thinking...")
29
+
30
+ try:
31
+ response = client.chat.completions(
32
+ model=model,
33
+ messages=[
34
+ {"role": "user", "content": message}
35
+ ]
36
+ )
37
+
38
+ # Extract content from response
39
+ content = response.choices[0].message.content
40
+ print(f"\n✨ Indus: {content}")
41
+ return True
42
+
43
+ except Exception as e:
44
+ print(f"❌ Error: {e}")
45
+ return False
46
+
47
+ def interactive_mode(client):
48
+ """Interactive mode for continuous conversation"""
49
+ print("\n🚀 Welcome to Indus! Type 'quit' or 'exit' to end")
50
+ print("💡 Tip: Use '/' for special commands")
51
+
52
+ while True:
53
+ try:
54
+ user_input = input("\n👤 You: ").strip()
55
+
56
+ if user_input.lower() in ['quit', 'exit', 'q']:
57
+ print("\n👋 Goodbye! Thanks for using Indus!")
58
+ break
59
+
60
+ if not user_input:
61
+ continue
62
+
63
+ # Handle special commands
64
+ if user_input.startswith('/'):
65
+ handle_commands(user_input)
66
+ continue
67
+
68
+ # Send to AI
69
+ success = single_query(client, user_input)
70
+ if not success:
71
+ print("⚠️ Failed to get response. Please try again.")
72
+
73
+ except KeyboardInterrupt:
74
+ print("\n\n👋 Goodbye! Thanks for using Indus!")
75
+ break
76
+ except EOFError:
77
+ print("\n\n👋 Goodbye! Thanks for using Indus!")
78
+ break
79
+
80
+ def handle_commands(command):
81
+ """Handle special commands in interactive mode"""
82
+ cmd = command.lower().strip()
83
+
84
+ if cmd == '/help':
85
+ print("\n📋 Available commands:")
86
+ print(" /help - Show this help")
87
+ print(" /quit - Exit the program")
88
+ print(" /clear - Clear the screen")
89
+ print(" /model - Change AI model")
90
+ print(" /about - About Indus")
91
+
92
+ elif cmd == '/clear':
93
+ os.system('clear' if os.name == 'posix' else 'cls')
94
+
95
+ elif cmd == '/model':
96
+ print("\n🔧 Available models:")
97
+ print(" sarvam-105b - Large model (default)")
98
+ print(" sarvam-30b - Medium model")
99
+ print(" sarvam-7b - Small model")
100
+ print("\n💡 Usage: /model sarvam-30b")
101
+
102
+ elif cmd == '/about':
103
+ print("\n🤖 About Indus")
104
+ print("Indus is your AI assistant powered by Sarvam AI")
105
+ print("Built on the Sarvam 105B model")
106
+ print("Optimized for Indian languages and contexts")
107
+ print("Made with ❤️ in India")
108
+
109
+ def main():
110
+ """Main entry point"""
111
+ parser = argparse.ArgumentParser(
112
+ description="Indus - CLI AI Assistant powered by Sarvam AI",
113
+ formatter_class=argparse.RawDescriptionHelpFormatter,
114
+ epilog="""
115
+ Examples:
116
+ %(prog)s "What is the capital of India?"
117
+ %(prog)s --interactive
118
+ %(prog)s --model sarvam-30b "Translate to Hindi"
119
+ %(prog)s --key YOUR_API_KEY "Tell me a joke"
120
+ """
121
+ )
122
+
123
+ # Positional argument for single query
124
+ parser.add_argument('query', nargs='?', help='Question to ask the AI')
125
+
126
+ # Optional arguments
127
+ parser.add_argument('--interactive', '-i', action='store_true',
128
+ help='Run in interactive mode')
129
+ parser.add_argument('--key', '-k', metavar='API_KEY',
130
+ help='Sarvam API key (overrides SARVAM_API_KEY env var)')
131
+ parser.add_argument('--model', '-m', metavar='MODEL', default='sarvam-105b',
132
+ help='AI model to use (default: sarvam-105b)')
133
+ parser.add_argument('--version', '-v', action='version', version='%(prog)s 1.0.0')
134
+
135
+ args = parser.parse_args()
136
+
137
+ # Create client
138
+ client = create_client(args.key)
139
+
140
+ # Handle different modes
141
+ if args.interactive or (not args.query and not sys.stdin.isatty()):
142
+ # Interactive mode
143
+ interactive_mode(client)
144
+ elif args.query:
145
+ # Single query mode
146
+ success = single_query(client, args.query, args.model)
147
+ sys.exit(0 if success else 1)
148
+ else:
149
+ # Read from stdin if no query provided
150
+ print("Enter your question (Ctrl+D to exit):")
151
+ try:
152
+ while True:
153
+ line = input().strip()
154
+ if line:
155
+ single_query(client, line, args.model)
156
+ except EOFError:
157
+ pass
158
+
159
+ if __name__ == "__main__":
160
+ main()
161
+
models/sarvam-1-v0.5/.gitattributes ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
models/sarvam-1-v0.5/LICENSE.md ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Sarvam AI Research License
2
+
3
+ If You want to use a Sarvam Model, a Derivative or an Output for any purpose that is not expressly authorized under this Agreement, You must request a license from Sarvam AI, which Sarvam AI may grant to You in Sarvam AI's sole discretion. To discuss such a license, please contact Sarvam AI via the website contact form: https://sarvam.ai/contact-us/
4
+
5
+ ## 1. Scope and acceptance
6
+
7
+ **1.1. Scope of the Agreement.** This Agreement applies to any use, modification, or Distribution of any Sarvam Model by You, regardless of the source You obtained a copy of such Sarvam Model.
8
+
9
+ **1.2. Acceptance.** By accessing, using, modifying, Distributing a Sarvam Model, or by creating, using or distributing a Derivative of the Sarvam Model, You agree to be bound by this Agreement.
10
+
11
+ **1.3. Acceptance on behalf of a third-party.** If You accept this Agreement on behalf of Your employer or another person or entity, You warrant and represent that You have the authority to act and accept this Agreement on their behalf. In such a case, the word "You" in this Agreement will refer to Your employer or such other person or entity.
12
+
13
+ ## 2. License
14
+
15
+ **2.1. Grant of rights**. Subject to Section 3 below, Sarvam AI hereby grants You a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable, limited license to use, copy, modify, and Distribute under the conditions provided in Section 2.2 below, the Sarvam Model and any Derivatives made by or for Sarvam AI and to create Derivatives of the Sarvam Model for non-commercial and research purposes only.
16
+
17
+ **2.2. Distribution of Sarvam Model and Derivatives made by or for Sarvam AI.** Subject to Section 3 below, You may Distribute copies of the Sarvam Model and/or Derivatives made by or for Sarvam AI, under the following conditions:
18
+ You must make available a copy of this Agreement to third-party recipients of the Sarvam Models and/or Derivatives made by or for Sarvam AI you Distribute, it being specified that any rights to use the Sarvam Models and/or Derivatives made by or for Sarvam AI shall be directly granted by Sarvam AI to said third-party recipients pursuant to the Sarvam AI Research License agreement executed between these parties;
19
+ You must retain in all copies of the Sarvam Models the following attribution notice within a "Notice" text file distributed as part of such copies: "Licensed by Sarvam AI under the Sarvam AI Research License".
20
+
21
+ **2.3. Distribution of Derivatives made by or for You.** Subject to Section 3 below, You may Distribute any Derivatives made by or for You under additional or different terms and conditions, provided that:
22
+ In any event, the use and modification of Sarvam Model and/or Derivatives made by or for Sarvam AI shall remain governed by the terms and conditions of this Agreement;
23
+ You include in any such Derivatives made by or for You prominent notices stating that You modified the concerned Sarvam Model; and
24
+ Any terms and conditions You impose on any third-party recipients relating to Derivatives made by or for You shall neither limit such third-party recipients' use of the Sarvam Model or any Derivatives made by or for Sarvam AI in accordance with the Sarvam AI Research License nor conflict with any of its terms and conditions.
25
+
26
+ **2.4. Commercial Use.**Any use of the Sarvam Model, Derivatives, or Outputs for commercial purposes requires explicit written permission from Sarvam AI. To request such permission, please contact Sarvam AI via the website contact form: https://sarvam.ai/contact-us/
27
+
28
+ ## 3. Limitations
29
+
30
+ **3.1. Misrepresentation.** You must not misrepresent or imply, through any means, that the Derivatives made by or for You and/or any modified version of the Sarvam Model You Distribute under your name and responsibility is an official product of Sarvam AI or has been endorsed, approved or validated by Sarvam AI, unless You are authorized by Us to do so in writing.
31
+
32
+ **3.2. Usage Limitation.** You shall only use the Sarvam Models, Derivatives (whether or not created by Sarvam AI) and Outputs for non-commercial and Research Purposes, unless you have obtained explicit written permission from Sarvam AI for commercial use.
33
+
34
+ ## 4. Intellectual Property
35
+
36
+ **4.1. Trademarks.** No trademark licenses are granted under this Agreement, and in connection with the Sarvam Models, You may not use any name or mark owned by or associated with Sarvam AI or any of its affiliates, except (i) as required for reasonable and customary use in describing and Distributing the Sarvam Models and Derivatives made by or for Sarvam AI and (ii) for attribution purposes as required by this Agreement.
37
+
38
+ **4.2. Outputs.** We claim no ownership rights in and to the Outputs. You are solely responsible for the Outputs You generate and their subsequent uses in accordance with this Agreement. Any Outputs shall be subject to the restrictions set out in Section 3 of this Agreement.
39
+
40
+ **4.3. Derivatives.** By entering into this Agreement, You accept that any Derivatives that You may create or that may be created for You shall be subject to the restrictions set out in Section 3 of this Agreement.
41
+
42
+ ## 5. Liability
43
+
44
+ **5.1. Limitation of liability.** In no event, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall Sarvam AI be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this Agreement or out of the use or inability to use the Sarvam Models and Derivatives (including but not limited to damages for loss of data, loss of goodwill, loss of expected profit or savings, work stoppage, computer failure or malfunction, or any damage caused by malware or security breaches), even if Sarvam AI has been advised of the possibility of such damages.
45
+
46
+ **5.2. Indemnification.** You agree to indemnify and hold harmless Sarvam AI from and against any claims, damages, or losses arising out of or related to Your use or Distribution of the Sarvam Models and Derivatives.
47
+
48
+ ## 6. Warranty
49
+
50
+ **6.1. Disclaimer.** Unless required by applicable law or prior agreed to by Sarvam AI in writing, Sarvam AI provides the Sarvam Models and Derivatives on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. Sarvam AI does not represent nor warrant that the Sarvam Models and Derivatives will be error-free, meet Your or any third party's requirements, be secure or will allow You or any third party to achieve any kind of result or generate any kind of content. You are solely responsible for determining the appropriateness of using or Distributing the Sarvam Models and Derivatives and assume any risks associated with Your exercise of rights under this Agreement.
51
+
52
+ ## 7. Termination
53
+
54
+ **7.1. Term.** This Agreement is effective as of the date of your acceptance of this Agreement or access to the concerned Sarvam Models or Derivatives and will continue until terminated in accordance with the following terms.
55
+
56
+ **7.2. Termination.** Sarvam AI may terminate this Agreement at any time if You are in breach of this Agreement. Upon termination of this Agreement, You must cease to use all Sarvam Models and Derivatives and shall permanently delete any copy thereof. The following provisions, in their relevant parts, will survive any termination or expiration of this Agreement, each for the duration necessary to achieve its own intended purpose (e.g. the liability provision will survive until the end of the applicable limitation period):Sections 5 (Liability), 6(Warranty), 7 (Termination) and 8 (General Provisions).
57
+
58
+ **7.3. Litigation.** If You initiate any legal action or proceedings against Us or any other entity (including a cross-claim or counterclaim in a lawsuit), alleging that the Model or a Derivative, or any part thereof, infringe upon intellectual property or other rights owned or licensable by You, then any licenses granted to You under this Agreement will immediately terminate as of the date such legal action or claim is filed or initiated.
59
+
60
+ ## 8. General provisions
61
+
62
+ **8.1. Governing laws.** This Agreement will be governed by the laws of India, without regard to choice of law principles, and the UN Convention on Contracts for the International Sale of Goods does not apply to this Agreement.
63
+
64
+ **8.2. Competent jurisdiction.** The courts of Karnataka, Bangalore, India shall have exclusive jurisdiction of any dispute arising out of this Agreement.
65
+
66
+ **8.3. Severability.** If any provision of this Agreement is held to be invalid, illegal or unenforceable, the remaining provisions shall be unaffected thereby and remain valid as if such provision had not been set forth herein.
67
+
68
+ ## 9. Definitions
69
+
70
+ "Agreement": means this Sarvam AI Research License agreement governing the access, use, and Distribution of the Sarvam Models, Derivatives and Outputs.
71
+
72
+ "Derivative": means any (i) modified version of the Sarvam Model (including but not limited to any customized or fine-tuned version thereof), (ii) work based on the Sarvam Model, or (iii) any other derivative work thereof.
73
+
74
+ "Distribution", "Distributing", "Distribute" or "Distributed": means supplying, providing or making available, by any means, a copy of the Sarvam Models and/or the Derivatives as the case may be, subject to Section 3 of this Agreement.
75
+
76
+ "Sarvam AI", "We" or "Us": means Sarvam AI, a Private Limited registered under the Indian Companies Act, 1956 having it's registered office at Sarvam AI, 2nd Floor, 732 Urban Vault, CMH Road, Bangalore 560036.
77
+
78
+ "Sarvam Model": means the foundational large language model(s), and its elements which include algorithms, software, instructed checkpoints, parameters, source code (inference code, evaluation code and, if applicable, fine-tuning code) and any other elements associated thereto made available by Sarvam AI under this Agreement, including, if any, the technical documentation, manuals and instructions for the use and operation thereof.
79
+
80
+ "Research Purposes": means any use of a Sarvam Model, Derivative, or Output that is solely for (a) personal, scientific or academic research, and (b) for non-profit and non-commercial purposes. For illustration purposes, Research Purposes does not include (1) any usage of the Sarvam Model, Derivative or Output by individuals or contractors employed in or engaged by companies in the context of (a) their daily tasks, or (b) any activity (including but not limited to any testing or proof-of-concept) that is intended to generate revenue, nor (2) any Distribution by a commercial entity of the Sarvam Model, Derivative or Output whether in return for payment or free of charge, in any medium or form, including but not limited to through a hosted or managed service (e.g. SaaS, cloud instances, etc.), or behind a software layer. Any such commercial use requires explicit written permission from Sarvam AI.
81
+
82
+ "Outputs": means any content generated by the operation of the Sarvam Models or the Derivatives from a prompt (i.e., text instructions) provided by users. For the avoidance of doubt, Outputs do not include any components of a Sarvam Models, such as any fine-tuned versions of the Sarvam Models, the weights, or parameters.
83
+
84
+ "You": means the individual or entity entering into this Agreement with Sarvam AI.
models/sarvam-1-v0.5/README.md ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: other
4
+ ---
5
+
6
+ **The fully-trained version of this model is now available at https://huggingface.co/sarvamai/sarvam-1**
7
+
8
+ Update (Aug 15, 2024): You can now get started with text completions and supervised finetuning using [this notebook](https://colab.research.google.com/drive/1IZ-KJgzRAMr4Rm_-OWvWwnfTQwRxOknp?usp=sharing) on Google colab!
9
+
10
+ This is an early checkpoint of `sarvam-2b`, a small, yet powerful language model pre-trained from scratch on 2 trillion tokens. It is trained to be good at 10 Indic languages + English. Officially, the Indic languages supported are: Bengali, Gujarati, Hindi, Kannada, Malayalam, Marathi, Oriya, Punjabi, Tamil, and Telugu.
11
+
12
+ The final checkpoint of `sarvam-2b` will be released soon, and it will be trained on a data mixture of 4 trillion tokens: containing equal parts English (2T) and Indic (2T) tokens.
13
+
14
+ The current checkpoint has not undergone any post-training. You can see the capabilities of the current checkpoint in [this video](https://www.youtube.com/watch?v=DFtAS1BCKvk).
15
+
16
+ The model was trained with [NVIDIA NeMo™ Framework](https://github.com/NVIDIA/NeMo) on the Yotta Shakti Cloud using HGX H100 systems.
17
+
18
+ Getting started:
19
+ ```
20
+ from transformers import pipeline
21
+ pipe = pipeline(model='sarvamai/sarvam-2b-v0.5', device=0)
22
+ pipe('भारत के प्रथम प्रधानमंत्री', max_new_tokens=15, temperature=0.1, repetition_penalty=1.2)[0]['generated_text']
23
+ # 'भारत के प्रथम प्रधानमंत्री जवाहरलाल नेहरू थे।\n\n'
24
+ ```
25
+
26
+ ## Tokenizer
27
+
28
+ `sarvam-2b`'s tokenizer is built to be efficient for Indic languages and has an average fertility score of ~2 which is significantly lower than other models.
29
+
30
+ Here is a comparison of fertility scores between `sarvam-2b` and other popular models.
31
+ | |Sarvam-2B|Llama-3.1|Gemma-2|GPT-4o|
32
+ |--------|------|---------|-------|------|
33
+ |ben_Beng|2.07 |8.02 |3.72 |2.34 |
34
+ |eng_Latn|1.43 |1.24 |1.23 |1.23 |
35
+ |guj_Gujr|1.81 |9.97 |3.9 |2.3 |
36
+ |hin_Deva|1.4 |2.67 |1.96 |1.65 |
37
+ |kan_Knda|2.37 |14.95 |5.55 |3.29 |
38
+ |mal_Mlym|2.85 |16.26 |5.88 |3.52 |
39
+ |mar_Deva|1.77 |3.99 |3.2 |2.56 |
40
+ |ory_Orya|2.35 |16.84 |6.87 |6.83 |
41
+ |pan_Guru|1.68 |8.19 |3.37 |2.72 |
42
+ |tam_Taml|2.17 |12.39 |4.19 |3.17 |
43
+ |tel_Telu|2.14 |13.3 |4.57 |3.06 |
44
+ |**Average** |**2.08** |**9.34** |**4.01** |**3.00** |
45
+
46
+ More technical details like evaluations and benchmarking will be posted soon.
models/sarvam-1-v0.5/config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "sarvamai/sarvam-2b-v0.5",
3
+ "architectures": [
4
+ "LlamaForCausalLM"
5
+ ],
6
+ "attention_bias": false,
7
+ "attention_dropout": 0.0,
8
+ "bos_token_id": 1,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "silu",
11
+ "hidden_size": 2048,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 11008,
14
+ "max_position_embeddings": 8192,
15
+ "mlp_bias": false,
16
+ "model_type": "llama",
17
+ "num_attention_heads": 16,
18
+ "num_hidden_layers": 28,
19
+ "num_key_value_heads": 8,
20
+ "pretraining_tp": 1,
21
+ "rms_norm_eps": 1e-05,
22
+ "rope_scaling": null,
23
+ "rope_theta": 5000000.0,
24
+ "tie_word_embeddings": false,
25
+ "torch_dtype": "bfloat16",
26
+ "transformers_version": "4.44.0",
27
+ "use_cache": true,
28
+ "vocab_size": 64128
29
+ }
models/sarvam-1-v0.5/generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 1,
3
+ "do_sample": true,
4
+ "eos_token_id": 2,
5
+ "max_length": 8192,
6
+ "repetition_penalty": 1.2,
7
+ "temperature": 0.1,
8
+ "top_p": 0.9,
9
+ "transformers_version": "4.44.0"
10
+ }
models/sarvam-1-v0.5/model.safetensors.index.json ADDED
@@ -0,0 +1,262 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata": {
3
+ "total_size": 5017669632
4
+ },
5
+ "weight_map": {
6
+ "lm_head.weight": "model-00002-of-00002.safetensors",
7
+ "model.embed_tokens.weight": "model-00001-of-00002.safetensors",
8
+ "model.layers.0.input_layernorm.weight": "model-00001-of-00002.safetensors",
9
+ "model.layers.0.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
10
+ "model.layers.0.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
11
+ "model.layers.0.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
12
+ "model.layers.0.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
13
+ "model.layers.0.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
14
+ "model.layers.0.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
15
+ "model.layers.0.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
16
+ "model.layers.0.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
17
+ "model.layers.1.input_layernorm.weight": "model-00001-of-00002.safetensors",
18
+ "model.layers.1.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
19
+ "model.layers.1.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
20
+ "model.layers.1.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
21
+ "model.layers.1.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
22
+ "model.layers.1.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
23
+ "model.layers.1.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
24
+ "model.layers.1.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
25
+ "model.layers.1.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
26
+ "model.layers.10.input_layernorm.weight": "model-00001-of-00002.safetensors",
27
+ "model.layers.10.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
28
+ "model.layers.10.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
29
+ "model.layers.10.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
30
+ "model.layers.10.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
31
+ "model.layers.10.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
32
+ "model.layers.10.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
33
+ "model.layers.10.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
34
+ "model.layers.10.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
35
+ "model.layers.11.input_layernorm.weight": "model-00001-of-00002.safetensors",
36
+ "model.layers.11.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
37
+ "model.layers.11.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
38
+ "model.layers.11.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
39
+ "model.layers.11.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
40
+ "model.layers.11.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
41
+ "model.layers.11.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
42
+ "model.layers.11.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
43
+ "model.layers.11.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
44
+ "model.layers.12.input_layernorm.weight": "model-00001-of-00002.safetensors",
45
+ "model.layers.12.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
46
+ "model.layers.12.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
47
+ "model.layers.12.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
48
+ "model.layers.12.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
49
+ "model.layers.12.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
50
+ "model.layers.12.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
51
+ "model.layers.12.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
52
+ "model.layers.12.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
53
+ "model.layers.13.input_layernorm.weight": "model-00001-of-00002.safetensors",
54
+ "model.layers.13.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
55
+ "model.layers.13.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
56
+ "model.layers.13.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
57
+ "model.layers.13.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
58
+ "model.layers.13.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
59
+ "model.layers.13.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
60
+ "model.layers.13.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
61
+ "model.layers.13.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
62
+ "model.layers.14.input_layernorm.weight": "model-00001-of-00002.safetensors",
63
+ "model.layers.14.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
64
+ "model.layers.14.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
65
+ "model.layers.14.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
66
+ "model.layers.14.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
67
+ "model.layers.14.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
68
+ "model.layers.14.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
69
+ "model.layers.14.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
70
+ "model.layers.14.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
71
+ "model.layers.15.input_layernorm.weight": "model-00001-of-00002.safetensors",
72
+ "model.layers.15.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
73
+ "model.layers.15.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
74
+ "model.layers.15.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
75
+ "model.layers.15.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
76
+ "model.layers.15.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
77
+ "model.layers.15.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
78
+ "model.layers.15.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
79
+ "model.layers.15.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
80
+ "model.layers.16.input_layernorm.weight": "model-00001-of-00002.safetensors",
81
+ "model.layers.16.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
82
+ "model.layers.16.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
83
+ "model.layers.16.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
84
+ "model.layers.16.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
85
+ "model.layers.16.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
86
+ "model.layers.16.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
87
+ "model.layers.16.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
88
+ "model.layers.16.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
89
+ "model.layers.17.input_layernorm.weight": "model-00001-of-00002.safetensors",
90
+ "model.layers.17.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
91
+ "model.layers.17.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
92
+ "model.layers.17.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
93
+ "model.layers.17.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
94
+ "model.layers.17.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
95
+ "model.layers.17.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
96
+ "model.layers.17.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
97
+ "model.layers.17.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
98
+ "model.layers.18.input_layernorm.weight": "model-00001-of-00002.safetensors",
99
+ "model.layers.18.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
100
+ "model.layers.18.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
101
+ "model.layers.18.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
102
+ "model.layers.18.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
103
+ "model.layers.18.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
104
+ "model.layers.18.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
105
+ "model.layers.18.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
106
+ "model.layers.18.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
107
+ "model.layers.19.input_layernorm.weight": "model-00001-of-00002.safetensors",
108
+ "model.layers.19.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
109
+ "model.layers.19.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
110
+ "model.layers.19.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
111
+ "model.layers.19.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
112
+ "model.layers.19.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
113
+ "model.layers.19.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
114
+ "model.layers.19.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
115
+ "model.layers.19.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
116
+ "model.layers.2.input_layernorm.weight": "model-00001-of-00002.safetensors",
117
+ "model.layers.2.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
118
+ "model.layers.2.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
119
+ "model.layers.2.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
120
+ "model.layers.2.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
121
+ "model.layers.2.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
122
+ "model.layers.2.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
123
+ "model.layers.2.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
124
+ "model.layers.2.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
125
+ "model.layers.20.input_layernorm.weight": "model-00001-of-00002.safetensors",
126
+ "model.layers.20.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
127
+ "model.layers.20.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
128
+ "model.layers.20.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
129
+ "model.layers.20.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
130
+ "model.layers.20.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
131
+ "model.layers.20.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
132
+ "model.layers.20.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
133
+ "model.layers.20.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
134
+ "model.layers.21.input_layernorm.weight": "model-00001-of-00002.safetensors",
135
+ "model.layers.21.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
136
+ "model.layers.21.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
137
+ "model.layers.21.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
138
+ "model.layers.21.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
139
+ "model.layers.21.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
140
+ "model.layers.21.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
141
+ "model.layers.21.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
142
+ "model.layers.21.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
143
+ "model.layers.22.input_layernorm.weight": "model-00001-of-00002.safetensors",
144
+ "model.layers.22.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
145
+ "model.layers.22.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
146
+ "model.layers.22.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
147
+ "model.layers.22.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
148
+ "model.layers.22.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
149
+ "model.layers.22.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
150
+ "model.layers.22.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
151
+ "model.layers.22.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
152
+ "model.layers.23.input_layernorm.weight": "model-00001-of-00002.safetensors",
153
+ "model.layers.23.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
154
+ "model.layers.23.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
155
+ "model.layers.23.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
156
+ "model.layers.23.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
157
+ "model.layers.23.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
158
+ "model.layers.23.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
159
+ "model.layers.23.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
160
+ "model.layers.23.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
161
+ "model.layers.24.input_layernorm.weight": "model-00001-of-00002.safetensors",
162
+ "model.layers.24.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
163
+ "model.layers.24.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
164
+ "model.layers.24.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
165
+ "model.layers.24.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
166
+ "model.layers.24.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
167
+ "model.layers.24.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
168
+ "model.layers.24.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
169
+ "model.layers.24.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
170
+ "model.layers.25.input_layernorm.weight": "model-00001-of-00002.safetensors",
171
+ "model.layers.25.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
172
+ "model.layers.25.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
173
+ "model.layers.25.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
174
+ "model.layers.25.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
175
+ "model.layers.25.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
176
+ "model.layers.25.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
177
+ "model.layers.25.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
178
+ "model.layers.25.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
179
+ "model.layers.26.input_layernorm.weight": "model-00001-of-00002.safetensors",
180
+ "model.layers.26.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
181
+ "model.layers.26.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
182
+ "model.layers.26.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
183
+ "model.layers.26.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
184
+ "model.layers.26.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
185
+ "model.layers.26.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
186
+ "model.layers.26.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
187
+ "model.layers.26.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
188
+ "model.layers.27.input_layernorm.weight": "model-00001-of-00002.safetensors",
189
+ "model.layers.27.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
190
+ "model.layers.27.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
191
+ "model.layers.27.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
192
+ "model.layers.27.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
193
+ "model.layers.27.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
194
+ "model.layers.27.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
195
+ "model.layers.27.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
196
+ "model.layers.27.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
197
+ "model.layers.3.input_layernorm.weight": "model-00001-of-00002.safetensors",
198
+ "model.layers.3.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
199
+ "model.layers.3.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
200
+ "model.layers.3.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
201
+ "model.layers.3.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
202
+ "model.layers.3.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
203
+ "model.layers.3.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
204
+ "model.layers.3.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
205
+ "model.layers.3.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
206
+ "model.layers.4.input_layernorm.weight": "model-00001-of-00002.safetensors",
207
+ "model.layers.4.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
208
+ "model.layers.4.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
209
+ "model.layers.4.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
210
+ "model.layers.4.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
211
+ "model.layers.4.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
212
+ "model.layers.4.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
213
+ "model.layers.4.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
214
+ "model.layers.4.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
215
+ "model.layers.5.input_layernorm.weight": "model-00001-of-00002.safetensors",
216
+ "model.layers.5.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
217
+ "model.layers.5.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
218
+ "model.layers.5.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
219
+ "model.layers.5.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
220
+ "model.layers.5.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
221
+ "model.layers.5.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
222
+ "model.layers.5.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
223
+ "model.layers.5.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
224
+ "model.layers.6.input_layernorm.weight": "model-00001-of-00002.safetensors",
225
+ "model.layers.6.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
226
+ "model.layers.6.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
227
+ "model.layers.6.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
228
+ "model.layers.6.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
229
+ "model.layers.6.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
230
+ "model.layers.6.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
231
+ "model.layers.6.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
232
+ "model.layers.6.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
233
+ "model.layers.7.input_layernorm.weight": "model-00001-of-00002.safetensors",
234
+ "model.layers.7.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
235
+ "model.layers.7.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
236
+ "model.layers.7.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
237
+ "model.layers.7.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
238
+ "model.layers.7.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
239
+ "model.layers.7.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
240
+ "model.layers.7.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
241
+ "model.layers.7.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
242
+ "model.layers.8.input_layernorm.weight": "model-00001-of-00002.safetensors",
243
+ "model.layers.8.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
244
+ "model.layers.8.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
245
+ "model.layers.8.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
246
+ "model.layers.8.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
247
+ "model.layers.8.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
248
+ "model.layers.8.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
249
+ "model.layers.8.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
250
+ "model.layers.8.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
251
+ "model.layers.9.input_layernorm.weight": "model-00001-of-00002.safetensors",
252
+ "model.layers.9.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
253
+ "model.layers.9.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
254
+ "model.layers.9.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
255
+ "model.layers.9.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
256
+ "model.layers.9.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
257
+ "model.layers.9.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
258
+ "model.layers.9.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
259
+ "model.layers.9.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
260
+ "model.norm.weight": "model-00001-of-00002.safetensors"
261
+ }
262
+ }
models/sarvam-1-v0.5/special_tokens_map.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "unk_token": {
17
+ "content": "<unk>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ }
23
+ }
models/sarvam-1-v0.5/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
models/sarvam-1-v0.5/tokenizer_config.json ADDED
@@ -0,0 +1,1067 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": true,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "</s>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ },
30
+ "3": {
31
+ "content": "<<SYS>>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false,
36
+ "special": false
37
+ },
38
+ "4": {
39
+ "content": "<</SYS>>",
40
+ "lstrip": false,
41
+ "normalized": false,
42
+ "rstrip": false,
43
+ "single_word": false,
44
+ "special": false
45
+ },
46
+ "5": {
47
+ "content": "[INST]",
48
+ "lstrip": false,
49
+ "normalized": false,
50
+ "rstrip": false,
51
+ "single_word": false,
52
+ "special": false
53
+ },
54
+ "6": {
55
+ "content": "[/INST]",
56
+ "lstrip": false,
57
+ "normalized": false,
58
+ "rstrip": false,
59
+ "single_word": false,
60
+ "special": false
61
+ },
62
+ "7": {
63
+ "content": "<<reserved_token_1>>",
64
+ "lstrip": false,
65
+ "normalized": false,
66
+ "rstrip": false,
67
+ "single_word": false,
68
+ "special": false
69
+ },
70
+ "8": {
71
+ "content": "<<reserved_token_2>>",
72
+ "lstrip": false,
73
+ "normalized": false,
74
+ "rstrip": false,
75
+ "single_word": false,
76
+ "special": false
77
+ },
78
+ "9": {
79
+ "content": "<<reserved_token_3>>",
80
+ "lstrip": false,
81
+ "normalized": false,
82
+ "rstrip": false,
83
+ "single_word": false,
84
+ "special": false
85
+ },
86
+ "10": {
87
+ "content": "<<reserved_token_4>>",
88
+ "lstrip": false,
89
+ "normalized": false,
90
+ "rstrip": false,
91
+ "single_word": false,
92
+ "special": false
93
+ },
94
+ "11": {
95
+ "content": "<<reserved_token_5>>",
96
+ "lstrip": false,
97
+ "normalized": false,
98
+ "rstrip": false,
99
+ "single_word": false,
100
+ "special": false
101
+ },
102
+ "12": {
103
+ "content": "<<reserved_token_6>>",
104
+ "lstrip": false,
105
+ "normalized": false,
106
+ "rstrip": false,
107
+ "single_word": false,
108
+ "special": false
109
+ },
110
+ "13": {
111
+ "content": "<<reserved_token_7>>",
112
+ "lstrip": false,
113
+ "normalized": false,
114
+ "rstrip": false,
115
+ "single_word": false,
116
+ "special": false
117
+ },
118
+ "14": {
119
+ "content": "<<reserved_token_8>>",
120
+ "lstrip": false,
121
+ "normalized": false,
122
+ "rstrip": false,
123
+ "single_word": false,
124
+ "special": false
125
+ },
126
+ "15": {
127
+ "content": "<<reserved_token_9>>",
128
+ "lstrip": false,
129
+ "normalized": false,
130
+ "rstrip": false,
131
+ "single_word": false,
132
+ "special": false
133
+ },
134
+ "16": {
135
+ "content": "<<reserved_token_10>>",
136
+ "lstrip": false,
137
+ "normalized": false,
138
+ "rstrip": false,
139
+ "single_word": false,
140
+ "special": false
141
+ },
142
+ "17": {
143
+ "content": "<<reserved_token_11>>",
144
+ "lstrip": false,
145
+ "normalized": false,
146
+ "rstrip": false,
147
+ "single_word": false,
148
+ "special": false
149
+ },
150
+ "18": {
151
+ "content": "<<reserved_token_12>>",
152
+ "lstrip": false,
153
+ "normalized": false,
154
+ "rstrip": false,
155
+ "single_word": false,
156
+ "special": false
157
+ },
158
+ "19": {
159
+ "content": "<<reserved_token_13>>",
160
+ "lstrip": false,
161
+ "normalized": false,
162
+ "rstrip": false,
163
+ "single_word": false,
164
+ "special": false
165
+ },
166
+ "20": {
167
+ "content": "<<reserved_token_14>>",
168
+ "lstrip": false,
169
+ "normalized": false,
170
+ "rstrip": false,
171
+ "single_word": false,
172
+ "special": false
173
+ },
174
+ "21": {
175
+ "content": "<<reserved_token_15>>",
176
+ "lstrip": false,
177
+ "normalized": false,
178
+ "rstrip": false,
179
+ "single_word": false,
180
+ "special": false
181
+ },
182
+ "22": {
183
+ "content": "<<reserved_token_16>>",
184
+ "lstrip": false,
185
+ "normalized": false,
186
+ "rstrip": false,
187
+ "single_word": false,
188
+ "special": false
189
+ },
190
+ "23": {
191
+ "content": "<<reserved_token_17>>",
192
+ "lstrip": false,
193
+ "normalized": false,
194
+ "rstrip": false,
195
+ "single_word": false,
196
+ "special": false
197
+ },
198
+ "24": {
199
+ "content": "<<reserved_token_18>>",
200
+ "lstrip": false,
201
+ "normalized": false,
202
+ "rstrip": false,
203
+ "single_word": false,
204
+ "special": false
205
+ },
206
+ "25": {
207
+ "content": "<<reserved_token_19>>",
208
+ "lstrip": false,
209
+ "normalized": false,
210
+ "rstrip": false,
211
+ "single_word": false,
212
+ "special": false
213
+ },
214
+ "26": {
215
+ "content": "<<reserved_token_20>>",
216
+ "lstrip": false,
217
+ "normalized": false,
218
+ "rstrip": false,
219
+ "single_word": false,
220
+ "special": false
221
+ },
222
+ "27": {
223
+ "content": "<<reserved_token_21>>",
224
+ "lstrip": false,
225
+ "normalized": false,
226
+ "rstrip": false,
227
+ "single_word": false,
228
+ "special": false
229
+ },
230
+ "28": {
231
+ "content": "<<reserved_token_22>>",
232
+ "lstrip": false,
233
+ "normalized": false,
234
+ "rstrip": false,
235
+ "single_word": false,
236
+ "special": false
237
+ },
238
+ "29": {
239
+ "content": "<<reserved_token_23>>",
240
+ "lstrip": false,
241
+ "normalized": false,
242
+ "rstrip": false,
243
+ "single_word": false,
244
+ "special": false
245
+ },
246
+ "30": {
247
+ "content": "<<reserved_token_24>>",
248
+ "lstrip": false,
249
+ "normalized": false,
250
+ "rstrip": false,
251
+ "single_word": false,
252
+ "special": false
253
+ },
254
+ "31": {
255
+ "content": "<<reserved_token_25>>",
256
+ "lstrip": false,
257
+ "normalized": false,
258
+ "rstrip": false,
259
+ "single_word": false,
260
+ "special": false
261
+ },
262
+ "32": {
263
+ "content": "<<reserved_token_26>>",
264
+ "lstrip": false,
265
+ "normalized": false,
266
+ "rstrip": false,
267
+ "single_word": false,
268
+ "special": false
269
+ },
270
+ "33": {
271
+ "content": "<<reserved_token_27>>",
272
+ "lstrip": false,
273
+ "normalized": false,
274
+ "rstrip": false,
275
+ "single_word": false,
276
+ "special": false
277
+ },
278
+ "34": {
279
+ "content": "<<reserved_token_28>>",
280
+ "lstrip": false,
281
+ "normalized": false,
282
+ "rstrip": false,
283
+ "single_word": false,
284
+ "special": false
285
+ },
286
+ "35": {
287
+ "content": "<<reserved_token_29>>",
288
+ "lstrip": false,
289
+ "normalized": false,
290
+ "rstrip": false,
291
+ "single_word": false,
292
+ "special": false
293
+ },
294
+ "36": {
295
+ "content": "<<reserved_token_30>>",
296
+ "lstrip": false,
297
+ "normalized": false,
298
+ "rstrip": false,
299
+ "single_word": false,
300
+ "special": false
301
+ },
302
+ "37": {
303
+ "content": "<<reserved_token_31>>",
304
+ "lstrip": false,
305
+ "normalized": false,
306
+ "rstrip": false,
307
+ "single_word": false,
308
+ "special": false
309
+ },
310
+ "38": {
311
+ "content": "<<reserved_token_32>>",
312
+ "lstrip": false,
313
+ "normalized": false,
314
+ "rstrip": false,
315
+ "single_word": false,
316
+ "special": false
317
+ },
318
+ "39": {
319
+ "content": "<<reserved_token_33>>",
320
+ "lstrip": false,
321
+ "normalized": false,
322
+ "rstrip": false,
323
+ "single_word": false,
324
+ "special": false
325
+ },
326
+ "40": {
327
+ "content": "<<reserved_token_34>>",
328
+ "lstrip": false,
329
+ "normalized": false,
330
+ "rstrip": false,
331
+ "single_word": false,
332
+ "special": false
333
+ },
334
+ "41": {
335
+ "content": "<<reserved_token_35>>",
336
+ "lstrip": false,
337
+ "normalized": false,
338
+ "rstrip": false,
339
+ "single_word": false,
340
+ "special": false
341
+ },
342
+ "42": {
343
+ "content": "<<reserved_token_36>>",
344
+ "lstrip": false,
345
+ "normalized": false,
346
+ "rstrip": false,
347
+ "single_word": false,
348
+ "special": false
349
+ },
350
+ "43": {
351
+ "content": "<<reserved_token_37>>",
352
+ "lstrip": false,
353
+ "normalized": false,
354
+ "rstrip": false,
355
+ "single_word": false,
356
+ "special": false
357
+ },
358
+ "44": {
359
+ "content": "<<reserved_token_38>>",
360
+ "lstrip": false,
361
+ "normalized": false,
362
+ "rstrip": false,
363
+ "single_word": false,
364
+ "special": false
365
+ },
366
+ "45": {
367
+ "content": "<<reserved_token_39>>",
368
+ "lstrip": false,
369
+ "normalized": false,
370
+ "rstrip": false,
371
+ "single_word": false,
372
+ "special": false
373
+ },
374
+ "46": {
375
+ "content": "<<reserved_token_40>>",
376
+ "lstrip": false,
377
+ "normalized": false,
378
+ "rstrip": false,
379
+ "single_word": false,
380
+ "special": false
381
+ },
382
+ "47": {
383
+ "content": "<<reserved_token_41>>",
384
+ "lstrip": false,
385
+ "normalized": false,
386
+ "rstrip": false,
387
+ "single_word": false,
388
+ "special": false
389
+ },
390
+ "48": {
391
+ "content": "<<reserved_token_42>>",
392
+ "lstrip": false,
393
+ "normalized": false,
394
+ "rstrip": false,
395
+ "single_word": false,
396
+ "special": false
397
+ },
398
+ "49": {
399
+ "content": "<<reserved_token_43>>",
400
+ "lstrip": false,
401
+ "normalized": false,
402
+ "rstrip": false,
403
+ "single_word": false,
404
+ "special": false
405
+ },
406
+ "50": {
407
+ "content": "<<reserved_token_44>>",
408
+ "lstrip": false,
409
+ "normalized": false,
410
+ "rstrip": false,
411
+ "single_word": false,
412
+ "special": false
413
+ },
414
+ "51": {
415
+ "content": "<<reserved_token_45>>",
416
+ "lstrip": false,
417
+ "normalized": false,
418
+ "rstrip": false,
419
+ "single_word": false,
420
+ "special": false
421
+ },
422
+ "52": {
423
+ "content": "<<reserved_token_46>>",
424
+ "lstrip": false,
425
+ "normalized": false,
426
+ "rstrip": false,
427
+ "single_word": false,
428
+ "special": false
429
+ },
430
+ "53": {
431
+ "content": "<<reserved_token_47>>",
432
+ "lstrip": false,
433
+ "normalized": false,
434
+ "rstrip": false,
435
+ "single_word": false,
436
+ "special": false
437
+ },
438
+ "54": {
439
+ "content": "<<reserved_token_48>>",
440
+ "lstrip": false,
441
+ "normalized": false,
442
+ "rstrip": false,
443
+ "single_word": false,
444
+ "special": false
445
+ },
446
+ "55": {
447
+ "content": "<<reserved_token_49>>",
448
+ "lstrip": false,
449
+ "normalized": false,
450
+ "rstrip": false,
451
+ "single_word": false,
452
+ "special": false
453
+ },
454
+ "56": {
455
+ "content": "<<reserved_token_50>>",
456
+ "lstrip": false,
457
+ "normalized": false,
458
+ "rstrip": false,
459
+ "single_word": false,
460
+ "special": false
461
+ },
462
+ "57": {
463
+ "content": "<<reserved_token_51>>",
464
+ "lstrip": false,
465
+ "normalized": false,
466
+ "rstrip": false,
467
+ "single_word": false,
468
+ "special": false
469
+ },
470
+ "58": {
471
+ "content": "<<reserved_token_52>>",
472
+ "lstrip": false,
473
+ "normalized": false,
474
+ "rstrip": false,
475
+ "single_word": false,
476
+ "special": false
477
+ },
478
+ "59": {
479
+ "content": "<<reserved_token_53>>",
480
+ "lstrip": false,
481
+ "normalized": false,
482
+ "rstrip": false,
483
+ "single_word": false,
484
+ "special": false
485
+ },
486
+ "60": {
487
+ "content": "<<reserved_token_54>>",
488
+ "lstrip": false,
489
+ "normalized": false,
490
+ "rstrip": false,
491
+ "single_word": false,
492
+ "special": false
493
+ },
494
+ "61": {
495
+ "content": "<<reserved_token_55>>",
496
+ "lstrip": false,
497
+ "normalized": false,
498
+ "rstrip": false,
499
+ "single_word": false,
500
+ "special": false
501
+ },
502
+ "62": {
503
+ "content": "<<reserved_token_56>>",
504
+ "lstrip": false,
505
+ "normalized": false,
506
+ "rstrip": false,
507
+ "single_word": false,
508
+ "special": false
509
+ },
510
+ "63": {
511
+ "content": "<<reserved_token_57>>",
512
+ "lstrip": false,
513
+ "normalized": false,
514
+ "rstrip": false,
515
+ "single_word": false,
516
+ "special": false
517
+ },
518
+ "64": {
519
+ "content": "<<reserved_token_58>>",
520
+ "lstrip": false,
521
+ "normalized": false,
522
+ "rstrip": false,
523
+ "single_word": false,
524
+ "special": false
525
+ },
526
+ "65": {
527
+ "content": "<<reserved_token_59>>",
528
+ "lstrip": false,
529
+ "normalized": false,
530
+ "rstrip": false,
531
+ "single_word": false,
532
+ "special": false
533
+ },
534
+ "66": {
535
+ "content": "<<reserved_token_60>>",
536
+ "lstrip": false,
537
+ "normalized": false,
538
+ "rstrip": false,
539
+ "single_word": false,
540
+ "special": false
541
+ },
542
+ "67": {
543
+ "content": "<<reserved_token_61>>",
544
+ "lstrip": false,
545
+ "normalized": false,
546
+ "rstrip": false,
547
+ "single_word": false,
548
+ "special": false
549
+ },
550
+ "68": {
551
+ "content": "<<reserved_token_62>>",
552
+ "lstrip": false,
553
+ "normalized": false,
554
+ "rstrip": false,
555
+ "single_word": false,
556
+ "special": false
557
+ },
558
+ "69": {
559
+ "content": "<<reserved_token_63>>",
560
+ "lstrip": false,
561
+ "normalized": false,
562
+ "rstrip": false,
563
+ "single_word": false,
564
+ "special": false
565
+ },
566
+ "70": {
567
+ "content": "<<reserved_token_64>>",
568
+ "lstrip": false,
569
+ "normalized": false,
570
+ "rstrip": false,
571
+ "single_word": false,
572
+ "special": false
573
+ },
574
+ "71": {
575
+ "content": "<<reserved_token_65>>",
576
+ "lstrip": false,
577
+ "normalized": false,
578
+ "rstrip": false,
579
+ "single_word": false,
580
+ "special": false
581
+ },
582
+ "72": {
583
+ "content": "<<reserved_token_66>>",
584
+ "lstrip": false,
585
+ "normalized": false,
586
+ "rstrip": false,
587
+ "single_word": false,
588
+ "special": false
589
+ },
590
+ "73": {
591
+ "content": "<<reserved_token_67>>",
592
+ "lstrip": false,
593
+ "normalized": false,
594
+ "rstrip": false,
595
+ "single_word": false,
596
+ "special": false
597
+ },
598
+ "74": {
599
+ "content": "<<reserved_token_68>>",
600
+ "lstrip": false,
601
+ "normalized": false,
602
+ "rstrip": false,
603
+ "single_word": false,
604
+ "special": false
605
+ },
606
+ "75": {
607
+ "content": "<<reserved_token_69>>",
608
+ "lstrip": false,
609
+ "normalized": false,
610
+ "rstrip": false,
611
+ "single_word": false,
612
+ "special": false
613
+ },
614
+ "76": {
615
+ "content": "<<reserved_token_70>>",
616
+ "lstrip": false,
617
+ "normalized": false,
618
+ "rstrip": false,
619
+ "single_word": false,
620
+ "special": false
621
+ },
622
+ "77": {
623
+ "content": "<<reserved_token_71>>",
624
+ "lstrip": false,
625
+ "normalized": false,
626
+ "rstrip": false,
627
+ "single_word": false,
628
+ "special": false
629
+ },
630
+ "78": {
631
+ "content": "<<reserved_token_72>>",
632
+ "lstrip": false,
633
+ "normalized": false,
634
+ "rstrip": false,
635
+ "single_word": false,
636
+ "special": false
637
+ },
638
+ "79": {
639
+ "content": "<<reserved_token_73>>",
640
+ "lstrip": false,
641
+ "normalized": false,
642
+ "rstrip": false,
643
+ "single_word": false,
644
+ "special": false
645
+ },
646
+ "80": {
647
+ "content": "<<reserved_token_74>>",
648
+ "lstrip": false,
649
+ "normalized": false,
650
+ "rstrip": false,
651
+ "single_word": false,
652
+ "special": false
653
+ },
654
+ "81": {
655
+ "content": "<<reserved_token_75>>",
656
+ "lstrip": false,
657
+ "normalized": false,
658
+ "rstrip": false,
659
+ "single_word": false,
660
+ "special": false
661
+ },
662
+ "82": {
663
+ "content": "<<reserved_token_76>>",
664
+ "lstrip": false,
665
+ "normalized": false,
666
+ "rstrip": false,
667
+ "single_word": false,
668
+ "special": false
669
+ },
670
+ "83": {
671
+ "content": "<<reserved_token_77>>",
672
+ "lstrip": false,
673
+ "normalized": false,
674
+ "rstrip": false,
675
+ "single_word": false,
676
+ "special": false
677
+ },
678
+ "84": {
679
+ "content": "<<reserved_token_78>>",
680
+ "lstrip": false,
681
+ "normalized": false,
682
+ "rstrip": false,
683
+ "single_word": false,
684
+ "special": false
685
+ },
686
+ "85": {
687
+ "content": "<<reserved_token_79>>",
688
+ "lstrip": false,
689
+ "normalized": false,
690
+ "rstrip": false,
691
+ "single_word": false,
692
+ "special": false
693
+ },
694
+ "86": {
695
+ "content": "<<reserved_token_80>>",
696
+ "lstrip": false,
697
+ "normalized": false,
698
+ "rstrip": false,
699
+ "single_word": false,
700
+ "special": false
701
+ },
702
+ "87": {
703
+ "content": "<<reserved_token_81>>",
704
+ "lstrip": false,
705
+ "normalized": false,
706
+ "rstrip": false,
707
+ "single_word": false,
708
+ "special": false
709
+ },
710
+ "88": {
711
+ "content": "<<reserved_token_82>>",
712
+ "lstrip": false,
713
+ "normalized": false,
714
+ "rstrip": false,
715
+ "single_word": false,
716
+ "special": false
717
+ },
718
+ "89": {
719
+ "content": "<<reserved_token_83>>",
720
+ "lstrip": false,
721
+ "normalized": false,
722
+ "rstrip": false,
723
+ "single_word": false,
724
+ "special": false
725
+ },
726
+ "90": {
727
+ "content": "<<reserved_token_84>>",
728
+ "lstrip": false,
729
+ "normalized": false,
730
+ "rstrip": false,
731
+ "single_word": false,
732
+ "special": false
733
+ },
734
+ "91": {
735
+ "content": "<<reserved_token_85>>",
736
+ "lstrip": false,
737
+ "normalized": false,
738
+ "rstrip": false,
739
+ "single_word": false,
740
+ "special": false
741
+ },
742
+ "92": {
743
+ "content": "<<reserved_token_86>>",
744
+ "lstrip": false,
745
+ "normalized": false,
746
+ "rstrip": false,
747
+ "single_word": false,
748
+ "special": false
749
+ },
750
+ "93": {
751
+ "content": "<<reserved_token_87>>",
752
+ "lstrip": false,
753
+ "normalized": false,
754
+ "rstrip": false,
755
+ "single_word": false,
756
+ "special": false
757
+ },
758
+ "94": {
759
+ "content": "<<reserved_token_88>>",
760
+ "lstrip": false,
761
+ "normalized": false,
762
+ "rstrip": false,
763
+ "single_word": false,
764
+ "special": false
765
+ },
766
+ "95": {
767
+ "content": "<<reserved_token_89>>",
768
+ "lstrip": false,
769
+ "normalized": false,
770
+ "rstrip": false,
771
+ "single_word": false,
772
+ "special": false
773
+ },
774
+ "96": {
775
+ "content": "<<reserved_token_90>>",
776
+ "lstrip": false,
777
+ "normalized": false,
778
+ "rstrip": false,
779
+ "single_word": false,
780
+ "special": false
781
+ },
782
+ "97": {
783
+ "content": "<<reserved_token_91>>",
784
+ "lstrip": false,
785
+ "normalized": false,
786
+ "rstrip": false,
787
+ "single_word": false,
788
+ "special": false
789
+ },
790
+ "98": {
791
+ "content": "<<reserved_token_92>>",
792
+ "lstrip": false,
793
+ "normalized": false,
794
+ "rstrip": false,
795
+ "single_word": false,
796
+ "special": false
797
+ },
798
+ "99": {
799
+ "content": "<<reserved_token_93>>",
800
+ "lstrip": false,
801
+ "normalized": false,
802
+ "rstrip": false,
803
+ "single_word": false,
804
+ "special": false
805
+ },
806
+ "100": {
807
+ "content": "<<reserved_token_94>>",
808
+ "lstrip": false,
809
+ "normalized": false,
810
+ "rstrip": false,
811
+ "single_word": false,
812
+ "special": false
813
+ },
814
+ "101": {
815
+ "content": "<<reserved_token_95>>",
816
+ "lstrip": false,
817
+ "normalized": false,
818
+ "rstrip": false,
819
+ "single_word": false,
820
+ "special": false
821
+ },
822
+ "102": {
823
+ "content": "<<reserved_token_96>>",
824
+ "lstrip": false,
825
+ "normalized": false,
826
+ "rstrip": false,
827
+ "single_word": false,
828
+ "special": false
829
+ },
830
+ "103": {
831
+ "content": "<<reserved_token_97>>",
832
+ "lstrip": false,
833
+ "normalized": false,
834
+ "rstrip": false,
835
+ "single_word": false,
836
+ "special": false
837
+ },
838
+ "104": {
839
+ "content": "<<reserved_token_98>>",
840
+ "lstrip": false,
841
+ "normalized": false,
842
+ "rstrip": false,
843
+ "single_word": false,
844
+ "special": false
845
+ },
846
+ "105": {
847
+ "content": "<<reserved_token_99>>",
848
+ "lstrip": false,
849
+ "normalized": false,
850
+ "rstrip": false,
851
+ "single_word": false,
852
+ "special": false
853
+ },
854
+ "106": {
855
+ "content": "<<reserved_token_100>>",
856
+ "lstrip": false,
857
+ "normalized": false,
858
+ "rstrip": false,
859
+ "single_word": false,
860
+ "special": false
861
+ },
862
+ "107": {
863
+ "content": "<<reserved_token_101>>",
864
+ "lstrip": false,
865
+ "normalized": false,
866
+ "rstrip": false,
867
+ "single_word": false,
868
+ "special": false
869
+ },
870
+ "108": {
871
+ "content": "<<reserved_token_102>>",
872
+ "lstrip": false,
873
+ "normalized": false,
874
+ "rstrip": false,
875
+ "single_word": false,
876
+ "special": false
877
+ },
878
+ "109": {
879
+ "content": "<<reserved_token_103>>",
880
+ "lstrip": false,
881
+ "normalized": false,
882
+ "rstrip": false,
883
+ "single_word": false,
884
+ "special": false
885
+ },
886
+ "110": {
887
+ "content": "<<reserved_token_104>>",
888
+ "lstrip": false,
889
+ "normalized": false,
890
+ "rstrip": false,
891
+ "single_word": false,
892
+ "special": false
893
+ },
894
+ "111": {
895
+ "content": "<<reserved_token_105>>",
896
+ "lstrip": false,
897
+ "normalized": false,
898
+ "rstrip": false,
899
+ "single_word": false,
900
+ "special": false
901
+ },
902
+ "112": {
903
+ "content": "<<reserved_token_106>>",
904
+ "lstrip": false,
905
+ "normalized": false,
906
+ "rstrip": false,
907
+ "single_word": false,
908
+ "special": false
909
+ },
910
+ "113": {
911
+ "content": "<<reserved_token_107>>",
912
+ "lstrip": false,
913
+ "normalized": false,
914
+ "rstrip": false,
915
+ "single_word": false,
916
+ "special": false
917
+ },
918
+ "114": {
919
+ "content": "<<reserved_token_108>>",
920
+ "lstrip": false,
921
+ "normalized": false,
922
+ "rstrip": false,
923
+ "single_word": false,
924
+ "special": false
925
+ },
926
+ "115": {
927
+ "content": "<<reserved_token_109>>",
928
+ "lstrip": false,
929
+ "normalized": false,
930
+ "rstrip": false,
931
+ "single_word": false,
932
+ "special": false
933
+ },
934
+ "116": {
935
+ "content": "<<reserved_token_110>>",
936
+ "lstrip": false,
937
+ "normalized": false,
938
+ "rstrip": false,
939
+ "single_word": false,
940
+ "special": false
941
+ },
942
+ "117": {
943
+ "content": "<<reserved_token_111>>",
944
+ "lstrip": false,
945
+ "normalized": false,
946
+ "rstrip": false,
947
+ "single_word": false,
948
+ "special": false
949
+ },
950
+ "118": {
951
+ "content": "<<reserved_token_112>>",
952
+ "lstrip": false,
953
+ "normalized": false,
954
+ "rstrip": false,
955
+ "single_word": false,
956
+ "special": false
957
+ },
958
+ "119": {
959
+ "content": "<<reserved_token_113>>",
960
+ "lstrip": false,
961
+ "normalized": false,
962
+ "rstrip": false,
963
+ "single_word": false,
964
+ "special": false
965
+ },
966
+ "120": {
967
+ "content": "<<reserved_token_114>>",
968
+ "lstrip": false,
969
+ "normalized": false,
970
+ "rstrip": false,
971
+ "single_word": false,
972
+ "special": false
973
+ },
974
+ "121": {
975
+ "content": "<<reserved_token_115>>",
976
+ "lstrip": false,
977
+ "normalized": false,
978
+ "rstrip": false,
979
+ "single_word": false,
980
+ "special": false
981
+ },
982
+ "122": {
983
+ "content": "<<reserved_token_116>>",
984
+ "lstrip": false,
985
+ "normalized": false,
986
+ "rstrip": false,
987
+ "single_word": false,
988
+ "special": false
989
+ },
990
+ "123": {
991
+ "content": "<<reserved_token_117>>",
992
+ "lstrip": false,
993
+ "normalized": false,
994
+ "rstrip": false,
995
+ "single_word": false,
996
+ "special": false
997
+ },
998
+ "124": {
999
+ "content": "<<reserved_token_118>>",
1000
+ "lstrip": false,
1001
+ "normalized": false,
1002
+ "rstrip": false,
1003
+ "single_word": false,
1004
+ "special": false
1005
+ },
1006
+ "125": {
1007
+ "content": "<<reserved_token_119>>",
1008
+ "lstrip": false,
1009
+ "normalized": false,
1010
+ "rstrip": false,
1011
+ "single_word": false,
1012
+ "special": false
1013
+ },
1014
+ "126": {
1015
+ "content": "<<reserved_token_120>>",
1016
+ "lstrip": false,
1017
+ "normalized": false,
1018
+ "rstrip": false,
1019
+ "single_word": false,
1020
+ "special": false
1021
+ },
1022
+ "127": {
1023
+ "content": "<<reserved_token_121>>",
1024
+ "lstrip": false,
1025
+ "normalized": false,
1026
+ "rstrip": false,
1027
+ "single_word": false,
1028
+ "special": false
1029
+ },
1030
+ "128": {
1031
+ "content": "\r",
1032
+ "lstrip": false,
1033
+ "normalized": false,
1034
+ "rstrip": false,
1035
+ "single_word": false,
1036
+ "special": false
1037
+ },
1038
+ "129": {
1039
+ "content": "\t",
1040
+ "lstrip": false,
1041
+ "normalized": false,
1042
+ "rstrip": false,
1043
+ "single_word": false,
1044
+ "special": false
1045
+ },
1046
+ "130": {
1047
+ "content": "\n",
1048
+ "lstrip": false,
1049
+ "normalized": false,
1050
+ "rstrip": false,
1051
+ "single_word": false,
1052
+ "special": false
1053
+ }
1054
+ },
1055
+ "bos_token": "<s>",
1056
+ "chat_template": "",
1057
+ "clean_up_tokenization_spaces": false,
1058
+ "eos_token": "</s>",
1059
+ "legacy": false,
1060
+ "model_max_length": 1000000000000000019884624838656,
1061
+ "pad_token": null,
1062
+ "sp_model_kwargs": {},
1063
+ "spaces_between_special_tokens": false,
1064
+ "tokenizer_class": "LlamaTokenizer",
1065
+ "unk_token": "<unk>",
1066
+ "use_default_system_prompt": false
1067
+ }
venv/bin/Activate.ps1 ADDED
@@ -0,0 +1,247 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <#
2
+ .Synopsis
3
+ Activate a Python virtual environment for the current PowerShell session.
4
+
5
+ .Description
6
+ Pushes the python executable for a virtual environment to the front of the
7
+ $Env:PATH environment variable and sets the prompt to signify that you are
8
+ in a Python virtual environment. Makes use of the command line switches as
9
+ well as the `pyvenv.cfg` file values present in the virtual environment.
10
+
11
+ .Parameter VenvDir
12
+ Path to the directory that contains the virtual environment to activate. The
13
+ default value for this is the parent of the directory that the Activate.ps1
14
+ script is located within.
15
+
16
+ .Parameter Prompt
17
+ The prompt prefix to display when this virtual environment is activated. By
18
+ default, this prompt is the name of the virtual environment folder (VenvDir)
19
+ surrounded by parentheses and followed by a single space (ie. '(.venv) ').
20
+
21
+ .Example
22
+ Activate.ps1
23
+ Activates the Python virtual environment that contains the Activate.ps1 script.
24
+
25
+ .Example
26
+ Activate.ps1 -Verbose
27
+ Activates the Python virtual environment that contains the Activate.ps1 script,
28
+ and shows extra information about the activation as it executes.
29
+
30
+ .Example
31
+ Activate.ps1 -VenvDir C:\Users\MyUser\Common\.venv
32
+ Activates the Python virtual environment located in the specified location.
33
+
34
+ .Example
35
+ Activate.ps1 -Prompt "MyPython"
36
+ Activates the Python virtual environment that contains the Activate.ps1 script,
37
+ and prefixes the current prompt with the specified string (surrounded in
38
+ parentheses) while the virtual environment is active.
39
+
40
+ .Notes
41
+ On Windows, it may be required to enable this Activate.ps1 script by setting the
42
+ execution policy for the user. You can do this by issuing the following PowerShell
43
+ command:
44
+
45
+ PS C:\> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
46
+
47
+ For more information on Execution Policies:
48
+ https://go.microsoft.com/fwlink/?LinkID=135170
49
+
50
+ #>
51
+ Param(
52
+ [Parameter(Mandatory = $false)]
53
+ [String]
54
+ $VenvDir,
55
+ [Parameter(Mandatory = $false)]
56
+ [String]
57
+ $Prompt
58
+ )
59
+
60
+ <# Function declarations --------------------------------------------------- #>
61
+
62
+ <#
63
+ .Synopsis
64
+ Remove all shell session elements added by the Activate script, including the
65
+ addition of the virtual environment's Python executable from the beginning of
66
+ the PATH variable.
67
+
68
+ .Parameter NonDestructive
69
+ If present, do not remove this function from the global namespace for the
70
+ session.
71
+
72
+ #>
73
+ function global:deactivate ([switch]$NonDestructive) {
74
+ # Revert to original values
75
+
76
+ # The prior prompt:
77
+ if (Test-Path -Path Function:_OLD_VIRTUAL_PROMPT) {
78
+ Copy-Item -Path Function:_OLD_VIRTUAL_PROMPT -Destination Function:prompt
79
+ Remove-Item -Path Function:_OLD_VIRTUAL_PROMPT
80
+ }
81
+
82
+ # The prior PYTHONHOME:
83
+ if (Test-Path -Path Env:_OLD_VIRTUAL_PYTHONHOME) {
84
+ Copy-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME -Destination Env:PYTHONHOME
85
+ Remove-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME
86
+ }
87
+
88
+ # The prior PATH:
89
+ if (Test-Path -Path Env:_OLD_VIRTUAL_PATH) {
90
+ Copy-Item -Path Env:_OLD_VIRTUAL_PATH -Destination Env:PATH
91
+ Remove-Item -Path Env:_OLD_VIRTUAL_PATH
92
+ }
93
+
94
+ # Just remove the VIRTUAL_ENV altogether:
95
+ if (Test-Path -Path Env:VIRTUAL_ENV) {
96
+ Remove-Item -Path env:VIRTUAL_ENV
97
+ }
98
+
99
+ # Just remove VIRTUAL_ENV_PROMPT altogether.
100
+ if (Test-Path -Path Env:VIRTUAL_ENV_PROMPT) {
101
+ Remove-Item -Path env:VIRTUAL_ENV_PROMPT
102
+ }
103
+
104
+ # Just remove the _PYTHON_VENV_PROMPT_PREFIX altogether:
105
+ if (Get-Variable -Name "_PYTHON_VENV_PROMPT_PREFIX" -ErrorAction SilentlyContinue) {
106
+ Remove-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Scope Global -Force
107
+ }
108
+
109
+ # Leave deactivate function in the global namespace if requested:
110
+ if (-not $NonDestructive) {
111
+ Remove-Item -Path function:deactivate
112
+ }
113
+ }
114
+
115
+ <#
116
+ .Description
117
+ Get-PyVenvConfig parses the values from the pyvenv.cfg file located in the
118
+ given folder, and returns them in a map.
119
+
120
+ For each line in the pyvenv.cfg file, if that line can be parsed into exactly
121
+ two strings separated by `=` (with any amount of whitespace surrounding the =)
122
+ then it is considered a `key = value` line. The left hand string is the key,
123
+ the right hand is the value.
124
+
125
+ If the value starts with a `'` or a `"` then the first and last character is
126
+ stripped from the value before being captured.
127
+
128
+ .Parameter ConfigDir
129
+ Path to the directory that contains the `pyvenv.cfg` file.
130
+ #>
131
+ function Get-PyVenvConfig(
132
+ [String]
133
+ $ConfigDir
134
+ ) {
135
+ Write-Verbose "Given ConfigDir=$ConfigDir, obtain values in pyvenv.cfg"
136
+
137
+ # Ensure the file exists, and issue a warning if it doesn't (but still allow the function to continue).
138
+ $pyvenvConfigPath = Join-Path -Resolve -Path $ConfigDir -ChildPath 'pyvenv.cfg' -ErrorAction Continue
139
+
140
+ # An empty map will be returned if no config file is found.
141
+ $pyvenvConfig = @{ }
142
+
143
+ if ($pyvenvConfigPath) {
144
+
145
+ Write-Verbose "File exists, parse `key = value` lines"
146
+ $pyvenvConfigContent = Get-Content -Path $pyvenvConfigPath
147
+
148
+ $pyvenvConfigContent | ForEach-Object {
149
+ $keyval = $PSItem -split "\s*=\s*", 2
150
+ if ($keyval[0] -and $keyval[1]) {
151
+ $val = $keyval[1]
152
+
153
+ # Remove extraneous quotations around a string value.
154
+ if ("'""".Contains($val.Substring(0, 1))) {
155
+ $val = $val.Substring(1, $val.Length - 2)
156
+ }
157
+
158
+ $pyvenvConfig[$keyval[0]] = $val
159
+ Write-Verbose "Adding Key: '$($keyval[0])'='$val'"
160
+ }
161
+ }
162
+ }
163
+ return $pyvenvConfig
164
+ }
165
+
166
+
167
+ <# Begin Activate script --------------------------------------------------- #>
168
+
169
+ # Determine the containing directory of this script
170
+ $VenvExecPath = Split-Path -Parent $MyInvocation.MyCommand.Definition
171
+ $VenvExecDir = Get-Item -Path $VenvExecPath
172
+
173
+ Write-Verbose "Activation script is located in path: '$VenvExecPath'"
174
+ Write-Verbose "VenvExecDir Fullname: '$($VenvExecDir.FullName)"
175
+ Write-Verbose "VenvExecDir Name: '$($VenvExecDir.Name)"
176
+
177
+ # Set values required in priority: CmdLine, ConfigFile, Default
178
+ # First, get the location of the virtual environment, it might not be
179
+ # VenvExecDir if specified on the command line.
180
+ if ($VenvDir) {
181
+ Write-Verbose "VenvDir given as parameter, using '$VenvDir' to determine values"
182
+ }
183
+ else {
184
+ Write-Verbose "VenvDir not given as a parameter, using parent directory name as VenvDir."
185
+ $VenvDir = $VenvExecDir.Parent.FullName.TrimEnd("\\/")
186
+ Write-Verbose "VenvDir=$VenvDir"
187
+ }
188
+
189
+ # Next, read the `pyvenv.cfg` file to determine any required value such
190
+ # as `prompt`.
191
+ $pyvenvCfg = Get-PyVenvConfig -ConfigDir $VenvDir
192
+
193
+ # Next, set the prompt from the command line, or the config file, or
194
+ # just use the name of the virtual environment folder.
195
+ if ($Prompt) {
196
+ Write-Verbose "Prompt specified as argument, using '$Prompt'"
197
+ }
198
+ else {
199
+ Write-Verbose "Prompt not specified as argument to script, checking pyvenv.cfg value"
200
+ if ($pyvenvCfg -and $pyvenvCfg['prompt']) {
201
+ Write-Verbose " Setting based on value in pyvenv.cfg='$($pyvenvCfg['prompt'])'"
202
+ $Prompt = $pyvenvCfg['prompt'];
203
+ }
204
+ else {
205
+ Write-Verbose " Setting prompt based on parent's directory's name. (Is the directory name passed to venv module when creating the virtual environment)"
206
+ Write-Verbose " Got leaf-name of $VenvDir='$(Split-Path -Path $venvDir -Leaf)'"
207
+ $Prompt = Split-Path -Path $venvDir -Leaf
208
+ }
209
+ }
210
+
211
+ Write-Verbose "Prompt = '$Prompt'"
212
+ Write-Verbose "VenvDir='$VenvDir'"
213
+
214
+ # Deactivate any currently active virtual environment, but leave the
215
+ # deactivate function in place.
216
+ deactivate -nondestructive
217
+
218
+ # Now set the environment variable VIRTUAL_ENV, used by many tools to determine
219
+ # that there is an activated venv.
220
+ $env:VIRTUAL_ENV = $VenvDir
221
+
222
+ if (-not $Env:VIRTUAL_ENV_DISABLE_PROMPT) {
223
+
224
+ Write-Verbose "Setting prompt to '$Prompt'"
225
+
226
+ # Set the prompt to include the env name
227
+ # Make sure _OLD_VIRTUAL_PROMPT is global
228
+ function global:_OLD_VIRTUAL_PROMPT { "" }
229
+ Copy-Item -Path function:prompt -Destination function:_OLD_VIRTUAL_PROMPT
230
+ New-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Description "Python virtual environment prompt prefix" -Scope Global -Option ReadOnly -Visibility Public -Value $Prompt
231
+
232
+ function global:prompt {
233
+ Write-Host -NoNewline -ForegroundColor Green "($_PYTHON_VENV_PROMPT_PREFIX) "
234
+ _OLD_VIRTUAL_PROMPT
235
+ }
236
+ $env:VIRTUAL_ENV_PROMPT = $Prompt
237
+ }
238
+
239
+ # Clear PYTHONHOME
240
+ if (Test-Path -Path Env:PYTHONHOME) {
241
+ Copy-Item -Path Env:PYTHONHOME -Destination Env:_OLD_VIRTUAL_PYTHONHOME
242
+ Remove-Item -Path Env:PYTHONHOME
243
+ }
244
+
245
+ # Add the venv to the PATH
246
+ Copy-Item -Path Env:PATH -Destination Env:_OLD_VIRTUAL_PATH
247
+ $Env:PATH = "$VenvExecDir$([System.IO.Path]::PathSeparator)$Env:PATH"
venv/bin/activate ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file must be used with "source bin/activate" *from bash*
2
+ # You cannot run it directly
3
+
4
+ deactivate () {
5
+ # reset old environment variables
6
+ if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then
7
+ PATH="${_OLD_VIRTUAL_PATH:-}"
8
+ export PATH
9
+ unset _OLD_VIRTUAL_PATH
10
+ fi
11
+ if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then
12
+ PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}"
13
+ export PYTHONHOME
14
+ unset _OLD_VIRTUAL_PYTHONHOME
15
+ fi
16
+
17
+ # Call hash to forget past commands. Without forgetting
18
+ # past commands the $PATH changes we made may not be respected
19
+ hash -r 2> /dev/null
20
+
21
+ if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then
22
+ PS1="${_OLD_VIRTUAL_PS1:-}"
23
+ export PS1
24
+ unset _OLD_VIRTUAL_PS1
25
+ fi
26
+
27
+ unset VIRTUAL_ENV
28
+ unset VIRTUAL_ENV_PROMPT
29
+ if [ ! "${1:-}" = "nondestructive" ] ; then
30
+ # Self destruct!
31
+ unset -f deactivate
32
+ fi
33
+ }
34
+
35
+ # unset irrelevant variables
36
+ deactivate nondestructive
37
+
38
+ # on Windows, a path can contain colons and backslashes and has to be converted:
39
+ if [ "${OSTYPE:-}" = "cygwin" ] || [ "${OSTYPE:-}" = "msys" ] ; then
40
+ # transform D:\path\to\venv to /d/path/to/venv on MSYS
41
+ # and to /cygdrive/d/path/to/venv on Cygwin
42
+ export VIRTUAL_ENV=$(cygpath /home/user/Downloads/projects/venv)
43
+ else
44
+ # use the path as-is
45
+ export VIRTUAL_ENV=/home/user/Downloads/projects/venv
46
+ fi
47
+
48
+ _OLD_VIRTUAL_PATH="$PATH"
49
+ PATH="$VIRTUAL_ENV/"bin":$PATH"
50
+ export PATH
51
+
52
+ # unset PYTHONHOME if set
53
+ # this will fail if PYTHONHOME is set to the empty string (which is bad anyway)
54
+ # could use `if (set -u; : $PYTHONHOME) ;` in bash
55
+ if [ -n "${PYTHONHOME:-}" ] ; then
56
+ _OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}"
57
+ unset PYTHONHOME
58
+ fi
59
+
60
+ if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then
61
+ _OLD_VIRTUAL_PS1="${PS1:-}"
62
+ PS1='(venv) '"${PS1:-}"
63
+ export PS1
64
+ VIRTUAL_ENV_PROMPT='(venv) '
65
+ export VIRTUAL_ENV_PROMPT
66
+ fi
67
+
68
+ # Call hash to forget past commands. Without forgetting
69
+ # past commands the $PATH changes we made may not be respected
70
+ hash -r 2> /dev/null
venv/bin/activate.csh ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file must be used with "source bin/activate.csh" *from csh*.
2
+ # You cannot run it directly.
3
+
4
+ # Created by Davide Di Blasi <davidedb@gmail.com>.
5
+ # Ported to Python 3.3 venv by Andrew Svetlov <andrew.svetlov@gmail.com>
6
+
7
+ alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; unsetenv VIRTUAL_ENV_PROMPT; test "\!:*" != "nondestructive" && unalias deactivate'
8
+
9
+ # Unset irrelevant variables.
10
+ deactivate nondestructive
11
+
12
+ setenv VIRTUAL_ENV /home/user/Downloads/projects/venv
13
+
14
+ set _OLD_VIRTUAL_PATH="$PATH"
15
+ setenv PATH "$VIRTUAL_ENV/"bin":$PATH"
16
+
17
+
18
+ set _OLD_VIRTUAL_PROMPT="$prompt"
19
+
20
+ if (! "$?VIRTUAL_ENV_DISABLE_PROMPT") then
21
+ set prompt = '(venv) '"$prompt"
22
+ setenv VIRTUAL_ENV_PROMPT '(venv) '
23
+ endif
24
+
25
+ alias pydoc python -m pydoc
26
+
27
+ rehash
venv/bin/activate.fish ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file must be used with "source <venv>/bin/activate.fish" *from fish*
2
+ # (https://fishshell.com/). You cannot run it directly.
3
+
4
+ function deactivate -d "Exit virtual environment and return to normal shell environment"
5
+ # reset old environment variables
6
+ if test -n "$_OLD_VIRTUAL_PATH"
7
+ set -gx PATH $_OLD_VIRTUAL_PATH
8
+ set -e _OLD_VIRTUAL_PATH
9
+ end
10
+ if test -n "$_OLD_VIRTUAL_PYTHONHOME"
11
+ set -gx PYTHONHOME $_OLD_VIRTUAL_PYTHONHOME
12
+ set -e _OLD_VIRTUAL_PYTHONHOME
13
+ end
14
+
15
+ if test -n "$_OLD_FISH_PROMPT_OVERRIDE"
16
+ set -e _OLD_FISH_PROMPT_OVERRIDE
17
+ # prevents error when using nested fish instances (Issue #93858)
18
+ if functions -q _old_fish_prompt
19
+ functions -e fish_prompt
20
+ functions -c _old_fish_prompt fish_prompt
21
+ functions -e _old_fish_prompt
22
+ end
23
+ end
24
+
25
+ set -e VIRTUAL_ENV
26
+ set -e VIRTUAL_ENV_PROMPT
27
+ if test "$argv[1]" != "nondestructive"
28
+ # Self-destruct!
29
+ functions -e deactivate
30
+ end
31
+ end
32
+
33
+ # Unset irrelevant variables.
34
+ deactivate nondestructive
35
+
36
+ set -gx VIRTUAL_ENV /home/user/Downloads/projects/venv
37
+
38
+ set -gx _OLD_VIRTUAL_PATH $PATH
39
+ set -gx PATH "$VIRTUAL_ENV/"bin $PATH
40
+
41
+ # Unset PYTHONHOME if set.
42
+ if set -q PYTHONHOME
43
+ set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME
44
+ set -e PYTHONHOME
45
+ end
46
+
47
+ if test -z "$VIRTUAL_ENV_DISABLE_PROMPT"
48
+ # fish uses a function instead of an env var to generate the prompt.
49
+
50
+ # Save the current fish_prompt function as the function _old_fish_prompt.
51
+ functions -c fish_prompt _old_fish_prompt
52
+
53
+ # With the original prompt function renamed, we can override with our own.
54
+ function fish_prompt
55
+ # Save the return status of the last command.
56
+ set -l old_status $status
57
+
58
+ # Output the venv prompt; color taken from the blue of the Python logo.
59
+ printf "%s%s%s" (set_color 4B8BBE) '(venv) ' (set_color normal)
60
+
61
+ # Restore the return status of the previous command.
62
+ echo "exit $old_status" | .
63
+ # Output the original/"old" prompt.
64
+ _old_fish_prompt
65
+ end
66
+
67
+ set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV"
68
+ set -gx VIRTUAL_ENV_PROMPT '(venv) '
69
+ end
venv/bin/httpx ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ #!/home/user/Downloads/projects/venv/bin/python
2
+ # -*- coding: utf-8 -*-
3
+ import re
4
+ import sys
5
+ from httpx import main
6
+ if __name__ == '__main__':
7
+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
+ sys.exit(main())
venv/bin/pip ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ #!/home/user/Downloads/projects/venv/bin/python
2
+ # -*- coding: utf-8 -*-
3
+ import re
4
+ import sys
5
+ from pip._internal.cli.main import main
6
+ if __name__ == '__main__':
7
+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
+ sys.exit(main())
venv/bin/pip3 ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ #!/home/user/Downloads/projects/venv/bin/python
2
+ # -*- coding: utf-8 -*-
3
+ import re
4
+ import sys
5
+ from pip._internal.cli.main import main
6
+ if __name__ == '__main__':
7
+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
+ sys.exit(main())
venv/bin/pip3.12 ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ #!/home/user/Downloads/projects/venv/bin/python
2
+ # -*- coding: utf-8 -*-
3
+ import re
4
+ import sys
5
+ from pip._internal.cli.main import main
6
+ if __name__ == '__main__':
7
+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
+ sys.exit(main())
venv/bin/websockets ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ #!/home/user/Downloads/projects/venv/bin/python
2
+ # -*- coding: utf-8 -*-
3
+ import re
4
+ import sys
5
+ from websockets.cli import main
6
+ if __name__ == '__main__':
7
+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
+ sys.exit(main())
venv/lib/python3.12/site-packages/anyio/__init__.py ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ from ._core._contextmanagers import AsyncContextManagerMixin as AsyncContextManagerMixin
4
+ from ._core._contextmanagers import ContextManagerMixin as ContextManagerMixin
5
+ from ._core._eventloop import current_time as current_time
6
+ from ._core._eventloop import get_all_backends as get_all_backends
7
+ from ._core._eventloop import get_available_backends as get_available_backends
8
+ from ._core._eventloop import get_cancelled_exc_class as get_cancelled_exc_class
9
+ from ._core._eventloop import run as run
10
+ from ._core._eventloop import sleep as sleep
11
+ from ._core._eventloop import sleep_forever as sleep_forever
12
+ from ._core._eventloop import sleep_until as sleep_until
13
+ from ._core._exceptions import BrokenResourceError as BrokenResourceError
14
+ from ._core._exceptions import BrokenWorkerInterpreter as BrokenWorkerInterpreter
15
+ from ._core._exceptions import BrokenWorkerProcess as BrokenWorkerProcess
16
+ from ._core._exceptions import BusyResourceError as BusyResourceError
17
+ from ._core._exceptions import ClosedResourceError as ClosedResourceError
18
+ from ._core._exceptions import ConnectionFailed as ConnectionFailed
19
+ from ._core._exceptions import DelimiterNotFound as DelimiterNotFound
20
+ from ._core._exceptions import EndOfStream as EndOfStream
21
+ from ._core._exceptions import IncompleteRead as IncompleteRead
22
+ from ._core._exceptions import NoEventLoopError as NoEventLoopError
23
+ from ._core._exceptions import RunFinishedError as RunFinishedError
24
+ from ._core._exceptions import TypedAttributeLookupError as TypedAttributeLookupError
25
+ from ._core._exceptions import WouldBlock as WouldBlock
26
+ from ._core._fileio import AsyncFile as AsyncFile
27
+ from ._core._fileio import Path as Path
28
+ from ._core._fileio import open_file as open_file
29
+ from ._core._fileio import wrap_file as wrap_file
30
+ from ._core._resources import aclose_forcefully as aclose_forcefully
31
+ from ._core._signals import open_signal_receiver as open_signal_receiver
32
+ from ._core._sockets import TCPConnectable as TCPConnectable
33
+ from ._core._sockets import UNIXConnectable as UNIXConnectable
34
+ from ._core._sockets import as_connectable as as_connectable
35
+ from ._core._sockets import connect_tcp as connect_tcp
36
+ from ._core._sockets import connect_unix as connect_unix
37
+ from ._core._sockets import create_connected_udp_socket as create_connected_udp_socket
38
+ from ._core._sockets import (
39
+ create_connected_unix_datagram_socket as create_connected_unix_datagram_socket,
40
+ )
41
+ from ._core._sockets import create_tcp_listener as create_tcp_listener
42
+ from ._core._sockets import create_udp_socket as create_udp_socket
43
+ from ._core._sockets import create_unix_datagram_socket as create_unix_datagram_socket
44
+ from ._core._sockets import create_unix_listener as create_unix_listener
45
+ from ._core._sockets import getaddrinfo as getaddrinfo
46
+ from ._core._sockets import getnameinfo as getnameinfo
47
+ from ._core._sockets import notify_closing as notify_closing
48
+ from ._core._sockets import wait_readable as wait_readable
49
+ from ._core._sockets import wait_socket_readable as wait_socket_readable
50
+ from ._core._sockets import wait_socket_writable as wait_socket_writable
51
+ from ._core._sockets import wait_writable as wait_writable
52
+ from ._core._streams import create_memory_object_stream as create_memory_object_stream
53
+ from ._core._subprocesses import open_process as open_process
54
+ from ._core._subprocesses import run_process as run_process
55
+ from ._core._synchronization import CapacityLimiter as CapacityLimiter
56
+ from ._core._synchronization import (
57
+ CapacityLimiterStatistics as CapacityLimiterStatistics,
58
+ )
59
+ from ._core._synchronization import Condition as Condition
60
+ from ._core._synchronization import ConditionStatistics as ConditionStatistics
61
+ from ._core._synchronization import Event as Event
62
+ from ._core._synchronization import EventStatistics as EventStatistics
63
+ from ._core._synchronization import Lock as Lock
64
+ from ._core._synchronization import LockStatistics as LockStatistics
65
+ from ._core._synchronization import ResourceGuard as ResourceGuard
66
+ from ._core._synchronization import Semaphore as Semaphore
67
+ from ._core._synchronization import SemaphoreStatistics as SemaphoreStatistics
68
+ from ._core._tasks import TASK_STATUS_IGNORED as TASK_STATUS_IGNORED
69
+ from ._core._tasks import CancelScope as CancelScope
70
+ from ._core._tasks import create_task_group as create_task_group
71
+ from ._core._tasks import current_effective_deadline as current_effective_deadline
72
+ from ._core._tasks import fail_after as fail_after
73
+ from ._core._tasks import move_on_after as move_on_after
74
+ from ._core._tempfile import NamedTemporaryFile as NamedTemporaryFile
75
+ from ._core._tempfile import SpooledTemporaryFile as SpooledTemporaryFile
76
+ from ._core._tempfile import TemporaryDirectory as TemporaryDirectory
77
+ from ._core._tempfile import TemporaryFile as TemporaryFile
78
+ from ._core._tempfile import gettempdir as gettempdir
79
+ from ._core._tempfile import gettempdirb as gettempdirb
80
+ from ._core._tempfile import mkdtemp as mkdtemp
81
+ from ._core._tempfile import mkstemp as mkstemp
82
+ from ._core._testing import TaskInfo as TaskInfo
83
+ from ._core._testing import get_current_task as get_current_task
84
+ from ._core._testing import get_running_tasks as get_running_tasks
85
+ from ._core._testing import wait_all_tasks_blocked as wait_all_tasks_blocked
86
+ from ._core._typedattr import TypedAttributeProvider as TypedAttributeProvider
87
+ from ._core._typedattr import TypedAttributeSet as TypedAttributeSet
88
+ from ._core._typedattr import typed_attribute as typed_attribute
89
+
90
+ # Re-export imports so they look like they live directly in this package
91
+ for __value in list(locals().values()):
92
+ if getattr(__value, "__module__", "").startswith("anyio."):
93
+ __value.__module__ = __name__
94
+
95
+
96
+ del __value
97
+
98
+
99
+ def __getattr__(attr: str) -> type[BrokenWorkerInterpreter]:
100
+ """Support deprecated aliases."""
101
+ if attr == "BrokenWorkerIntepreter":
102
+ import warnings
103
+
104
+ warnings.warn(
105
+ "The 'BrokenWorkerIntepreter' alias is deprecated, use 'BrokenWorkerInterpreter' instead.",
106
+ DeprecationWarning,
107
+ stacklevel=2,
108
+ )
109
+ return BrokenWorkerInterpreter
110
+
111
+ raise AttributeError(f"module {__name__!r} has no attribute {attr!r}")
venv/lib/python3.12/site-packages/anyio/from_thread.py ADDED
@@ -0,0 +1,578 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ __all__ = (
4
+ "BlockingPortal",
5
+ "BlockingPortalProvider",
6
+ "check_cancelled",
7
+ "run",
8
+ "run_sync",
9
+ "start_blocking_portal",
10
+ )
11
+
12
+ import sys
13
+ from collections.abc import Awaitable, Callable, Generator
14
+ from concurrent.futures import Future
15
+ from contextlib import (
16
+ AbstractAsyncContextManager,
17
+ AbstractContextManager,
18
+ contextmanager,
19
+ )
20
+ from dataclasses import dataclass, field
21
+ from functools import partial
22
+ from inspect import isawaitable
23
+ from threading import Lock, Thread, current_thread, get_ident
24
+ from types import TracebackType
25
+ from typing import (
26
+ Any,
27
+ Generic,
28
+ TypeVar,
29
+ cast,
30
+ overload,
31
+ )
32
+
33
+ from ._core._eventloop import (
34
+ get_cancelled_exc_class,
35
+ threadlocals,
36
+ )
37
+ from ._core._eventloop import run as run_eventloop
38
+ from ._core._exceptions import NoEventLoopError
39
+ from ._core._synchronization import Event
40
+ from ._core._tasks import CancelScope, create_task_group
41
+ from .abc._tasks import TaskStatus
42
+ from .lowlevel import EventLoopToken, current_token
43
+
44
+ if sys.version_info >= (3, 11):
45
+ from typing import TypeVarTuple, Unpack
46
+ else:
47
+ from typing_extensions import TypeVarTuple, Unpack
48
+
49
+ T_Retval = TypeVar("T_Retval")
50
+ T_co = TypeVar("T_co", covariant=True)
51
+ PosArgsT = TypeVarTuple("PosArgsT")
52
+
53
+
54
+ def _token_or_error(token: EventLoopToken | None) -> EventLoopToken:
55
+ if token is not None:
56
+ return token
57
+
58
+ try:
59
+ return threadlocals.current_token
60
+ except AttributeError:
61
+ raise NoEventLoopError(
62
+ "Not running inside an AnyIO worker thread, and no event loop token was "
63
+ "provided"
64
+ ) from None
65
+
66
+
67
+ def run(
68
+ func: Callable[[Unpack[PosArgsT]], Awaitable[T_Retval]],
69
+ *args: Unpack[PosArgsT],
70
+ token: EventLoopToken | None = None,
71
+ ) -> T_Retval:
72
+ """
73
+ Call a coroutine function from a worker thread.
74
+
75
+ :param func: a coroutine function
76
+ :param args: positional arguments for the callable
77
+ :param token: an event loop token to use to get back to the event loop thread
78
+ (required if calling this function from outside an AnyIO worker thread)
79
+ :return: the return value of the coroutine function
80
+ :raises MissingTokenError: if no token was provided and called from outside an
81
+ AnyIO worker thread
82
+ :raises RunFinishedError: if the event loop tied to ``token`` is no longer running
83
+
84
+ .. versionchanged:: 4.11.0
85
+ Added the ``token`` parameter.
86
+
87
+ """
88
+ explicit_token = token is not None
89
+ token = _token_or_error(token)
90
+ return token.backend_class.run_async_from_thread(
91
+ func, args, token=token.native_token if explicit_token else None
92
+ )
93
+
94
+
95
+ def run_sync(
96
+ func: Callable[[Unpack[PosArgsT]], T_Retval],
97
+ *args: Unpack[PosArgsT],
98
+ token: EventLoopToken | None = None,
99
+ ) -> T_Retval:
100
+ """
101
+ Call a function in the event loop thread from a worker thread.
102
+
103
+ :param func: a callable
104
+ :param args: positional arguments for the callable
105
+ :param token: an event loop token to use to get back to the event loop thread
106
+ (required if calling this function from outside an AnyIO worker thread)
107
+ :return: the return value of the callable
108
+ :raises MissingTokenError: if no token was provided and called from outside an
109
+ AnyIO worker thread
110
+ :raises RunFinishedError: if the event loop tied to ``token`` is no longer running
111
+
112
+ .. versionchanged:: 4.11.0
113
+ Added the ``token`` parameter.
114
+
115
+ """
116
+ explicit_token = token is not None
117
+ token = _token_or_error(token)
118
+ return token.backend_class.run_sync_from_thread(
119
+ func, args, token=token.native_token if explicit_token else None
120
+ )
121
+
122
+
123
+ class _BlockingAsyncContextManager(Generic[T_co], AbstractContextManager):
124
+ _enter_future: Future[T_co]
125
+ _exit_future: Future[bool | None]
126
+ _exit_event: Event
127
+ _exit_exc_info: tuple[
128
+ type[BaseException] | None, BaseException | None, TracebackType | None
129
+ ] = (None, None, None)
130
+
131
+ def __init__(
132
+ self, async_cm: AbstractAsyncContextManager[T_co], portal: BlockingPortal
133
+ ):
134
+ self._async_cm = async_cm
135
+ self._portal = portal
136
+
137
+ async def run_async_cm(self) -> bool | None:
138
+ try:
139
+ self._exit_event = Event()
140
+ value = await self._async_cm.__aenter__()
141
+ except BaseException as exc:
142
+ self._enter_future.set_exception(exc)
143
+ raise
144
+ else:
145
+ self._enter_future.set_result(value)
146
+
147
+ try:
148
+ # Wait for the sync context manager to exit.
149
+ # This next statement can raise `get_cancelled_exc_class()` if
150
+ # something went wrong in a task group in this async context
151
+ # manager.
152
+ await self._exit_event.wait()
153
+ finally:
154
+ # In case of cancellation, it could be that we end up here before
155
+ # `_BlockingAsyncContextManager.__exit__` is called, and an
156
+ # `_exit_exc_info` has been set.
157
+ result = await self._async_cm.__aexit__(*self._exit_exc_info)
158
+
159
+ return result
160
+
161
+ def __enter__(self) -> T_co:
162
+ self._enter_future = Future()
163
+ self._exit_future = self._portal.start_task_soon(self.run_async_cm)
164
+ return self._enter_future.result()
165
+
166
+ def __exit__(
167
+ self,
168
+ __exc_type: type[BaseException] | None,
169
+ __exc_value: BaseException | None,
170
+ __traceback: TracebackType | None,
171
+ ) -> bool | None:
172
+ self._exit_exc_info = __exc_type, __exc_value, __traceback
173
+ self._portal.call(self._exit_event.set)
174
+ return self._exit_future.result()
175
+
176
+
177
+ class _BlockingPortalTaskStatus(TaskStatus):
178
+ def __init__(self, future: Future):
179
+ self._future = future
180
+
181
+ def started(self, value: object = None) -> None:
182
+ self._future.set_result(value)
183
+
184
+
185
+ class BlockingPortal:
186
+ """
187
+ An object that lets external threads run code in an asynchronous event loop.
188
+
189
+ :raises NoEventLoopError: if no supported asynchronous event loop is running in the
190
+ current thread
191
+ """
192
+
193
+ def __init__(self) -> None:
194
+ self._token = current_token()
195
+ self._event_loop_thread_id: int | None = get_ident()
196
+ self._stop_event = Event()
197
+ self._task_group = create_task_group()
198
+
199
+ async def __aenter__(self) -> BlockingPortal:
200
+ await self._task_group.__aenter__()
201
+ return self
202
+
203
+ async def __aexit__(
204
+ self,
205
+ exc_type: type[BaseException] | None,
206
+ exc_val: BaseException | None,
207
+ exc_tb: TracebackType | None,
208
+ ) -> bool:
209
+ await self.stop()
210
+ return await self._task_group.__aexit__(exc_type, exc_val, exc_tb)
211
+
212
+ def _check_running(self) -> None:
213
+ if self._event_loop_thread_id is None:
214
+ raise RuntimeError("This portal is not running")
215
+ if self._event_loop_thread_id == get_ident():
216
+ raise RuntimeError(
217
+ "This method cannot be called from the event loop thread"
218
+ )
219
+
220
+ async def sleep_until_stopped(self) -> None:
221
+ """Sleep until :meth:`stop` is called."""
222
+ await self._stop_event.wait()
223
+
224
+ async def stop(self, cancel_remaining: bool = False) -> None:
225
+ """
226
+ Signal the portal to shut down.
227
+
228
+ This marks the portal as no longer accepting new calls and exits from
229
+ :meth:`sleep_until_stopped`.
230
+
231
+ :param cancel_remaining: ``True`` to cancel all the remaining tasks, ``False``
232
+ to let them finish before returning
233
+
234
+ """
235
+ self._event_loop_thread_id = None
236
+ self._stop_event.set()
237
+ if cancel_remaining:
238
+ self._task_group.cancel_scope.cancel("the blocking portal is shutting down")
239
+
240
+ async def _call_func(
241
+ self,
242
+ func: Callable[[Unpack[PosArgsT]], Awaitable[T_Retval] | T_Retval],
243
+ args: tuple[Unpack[PosArgsT]],
244
+ kwargs: dict[str, Any],
245
+ future: Future[T_Retval],
246
+ ) -> None:
247
+ def callback(f: Future[T_Retval]) -> None:
248
+ if f.cancelled():
249
+ if self._event_loop_thread_id == get_ident():
250
+ scope.cancel("the future was cancelled")
251
+ elif self._event_loop_thread_id is not None:
252
+ self.call(scope.cancel, "the future was cancelled")
253
+
254
+ try:
255
+ retval_or_awaitable = func(*args, **kwargs)
256
+ if isawaitable(retval_or_awaitable):
257
+ with CancelScope() as scope:
258
+ future.add_done_callback(callback)
259
+ retval = await retval_or_awaitable
260
+ else:
261
+ retval = retval_or_awaitable
262
+ except get_cancelled_exc_class():
263
+ future.cancel()
264
+ future.set_running_or_notify_cancel()
265
+ except BaseException as exc:
266
+ if not future.cancelled():
267
+ future.set_exception(exc)
268
+
269
+ # Let base exceptions fall through
270
+ if not isinstance(exc, Exception):
271
+ raise
272
+ else:
273
+ if not future.cancelled():
274
+ future.set_result(retval)
275
+ finally:
276
+ scope = None # type: ignore[assignment]
277
+
278
+ def _spawn_task_from_thread(
279
+ self,
280
+ func: Callable[[Unpack[PosArgsT]], Awaitable[T_Retval] | T_Retval],
281
+ args: tuple[Unpack[PosArgsT]],
282
+ kwargs: dict[str, Any],
283
+ name: object,
284
+ future: Future[T_Retval],
285
+ ) -> None:
286
+ """
287
+ Spawn a new task using the given callable.
288
+
289
+ :param func: a callable
290
+ :param args: positional arguments to be passed to the callable
291
+ :param kwargs: keyword arguments to be passed to the callable
292
+ :param name: name of the task (will be coerced to a string if not ``None``)
293
+ :param future: a future that will resolve to the return value of the callable,
294
+ or the exception raised during its execution
295
+
296
+ """
297
+ run_sync(
298
+ partial(self._task_group.start_soon, name=name),
299
+ self._call_func,
300
+ func,
301
+ args,
302
+ kwargs,
303
+ future,
304
+ token=self._token,
305
+ )
306
+
307
+ @overload
308
+ def call(
309
+ self,
310
+ func: Callable[[Unpack[PosArgsT]], Awaitable[T_Retval]],
311
+ *args: Unpack[PosArgsT],
312
+ ) -> T_Retval: ...
313
+
314
+ @overload
315
+ def call(
316
+ self, func: Callable[[Unpack[PosArgsT]], T_Retval], *args: Unpack[PosArgsT]
317
+ ) -> T_Retval: ...
318
+
319
+ def call(
320
+ self,
321
+ func: Callable[[Unpack[PosArgsT]], Awaitable[T_Retval] | T_Retval],
322
+ *args: Unpack[PosArgsT],
323
+ ) -> T_Retval:
324
+ """
325
+ Call the given function in the event loop thread.
326
+
327
+ If the callable returns a coroutine object, it is awaited on.
328
+
329
+ :param func: any callable
330
+ :raises RuntimeError: if the portal is not running or if this method is called
331
+ from within the event loop thread
332
+
333
+ """
334
+ return cast(T_Retval, self.start_task_soon(func, *args).result())
335
+
336
+ @overload
337
+ def start_task_soon(
338
+ self,
339
+ func: Callable[[Unpack[PosArgsT]], Awaitable[T_Retval]],
340
+ *args: Unpack[PosArgsT],
341
+ name: object = None,
342
+ ) -> Future[T_Retval]: ...
343
+
344
+ @overload
345
+ def start_task_soon(
346
+ self,
347
+ func: Callable[[Unpack[PosArgsT]], T_Retval],
348
+ *args: Unpack[PosArgsT],
349
+ name: object = None,
350
+ ) -> Future[T_Retval]: ...
351
+
352
+ def start_task_soon(
353
+ self,
354
+ func: Callable[[Unpack[PosArgsT]], Awaitable[T_Retval] | T_Retval],
355
+ *args: Unpack[PosArgsT],
356
+ name: object = None,
357
+ ) -> Future[T_Retval]:
358
+ """
359
+ Start a task in the portal's task group.
360
+
361
+ The task will be run inside a cancel scope which can be cancelled by cancelling
362
+ the returned future.
363
+
364
+ :param func: the target function
365
+ :param args: positional arguments passed to ``func``
366
+ :param name: name of the task (will be coerced to a string if not ``None``)
367
+ :return: a future that resolves with the return value of the callable if the
368
+ task completes successfully, or with the exception raised in the task
369
+ :raises RuntimeError: if the portal is not running or if this method is called
370
+ from within the event loop thread
371
+ :rtype: concurrent.futures.Future[T_Retval]
372
+
373
+ .. versionadded:: 3.0
374
+
375
+ """
376
+ self._check_running()
377
+ f: Future[T_Retval] = Future()
378
+ self._spawn_task_from_thread(func, args, {}, name, f)
379
+ return f
380
+
381
+ def start_task(
382
+ self,
383
+ func: Callable[..., Awaitable[T_Retval]],
384
+ *args: object,
385
+ name: object = None,
386
+ ) -> tuple[Future[T_Retval], Any]:
387
+ """
388
+ Start a task in the portal's task group and wait until it signals for readiness.
389
+
390
+ This method works the same way as :meth:`.abc.TaskGroup.start`.
391
+
392
+ :param func: the target function
393
+ :param args: positional arguments passed to ``func``
394
+ :param name: name of the task (will be coerced to a string if not ``None``)
395
+ :return: a tuple of (future, task_status_value) where the ``task_status_value``
396
+ is the value passed to ``task_status.started()`` from within the target
397
+ function
398
+ :rtype: tuple[concurrent.futures.Future[T_Retval], Any]
399
+
400
+ .. versionadded:: 3.0
401
+
402
+ """
403
+
404
+ def task_done(future: Future[T_Retval]) -> None:
405
+ if not task_status_future.done():
406
+ if future.cancelled():
407
+ task_status_future.cancel()
408
+ elif future.exception():
409
+ task_status_future.set_exception(future.exception())
410
+ else:
411
+ exc = RuntimeError(
412
+ "Task exited without calling task_status.started()"
413
+ )
414
+ task_status_future.set_exception(exc)
415
+
416
+ self._check_running()
417
+ task_status_future: Future = Future()
418
+ task_status = _BlockingPortalTaskStatus(task_status_future)
419
+ f: Future = Future()
420
+ f.add_done_callback(task_done)
421
+ self._spawn_task_from_thread(func, args, {"task_status": task_status}, name, f)
422
+ return f, task_status_future.result()
423
+
424
+ def wrap_async_context_manager(
425
+ self, cm: AbstractAsyncContextManager[T_co]
426
+ ) -> AbstractContextManager[T_co]:
427
+ """
428
+ Wrap an async context manager as a synchronous context manager via this portal.
429
+
430
+ Spawns a task that will call both ``__aenter__()`` and ``__aexit__()``, stopping
431
+ in the middle until the synchronous context manager exits.
432
+
433
+ :param cm: an asynchronous context manager
434
+ :return: a synchronous context manager
435
+
436
+ .. versionadded:: 2.1
437
+
438
+ """
439
+ return _BlockingAsyncContextManager(cm, self)
440
+
441
+
442
+ @dataclass
443
+ class BlockingPortalProvider:
444
+ """
445
+ A manager for a blocking portal. Used as a context manager. The first thread to
446
+ enter this context manager causes a blocking portal to be started with the specific
447
+ parameters, and the last thread to exit causes the portal to be shut down. Thus,
448
+ there will be exactly one blocking portal running in this context as long as at
449
+ least one thread has entered this context manager.
450
+
451
+ The parameters are the same as for :func:`~anyio.run`.
452
+
453
+ :param backend: name of the backend
454
+ :param backend_options: backend options
455
+
456
+ .. versionadded:: 4.4
457
+ """
458
+
459
+ backend: str = "asyncio"
460
+ backend_options: dict[str, Any] | None = None
461
+ _lock: Lock = field(init=False, default_factory=Lock)
462
+ _leases: int = field(init=False, default=0)
463
+ _portal: BlockingPortal = field(init=False)
464
+ _portal_cm: AbstractContextManager[BlockingPortal] | None = field(
465
+ init=False, default=None
466
+ )
467
+
468
+ def __enter__(self) -> BlockingPortal:
469
+ with self._lock:
470
+ if self._portal_cm is None:
471
+ self._portal_cm = start_blocking_portal(
472
+ self.backend, self.backend_options
473
+ )
474
+ self._portal = self._portal_cm.__enter__()
475
+
476
+ self._leases += 1
477
+ return self._portal
478
+
479
+ def __exit__(
480
+ self,
481
+ exc_type: type[BaseException] | None,
482
+ exc_val: BaseException | None,
483
+ exc_tb: TracebackType | None,
484
+ ) -> None:
485
+ portal_cm: AbstractContextManager[BlockingPortal] | None = None
486
+ with self._lock:
487
+ assert self._portal_cm
488
+ assert self._leases > 0
489
+ self._leases -= 1
490
+ if not self._leases:
491
+ portal_cm = self._portal_cm
492
+ self._portal_cm = None
493
+ del self._portal
494
+
495
+ if portal_cm:
496
+ portal_cm.__exit__(None, None, None)
497
+
498
+
499
+ @contextmanager
500
+ def start_blocking_portal(
501
+ backend: str = "asyncio",
502
+ backend_options: dict[str, Any] | None = None,
503
+ *,
504
+ name: str | None = None,
505
+ ) -> Generator[BlockingPortal, Any, None]:
506
+ """
507
+ Start a new event loop in a new thread and run a blocking portal in its main task.
508
+
509
+ The parameters are the same as for :func:`~anyio.run`.
510
+
511
+ :param backend: name of the backend
512
+ :param backend_options: backend options
513
+ :param name: name of the thread
514
+ :return: a context manager that yields a blocking portal
515
+
516
+ .. versionchanged:: 3.0
517
+ Usage as a context manager is now required.
518
+
519
+ """
520
+
521
+ async def run_portal() -> None:
522
+ async with BlockingPortal() as portal_:
523
+ if name is None:
524
+ current_thread().name = f"{backend}-portal-{id(portal_):x}"
525
+
526
+ future.set_result(portal_)
527
+ await portal_.sleep_until_stopped()
528
+
529
+ def run_blocking_portal() -> None:
530
+ if future.set_running_or_notify_cancel():
531
+ try:
532
+ run_eventloop(
533
+ run_portal, backend=backend, backend_options=backend_options
534
+ )
535
+ except BaseException as exc:
536
+ if not future.done():
537
+ future.set_exception(exc)
538
+
539
+ future: Future[BlockingPortal] = Future()
540
+ thread = Thread(target=run_blocking_portal, daemon=True, name=name)
541
+ thread.start()
542
+ try:
543
+ cancel_remaining_tasks = False
544
+ portal = future.result()
545
+ try:
546
+ yield portal
547
+ except BaseException:
548
+ cancel_remaining_tasks = True
549
+ raise
550
+ finally:
551
+ try:
552
+ portal.call(portal.stop, cancel_remaining_tasks)
553
+ except RuntimeError:
554
+ pass
555
+ finally:
556
+ thread.join()
557
+
558
+
559
+ def check_cancelled() -> None:
560
+ """
561
+ Check if the cancel scope of the host task's running the current worker thread has
562
+ been cancelled.
563
+
564
+ If the host task's current cancel scope has indeed been cancelled, the
565
+ backend-specific cancellation exception will be raised.
566
+
567
+ :raises RuntimeError: if the current thread was not spawned by
568
+ :func:`.to_thread.run_sync`
569
+
570
+ """
571
+ try:
572
+ token: EventLoopToken = threadlocals.current_token
573
+ except AttributeError:
574
+ raise NoEventLoopError(
575
+ "This function can only be called inside an AnyIO worker thread"
576
+ ) from None
577
+
578
+ token.backend_class.check_cancelled()
venv/lib/python3.12/site-packages/anyio/functools.py ADDED
@@ -0,0 +1,409 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ __all__ = (
4
+ "AsyncCacheInfo",
5
+ "AsyncCacheParameters",
6
+ "AsyncLRUCacheWrapper",
7
+ "cache",
8
+ "lru_cache",
9
+ "reduce",
10
+ )
11
+
12
+ import functools
13
+ import sys
14
+ from collections import OrderedDict
15
+ from collections.abc import (
16
+ AsyncIterable,
17
+ Awaitable,
18
+ Callable,
19
+ Coroutine,
20
+ Hashable,
21
+ Iterable,
22
+ )
23
+ from functools import update_wrapper
24
+ from inspect import iscoroutinefunction
25
+ from typing import (
26
+ Any,
27
+ Generic,
28
+ NamedTuple,
29
+ TypedDict,
30
+ TypeVar,
31
+ cast,
32
+ final,
33
+ overload,
34
+ )
35
+ from weakref import WeakKeyDictionary
36
+
37
+ from ._core._eventloop import current_time
38
+ from ._core._synchronization import Lock
39
+ from .lowlevel import RunVar, checkpoint
40
+
41
+ if sys.version_info >= (3, 11):
42
+ from typing import ParamSpec
43
+ else:
44
+ from typing_extensions import ParamSpec
45
+
46
+ T = TypeVar("T")
47
+ S = TypeVar("S")
48
+ P = ParamSpec("P")
49
+ lru_cache_items: RunVar[
50
+ WeakKeyDictionary[
51
+ AsyncLRUCacheWrapper[Any, Any],
52
+ OrderedDict[
53
+ Hashable,
54
+ tuple[_InitialMissingType, Lock, float | None]
55
+ | tuple[Any, None, float | None],
56
+ ],
57
+ ]
58
+ ] = RunVar("lru_cache_items")
59
+
60
+
61
+ class _InitialMissingType:
62
+ pass
63
+
64
+
65
+ initial_missing: _InitialMissingType = _InitialMissingType()
66
+
67
+
68
+ class AsyncCacheInfo(NamedTuple):
69
+ hits: int
70
+ misses: int
71
+ maxsize: int | None
72
+ currsize: int
73
+ ttl: int | None
74
+
75
+
76
+ class AsyncCacheParameters(TypedDict):
77
+ maxsize: int | None
78
+ typed: bool
79
+ always_checkpoint: bool
80
+ ttl: int | None
81
+
82
+
83
+ class _LRUMethodWrapper(Generic[T]):
84
+ def __init__(self, wrapper: AsyncLRUCacheWrapper[..., T], instance: object):
85
+ self.__wrapper = wrapper
86
+ self.__instance = instance
87
+
88
+ def cache_info(self) -> AsyncCacheInfo:
89
+ return self.__wrapper.cache_info()
90
+
91
+ def cache_parameters(self) -> AsyncCacheParameters:
92
+ return self.__wrapper.cache_parameters()
93
+
94
+ def cache_clear(self) -> None:
95
+ self.__wrapper.cache_clear()
96
+
97
+ async def __call__(self, *args: Any, **kwargs: Any) -> T:
98
+ if self.__instance is None:
99
+ return await self.__wrapper(*args, **kwargs)
100
+
101
+ return await self.__wrapper(self.__instance, *args, **kwargs)
102
+
103
+
104
+ @final
105
+ class AsyncLRUCacheWrapper(Generic[P, T]):
106
+ def __init__(
107
+ self,
108
+ func: Callable[P, Awaitable[T]],
109
+ maxsize: int | None,
110
+ typed: bool,
111
+ always_checkpoint: bool,
112
+ ttl: int | None,
113
+ ):
114
+ self.__wrapped__ = func
115
+ self._hits: int = 0
116
+ self._misses: int = 0
117
+ self._maxsize = max(maxsize, 0) if maxsize is not None else None
118
+ self._currsize: int = 0
119
+ self._typed = typed
120
+ self._always_checkpoint = always_checkpoint
121
+ self._ttl = ttl
122
+ update_wrapper(self, func)
123
+
124
+ def cache_info(self) -> AsyncCacheInfo:
125
+ return AsyncCacheInfo(
126
+ self._hits, self._misses, self._maxsize, self._currsize, self._ttl
127
+ )
128
+
129
+ def cache_parameters(self) -> AsyncCacheParameters:
130
+ return {
131
+ "maxsize": self._maxsize,
132
+ "typed": self._typed,
133
+ "always_checkpoint": self._always_checkpoint,
134
+ "ttl": self._ttl,
135
+ }
136
+
137
+ def cache_clear(self) -> None:
138
+ if cache := lru_cache_items.get(None):
139
+ cache.pop(self, None)
140
+ self._hits = self._misses = self._currsize = 0
141
+
142
+ async def __call__(self, *args: P.args, **kwargs: P.kwargs) -> T:
143
+ # Easy case first: if maxsize == 0, no caching is done
144
+ if self._maxsize == 0:
145
+ value = await self.__wrapped__(*args, **kwargs)
146
+ self._misses += 1
147
+ return value
148
+
149
+ # The key is constructed as a flat tuple to avoid memory overhead
150
+ key: tuple[Any, ...] = args
151
+ if kwargs:
152
+ # initial_missing is used as a separator
153
+ key += (initial_missing,) + sum(kwargs.items(), ())
154
+
155
+ if self._typed:
156
+ key += tuple(type(arg) for arg in args)
157
+ if kwargs:
158
+ key += (initial_missing,) + tuple(type(val) for val in kwargs.values())
159
+
160
+ try:
161
+ cache = lru_cache_items.get()
162
+ except LookupError:
163
+ cache = WeakKeyDictionary()
164
+ lru_cache_items.set(cache)
165
+
166
+ try:
167
+ cache_entry = cache[self]
168
+ except KeyError:
169
+ cache_entry = cache[self] = OrderedDict()
170
+
171
+ cached_value: T | _InitialMissingType
172
+ try:
173
+ cached_value, lock, expires_at = cache_entry[key]
174
+ except KeyError:
175
+ # We're the first task to call this function
176
+ cached_value, lock, expires_at = (
177
+ initial_missing,
178
+ Lock(fast_acquire=not self._always_checkpoint),
179
+ None,
180
+ )
181
+ cache_entry[key] = cached_value, lock, expires_at
182
+
183
+ if lock is None:
184
+ if expires_at is not None and current_time() >= expires_at:
185
+ self._currsize -= 1
186
+ cached_value, lock, expires_at = (
187
+ initial_missing,
188
+ Lock(fast_acquire=not self._always_checkpoint),
189
+ None,
190
+ )
191
+ cache_entry[key] = cached_value, lock, expires_at
192
+ else:
193
+ # The value was already cached
194
+ self._hits += 1
195
+ cache_entry.move_to_end(key)
196
+ if self._always_checkpoint:
197
+ await checkpoint()
198
+
199
+ return cast(T, cached_value)
200
+
201
+ async with lock:
202
+ # Check if another task filled the cache while we acquired the lock
203
+ if (cached_value := cache_entry[key][0]) is initial_missing:
204
+ self._misses += 1
205
+ if self._maxsize is not None and self._currsize >= self._maxsize:
206
+ cache_entry.popitem(last=False)
207
+ else:
208
+ self._currsize += 1
209
+
210
+ value = await self.__wrapped__(*args, **kwargs)
211
+ expires_at = (
212
+ current_time() + self._ttl if self._ttl is not None else None
213
+ )
214
+ cache_entry[key] = value, None, expires_at
215
+ else:
216
+ # Another task filled the cache while we were waiting for the lock
217
+ self._hits += 1
218
+ cache_entry.move_to_end(key)
219
+ value = cast(T, cached_value)
220
+
221
+ return value
222
+
223
+ def __get__(
224
+ self, instance: object, owner: type | None = None
225
+ ) -> _LRUMethodWrapper[T]:
226
+ wrapper = _LRUMethodWrapper(self, instance)
227
+ update_wrapper(wrapper, self.__wrapped__)
228
+ return wrapper
229
+
230
+
231
+ class _LRUCacheWrapper(Generic[T]):
232
+ def __init__(
233
+ self, maxsize: int | None, typed: bool, always_checkpoint: bool, ttl: int | None
234
+ ):
235
+ self._maxsize = maxsize
236
+ self._typed = typed
237
+ self._always_checkpoint = always_checkpoint
238
+ self._ttl = ttl
239
+
240
+ @overload
241
+ def __call__( # type: ignore[overload-overlap]
242
+ self, func: Callable[P, Coroutine[Any, Any, T]], /
243
+ ) -> AsyncLRUCacheWrapper[P, T]: ...
244
+
245
+ @overload
246
+ def __call__(
247
+ self, func: Callable[..., T], /
248
+ ) -> functools._lru_cache_wrapper[T]: ...
249
+
250
+ def __call__(
251
+ self, f: Callable[P, Coroutine[Any, Any, T]] | Callable[..., T], /
252
+ ) -> AsyncLRUCacheWrapper[P, T] | functools._lru_cache_wrapper[T]:
253
+ if iscoroutinefunction(f):
254
+ return AsyncLRUCacheWrapper(
255
+ f, self._maxsize, self._typed, self._always_checkpoint, self._ttl
256
+ )
257
+
258
+ return functools.lru_cache(maxsize=self._maxsize, typed=self._typed)(f) # type: ignore[arg-type]
259
+
260
+
261
+ @overload
262
+ def cache( # type: ignore[overload-overlap]
263
+ func: Callable[P, Coroutine[Any, Any, T]], /
264
+ ) -> AsyncLRUCacheWrapper[P, T]: ...
265
+
266
+
267
+ @overload
268
+ def cache(func: Callable[..., T], /) -> functools._lru_cache_wrapper[T]: ...
269
+
270
+
271
+ def cache(
272
+ func: Callable[..., T] | Callable[P, Coroutine[Any, Any, T]], /
273
+ ) -> AsyncLRUCacheWrapper[P, T] | functools._lru_cache_wrapper[T]:
274
+ """
275
+ A convenient shortcut for :func:`lru_cache` with ``maxsize=None``.
276
+
277
+ This is the asynchronous equivalent to :func:`functools.cache`.
278
+
279
+ """
280
+ return lru_cache(maxsize=None)(func)
281
+
282
+
283
+ @overload
284
+ def lru_cache(
285
+ *,
286
+ maxsize: int | None = ...,
287
+ typed: bool = ...,
288
+ always_checkpoint: bool = ...,
289
+ ttl: int | None = ...,
290
+ ) -> _LRUCacheWrapper[Any]: ...
291
+
292
+
293
+ @overload
294
+ def lru_cache( # type: ignore[overload-overlap]
295
+ func: Callable[P, Coroutine[Any, Any, T]], /
296
+ ) -> AsyncLRUCacheWrapper[P, T]: ...
297
+
298
+
299
+ @overload
300
+ def lru_cache(func: Callable[..., T], /) -> functools._lru_cache_wrapper[T]: ...
301
+
302
+
303
+ def lru_cache(
304
+ func: Callable[P, Coroutine[Any, Any, T]] | Callable[..., T] | None = None,
305
+ /,
306
+ *,
307
+ maxsize: int | None = 128,
308
+ typed: bool = False,
309
+ always_checkpoint: bool = False,
310
+ ttl: int | None = None,
311
+ ) -> (
312
+ AsyncLRUCacheWrapper[P, T] | functools._lru_cache_wrapper[T] | _LRUCacheWrapper[Any]
313
+ ):
314
+ """
315
+ An asynchronous version of :func:`functools.lru_cache`.
316
+
317
+ If a synchronous function is passed, the standard library
318
+ :func:`functools.lru_cache` is applied instead.
319
+
320
+ :param always_checkpoint: if ``True``, every call to the cached function will be
321
+ guaranteed to yield control to the event loop at least once
322
+ :param ttl: time in seconds after which to invalidate cache entries
323
+
324
+ .. note:: Caches and locks are managed on a per-event loop basis.
325
+
326
+ """
327
+ if func is None:
328
+ return _LRUCacheWrapper[Any](maxsize, typed, always_checkpoint, ttl)
329
+
330
+ if not callable(func):
331
+ raise TypeError("the first argument must be callable")
332
+
333
+ return _LRUCacheWrapper[T](maxsize, typed, always_checkpoint, ttl)(func)
334
+
335
+
336
+ @overload
337
+ async def reduce(
338
+ function: Callable[[T, S], Awaitable[T]],
339
+ iterable: Iterable[S] | AsyncIterable[S],
340
+ /,
341
+ initial: T,
342
+ ) -> T: ...
343
+
344
+
345
+ @overload
346
+ async def reduce(
347
+ function: Callable[[T, T], Awaitable[T]],
348
+ iterable: Iterable[T] | AsyncIterable[T],
349
+ /,
350
+ ) -> T: ...
351
+
352
+
353
+ async def reduce( # type: ignore[misc]
354
+ function: Callable[[T, T], Awaitable[T]] | Callable[[T, S], Awaitable[T]],
355
+ iterable: Iterable[T] | Iterable[S] | AsyncIterable[T] | AsyncIterable[S],
356
+ /,
357
+ initial: T | _InitialMissingType = initial_missing,
358
+ ) -> T:
359
+ """
360
+ Asynchronous version of :func:`functools.reduce`.
361
+
362
+ :param function: a coroutine function that takes two arguments: the accumulated
363
+ value and the next element from the iterable
364
+ :param iterable: an iterable or async iterable
365
+ :param initial: the initial value (if missing, the first element of the iterable is
366
+ used as the initial value)
367
+
368
+ """
369
+ element: Any
370
+ function_called = False
371
+ if isinstance(iterable, AsyncIterable):
372
+ async_it = iterable.__aiter__()
373
+ if initial is initial_missing:
374
+ try:
375
+ value = cast(T, await async_it.__anext__())
376
+ except StopAsyncIteration:
377
+ raise TypeError(
378
+ "reduce() of empty sequence with no initial value"
379
+ ) from None
380
+ else:
381
+ value = cast(T, initial)
382
+
383
+ async for element in async_it:
384
+ value = await function(value, element)
385
+ function_called = True
386
+ elif isinstance(iterable, Iterable):
387
+ it = iter(iterable)
388
+ if initial is initial_missing:
389
+ try:
390
+ value = cast(T, next(it))
391
+ except StopIteration:
392
+ raise TypeError(
393
+ "reduce() of empty sequence with no initial value"
394
+ ) from None
395
+ else:
396
+ value = cast(T, initial)
397
+
398
+ for element in it:
399
+ value = await function(value, element)
400
+ function_called = True
401
+ else:
402
+ raise TypeError("reduce() argument 2 must be an iterable or async iterable")
403
+
404
+ # Make sure there is at least one checkpoint, even if an empty iterable and an
405
+ # initial value were given
406
+ if not function_called:
407
+ await checkpoint()
408
+
409
+ return value
venv/lib/python3.12/site-packages/anyio/lowlevel.py ADDED
@@ -0,0 +1,196 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ __all__ = (
4
+ "EventLoopToken",
5
+ "RunvarToken",
6
+ "RunVar",
7
+ "checkpoint",
8
+ "checkpoint_if_cancelled",
9
+ "cancel_shielded_checkpoint",
10
+ "current_token",
11
+ )
12
+
13
+ import enum
14
+ from dataclasses import dataclass
15
+ from types import TracebackType
16
+ from typing import Any, Generic, Literal, TypeVar, final, overload
17
+ from weakref import WeakKeyDictionary
18
+
19
+ from ._core._eventloop import get_async_backend
20
+ from .abc import AsyncBackend
21
+
22
+ T = TypeVar("T")
23
+ D = TypeVar("D")
24
+
25
+
26
+ async def checkpoint() -> None:
27
+ """
28
+ Check for cancellation and allow the scheduler to switch to another task.
29
+
30
+ Equivalent to (but more efficient than)::
31
+
32
+ await checkpoint_if_cancelled()
33
+ await cancel_shielded_checkpoint()
34
+
35
+ .. versionadded:: 3.0
36
+
37
+ """
38
+ await get_async_backend().checkpoint()
39
+
40
+
41
+ async def checkpoint_if_cancelled() -> None:
42
+ """
43
+ Enter a checkpoint if the enclosing cancel scope has been cancelled.
44
+
45
+ This does not allow the scheduler to switch to a different task.
46
+
47
+ .. versionadded:: 3.0
48
+
49
+ """
50
+ await get_async_backend().checkpoint_if_cancelled()
51
+
52
+
53
+ async def cancel_shielded_checkpoint() -> None:
54
+ """
55
+ Allow the scheduler to switch to another task but without checking for cancellation.
56
+
57
+ Equivalent to (but potentially more efficient than)::
58
+
59
+ with CancelScope(shield=True):
60
+ await checkpoint()
61
+
62
+ .. versionadded:: 3.0
63
+
64
+ """
65
+ await get_async_backend().cancel_shielded_checkpoint()
66
+
67
+
68
+ @final
69
+ @dataclass(frozen=True, repr=False)
70
+ class EventLoopToken:
71
+ """
72
+ An opaque object that holds a reference to an event loop.
73
+
74
+ .. versionadded:: 4.11.0
75
+ """
76
+
77
+ backend_class: type[AsyncBackend]
78
+ native_token: object
79
+
80
+
81
+ def current_token() -> EventLoopToken:
82
+ """
83
+ Return a token object that can be used to call code in the current event loop from
84
+ another thread.
85
+
86
+ :raises NoEventLoopError: if no supported asynchronous event loop is running in the
87
+ current thread
88
+
89
+ .. versionadded:: 4.11.0
90
+
91
+ """
92
+ backend_class = get_async_backend()
93
+ raw_token = backend_class.current_token()
94
+ return EventLoopToken(backend_class, raw_token)
95
+
96
+
97
+ _run_vars: WeakKeyDictionary[object, dict[RunVar[Any], Any]] = WeakKeyDictionary()
98
+
99
+
100
+ class _NoValueSet(enum.Enum):
101
+ NO_VALUE_SET = enum.auto()
102
+
103
+
104
+ class RunvarToken(Generic[T]):
105
+ __slots__ = "_var", "_value", "_redeemed"
106
+
107
+ def __init__(self, var: RunVar[T], value: T | Literal[_NoValueSet.NO_VALUE_SET]):
108
+ self._var = var
109
+ self._value: T | Literal[_NoValueSet.NO_VALUE_SET] = value
110
+ self._redeemed = False
111
+
112
+ def __enter__(self) -> RunvarToken[T]:
113
+ return self
114
+
115
+ def __exit__(
116
+ self,
117
+ exc_type: type[BaseException] | None,
118
+ exc_val: BaseException | None,
119
+ exc_tb: TracebackType | None,
120
+ ) -> None:
121
+ self._var.reset(self)
122
+
123
+
124
+ class RunVar(Generic[T]):
125
+ """
126
+ Like a :class:`~contextvars.ContextVar`, except scoped to the running event loop.
127
+
128
+ Can be used as a context manager, Just like :class:`~contextvars.ContextVar`, that
129
+ will reset the variable to its previous value when the context block is exited.
130
+ """
131
+
132
+ __slots__ = "_name", "_default"
133
+
134
+ NO_VALUE_SET: Literal[_NoValueSet.NO_VALUE_SET] = _NoValueSet.NO_VALUE_SET
135
+
136
+ def __init__(
137
+ self, name: str, default: T | Literal[_NoValueSet.NO_VALUE_SET] = NO_VALUE_SET
138
+ ):
139
+ self._name = name
140
+ self._default = default
141
+
142
+ @property
143
+ def _current_vars(self) -> dict[RunVar[T], T]:
144
+ native_token = current_token().native_token
145
+ try:
146
+ return _run_vars[native_token]
147
+ except KeyError:
148
+ run_vars = _run_vars[native_token] = {}
149
+ return run_vars
150
+
151
+ @overload
152
+ def get(self, default: D) -> T | D: ...
153
+
154
+ @overload
155
+ def get(self) -> T: ...
156
+
157
+ def get(
158
+ self, default: D | Literal[_NoValueSet.NO_VALUE_SET] = NO_VALUE_SET
159
+ ) -> T | D:
160
+ try:
161
+ return self._current_vars[self]
162
+ except KeyError:
163
+ if default is not RunVar.NO_VALUE_SET:
164
+ return default
165
+ elif self._default is not RunVar.NO_VALUE_SET:
166
+ return self._default
167
+
168
+ raise LookupError(
169
+ f'Run variable "{self._name}" has no value and no default set'
170
+ )
171
+
172
+ def set(self, value: T) -> RunvarToken[T]:
173
+ current_vars = self._current_vars
174
+ token = RunvarToken(self, current_vars.get(self, RunVar.NO_VALUE_SET))
175
+ current_vars[self] = value
176
+ return token
177
+
178
+ def reset(self, token: RunvarToken[T]) -> None:
179
+ if token._var is not self:
180
+ raise ValueError("This token does not belong to this RunVar")
181
+
182
+ if token._redeemed:
183
+ raise ValueError("This token has already been used")
184
+
185
+ if token._value is _NoValueSet.NO_VALUE_SET:
186
+ try:
187
+ del self._current_vars[self]
188
+ except KeyError:
189
+ pass
190
+ else:
191
+ self._current_vars[self] = token._value
192
+
193
+ token._redeemed = True
194
+
195
+ def __repr__(self) -> str:
196
+ return f"<RunVar name={self._name!r}>"
venv/lib/python3.12/site-packages/anyio/py.typed ADDED
File without changes
venv/lib/python3.12/site-packages/anyio/pytest_plugin.py ADDED
@@ -0,0 +1,363 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ import dataclasses
4
+ import socket
5
+ import sys
6
+ from collections.abc import Callable, Generator, Iterator
7
+ from contextlib import ExitStack, contextmanager
8
+ from inspect import isasyncgenfunction, iscoroutinefunction, ismethod
9
+ from typing import Any, cast
10
+
11
+ import pytest
12
+ from _pytest.fixtures import FuncFixtureInfo, SubRequest
13
+ from _pytest.outcomes import Exit
14
+ from _pytest.python import CallSpec2
15
+ from _pytest.scope import Scope
16
+
17
+ from . import get_available_backends
18
+ from ._core._eventloop import (
19
+ current_async_library,
20
+ get_async_backend,
21
+ reset_current_async_library,
22
+ set_current_async_library,
23
+ )
24
+ from ._core._exceptions import iterate_exceptions
25
+ from .abc import TestRunner
26
+
27
+ if sys.version_info < (3, 11):
28
+ from exceptiongroup import ExceptionGroup
29
+
30
+ _current_runner: TestRunner | None = None
31
+ _runner_stack: ExitStack | None = None
32
+ _runner_leases = 0
33
+
34
+
35
+ def extract_backend_and_options(backend: object) -> tuple[str, dict[str, Any]]:
36
+ if isinstance(backend, str):
37
+ return backend, {}
38
+ elif isinstance(backend, tuple) and len(backend) == 2:
39
+ if isinstance(backend[0], str) and isinstance(backend[1], dict):
40
+ return cast(tuple[str, dict[str, Any]], backend)
41
+
42
+ raise TypeError("anyio_backend must be either a string or tuple of (string, dict)")
43
+
44
+
45
+ @contextmanager
46
+ def get_runner(
47
+ backend_name: str, backend_options: dict[str, Any]
48
+ ) -> Iterator[TestRunner]:
49
+ global _current_runner, _runner_leases, _runner_stack
50
+ if _current_runner is None:
51
+ asynclib = get_async_backend(backend_name)
52
+ _runner_stack = ExitStack()
53
+ if current_async_library() is None:
54
+ # Since we're in control of the event loop, we can cache the name of the
55
+ # async library
56
+ token = set_current_async_library(backend_name)
57
+ _runner_stack.callback(reset_current_async_library, token)
58
+
59
+ backend_options = backend_options or {}
60
+ _current_runner = _runner_stack.enter_context(
61
+ asynclib.create_test_runner(backend_options)
62
+ )
63
+
64
+ _runner_leases += 1
65
+ try:
66
+ yield _current_runner
67
+ finally:
68
+ _runner_leases -= 1
69
+ if not _runner_leases:
70
+ assert _runner_stack is not None
71
+ _runner_stack.close()
72
+ _runner_stack = _current_runner = None
73
+
74
+
75
+ def pytest_addoption(parser: pytest.Parser) -> None:
76
+ parser.addini(
77
+ "anyio_mode",
78
+ default="strict",
79
+ help='AnyIO plugin mode (either "strict" or "auto")',
80
+ )
81
+
82
+
83
+ def pytest_configure(config: pytest.Config) -> None:
84
+ config.addinivalue_line(
85
+ "markers",
86
+ "anyio: mark the (coroutine function) test to be run asynchronously via anyio.",
87
+ )
88
+ if (
89
+ config.getini("anyio_mode") == "auto"
90
+ and config.pluginmanager.has_plugin("asyncio")
91
+ and config.getini("asyncio_mode") == "auto"
92
+ ):
93
+ config.issue_config_time_warning(
94
+ pytest.PytestConfigWarning(
95
+ "AnyIO auto mode has been enabled together with pytest-asyncio auto "
96
+ "mode. This may cause unexpected behavior."
97
+ ),
98
+ 1,
99
+ )
100
+
101
+
102
+ @pytest.hookimpl(hookwrapper=True)
103
+ def pytest_fixture_setup(fixturedef: Any, request: Any) -> Generator[Any]:
104
+ def wrapper(anyio_backend: Any, request: SubRequest, **kwargs: Any) -> Any:
105
+ # Rebind any fixture methods to the request instance
106
+ if (
107
+ request.instance
108
+ and ismethod(func)
109
+ and type(func.__self__) is type(request.instance)
110
+ ):
111
+ local_func = func.__func__.__get__(request.instance)
112
+ else:
113
+ local_func = func
114
+
115
+ backend_name, backend_options = extract_backend_and_options(anyio_backend)
116
+ if has_backend_arg:
117
+ kwargs["anyio_backend"] = anyio_backend
118
+
119
+ if has_request_arg:
120
+ kwargs["request"] = request
121
+
122
+ with get_runner(backend_name, backend_options) as runner:
123
+ if isasyncgenfunction(local_func):
124
+ yield from runner.run_asyncgen_fixture(local_func, kwargs)
125
+ else:
126
+ yield runner.run_fixture(local_func, kwargs)
127
+
128
+ # Only apply this to coroutine functions and async generator functions in requests
129
+ # that involve the anyio_backend fixture
130
+ func = fixturedef.func
131
+ if isasyncgenfunction(func) or iscoroutinefunction(func):
132
+ if "anyio_backend" in request.fixturenames:
133
+ fixturedef.func = wrapper
134
+ original_argname = fixturedef.argnames
135
+
136
+ if not (has_backend_arg := "anyio_backend" in fixturedef.argnames):
137
+ fixturedef.argnames += ("anyio_backend",)
138
+
139
+ if not (has_request_arg := "request" in fixturedef.argnames):
140
+ fixturedef.argnames += ("request",)
141
+
142
+ try:
143
+ return (yield)
144
+ finally:
145
+ fixturedef.func = func
146
+ fixturedef.argnames = original_argname
147
+
148
+ return (yield)
149
+
150
+
151
+ @pytest.hookimpl(tryfirst=True)
152
+ def pytest_pycollect_makeitem(
153
+ collector: pytest.Module | pytest.Class, name: str, obj: object
154
+ ) -> None:
155
+ if collector.istestfunction(obj, name):
156
+ inner_func = obj.hypothesis.inner_test if hasattr(obj, "hypothesis") else obj
157
+ if iscoroutinefunction(inner_func):
158
+ anyio_auto_mode = collector.config.getini("anyio_mode") == "auto"
159
+ marker = collector.get_closest_marker("anyio")
160
+ own_markers = getattr(obj, "pytestmark", ())
161
+ if (
162
+ anyio_auto_mode
163
+ or marker
164
+ or any(marker.name == "anyio" for marker in own_markers)
165
+ ):
166
+ pytest.mark.usefixtures("anyio_backend")(obj)
167
+
168
+
169
+ def pytest_collection_finish(session: pytest.Session) -> None:
170
+ for i, item in reversed(list(enumerate(session.items))):
171
+ if (
172
+ isinstance(item, pytest.Function)
173
+ and iscoroutinefunction(item.function)
174
+ and item.get_closest_marker("anyio") is not None
175
+ and "anyio_backend" not in item.fixturenames
176
+ ):
177
+ new_items = []
178
+ try:
179
+ cs_fields = {f.name for f in dataclasses.fields(CallSpec2)}
180
+ except TypeError:
181
+ cs_fields = set()
182
+
183
+ for param_index, backend in enumerate(get_available_backends()):
184
+ if "_arg2scope" in cs_fields: # pytest >= 8
185
+ callspec = CallSpec2(
186
+ params={"anyio_backend": backend},
187
+ indices={"anyio_backend": param_index},
188
+ _arg2scope={"anyio_backend": Scope.Module},
189
+ _idlist=[backend],
190
+ marks=[],
191
+ )
192
+ else: # pytest 7.x
193
+ callspec = CallSpec2( # type: ignore[call-arg]
194
+ funcargs={},
195
+ params={"anyio_backend": backend},
196
+ indices={"anyio_backend": param_index},
197
+ arg2scope={"anyio_backend": Scope.Module},
198
+ idlist=[backend],
199
+ marks=[],
200
+ )
201
+
202
+ fi = item._fixtureinfo
203
+ new_names_closure = list(fi.names_closure)
204
+ if "anyio_backend" not in new_names_closure:
205
+ new_names_closure.append("anyio_backend")
206
+
207
+ new_fixtureinfo = FuncFixtureInfo(
208
+ argnames=fi.argnames,
209
+ initialnames=fi.initialnames,
210
+ names_closure=new_names_closure,
211
+ name2fixturedefs=fi.name2fixturedefs,
212
+ )
213
+ new_item = pytest.Function.from_parent(
214
+ item.parent,
215
+ name=f"{item.originalname}[{backend}]",
216
+ callspec=callspec,
217
+ callobj=item.obj,
218
+ fixtureinfo=new_fixtureinfo,
219
+ keywords=item.keywords,
220
+ originalname=item.originalname,
221
+ )
222
+ new_items.append(new_item)
223
+
224
+ session.items[i : i + 1] = new_items
225
+
226
+
227
+ @pytest.hookimpl(tryfirst=True)
228
+ def pytest_pyfunc_call(pyfuncitem: Any) -> bool | None:
229
+ def run_with_hypothesis(**kwargs: Any) -> None:
230
+ with get_runner(backend_name, backend_options) as runner:
231
+ runner.run_test(original_func, kwargs)
232
+
233
+ backend = pyfuncitem.funcargs.get("anyio_backend")
234
+ if backend:
235
+ backend_name, backend_options = extract_backend_and_options(backend)
236
+
237
+ if hasattr(pyfuncitem.obj, "hypothesis"):
238
+ # Wrap the inner test function unless it's already wrapped
239
+ original_func = pyfuncitem.obj.hypothesis.inner_test
240
+ if original_func.__qualname__ != run_with_hypothesis.__qualname__:
241
+ if iscoroutinefunction(original_func):
242
+ pyfuncitem.obj.hypothesis.inner_test = run_with_hypothesis
243
+
244
+ return None
245
+
246
+ if iscoroutinefunction(pyfuncitem.obj):
247
+ funcargs = pyfuncitem.funcargs
248
+ testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames}
249
+ with get_runner(backend_name, backend_options) as runner:
250
+ try:
251
+ runner.run_test(pyfuncitem.obj, testargs)
252
+ except ExceptionGroup as excgrp:
253
+ for exc in iterate_exceptions(excgrp):
254
+ if isinstance(exc, (Exit, KeyboardInterrupt, SystemExit)):
255
+ raise exc from excgrp
256
+
257
+ raise
258
+
259
+ return True
260
+
261
+ return None
262
+
263
+
264
+ @pytest.fixture(scope="module", params=get_available_backends())
265
+ def anyio_backend(request: Any) -> Any:
266
+ return request.param
267
+
268
+
269
+ @pytest.fixture
270
+ def anyio_backend_name(anyio_backend: Any) -> str:
271
+ if isinstance(anyio_backend, str):
272
+ return anyio_backend
273
+ else:
274
+ return anyio_backend[0]
275
+
276
+
277
+ @pytest.fixture
278
+ def anyio_backend_options(anyio_backend: Any) -> dict[str, Any]:
279
+ if isinstance(anyio_backend, str):
280
+ return {}
281
+ else:
282
+ return anyio_backend[1]
283
+
284
+
285
+ class FreePortFactory:
286
+ """
287
+ Manages port generation based on specified socket kind, ensuring no duplicate
288
+ ports are generated.
289
+
290
+ This class provides functionality for generating available free ports on the
291
+ system. It is initialized with a specific socket kind and can generate ports
292
+ for given address families while avoiding reuse of previously generated ports.
293
+
294
+ Users should not instantiate this class directly, but use the
295
+ ``free_tcp_port_factory`` and ``free_udp_port_factory`` fixtures instead. For simple
296
+ uses cases, ``free_tcp_port`` and ``free_udp_port`` can be used instead.
297
+ """
298
+
299
+ def __init__(self, kind: socket.SocketKind) -> None:
300
+ self._kind = kind
301
+ self._generated = set[int]()
302
+
303
+ @property
304
+ def kind(self) -> socket.SocketKind:
305
+ """
306
+ The type of socket connection (e.g., :data:`~socket.SOCK_STREAM` or
307
+ :data:`~socket.SOCK_DGRAM`) used to bind for checking port availability
308
+
309
+ """
310
+ return self._kind
311
+
312
+ def __call__(self, family: socket.AddressFamily | None = None) -> int:
313
+ """
314
+ Return an unbound port for the given address family.
315
+
316
+ :param family: if omitted, both IPv4 and IPv6 addresses will be tried
317
+ :return: a port number
318
+
319
+ """
320
+ if family is not None:
321
+ families = [family]
322
+ else:
323
+ families = [socket.AF_INET]
324
+ if socket.has_ipv6:
325
+ families.append(socket.AF_INET6)
326
+
327
+ while True:
328
+ port = 0
329
+ with ExitStack() as stack:
330
+ for family in families:
331
+ sock = stack.enter_context(socket.socket(family, self._kind))
332
+ addr = "::1" if family == socket.AF_INET6 else "127.0.0.1"
333
+ try:
334
+ sock.bind((addr, port))
335
+ except OSError:
336
+ break
337
+
338
+ if not port:
339
+ port = sock.getsockname()[1]
340
+ else:
341
+ if port not in self._generated:
342
+ self._generated.add(port)
343
+ return port
344
+
345
+
346
+ @pytest.fixture(scope="session")
347
+ def free_tcp_port_factory() -> FreePortFactory:
348
+ return FreePortFactory(socket.SOCK_STREAM)
349
+
350
+
351
+ @pytest.fixture(scope="session")
352
+ def free_udp_port_factory() -> FreePortFactory:
353
+ return FreePortFactory(socket.SOCK_DGRAM)
354
+
355
+
356
+ @pytest.fixture
357
+ def free_tcp_port(free_tcp_port_factory: Callable[[], int]) -> int:
358
+ return free_tcp_port_factory()
359
+
360
+
361
+ @pytest.fixture
362
+ def free_udp_port(free_udp_port_factory: Callable[[], int]) -> int:
363
+ return free_udp_port_factory()
venv/lib/python3.12/site-packages/anyio/to_interpreter.py ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ __all__ = (
4
+ "run_sync",
5
+ "current_default_interpreter_limiter",
6
+ )
7
+
8
+ import atexit
9
+ import os
10
+ import sys
11
+ from collections import deque
12
+ from collections.abc import Callable
13
+ from typing import Any, Final, TypeVar
14
+
15
+ from . import current_time, to_thread
16
+ from ._core._exceptions import BrokenWorkerInterpreter
17
+ from ._core._synchronization import CapacityLimiter
18
+ from .lowlevel import RunVar
19
+
20
+ if sys.version_info >= (3, 11):
21
+ from typing import TypeVarTuple, Unpack
22
+ else:
23
+ from typing_extensions import TypeVarTuple, Unpack
24
+
25
+ if sys.version_info >= (3, 14):
26
+ from concurrent.interpreters import ExecutionFailed, create
27
+
28
+ def _interp_call(
29
+ func: Callable[..., Any], args: tuple[Any, ...]
30
+ ) -> tuple[Any, bool]:
31
+ try:
32
+ retval = func(*args)
33
+ except BaseException as exc:
34
+ return exc, True
35
+ else:
36
+ return retval, False
37
+
38
+ class _Worker:
39
+ last_used: float = 0
40
+
41
+ def __init__(self) -> None:
42
+ self._interpreter = create()
43
+
44
+ def destroy(self) -> None:
45
+ self._interpreter.close()
46
+
47
+ def call(
48
+ self,
49
+ func: Callable[..., T_Retval],
50
+ args: tuple[Any, ...],
51
+ ) -> T_Retval:
52
+ try:
53
+ res, is_exception = self._interpreter.call(_interp_call, func, args)
54
+ except ExecutionFailed as exc:
55
+ raise BrokenWorkerInterpreter(exc.excinfo) from exc
56
+
57
+ if is_exception:
58
+ raise res
59
+
60
+ return res
61
+ elif sys.version_info >= (3, 13):
62
+ import _interpqueues
63
+ import _interpreters
64
+
65
+ UNBOUND: Final = 2 # I have no clue how this works, but it was used in the stdlib
66
+ FMT_UNPICKLED: Final = 0
67
+ FMT_PICKLED: Final = 1
68
+ QUEUE_PICKLE_ARGS: Final = (FMT_PICKLED, UNBOUND)
69
+ QUEUE_UNPICKLE_ARGS: Final = (FMT_UNPICKLED, UNBOUND)
70
+
71
+ _run_func = compile(
72
+ """
73
+ import _interpqueues
74
+ from _interpreters import NotShareableError
75
+ from pickle import loads, dumps, HIGHEST_PROTOCOL
76
+
77
+ QUEUE_PICKLE_ARGS = (1, 2)
78
+ QUEUE_UNPICKLE_ARGS = (0, 2)
79
+
80
+ item = _interpqueues.get(queue_id)[0]
81
+ try:
82
+ func, args = loads(item)
83
+ retval = func(*args)
84
+ except BaseException as exc:
85
+ is_exception = True
86
+ retval = exc
87
+ else:
88
+ is_exception = False
89
+
90
+ try:
91
+ _interpqueues.put(queue_id, (retval, is_exception), *QUEUE_UNPICKLE_ARGS)
92
+ except NotShareableError:
93
+ retval = dumps(retval, HIGHEST_PROTOCOL)
94
+ _interpqueues.put(queue_id, (retval, is_exception), *QUEUE_PICKLE_ARGS)
95
+ """,
96
+ "<string>",
97
+ "exec",
98
+ )
99
+
100
+ class _Worker:
101
+ last_used: float = 0
102
+
103
+ def __init__(self) -> None:
104
+ self._interpreter_id = _interpreters.create()
105
+ self._queue_id = _interpqueues.create(1, *QUEUE_UNPICKLE_ARGS)
106
+ _interpreters.set___main___attrs(
107
+ self._interpreter_id, {"queue_id": self._queue_id}
108
+ )
109
+
110
+ def destroy(self) -> None:
111
+ _interpqueues.destroy(self._queue_id)
112
+ _interpreters.destroy(self._interpreter_id)
113
+
114
+ def call(
115
+ self,
116
+ func: Callable[..., T_Retval],
117
+ args: tuple[Any, ...],
118
+ ) -> T_Retval:
119
+ import pickle
120
+
121
+ item = pickle.dumps((func, args), pickle.HIGHEST_PROTOCOL)
122
+ _interpqueues.put(self._queue_id, item, *QUEUE_PICKLE_ARGS)
123
+ exc_info = _interpreters.exec(self._interpreter_id, _run_func)
124
+ if exc_info:
125
+ raise BrokenWorkerInterpreter(exc_info)
126
+
127
+ res = _interpqueues.get(self._queue_id)
128
+ (res, is_exception), fmt = res[:2]
129
+ if fmt == FMT_PICKLED:
130
+ res = pickle.loads(res)
131
+
132
+ if is_exception:
133
+ raise res
134
+
135
+ return res
136
+ else:
137
+
138
+ class _Worker:
139
+ last_used: float = 0
140
+
141
+ def __init__(self) -> None:
142
+ raise RuntimeError("subinterpreters require at least Python 3.13")
143
+
144
+ def call(
145
+ self,
146
+ func: Callable[..., T_Retval],
147
+ args: tuple[Any, ...],
148
+ ) -> T_Retval:
149
+ raise NotImplementedError
150
+
151
+ def destroy(self) -> None:
152
+ pass
153
+
154
+
155
+ DEFAULT_CPU_COUNT: Final = 8 # this is just an arbitrarily selected value
156
+ MAX_WORKER_IDLE_TIME = (
157
+ 30 # seconds a subinterpreter can be idle before becoming eligible for pruning
158
+ )
159
+
160
+ T_Retval = TypeVar("T_Retval")
161
+ PosArgsT = TypeVarTuple("PosArgsT")
162
+
163
+ _idle_workers = RunVar[deque[_Worker]]("_available_workers")
164
+ _default_interpreter_limiter = RunVar[CapacityLimiter]("_default_interpreter_limiter")
165
+
166
+
167
+ def _stop_workers(workers: deque[_Worker]) -> None:
168
+ for worker in workers:
169
+ worker.destroy()
170
+
171
+ workers.clear()
172
+
173
+
174
+ async def run_sync(
175
+ func: Callable[[Unpack[PosArgsT]], T_Retval],
176
+ *args: Unpack[PosArgsT],
177
+ limiter: CapacityLimiter | None = None,
178
+ ) -> T_Retval:
179
+ """
180
+ Call the given function with the given arguments in a subinterpreter.
181
+
182
+ .. warning:: On Python 3.13, the :mod:`concurrent.interpreters` module was not yet
183
+ available, so the code path for that Python version relies on an undocumented,
184
+ private API. As such, it is recommended to not rely on this function for anything
185
+ mission-critical on Python 3.13.
186
+
187
+ :param func: a callable
188
+ :param args: the positional arguments for the callable
189
+ :param limiter: capacity limiter to use to limit the total number of subinterpreters
190
+ running (if omitted, the default limiter is used)
191
+ :return: the result of the call
192
+ :raises BrokenWorkerInterpreter: if there's an internal error in a subinterpreter
193
+
194
+ """
195
+ if limiter is None:
196
+ limiter = current_default_interpreter_limiter()
197
+
198
+ try:
199
+ idle_workers = _idle_workers.get()
200
+ except LookupError:
201
+ idle_workers = deque()
202
+ _idle_workers.set(idle_workers)
203
+ atexit.register(_stop_workers, idle_workers)
204
+
205
+ async with limiter:
206
+ try:
207
+ worker = idle_workers.pop()
208
+ except IndexError:
209
+ worker = _Worker()
210
+
211
+ try:
212
+ return await to_thread.run_sync(
213
+ worker.call,
214
+ func,
215
+ args,
216
+ limiter=limiter,
217
+ )
218
+ finally:
219
+ # Prune workers that have been idle for too long
220
+ now = current_time()
221
+ while idle_workers:
222
+ if now - idle_workers[0].last_used <= MAX_WORKER_IDLE_TIME:
223
+ break
224
+
225
+ await to_thread.run_sync(idle_workers.popleft().destroy, limiter=limiter)
226
+
227
+ worker.last_used = current_time()
228
+ idle_workers.append(worker)
229
+
230
+
231
+ def current_default_interpreter_limiter() -> CapacityLimiter:
232
+ """
233
+ Return the capacity limiter used by default to limit the number of concurrently
234
+ running subinterpreters.
235
+
236
+ Defaults to the number of CPU cores.
237
+
238
+ :return: a capacity limiter object
239
+
240
+ """
241
+ try:
242
+ return _default_interpreter_limiter.get()
243
+ except LookupError:
244
+ limiter = CapacityLimiter(os.cpu_count() or DEFAULT_CPU_COUNT)
245
+ _default_interpreter_limiter.set(limiter)
246
+ return limiter
venv/lib/python3.12/site-packages/anyio/to_process.py ADDED
@@ -0,0 +1,266 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ __all__ = (
4
+ "current_default_process_limiter",
5
+ "process_worker",
6
+ "run_sync",
7
+ )
8
+
9
+ import os
10
+ import pickle
11
+ import subprocess
12
+ import sys
13
+ from collections import deque
14
+ from collections.abc import Callable
15
+ from importlib.util import module_from_spec, spec_from_file_location
16
+ from typing import TypeVar, cast
17
+
18
+ from ._core._eventloop import current_time, get_async_backend, get_cancelled_exc_class
19
+ from ._core._exceptions import BrokenWorkerProcess
20
+ from ._core._subprocesses import open_process
21
+ from ._core._synchronization import CapacityLimiter
22
+ from ._core._tasks import CancelScope, fail_after
23
+ from .abc import ByteReceiveStream, ByteSendStream, Process
24
+ from .lowlevel import RunVar, checkpoint_if_cancelled
25
+ from .streams.buffered import BufferedByteReceiveStream
26
+
27
+ if sys.version_info >= (3, 11):
28
+ from typing import TypeVarTuple, Unpack
29
+ else:
30
+ from typing_extensions import TypeVarTuple, Unpack
31
+
32
+ WORKER_MAX_IDLE_TIME = 300 # 5 minutes
33
+
34
+ T_Retval = TypeVar("T_Retval")
35
+ PosArgsT = TypeVarTuple("PosArgsT")
36
+
37
+ _process_pool_workers: RunVar[set[Process]] = RunVar("_process_pool_workers")
38
+ _process_pool_idle_workers: RunVar[deque[tuple[Process, float]]] = RunVar(
39
+ "_process_pool_idle_workers"
40
+ )
41
+ _default_process_limiter: RunVar[CapacityLimiter] = RunVar("_default_process_limiter")
42
+
43
+
44
+ async def run_sync( # type: ignore[return]
45
+ func: Callable[[Unpack[PosArgsT]], T_Retval],
46
+ *args: Unpack[PosArgsT],
47
+ cancellable: bool = False,
48
+ limiter: CapacityLimiter | None = None,
49
+ ) -> T_Retval:
50
+ """
51
+ Call the given function with the given arguments in a worker process.
52
+
53
+ If the ``cancellable`` option is enabled and the task waiting for its completion is
54
+ cancelled, the worker process running it will be abruptly terminated using SIGKILL
55
+ (or ``terminateProcess()`` on Windows).
56
+
57
+ :param func: a callable
58
+ :param args: positional arguments for the callable
59
+ :param cancellable: ``True`` to allow cancellation of the operation while it's
60
+ running
61
+ :param limiter: capacity limiter to use to limit the total amount of processes
62
+ running (if omitted, the default limiter is used)
63
+ :raises NoEventLoopError: if no supported asynchronous event loop is running in the
64
+ current thread
65
+ :return: an awaitable that yields the return value of the function.
66
+
67
+ """
68
+
69
+ async def send_raw_command(pickled_cmd: bytes) -> object:
70
+ try:
71
+ await stdin.send(pickled_cmd)
72
+ response = await buffered.receive_until(b"\n", 50)
73
+ status, length = response.split(b" ")
74
+ if status not in (b"RETURN", b"EXCEPTION"):
75
+ raise RuntimeError(
76
+ f"Worker process returned unexpected response: {response!r}"
77
+ )
78
+
79
+ pickled_response = await buffered.receive_exactly(int(length))
80
+ except BaseException as exc:
81
+ workers.discard(process)
82
+ try:
83
+ process.kill()
84
+ with CancelScope(shield=True):
85
+ await process.aclose()
86
+ except ProcessLookupError:
87
+ pass
88
+
89
+ if isinstance(exc, get_cancelled_exc_class()):
90
+ raise
91
+ else:
92
+ raise BrokenWorkerProcess from exc
93
+
94
+ retval = pickle.loads(pickled_response)
95
+ if status == b"EXCEPTION":
96
+ assert isinstance(retval, BaseException)
97
+ raise retval
98
+ else:
99
+ return retval
100
+
101
+ # First pickle the request before trying to reserve a worker process
102
+ await checkpoint_if_cancelled()
103
+ request = pickle.dumps(("run", func, args), protocol=pickle.HIGHEST_PROTOCOL)
104
+
105
+ # If this is the first run in this event loop thread, set up the necessary variables
106
+ try:
107
+ workers = _process_pool_workers.get()
108
+ idle_workers = _process_pool_idle_workers.get()
109
+ except LookupError:
110
+ workers = set()
111
+ idle_workers = deque()
112
+ _process_pool_workers.set(workers)
113
+ _process_pool_idle_workers.set(idle_workers)
114
+ get_async_backend().setup_process_pool_exit_at_shutdown(workers)
115
+
116
+ async with limiter or current_default_process_limiter():
117
+ # Pop processes from the pool (starting from the most recently used) until we
118
+ # find one that hasn't exited yet
119
+ process: Process
120
+ while idle_workers:
121
+ process, idle_since = idle_workers.pop()
122
+ if process.returncode is None:
123
+ stdin = cast(ByteSendStream, process.stdin)
124
+ buffered = BufferedByteReceiveStream(
125
+ cast(ByteReceiveStream, process.stdout)
126
+ )
127
+
128
+ # Prune any other workers that have been idle for WORKER_MAX_IDLE_TIME
129
+ # seconds or longer
130
+ now = current_time()
131
+ killed_processes: list[Process] = []
132
+ while idle_workers:
133
+ if now - idle_workers[0][1] < WORKER_MAX_IDLE_TIME:
134
+ break
135
+
136
+ process_to_kill, idle_since = idle_workers.popleft()
137
+ process_to_kill.kill()
138
+ workers.remove(process_to_kill)
139
+ killed_processes.append(process_to_kill)
140
+
141
+ with CancelScope(shield=True):
142
+ for killed_process in killed_processes:
143
+ await killed_process.aclose()
144
+
145
+ break
146
+
147
+ workers.remove(process)
148
+ else:
149
+ command = [sys.executable, "-u", "-m", __name__]
150
+ process = await open_process(
151
+ command, stdin=subprocess.PIPE, stdout=subprocess.PIPE
152
+ )
153
+ try:
154
+ stdin = cast(ByteSendStream, process.stdin)
155
+ buffered = BufferedByteReceiveStream(
156
+ cast(ByteReceiveStream, process.stdout)
157
+ )
158
+ with fail_after(20):
159
+ message = await buffered.receive(6)
160
+
161
+ if message != b"READY\n":
162
+ raise BrokenWorkerProcess(
163
+ f"Worker process returned unexpected response: {message!r}"
164
+ )
165
+
166
+ main_module_path = getattr(sys.modules["__main__"], "__file__", None)
167
+ pickled = pickle.dumps(
168
+ ("init", sys.path, main_module_path),
169
+ protocol=pickle.HIGHEST_PROTOCOL,
170
+ )
171
+ await send_raw_command(pickled)
172
+ except (BrokenWorkerProcess, get_cancelled_exc_class()):
173
+ raise
174
+ except BaseException as exc:
175
+ process.kill()
176
+ raise BrokenWorkerProcess(
177
+ "Error during worker process initialization"
178
+ ) from exc
179
+
180
+ workers.add(process)
181
+
182
+ with CancelScope(shield=not cancellable):
183
+ try:
184
+ return cast(T_Retval, await send_raw_command(request))
185
+ finally:
186
+ if process in workers:
187
+ idle_workers.append((process, current_time()))
188
+
189
+
190
+ def current_default_process_limiter() -> CapacityLimiter:
191
+ """
192
+ Return the capacity limiter that is used by default to limit the number of worker
193
+ processes.
194
+
195
+ :return: a capacity limiter object
196
+
197
+ """
198
+ try:
199
+ return _default_process_limiter.get()
200
+ except LookupError:
201
+ limiter = CapacityLimiter(os.cpu_count() or 2)
202
+ _default_process_limiter.set(limiter)
203
+ return limiter
204
+
205
+
206
+ def process_worker() -> None:
207
+ # Redirect standard streams to os.devnull so that user code won't interfere with the
208
+ # parent-worker communication
209
+ stdin = sys.stdin
210
+ stdout = sys.stdout
211
+ sys.stdin = open(os.devnull)
212
+ sys.stdout = open(os.devnull, "w")
213
+
214
+ stdout.buffer.write(b"READY\n")
215
+ while True:
216
+ retval = exception = None
217
+ try:
218
+ command, *args = pickle.load(stdin.buffer)
219
+ except EOFError:
220
+ return
221
+ except BaseException as exc:
222
+ exception = exc
223
+ else:
224
+ if command == "run":
225
+ func, args = args
226
+ try:
227
+ retval = func(*args)
228
+ except BaseException as exc:
229
+ exception = exc
230
+ elif command == "init":
231
+ main_module_path: str | None
232
+ sys.path, main_module_path = args
233
+ del sys.modules["__main__"]
234
+ if main_module_path and os.path.isfile(main_module_path):
235
+ # Load the parent's main module but as __mp_main__ instead of
236
+ # __main__ (like multiprocessing does) to avoid infinite recursion
237
+ try:
238
+ spec = spec_from_file_location("__mp_main__", main_module_path)
239
+ if spec and spec.loader:
240
+ main = module_from_spec(spec)
241
+ spec.loader.exec_module(main)
242
+ sys.modules["__main__"] = main
243
+ except BaseException as exc:
244
+ exception = exc
245
+ try:
246
+ if exception is not None:
247
+ status = b"EXCEPTION"
248
+ pickled = pickle.dumps(exception, pickle.HIGHEST_PROTOCOL)
249
+ else:
250
+ status = b"RETURN"
251
+ pickled = pickle.dumps(retval, pickle.HIGHEST_PROTOCOL)
252
+ except BaseException as exc:
253
+ exception = exc
254
+ status = b"EXCEPTION"
255
+ pickled = pickle.dumps(exc, pickle.HIGHEST_PROTOCOL)
256
+
257
+ stdout.buffer.write(b"%s %d\n" % (status, len(pickled)))
258
+ stdout.buffer.write(pickled)
259
+
260
+ # Respect SIGTERM
261
+ if isinstance(exception, SystemExit):
262
+ raise exception
263
+
264
+
265
+ if __name__ == "__main__":
266
+ process_worker()
venv/lib/python3.12/site-packages/anyio/to_thread.py ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ __all__ = (
4
+ "run_sync",
5
+ "current_default_thread_limiter",
6
+ )
7
+
8
+ import sys
9
+ from collections.abc import Callable
10
+ from typing import TypeVar
11
+ from warnings import warn
12
+
13
+ from ._core._eventloop import get_async_backend
14
+ from .abc import CapacityLimiter
15
+
16
+ if sys.version_info >= (3, 11):
17
+ from typing import TypeVarTuple, Unpack
18
+ else:
19
+ from typing_extensions import TypeVarTuple, Unpack
20
+
21
+ T_Retval = TypeVar("T_Retval")
22
+ PosArgsT = TypeVarTuple("PosArgsT")
23
+
24
+
25
+ async def run_sync(
26
+ func: Callable[[Unpack[PosArgsT]], T_Retval],
27
+ *args: Unpack[PosArgsT],
28
+ abandon_on_cancel: bool = False,
29
+ cancellable: bool | None = None,
30
+ limiter: CapacityLimiter | None = None,
31
+ ) -> T_Retval:
32
+ """
33
+ Call the given function with the given arguments in a worker thread.
34
+
35
+ If the ``abandon_on_cancel`` option is enabled and the task waiting for its
36
+ completion is cancelled, the thread will still run its course but its
37
+ return value (or any raised exception) will be ignored.
38
+
39
+ :param func: a callable
40
+ :param args: positional arguments for the callable
41
+ :param abandon_on_cancel: ``True`` to abandon the thread (leaving it to run
42
+ unchecked on own) if the host task is cancelled, ``False`` to ignore
43
+ cancellations in the host task until the operation has completed in the worker
44
+ thread
45
+ :param cancellable: deprecated alias of ``abandon_on_cancel``; will override
46
+ ``abandon_on_cancel`` if both parameters are passed
47
+ :param limiter: capacity limiter to use to limit the total amount of threads running
48
+ (if omitted, the default limiter is used)
49
+ :raises NoEventLoopError: if no supported asynchronous event loop is running in the
50
+ current thread
51
+ :return: an awaitable that yields the return value of the function.
52
+
53
+ """
54
+ if cancellable is not None:
55
+ abandon_on_cancel = cancellable
56
+ warn(
57
+ "The `cancellable=` keyword argument to `anyio.to_thread.run_sync` is "
58
+ "deprecated since AnyIO 4.1.0; use `abandon_on_cancel=` instead",
59
+ DeprecationWarning,
60
+ stacklevel=2,
61
+ )
62
+
63
+ return await get_async_backend().run_sync_in_worker_thread(
64
+ func, args, abandon_on_cancel=abandon_on_cancel, limiter=limiter
65
+ )
66
+
67
+
68
+ def current_default_thread_limiter() -> CapacityLimiter:
69
+ """
70
+ Return the capacity limiter that is used by default to limit the number of
71
+ concurrent threads.
72
+
73
+ :return: a capacity limiter object
74
+ :raises NoEventLoopError: if no supported asynchronous event loop is running in the
75
+ current thread
76
+
77
+ """
78
+ return get_async_backend().current_default_thread_limiter()
venv/lib/python3.12/site-packages/httpcore/__init__.py ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from ._api import request, stream
2
+ from ._async import (
3
+ AsyncConnectionInterface,
4
+ AsyncConnectionPool,
5
+ AsyncHTTP2Connection,
6
+ AsyncHTTP11Connection,
7
+ AsyncHTTPConnection,
8
+ AsyncHTTPProxy,
9
+ AsyncSOCKSProxy,
10
+ )
11
+ from ._backends.base import (
12
+ SOCKET_OPTION,
13
+ AsyncNetworkBackend,
14
+ AsyncNetworkStream,
15
+ NetworkBackend,
16
+ NetworkStream,
17
+ )
18
+ from ._backends.mock import AsyncMockBackend, AsyncMockStream, MockBackend, MockStream
19
+ from ._backends.sync import SyncBackend
20
+ from ._exceptions import (
21
+ ConnectError,
22
+ ConnectionNotAvailable,
23
+ ConnectTimeout,
24
+ LocalProtocolError,
25
+ NetworkError,
26
+ PoolTimeout,
27
+ ProtocolError,
28
+ ProxyError,
29
+ ReadError,
30
+ ReadTimeout,
31
+ RemoteProtocolError,
32
+ TimeoutException,
33
+ UnsupportedProtocol,
34
+ WriteError,
35
+ WriteTimeout,
36
+ )
37
+ from ._models import URL, Origin, Proxy, Request, Response
38
+ from ._ssl import default_ssl_context
39
+ from ._sync import (
40
+ ConnectionInterface,
41
+ ConnectionPool,
42
+ HTTP2Connection,
43
+ HTTP11Connection,
44
+ HTTPConnection,
45
+ HTTPProxy,
46
+ SOCKSProxy,
47
+ )
48
+
49
+ # The 'httpcore.AnyIOBackend' class is conditional on 'anyio' being installed.
50
+ try:
51
+ from ._backends.anyio import AnyIOBackend
52
+ except ImportError: # pragma: nocover
53
+
54
+ class AnyIOBackend: # type: ignore
55
+ def __init__(self, *args, **kwargs): # type: ignore
56
+ msg = (
57
+ "Attempted to use 'httpcore.AnyIOBackend' but 'anyio' is not installed."
58
+ )
59
+ raise RuntimeError(msg)
60
+
61
+
62
+ # The 'httpcore.TrioBackend' class is conditional on 'trio' being installed.
63
+ try:
64
+ from ._backends.trio import TrioBackend
65
+ except ImportError: # pragma: nocover
66
+
67
+ class TrioBackend: # type: ignore
68
+ def __init__(self, *args, **kwargs): # type: ignore
69
+ msg = "Attempted to use 'httpcore.TrioBackend' but 'trio' is not installed."
70
+ raise RuntimeError(msg)
71
+
72
+
73
+ __all__ = [
74
+ # top-level requests
75
+ "request",
76
+ "stream",
77
+ # models
78
+ "Origin",
79
+ "URL",
80
+ "Request",
81
+ "Response",
82
+ "Proxy",
83
+ # async
84
+ "AsyncHTTPConnection",
85
+ "AsyncConnectionPool",
86
+ "AsyncHTTPProxy",
87
+ "AsyncHTTP11Connection",
88
+ "AsyncHTTP2Connection",
89
+ "AsyncConnectionInterface",
90
+ "AsyncSOCKSProxy",
91
+ # sync
92
+ "HTTPConnection",
93
+ "ConnectionPool",
94
+ "HTTPProxy",
95
+ "HTTP11Connection",
96
+ "HTTP2Connection",
97
+ "ConnectionInterface",
98
+ "SOCKSProxy",
99
+ # network backends, implementations
100
+ "SyncBackend",
101
+ "AnyIOBackend",
102
+ "TrioBackend",
103
+ # network backends, mock implementations
104
+ "AsyncMockBackend",
105
+ "AsyncMockStream",
106
+ "MockBackend",
107
+ "MockStream",
108
+ # network backends, interface
109
+ "AsyncNetworkStream",
110
+ "AsyncNetworkBackend",
111
+ "NetworkStream",
112
+ "NetworkBackend",
113
+ # util
114
+ "default_ssl_context",
115
+ "SOCKET_OPTION",
116
+ # exceptions
117
+ "ConnectionNotAvailable",
118
+ "ProxyError",
119
+ "ProtocolError",
120
+ "LocalProtocolError",
121
+ "RemoteProtocolError",
122
+ "UnsupportedProtocol",
123
+ "TimeoutException",
124
+ "PoolTimeout",
125
+ "ConnectTimeout",
126
+ "ReadTimeout",
127
+ "WriteTimeout",
128
+ "NetworkError",
129
+ "ConnectError",
130
+ "ReadError",
131
+ "WriteError",
132
+ ]
133
+
134
+ __version__ = "1.0.9"
135
+
136
+
137
+ __locals = locals()
138
+ for __name in __all__:
139
+ # Exclude SOCKET_OPTION, it causes AttributeError on Python 3.14
140
+ if not __name.startswith(("__", "SOCKET_OPTION")):
141
+ setattr(__locals[__name], "__module__", "httpcore") # noqa
venv/lib/python3.12/site-packages/httpcore/_api.py ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ import contextlib
4
+ import typing
5
+
6
+ from ._models import URL, Extensions, HeaderTypes, Response
7
+ from ._sync.connection_pool import ConnectionPool
8
+
9
+
10
+ def request(
11
+ method: bytes | str,
12
+ url: URL | bytes | str,
13
+ *,
14
+ headers: HeaderTypes = None,
15
+ content: bytes | typing.Iterator[bytes] | None = None,
16
+ extensions: Extensions | None = None,
17
+ ) -> Response:
18
+ """
19
+ Sends an HTTP request, returning the response.
20
+
21
+ ```
22
+ response = httpcore.request("GET", "https://www.example.com/")
23
+ ```
24
+
25
+ Arguments:
26
+ method: The HTTP method for the request. Typically one of `"GET"`,
27
+ `"OPTIONS"`, `"HEAD"`, `"POST"`, `"PUT"`, `"PATCH"`, or `"DELETE"`.
28
+ url: The URL of the HTTP request. Either as an instance of `httpcore.URL`,
29
+ or as str/bytes.
30
+ headers: The HTTP request headers. Either as a dictionary of str/bytes,
31
+ or as a list of two-tuples of str/bytes.
32
+ content: The content of the request body. Either as bytes,
33
+ or as a bytes iterator.
34
+ extensions: A dictionary of optional extra information included on the request.
35
+ Possible keys include `"timeout"`.
36
+
37
+ Returns:
38
+ An instance of `httpcore.Response`.
39
+ """
40
+ with ConnectionPool() as pool:
41
+ return pool.request(
42
+ method=method,
43
+ url=url,
44
+ headers=headers,
45
+ content=content,
46
+ extensions=extensions,
47
+ )
48
+
49
+
50
+ @contextlib.contextmanager
51
+ def stream(
52
+ method: bytes | str,
53
+ url: URL | bytes | str,
54
+ *,
55
+ headers: HeaderTypes = None,
56
+ content: bytes | typing.Iterator[bytes] | None = None,
57
+ extensions: Extensions | None = None,
58
+ ) -> typing.Iterator[Response]:
59
+ """
60
+ Sends an HTTP request, returning the response within a content manager.
61
+
62
+ ```
63
+ with httpcore.stream("GET", "https://www.example.com/") as response:
64
+ ...
65
+ ```
66
+
67
+ When using the `stream()` function, the body of the response will not be
68
+ automatically read. If you want to access the response body you should
69
+ either use `content = response.read()`, or `for chunk in response.iter_content()`.
70
+
71
+ Arguments:
72
+ method: The HTTP method for the request. Typically one of `"GET"`,
73
+ `"OPTIONS"`, `"HEAD"`, `"POST"`, `"PUT"`, `"PATCH"`, or `"DELETE"`.
74
+ url: The URL of the HTTP request. Either as an instance of `httpcore.URL`,
75
+ or as str/bytes.
76
+ headers: The HTTP request headers. Either as a dictionary of str/bytes,
77
+ or as a list of two-tuples of str/bytes.
78
+ content: The content of the request body. Either as bytes,
79
+ or as a bytes iterator.
80
+ extensions: A dictionary of optional extra information included on the request.
81
+ Possible keys include `"timeout"`.
82
+
83
+ Returns:
84
+ An instance of `httpcore.Response`.
85
+ """
86
+ with ConnectionPool() as pool:
87
+ with pool.stream(
88
+ method=method,
89
+ url=url,
90
+ headers=headers,
91
+ content=content,
92
+ extensions=extensions,
93
+ ) as response:
94
+ yield response
venv/lib/python3.12/site-packages/httpcore/_exceptions.py ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import contextlib
2
+ import typing
3
+
4
+ ExceptionMapping = typing.Mapping[typing.Type[Exception], typing.Type[Exception]]
5
+
6
+
7
+ @contextlib.contextmanager
8
+ def map_exceptions(map: ExceptionMapping) -> typing.Iterator[None]:
9
+ try:
10
+ yield
11
+ except Exception as exc: # noqa: PIE786
12
+ for from_exc, to_exc in map.items():
13
+ if isinstance(exc, from_exc):
14
+ raise to_exc(exc) from exc
15
+ raise # pragma: nocover
16
+
17
+
18
+ class ConnectionNotAvailable(Exception):
19
+ pass
20
+
21
+
22
+ class ProxyError(Exception):
23
+ pass
24
+
25
+
26
+ class UnsupportedProtocol(Exception):
27
+ pass
28
+
29
+
30
+ class ProtocolError(Exception):
31
+ pass
32
+
33
+
34
+ class RemoteProtocolError(ProtocolError):
35
+ pass
36
+
37
+
38
+ class LocalProtocolError(ProtocolError):
39
+ pass
40
+
41
+
42
+ # Timeout errors
43
+
44
+
45
+ class TimeoutException(Exception):
46
+ pass
47
+
48
+
49
+ class PoolTimeout(TimeoutException):
50
+ pass
51
+
52
+
53
+ class ConnectTimeout(TimeoutException):
54
+ pass
55
+
56
+
57
+ class ReadTimeout(TimeoutException):
58
+ pass
59
+
60
+
61
+ class WriteTimeout(TimeoutException):
62
+ pass
63
+
64
+
65
+ # Network errors
66
+
67
+
68
+ class NetworkError(Exception):
69
+ pass
70
+
71
+
72
+ class ConnectError(NetworkError):
73
+ pass
74
+
75
+
76
+ class ReadError(NetworkError):
77
+ pass
78
+
79
+
80
+ class WriteError(NetworkError):
81
+ pass
venv/lib/python3.12/site-packages/httpcore/_models.py ADDED
@@ -0,0 +1,516 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ import base64
4
+ import ssl
5
+ import typing
6
+ import urllib.parse
7
+
8
+ # Functions for typechecking...
9
+
10
+
11
+ ByteOrStr = typing.Union[bytes, str]
12
+ HeadersAsSequence = typing.Sequence[typing.Tuple[ByteOrStr, ByteOrStr]]
13
+ HeadersAsMapping = typing.Mapping[ByteOrStr, ByteOrStr]
14
+ HeaderTypes = typing.Union[HeadersAsSequence, HeadersAsMapping, None]
15
+
16
+ Extensions = typing.MutableMapping[str, typing.Any]
17
+
18
+
19
+ def enforce_bytes(value: bytes | str, *, name: str) -> bytes:
20
+ """
21
+ Any arguments that are ultimately represented as bytes can be specified
22
+ either as bytes or as strings.
23
+
24
+ However we enforce that any string arguments must only contain characters in
25
+ the plain ASCII range. chr(0)...chr(127). If you need to use characters
26
+ outside that range then be precise, and use a byte-wise argument.
27
+ """
28
+ if isinstance(value, str):
29
+ try:
30
+ return value.encode("ascii")
31
+ except UnicodeEncodeError:
32
+ raise TypeError(f"{name} strings may not include unicode characters.")
33
+ elif isinstance(value, bytes):
34
+ return value
35
+
36
+ seen_type = type(value).__name__
37
+ raise TypeError(f"{name} must be bytes or str, but got {seen_type}.")
38
+
39
+
40
+ def enforce_url(value: URL | bytes | str, *, name: str) -> URL:
41
+ """
42
+ Type check for URL parameters.
43
+ """
44
+ if isinstance(value, (bytes, str)):
45
+ return URL(value)
46
+ elif isinstance(value, URL):
47
+ return value
48
+
49
+ seen_type = type(value).__name__
50
+ raise TypeError(f"{name} must be a URL, bytes, or str, but got {seen_type}.")
51
+
52
+
53
+ def enforce_headers(
54
+ value: HeadersAsMapping | HeadersAsSequence | None = None, *, name: str
55
+ ) -> list[tuple[bytes, bytes]]:
56
+ """
57
+ Convienence function that ensure all items in request or response headers
58
+ are either bytes or strings in the plain ASCII range.
59
+ """
60
+ if value is None:
61
+ return []
62
+ elif isinstance(value, typing.Mapping):
63
+ return [
64
+ (
65
+ enforce_bytes(k, name="header name"),
66
+ enforce_bytes(v, name="header value"),
67
+ )
68
+ for k, v in value.items()
69
+ ]
70
+ elif isinstance(value, typing.Sequence):
71
+ return [
72
+ (
73
+ enforce_bytes(k, name="header name"),
74
+ enforce_bytes(v, name="header value"),
75
+ )
76
+ for k, v in value
77
+ ]
78
+
79
+ seen_type = type(value).__name__
80
+ raise TypeError(
81
+ f"{name} must be a mapping or sequence of two-tuples, but got {seen_type}."
82
+ )
83
+
84
+
85
+ def enforce_stream(
86
+ value: bytes | typing.Iterable[bytes] | typing.AsyncIterable[bytes] | None,
87
+ *,
88
+ name: str,
89
+ ) -> typing.Iterable[bytes] | typing.AsyncIterable[bytes]:
90
+ if value is None:
91
+ return ByteStream(b"")
92
+ elif isinstance(value, bytes):
93
+ return ByteStream(value)
94
+ return value
95
+
96
+
97
+ # * https://tools.ietf.org/html/rfc3986#section-3.2.3
98
+ # * https://url.spec.whatwg.org/#url-miscellaneous
99
+ # * https://url.spec.whatwg.org/#scheme-state
100
+ DEFAULT_PORTS = {
101
+ b"ftp": 21,
102
+ b"http": 80,
103
+ b"https": 443,
104
+ b"ws": 80,
105
+ b"wss": 443,
106
+ }
107
+
108
+
109
+ def include_request_headers(
110
+ headers: list[tuple[bytes, bytes]],
111
+ *,
112
+ url: "URL",
113
+ content: None | bytes | typing.Iterable[bytes] | typing.AsyncIterable[bytes],
114
+ ) -> list[tuple[bytes, bytes]]:
115
+ headers_set = set(k.lower() for k, v in headers)
116
+
117
+ if b"host" not in headers_set:
118
+ default_port = DEFAULT_PORTS.get(url.scheme)
119
+ if url.port is None or url.port == default_port:
120
+ header_value = url.host
121
+ else:
122
+ header_value = b"%b:%d" % (url.host, url.port)
123
+ headers = [(b"Host", header_value)] + headers
124
+
125
+ if (
126
+ content is not None
127
+ and b"content-length" not in headers_set
128
+ and b"transfer-encoding" not in headers_set
129
+ ):
130
+ if isinstance(content, bytes):
131
+ content_length = str(len(content)).encode("ascii")
132
+ headers += [(b"Content-Length", content_length)]
133
+ else:
134
+ headers += [(b"Transfer-Encoding", b"chunked")] # pragma: nocover
135
+
136
+ return headers
137
+
138
+
139
+ # Interfaces for byte streams...
140
+
141
+
142
+ class ByteStream:
143
+ """
144
+ A container for non-streaming content, and that supports both sync and async
145
+ stream iteration.
146
+ """
147
+
148
+ def __init__(self, content: bytes) -> None:
149
+ self._content = content
150
+
151
+ def __iter__(self) -> typing.Iterator[bytes]:
152
+ yield self._content
153
+
154
+ async def __aiter__(self) -> typing.AsyncIterator[bytes]:
155
+ yield self._content
156
+
157
+ def __repr__(self) -> str:
158
+ return f"<{self.__class__.__name__} [{len(self._content)} bytes]>"
159
+
160
+
161
+ class Origin:
162
+ def __init__(self, scheme: bytes, host: bytes, port: int) -> None:
163
+ self.scheme = scheme
164
+ self.host = host
165
+ self.port = port
166
+
167
+ def __eq__(self, other: typing.Any) -> bool:
168
+ return (
169
+ isinstance(other, Origin)
170
+ and self.scheme == other.scheme
171
+ and self.host == other.host
172
+ and self.port == other.port
173
+ )
174
+
175
+ def __str__(self) -> str:
176
+ scheme = self.scheme.decode("ascii")
177
+ host = self.host.decode("ascii")
178
+ port = str(self.port)
179
+ return f"{scheme}://{host}:{port}"
180
+
181
+
182
+ class URL:
183
+ """
184
+ Represents the URL against which an HTTP request may be made.
185
+
186
+ The URL may either be specified as a plain string, for convienence:
187
+
188
+ ```python
189
+ url = httpcore.URL("https://www.example.com/")
190
+ ```
191
+
192
+ Or be constructed with explicitily pre-parsed components:
193
+
194
+ ```python
195
+ url = httpcore.URL(scheme=b'https', host=b'www.example.com', port=None, target=b'/')
196
+ ```
197
+
198
+ Using this second more explicit style allows integrations that are using
199
+ `httpcore` to pass through URLs that have already been parsed in order to use
200
+ libraries such as `rfc-3986` rather than relying on the stdlib. It also ensures
201
+ that URL parsing is treated identically at both the networking level and at any
202
+ higher layers of abstraction.
203
+
204
+ The four components are important here, as they allow the URL to be precisely
205
+ specified in a pre-parsed format. They also allow certain types of request to
206
+ be created that could not otherwise be expressed.
207
+
208
+ For example, an HTTP request to `http://www.example.com/` forwarded via a proxy
209
+ at `http://localhost:8080`...
210
+
211
+ ```python
212
+ # Constructs an HTTP request with a complete URL as the target:
213
+ # GET https://www.example.com/ HTTP/1.1
214
+ url = httpcore.URL(
215
+ scheme=b'http',
216
+ host=b'localhost',
217
+ port=8080,
218
+ target=b'https://www.example.com/'
219
+ )
220
+ request = httpcore.Request(
221
+ method="GET",
222
+ url=url
223
+ )
224
+ ```
225
+
226
+ Another example is constructing an `OPTIONS *` request...
227
+
228
+ ```python
229
+ # Constructs an 'OPTIONS *' HTTP request:
230
+ # OPTIONS * HTTP/1.1
231
+ url = httpcore.URL(scheme=b'https', host=b'www.example.com', target=b'*')
232
+ request = httpcore.Request(method="OPTIONS", url=url)
233
+ ```
234
+
235
+ This kind of request is not possible to formulate with a URL string,
236
+ because the `/` delimiter is always used to demark the target from the
237
+ host/port portion of the URL.
238
+
239
+ For convenience, string-like arguments may be specified either as strings or
240
+ as bytes. However, once a request is being issue over-the-wire, the URL
241
+ components are always ultimately required to be a bytewise representation.
242
+
243
+ In order to avoid any ambiguity over character encodings, when strings are used
244
+ as arguments, they must be strictly limited to the ASCII range `chr(0)`-`chr(127)`.
245
+ If you require a bytewise representation that is outside this range you must
246
+ handle the character encoding directly, and pass a bytes instance.
247
+ """
248
+
249
+ def __init__(
250
+ self,
251
+ url: bytes | str = "",
252
+ *,
253
+ scheme: bytes | str = b"",
254
+ host: bytes | str = b"",
255
+ port: int | None = None,
256
+ target: bytes | str = b"",
257
+ ) -> None:
258
+ """
259
+ Parameters:
260
+ url: The complete URL as a string or bytes.
261
+ scheme: The URL scheme as a string or bytes.
262
+ Typically either `"http"` or `"https"`.
263
+ host: The URL host as a string or bytes. Such as `"www.example.com"`.
264
+ port: The port to connect to. Either an integer or `None`.
265
+ target: The target of the HTTP request. Such as `"/items?search=red"`.
266
+ """
267
+ if url:
268
+ parsed = urllib.parse.urlparse(enforce_bytes(url, name="url"))
269
+ self.scheme = parsed.scheme
270
+ self.host = parsed.hostname or b""
271
+ self.port = parsed.port
272
+ self.target = (parsed.path or b"/") + (
273
+ b"?" + parsed.query if parsed.query else b""
274
+ )
275
+ else:
276
+ self.scheme = enforce_bytes(scheme, name="scheme")
277
+ self.host = enforce_bytes(host, name="host")
278
+ self.port = port
279
+ self.target = enforce_bytes(target, name="target")
280
+
281
+ @property
282
+ def origin(self) -> Origin:
283
+ default_port = {
284
+ b"http": 80,
285
+ b"https": 443,
286
+ b"ws": 80,
287
+ b"wss": 443,
288
+ b"socks5": 1080,
289
+ b"socks5h": 1080,
290
+ }[self.scheme]
291
+ return Origin(
292
+ scheme=self.scheme, host=self.host, port=self.port or default_port
293
+ )
294
+
295
+ def __eq__(self, other: typing.Any) -> bool:
296
+ return (
297
+ isinstance(other, URL)
298
+ and other.scheme == self.scheme
299
+ and other.host == self.host
300
+ and other.port == self.port
301
+ and other.target == self.target
302
+ )
303
+
304
+ def __bytes__(self) -> bytes:
305
+ if self.port is None:
306
+ return b"%b://%b%b" % (self.scheme, self.host, self.target)
307
+ return b"%b://%b:%d%b" % (self.scheme, self.host, self.port, self.target)
308
+
309
+ def __repr__(self) -> str:
310
+ return (
311
+ f"{self.__class__.__name__}(scheme={self.scheme!r}, "
312
+ f"host={self.host!r}, port={self.port!r}, target={self.target!r})"
313
+ )
314
+
315
+
316
+ class Request:
317
+ """
318
+ An HTTP request.
319
+ """
320
+
321
+ def __init__(
322
+ self,
323
+ method: bytes | str,
324
+ url: URL | bytes | str,
325
+ *,
326
+ headers: HeaderTypes = None,
327
+ content: bytes
328
+ | typing.Iterable[bytes]
329
+ | typing.AsyncIterable[bytes]
330
+ | None = None,
331
+ extensions: Extensions | None = None,
332
+ ) -> None:
333
+ """
334
+ Parameters:
335
+ method: The HTTP request method, either as a string or bytes.
336
+ For example: `GET`.
337
+ url: The request URL, either as a `URL` instance, or as a string or bytes.
338
+ For example: `"https://www.example.com".`
339
+ headers: The HTTP request headers.
340
+ content: The content of the request body.
341
+ extensions: A dictionary of optional extra information included on
342
+ the request. Possible keys include `"timeout"`, and `"trace"`.
343
+ """
344
+ self.method: bytes = enforce_bytes(method, name="method")
345
+ self.url: URL = enforce_url(url, name="url")
346
+ self.headers: list[tuple[bytes, bytes]] = enforce_headers(
347
+ headers, name="headers"
348
+ )
349
+ self.stream: typing.Iterable[bytes] | typing.AsyncIterable[bytes] = (
350
+ enforce_stream(content, name="content")
351
+ )
352
+ self.extensions = {} if extensions is None else extensions
353
+
354
+ if "target" in self.extensions:
355
+ self.url = URL(
356
+ scheme=self.url.scheme,
357
+ host=self.url.host,
358
+ port=self.url.port,
359
+ target=self.extensions["target"],
360
+ )
361
+
362
+ def __repr__(self) -> str:
363
+ return f"<{self.__class__.__name__} [{self.method!r}]>"
364
+
365
+
366
+ class Response:
367
+ """
368
+ An HTTP response.
369
+ """
370
+
371
+ def __init__(
372
+ self,
373
+ status: int,
374
+ *,
375
+ headers: HeaderTypes = None,
376
+ content: bytes
377
+ | typing.Iterable[bytes]
378
+ | typing.AsyncIterable[bytes]
379
+ | None = None,
380
+ extensions: Extensions | None = None,
381
+ ) -> None:
382
+ """
383
+ Parameters:
384
+ status: The HTTP status code of the response. For example `200`.
385
+ headers: The HTTP response headers.
386
+ content: The content of the response body.
387
+ extensions: A dictionary of optional extra information included on
388
+ the responseself.Possible keys include `"http_version"`,
389
+ `"reason_phrase"`, and `"network_stream"`.
390
+ """
391
+ self.status: int = status
392
+ self.headers: list[tuple[bytes, bytes]] = enforce_headers(
393
+ headers, name="headers"
394
+ )
395
+ self.stream: typing.Iterable[bytes] | typing.AsyncIterable[bytes] = (
396
+ enforce_stream(content, name="content")
397
+ )
398
+ self.extensions = {} if extensions is None else extensions
399
+
400
+ self._stream_consumed = False
401
+
402
+ @property
403
+ def content(self) -> bytes:
404
+ if not hasattr(self, "_content"):
405
+ if isinstance(self.stream, typing.Iterable):
406
+ raise RuntimeError(
407
+ "Attempted to access 'response.content' on a streaming response. "
408
+ "Call 'response.read()' first."
409
+ )
410
+ else:
411
+ raise RuntimeError(
412
+ "Attempted to access 'response.content' on a streaming response. "
413
+ "Call 'await response.aread()' first."
414
+ )
415
+ return self._content
416
+
417
+ def __repr__(self) -> str:
418
+ return f"<{self.__class__.__name__} [{self.status}]>"
419
+
420
+ # Sync interface...
421
+
422
+ def read(self) -> bytes:
423
+ if not isinstance(self.stream, typing.Iterable): # pragma: nocover
424
+ raise RuntimeError(
425
+ "Attempted to read an asynchronous response using 'response.read()'. "
426
+ "You should use 'await response.aread()' instead."
427
+ )
428
+ if not hasattr(self, "_content"):
429
+ self._content = b"".join([part for part in self.iter_stream()])
430
+ return self._content
431
+
432
+ def iter_stream(self) -> typing.Iterator[bytes]:
433
+ if not isinstance(self.stream, typing.Iterable): # pragma: nocover
434
+ raise RuntimeError(
435
+ "Attempted to stream an asynchronous response using 'for ... in "
436
+ "response.iter_stream()'. "
437
+ "You should use 'async for ... in response.aiter_stream()' instead."
438
+ )
439
+ if self._stream_consumed:
440
+ raise RuntimeError(
441
+ "Attempted to call 'for ... in response.iter_stream()' more than once."
442
+ )
443
+ self._stream_consumed = True
444
+ for chunk in self.stream:
445
+ yield chunk
446
+
447
+ def close(self) -> None:
448
+ if not isinstance(self.stream, typing.Iterable): # pragma: nocover
449
+ raise RuntimeError(
450
+ "Attempted to close an asynchronous response using 'response.close()'. "
451
+ "You should use 'await response.aclose()' instead."
452
+ )
453
+ if hasattr(self.stream, "close"):
454
+ self.stream.close()
455
+
456
+ # Async interface...
457
+
458
+ async def aread(self) -> bytes:
459
+ if not isinstance(self.stream, typing.AsyncIterable): # pragma: nocover
460
+ raise RuntimeError(
461
+ "Attempted to read an synchronous response using "
462
+ "'await response.aread()'. "
463
+ "You should use 'response.read()' instead."
464
+ )
465
+ if not hasattr(self, "_content"):
466
+ self._content = b"".join([part async for part in self.aiter_stream()])
467
+ return self._content
468
+
469
+ async def aiter_stream(self) -> typing.AsyncIterator[bytes]:
470
+ if not isinstance(self.stream, typing.AsyncIterable): # pragma: nocover
471
+ raise RuntimeError(
472
+ "Attempted to stream an synchronous response using 'async for ... in "
473
+ "response.aiter_stream()'. "
474
+ "You should use 'for ... in response.iter_stream()' instead."
475
+ )
476
+ if self._stream_consumed:
477
+ raise RuntimeError(
478
+ "Attempted to call 'async for ... in response.aiter_stream()' "
479
+ "more than once."
480
+ )
481
+ self._stream_consumed = True
482
+ async for chunk in self.stream:
483
+ yield chunk
484
+
485
+ async def aclose(self) -> None:
486
+ if not isinstance(self.stream, typing.AsyncIterable): # pragma: nocover
487
+ raise RuntimeError(
488
+ "Attempted to close a synchronous response using "
489
+ "'await response.aclose()'. "
490
+ "You should use 'response.close()' instead."
491
+ )
492
+ if hasattr(self.stream, "aclose"):
493
+ await self.stream.aclose()
494
+
495
+
496
+ class Proxy:
497
+ def __init__(
498
+ self,
499
+ url: URL | bytes | str,
500
+ auth: tuple[bytes | str, bytes | str] | None = None,
501
+ headers: HeadersAsMapping | HeadersAsSequence | None = None,
502
+ ssl_context: ssl.SSLContext | None = None,
503
+ ):
504
+ self.url = enforce_url(url, name="url")
505
+ self.headers = enforce_headers(headers, name="headers")
506
+ self.ssl_context = ssl_context
507
+
508
+ if auth is not None:
509
+ username = enforce_bytes(auth[0], name="auth")
510
+ password = enforce_bytes(auth[1], name="auth")
511
+ userpass = username + b":" + password
512
+ authorization = b"Basic " + base64.b64encode(userpass)
513
+ self.auth: tuple[bytes, bytes] | None = (username, password)
514
+ self.headers = [(b"Proxy-Authorization", authorization)] + self.headers
515
+ else:
516
+ self.auth = None
venv/lib/python3.12/site-packages/httpcore/_ssl.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import ssl
2
+
3
+ import certifi
4
+
5
+
6
+ def default_ssl_context() -> ssl.SSLContext:
7
+ context = ssl.create_default_context()
8
+ context.load_verify_locations(certifi.where())
9
+ return context
venv/lib/python3.12/site-packages/httpcore/_synchronization.py ADDED
@@ -0,0 +1,318 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ import threading
4
+ import types
5
+
6
+ from ._exceptions import ExceptionMapping, PoolTimeout, map_exceptions
7
+
8
+ # Our async synchronization primatives use either 'anyio' or 'trio' depending
9
+ # on if they're running under asyncio or trio.
10
+
11
+ try:
12
+ import trio
13
+ except (ImportError, NotImplementedError): # pragma: nocover
14
+ trio = None # type: ignore
15
+
16
+ try:
17
+ import anyio
18
+ except ImportError: # pragma: nocover
19
+ anyio = None # type: ignore
20
+
21
+
22
+ def current_async_library() -> str:
23
+ # Determine if we're running under trio or asyncio.
24
+ # See https://sniffio.readthedocs.io/en/latest/
25
+ try:
26
+ import sniffio
27
+ except ImportError: # pragma: nocover
28
+ environment = "asyncio"
29
+ else:
30
+ environment = sniffio.current_async_library()
31
+
32
+ if environment not in ("asyncio", "trio"): # pragma: nocover
33
+ raise RuntimeError("Running under an unsupported async environment.")
34
+
35
+ if environment == "asyncio" and anyio is None: # pragma: nocover
36
+ raise RuntimeError(
37
+ "Running with asyncio requires installation of 'httpcore[asyncio]'."
38
+ )
39
+
40
+ if environment == "trio" and trio is None: # pragma: nocover
41
+ raise RuntimeError(
42
+ "Running with trio requires installation of 'httpcore[trio]'."
43
+ )
44
+
45
+ return environment
46
+
47
+
48
+ class AsyncLock:
49
+ """
50
+ This is a standard lock.
51
+
52
+ In the sync case `Lock` provides thread locking.
53
+ In the async case `AsyncLock` provides async locking.
54
+ """
55
+
56
+ def __init__(self) -> None:
57
+ self._backend = ""
58
+
59
+ def setup(self) -> None:
60
+ """
61
+ Detect if we're running under 'asyncio' or 'trio' and create
62
+ a lock with the correct implementation.
63
+ """
64
+ self._backend = current_async_library()
65
+ if self._backend == "trio":
66
+ self._trio_lock = trio.Lock()
67
+ elif self._backend == "asyncio":
68
+ self._anyio_lock = anyio.Lock()
69
+
70
+ async def __aenter__(self) -> AsyncLock:
71
+ if not self._backend:
72
+ self.setup()
73
+
74
+ if self._backend == "trio":
75
+ await self._trio_lock.acquire()
76
+ elif self._backend == "asyncio":
77
+ await self._anyio_lock.acquire()
78
+
79
+ return self
80
+
81
+ async def __aexit__(
82
+ self,
83
+ exc_type: type[BaseException] | None = None,
84
+ exc_value: BaseException | None = None,
85
+ traceback: types.TracebackType | None = None,
86
+ ) -> None:
87
+ if self._backend == "trio":
88
+ self._trio_lock.release()
89
+ elif self._backend == "asyncio":
90
+ self._anyio_lock.release()
91
+
92
+
93
+ class AsyncThreadLock:
94
+ """
95
+ This is a threading-only lock for no-I/O contexts.
96
+
97
+ In the sync case `ThreadLock` provides thread locking.
98
+ In the async case `AsyncThreadLock` is a no-op.
99
+ """
100
+
101
+ def __enter__(self) -> AsyncThreadLock:
102
+ return self
103
+
104
+ def __exit__(
105
+ self,
106
+ exc_type: type[BaseException] | None = None,
107
+ exc_value: BaseException | None = None,
108
+ traceback: types.TracebackType | None = None,
109
+ ) -> None:
110
+ pass
111
+
112
+
113
+ class AsyncEvent:
114
+ def __init__(self) -> None:
115
+ self._backend = ""
116
+
117
+ def setup(self) -> None:
118
+ """
119
+ Detect if we're running under 'asyncio' or 'trio' and create
120
+ a lock with the correct implementation.
121
+ """
122
+ self._backend = current_async_library()
123
+ if self._backend == "trio":
124
+ self._trio_event = trio.Event()
125
+ elif self._backend == "asyncio":
126
+ self._anyio_event = anyio.Event()
127
+
128
+ def set(self) -> None:
129
+ if not self._backend:
130
+ self.setup()
131
+
132
+ if self._backend == "trio":
133
+ self._trio_event.set()
134
+ elif self._backend == "asyncio":
135
+ self._anyio_event.set()
136
+
137
+ async def wait(self, timeout: float | None = None) -> None:
138
+ if not self._backend:
139
+ self.setup()
140
+
141
+ if self._backend == "trio":
142
+ trio_exc_map: ExceptionMapping = {trio.TooSlowError: PoolTimeout}
143
+ timeout_or_inf = float("inf") if timeout is None else timeout
144
+ with map_exceptions(trio_exc_map):
145
+ with trio.fail_after(timeout_or_inf):
146
+ await self._trio_event.wait()
147
+ elif self._backend == "asyncio":
148
+ anyio_exc_map: ExceptionMapping = {TimeoutError: PoolTimeout}
149
+ with map_exceptions(anyio_exc_map):
150
+ with anyio.fail_after(timeout):
151
+ await self._anyio_event.wait()
152
+
153
+
154
+ class AsyncSemaphore:
155
+ def __init__(self, bound: int) -> None:
156
+ self._bound = bound
157
+ self._backend = ""
158
+
159
+ def setup(self) -> None:
160
+ """
161
+ Detect if we're running under 'asyncio' or 'trio' and create
162
+ a semaphore with the correct implementation.
163
+ """
164
+ self._backend = current_async_library()
165
+ if self._backend == "trio":
166
+ self._trio_semaphore = trio.Semaphore(
167
+ initial_value=self._bound, max_value=self._bound
168
+ )
169
+ elif self._backend == "asyncio":
170
+ self._anyio_semaphore = anyio.Semaphore(
171
+ initial_value=self._bound, max_value=self._bound
172
+ )
173
+
174
+ async def acquire(self) -> None:
175
+ if not self._backend:
176
+ self.setup()
177
+
178
+ if self._backend == "trio":
179
+ await self._trio_semaphore.acquire()
180
+ elif self._backend == "asyncio":
181
+ await self._anyio_semaphore.acquire()
182
+
183
+ async def release(self) -> None:
184
+ if self._backend == "trio":
185
+ self._trio_semaphore.release()
186
+ elif self._backend == "asyncio":
187
+ self._anyio_semaphore.release()
188
+
189
+
190
+ class AsyncShieldCancellation:
191
+ # For certain portions of our codebase where we're dealing with
192
+ # closing connections during exception handling we want to shield
193
+ # the operation from being cancelled.
194
+ #
195
+ # with AsyncShieldCancellation():
196
+ # ... # clean-up operations, shielded from cancellation.
197
+
198
+ def __init__(self) -> None:
199
+ """
200
+ Detect if we're running under 'asyncio' or 'trio' and create
201
+ a shielded scope with the correct implementation.
202
+ """
203
+ self._backend = current_async_library()
204
+
205
+ if self._backend == "trio":
206
+ self._trio_shield = trio.CancelScope(shield=True)
207
+ elif self._backend == "asyncio":
208
+ self._anyio_shield = anyio.CancelScope(shield=True)
209
+
210
+ def __enter__(self) -> AsyncShieldCancellation:
211
+ if self._backend == "trio":
212
+ self._trio_shield.__enter__()
213
+ elif self._backend == "asyncio":
214
+ self._anyio_shield.__enter__()
215
+ return self
216
+
217
+ def __exit__(
218
+ self,
219
+ exc_type: type[BaseException] | None = None,
220
+ exc_value: BaseException | None = None,
221
+ traceback: types.TracebackType | None = None,
222
+ ) -> None:
223
+ if self._backend == "trio":
224
+ self._trio_shield.__exit__(exc_type, exc_value, traceback)
225
+ elif self._backend == "asyncio":
226
+ self._anyio_shield.__exit__(exc_type, exc_value, traceback)
227
+
228
+
229
+ # Our thread-based synchronization primitives...
230
+
231
+
232
+ class Lock:
233
+ """
234
+ This is a standard lock.
235
+
236
+ In the sync case `Lock` provides thread locking.
237
+ In the async case `AsyncLock` provides async locking.
238
+ """
239
+
240
+ def __init__(self) -> None:
241
+ self._lock = threading.Lock()
242
+
243
+ def __enter__(self) -> Lock:
244
+ self._lock.acquire()
245
+ return self
246
+
247
+ def __exit__(
248
+ self,
249
+ exc_type: type[BaseException] | None = None,
250
+ exc_value: BaseException | None = None,
251
+ traceback: types.TracebackType | None = None,
252
+ ) -> None:
253
+ self._lock.release()
254
+
255
+
256
+ class ThreadLock:
257
+ """
258
+ This is a threading-only lock for no-I/O contexts.
259
+
260
+ In the sync case `ThreadLock` provides thread locking.
261
+ In the async case `AsyncThreadLock` is a no-op.
262
+ """
263
+
264
+ def __init__(self) -> None:
265
+ self._lock = threading.Lock()
266
+
267
+ def __enter__(self) -> ThreadLock:
268
+ self._lock.acquire()
269
+ return self
270
+
271
+ def __exit__(
272
+ self,
273
+ exc_type: type[BaseException] | None = None,
274
+ exc_value: BaseException | None = None,
275
+ traceback: types.TracebackType | None = None,
276
+ ) -> None:
277
+ self._lock.release()
278
+
279
+
280
+ class Event:
281
+ def __init__(self) -> None:
282
+ self._event = threading.Event()
283
+
284
+ def set(self) -> None:
285
+ self._event.set()
286
+
287
+ def wait(self, timeout: float | None = None) -> None:
288
+ if timeout == float("inf"): # pragma: no cover
289
+ timeout = None
290
+ if not self._event.wait(timeout=timeout):
291
+ raise PoolTimeout() # pragma: nocover
292
+
293
+
294
+ class Semaphore:
295
+ def __init__(self, bound: int) -> None:
296
+ self._semaphore = threading.Semaphore(value=bound)
297
+
298
+ def acquire(self) -> None:
299
+ self._semaphore.acquire()
300
+
301
+ def release(self) -> None:
302
+ self._semaphore.release()
303
+
304
+
305
+ class ShieldCancellation:
306
+ # Thread-synchronous codebases don't support cancellation semantics.
307
+ # We have this class because we need to mirror the async and sync
308
+ # cases within our package, but it's just a no-op.
309
+ def __enter__(self) -> ShieldCancellation:
310
+ return self
311
+
312
+ def __exit__(
313
+ self,
314
+ exc_type: type[BaseException] | None = None,
315
+ exc_value: BaseException | None = None,
316
+ traceback: types.TracebackType | None = None,
317
+ ) -> None:
318
+ pass
venv/lib/python3.12/site-packages/httpcore/_trace.py ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ import inspect
4
+ import logging
5
+ import types
6
+ import typing
7
+
8
+ from ._models import Request
9
+
10
+
11
+ class Trace:
12
+ def __init__(
13
+ self,
14
+ name: str,
15
+ logger: logging.Logger,
16
+ request: Request | None = None,
17
+ kwargs: dict[str, typing.Any] | None = None,
18
+ ) -> None:
19
+ self.name = name
20
+ self.logger = logger
21
+ self.trace_extension = (
22
+ None if request is None else request.extensions.get("trace")
23
+ )
24
+ self.debug = self.logger.isEnabledFor(logging.DEBUG)
25
+ self.kwargs = kwargs or {}
26
+ self.return_value: typing.Any = None
27
+ self.should_trace = self.debug or self.trace_extension is not None
28
+ self.prefix = self.logger.name.split(".")[-1]
29
+
30
+ def trace(self, name: str, info: dict[str, typing.Any]) -> None:
31
+ if self.trace_extension is not None:
32
+ prefix_and_name = f"{self.prefix}.{name}"
33
+ ret = self.trace_extension(prefix_and_name, info)
34
+ if inspect.iscoroutine(ret): # pragma: no cover
35
+ raise TypeError(
36
+ "If you are using a synchronous interface, "
37
+ "the callback of the `trace` extension should "
38
+ "be a normal function instead of an asynchronous function."
39
+ )
40
+
41
+ if self.debug:
42
+ if not info or "return_value" in info and info["return_value"] is None:
43
+ message = name
44
+ else:
45
+ args = " ".join([f"{key}={value!r}" for key, value in info.items()])
46
+ message = f"{name} {args}"
47
+ self.logger.debug(message)
48
+
49
+ def __enter__(self) -> Trace:
50
+ if self.should_trace:
51
+ info = self.kwargs
52
+ self.trace(f"{self.name}.started", info)
53
+ return self
54
+
55
+ def __exit__(
56
+ self,
57
+ exc_type: type[BaseException] | None = None,
58
+ exc_value: BaseException | None = None,
59
+ traceback: types.TracebackType | None = None,
60
+ ) -> None:
61
+ if self.should_trace:
62
+ if exc_value is None:
63
+ info = {"return_value": self.return_value}
64
+ self.trace(f"{self.name}.complete", info)
65
+ else:
66
+ info = {"exception": exc_value}
67
+ self.trace(f"{self.name}.failed", info)
68
+
69
+ async def atrace(self, name: str, info: dict[str, typing.Any]) -> None:
70
+ if self.trace_extension is not None:
71
+ prefix_and_name = f"{self.prefix}.{name}"
72
+ coro = self.trace_extension(prefix_and_name, info)
73
+ if not inspect.iscoroutine(coro): # pragma: no cover
74
+ raise TypeError(
75
+ "If you're using an asynchronous interface, "
76
+ "the callback of the `trace` extension should "
77
+ "be an asynchronous function rather than a normal function."
78
+ )
79
+ await coro
80
+
81
+ if self.debug:
82
+ if not info or "return_value" in info and info["return_value"] is None:
83
+ message = name
84
+ else:
85
+ args = " ".join([f"{key}={value!r}" for key, value in info.items()])
86
+ message = f"{name} {args}"
87
+ self.logger.debug(message)
88
+
89
+ async def __aenter__(self) -> Trace:
90
+ if self.should_trace:
91
+ info = self.kwargs
92
+ await self.atrace(f"{self.name}.started", info)
93
+ return self
94
+
95
+ async def __aexit__(
96
+ self,
97
+ exc_type: type[BaseException] | None = None,
98
+ exc_value: BaseException | None = None,
99
+ traceback: types.TracebackType | None = None,
100
+ ) -> None:
101
+ if self.should_trace:
102
+ if exc_value is None:
103
+ info = {"return_value": self.return_value}
104
+ await self.atrace(f"{self.name}.complete", info)
105
+ else:
106
+ info = {"exception": exc_value}
107
+ await self.atrace(f"{self.name}.failed", info)
venv/lib/python3.12/site-packages/httpcore/_utils.py ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ import select
4
+ import socket
5
+ import sys
6
+
7
+
8
+ def is_socket_readable(sock: socket.socket | None) -> bool:
9
+ """
10
+ Return whether a socket, as identifed by its file descriptor, is readable.
11
+ "A socket is readable" means that the read buffer isn't empty, i.e. that calling
12
+ .recv() on it would immediately return some data.
13
+ """
14
+ # NOTE: we want check for readability without actually attempting to read, because
15
+ # we don't want to block forever if it's not readable.
16
+
17
+ # In the case that the socket no longer exists, or cannot return a file
18
+ # descriptor, we treat it as being readable, as if it the next read operation
19
+ # on it is ready to return the terminating `b""`.
20
+ sock_fd = None if sock is None else sock.fileno()
21
+ if sock_fd is None or sock_fd < 0: # pragma: nocover
22
+ return True
23
+
24
+ # The implementation below was stolen from:
25
+ # https://github.com/python-trio/trio/blob/20ee2b1b7376db637435d80e266212a35837ddcc/trio/_socket.py#L471-L478
26
+ # See also: https://github.com/encode/httpcore/pull/193#issuecomment-703129316
27
+
28
+ # Use select.select on Windows, and when poll is unavailable and select.poll
29
+ # everywhere else. (E.g. When eventlet is in use. See #327)
30
+ if (
31
+ sys.platform == "win32" or getattr(select, "poll", None) is None
32
+ ): # pragma: nocover
33
+ rready, _, _ = select.select([sock_fd], [], [], 0)
34
+ return bool(rready)
35
+ p = select.poll()
36
+ p.register(sock_fd, select.POLLIN)
37
+ return bool(p.poll(0))
venv/lib/python3.12/site-packages/httpcore/py.typed ADDED
File without changes
venv/lib/python3.12/site-packages/idna/codec.py ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import codecs
2
+ import re
3
+ from typing import Any, Optional, Tuple
4
+
5
+ from .core import IDNAError, alabel, decode, encode, ulabel
6
+
7
+ _unicode_dots_re = re.compile("[\u002e\u3002\uff0e\uff61]")
8
+
9
+
10
+ class Codec(codecs.Codec):
11
+ def encode(self, data: str, errors: str = "strict") -> Tuple[bytes, int]:
12
+ if errors != "strict":
13
+ raise IDNAError('Unsupported error handling "{}"'.format(errors))
14
+
15
+ if not data:
16
+ return b"", 0
17
+
18
+ return encode(data), len(data)
19
+
20
+ def decode(self, data: bytes, errors: str = "strict") -> Tuple[str, int]:
21
+ if errors != "strict":
22
+ raise IDNAError('Unsupported error handling "{}"'.format(errors))
23
+
24
+ if not data:
25
+ return "", 0
26
+
27
+ return decode(data), len(data)
28
+
29
+
30
+ class IncrementalEncoder(codecs.BufferedIncrementalEncoder):
31
+ def _buffer_encode(self, data: str, errors: str, final: bool) -> Tuple[bytes, int]:
32
+ if errors != "strict":
33
+ raise IDNAError('Unsupported error handling "{}"'.format(errors))
34
+
35
+ if not data:
36
+ return b"", 0
37
+
38
+ labels = _unicode_dots_re.split(data)
39
+ trailing_dot = b""
40
+ if labels:
41
+ if not labels[-1]:
42
+ trailing_dot = b"."
43
+ del labels[-1]
44
+ elif not final:
45
+ # Keep potentially unfinished label until the next call
46
+ del labels[-1]
47
+ if labels:
48
+ trailing_dot = b"."
49
+
50
+ result = []
51
+ size = 0
52
+ for label in labels:
53
+ result.append(alabel(label))
54
+ if size:
55
+ size += 1
56
+ size += len(label)
57
+
58
+ # Join with U+002E
59
+ result_bytes = b".".join(result) + trailing_dot
60
+ size += len(trailing_dot)
61
+ return result_bytes, size
62
+
63
+
64
+ class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
65
+ def _buffer_decode(self, data: Any, errors: str, final: bool) -> Tuple[str, int]:
66
+ if errors != "strict":
67
+ raise IDNAError('Unsupported error handling "{}"'.format(errors))
68
+
69
+ if not data:
70
+ return ("", 0)
71
+
72
+ if not isinstance(data, str):
73
+ data = str(data, "ascii")
74
+
75
+ labels = _unicode_dots_re.split(data)
76
+ trailing_dot = ""
77
+ if labels:
78
+ if not labels[-1]:
79
+ trailing_dot = "."
80
+ del labels[-1]
81
+ elif not final:
82
+ # Keep potentially unfinished label until the next call
83
+ del labels[-1]
84
+ if labels:
85
+ trailing_dot = "."
86
+
87
+ result = []
88
+ size = 0
89
+ for label in labels:
90
+ result.append(ulabel(label))
91
+ if size:
92
+ size += 1
93
+ size += len(label)
94
+
95
+ result_str = ".".join(result) + trailing_dot
96
+ size += len(trailing_dot)
97
+ return (result_str, size)
98
+
99
+
100
+ class StreamWriter(Codec, codecs.StreamWriter):
101
+ pass
102
+
103
+
104
+ class StreamReader(Codec, codecs.StreamReader):
105
+ pass
106
+
107
+
108
+ def search_function(name: str) -> Optional[codecs.CodecInfo]:
109
+ if name != "idna2008":
110
+ return None
111
+ return codecs.CodecInfo(
112
+ name=name,
113
+ encode=Codec().encode,
114
+ decode=Codec().decode, # type: ignore
115
+ incrementalencoder=IncrementalEncoder,
116
+ incrementaldecoder=IncrementalDecoder,
117
+ streamwriter=StreamWriter,
118
+ streamreader=StreamReader,
119
+ )
120
+
121
+
122
+ codecs.register(search_function)
venv/lib/python3.12/site-packages/idna/compat.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, Union
2
+
3
+ from .core import decode, encode
4
+
5
+
6
+ def ToASCII(label: str) -> bytes:
7
+ return encode(label)
8
+
9
+
10
+ def ToUnicode(label: Union[bytes, bytearray]) -> str:
11
+ return decode(label)
12
+
13
+
14
+ def nameprep(s: Any) -> None:
15
+ raise NotImplementedError("IDNA 2008 does not utilise nameprep protocol")
venv/lib/python3.12/site-packages/idna/core.py ADDED
@@ -0,0 +1,440 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import bisect
2
+ import re
3
+ import unicodedata
4
+ import warnings
5
+ from typing import Optional, Union
6
+
7
+ from . import idnadata
8
+ from .intranges import intranges_contain
9
+
10
+ _virama_combining_class = 9
11
+ _alabel_prefix = b"xn--"
12
+ _unicode_dots_re = re.compile("[\u002e\u3002\uff0e\uff61]")
13
+
14
+
15
+ class IDNAError(UnicodeError):
16
+ """Base exception for all IDNA-encoding related problems"""
17
+
18
+ pass
19
+
20
+
21
+ class IDNABidiError(IDNAError):
22
+ """Exception when bidirectional requirements are not satisfied"""
23
+
24
+ pass
25
+
26
+
27
+ class InvalidCodepoint(IDNAError):
28
+ """Exception when a disallowed or unallocated codepoint is used"""
29
+
30
+ pass
31
+
32
+
33
+ class InvalidCodepointContext(IDNAError):
34
+ """Exception when the codepoint is not valid in the context it is used"""
35
+
36
+ pass
37
+
38
+
39
+ def _combining_class(cp: int) -> int:
40
+ v = unicodedata.combining(chr(cp))
41
+ if v == 0:
42
+ if not unicodedata.name(chr(cp)):
43
+ raise ValueError("Unknown character in unicodedata")
44
+ return v
45
+
46
+
47
+ def _is_script(cp: str, script: str) -> bool:
48
+ return intranges_contain(ord(cp), idnadata.scripts[script])
49
+
50
+
51
+ def _punycode(s: str) -> bytes:
52
+ return s.encode("punycode")
53
+
54
+
55
+ def _unot(s: int) -> str:
56
+ return "U+{:04X}".format(s)
57
+
58
+
59
+ def valid_label_length(label: Union[bytes, str]) -> bool:
60
+ if len(label) > 63:
61
+ return False
62
+ return True
63
+
64
+
65
+ def valid_string_length(label: Union[bytes, str], trailing_dot: bool) -> bool:
66
+ if len(label) > (254 if trailing_dot else 253):
67
+ return False
68
+ return True
69
+
70
+
71
+ def check_bidi(label: str, check_ltr: bool = False) -> bool:
72
+ # Bidi rules should only be applied if string contains RTL characters
73
+ bidi_label = False
74
+ for idx, cp in enumerate(label, 1):
75
+ direction = unicodedata.bidirectional(cp)
76
+ if direction == "":
77
+ # String likely comes from a newer version of Unicode
78
+ raise IDNABidiError("Unknown directionality in label {} at position {}".format(repr(label), idx))
79
+ if direction in ["R", "AL", "AN"]:
80
+ bidi_label = True
81
+ if not bidi_label and not check_ltr:
82
+ return True
83
+
84
+ # Bidi rule 1
85
+ direction = unicodedata.bidirectional(label[0])
86
+ if direction in ["R", "AL"]:
87
+ rtl = True
88
+ elif direction == "L":
89
+ rtl = False
90
+ else:
91
+ raise IDNABidiError("First codepoint in label {} must be directionality L, R or AL".format(repr(label)))
92
+
93
+ valid_ending = False
94
+ number_type: Optional[str] = None
95
+ for idx, cp in enumerate(label, 1):
96
+ direction = unicodedata.bidirectional(cp)
97
+
98
+ if rtl:
99
+ # Bidi rule 2
100
+ if direction not in [
101
+ "R",
102
+ "AL",
103
+ "AN",
104
+ "EN",
105
+ "ES",
106
+ "CS",
107
+ "ET",
108
+ "ON",
109
+ "BN",
110
+ "NSM",
111
+ ]:
112
+ raise IDNABidiError("Invalid direction for codepoint at position {} in a right-to-left label".format(idx))
113
+ # Bidi rule 3
114
+ if direction in ["R", "AL", "EN", "AN"]:
115
+ valid_ending = True
116
+ elif direction != "NSM":
117
+ valid_ending = False
118
+ # Bidi rule 4
119
+ if direction in ["AN", "EN"]:
120
+ if not number_type:
121
+ number_type = direction
122
+ else:
123
+ if number_type != direction:
124
+ raise IDNABidiError("Can not mix numeral types in a right-to-left label")
125
+ else:
126
+ # Bidi rule 5
127
+ if direction not in ["L", "EN", "ES", "CS", "ET", "ON", "BN", "NSM"]:
128
+ raise IDNABidiError("Invalid direction for codepoint at position {} in a left-to-right label".format(idx))
129
+ # Bidi rule 6
130
+ if direction in ["L", "EN"]:
131
+ valid_ending = True
132
+ elif direction != "NSM":
133
+ valid_ending = False
134
+
135
+ if not valid_ending:
136
+ raise IDNABidiError("Label ends with illegal codepoint directionality")
137
+
138
+ return True
139
+
140
+
141
+ def check_initial_combiner(label: str) -> bool:
142
+ if unicodedata.category(label[0])[0] == "M":
143
+ raise IDNAError("Label begins with an illegal combining character")
144
+ return True
145
+
146
+
147
+ def check_hyphen_ok(label: str) -> bool:
148
+ if label[2:4] == "--":
149
+ raise IDNAError("Label has disallowed hyphens in 3rd and 4th position")
150
+ if label[0] == "-" or label[-1] == "-":
151
+ raise IDNAError("Label must not start or end with a hyphen")
152
+ return True
153
+
154
+
155
+ def check_nfc(label: str) -> None:
156
+ if unicodedata.normalize("NFC", label) != label:
157
+ raise IDNAError("Label must be in Normalization Form C")
158
+
159
+
160
+ def valid_contextj(label: str, pos: int) -> bool:
161
+ cp_value = ord(label[pos])
162
+
163
+ if cp_value == 0x200C:
164
+ if pos > 0:
165
+ if _combining_class(ord(label[pos - 1])) == _virama_combining_class:
166
+ return True
167
+
168
+ ok = False
169
+ for i in range(pos - 1, -1, -1):
170
+ joining_type = idnadata.joining_types().get(ord(label[i]))
171
+ if joining_type == ord("T"):
172
+ continue
173
+ elif joining_type in [ord("L"), ord("D")]:
174
+ ok = True
175
+ break
176
+ else:
177
+ break
178
+
179
+ if not ok:
180
+ return False
181
+
182
+ ok = False
183
+ for i in range(pos + 1, len(label)):
184
+ joining_type = idnadata.joining_types().get(ord(label[i]))
185
+ if joining_type == ord("T"):
186
+ continue
187
+ elif joining_type in [ord("R"), ord("D")]:
188
+ ok = True
189
+ break
190
+ else:
191
+ break
192
+ return ok
193
+
194
+ if cp_value == 0x200D:
195
+ if pos > 0:
196
+ if _combining_class(ord(label[pos - 1])) == _virama_combining_class:
197
+ return True
198
+ return False
199
+
200
+ else:
201
+ return False
202
+
203
+
204
+ def valid_contexto(label: str, pos: int, exception: bool = False) -> bool:
205
+ cp_value = ord(label[pos])
206
+
207
+ if cp_value == 0x00B7:
208
+ if 0 < pos < len(label) - 1:
209
+ if ord(label[pos - 1]) == 0x006C and ord(label[pos + 1]) == 0x006C:
210
+ return True
211
+ return False
212
+
213
+ elif cp_value == 0x0375:
214
+ if pos < len(label) - 1 and len(label) > 1:
215
+ return _is_script(label[pos + 1], "Greek")
216
+ return False
217
+
218
+ elif cp_value == 0x05F3 or cp_value == 0x05F4:
219
+ if pos > 0:
220
+ return _is_script(label[pos - 1], "Hebrew")
221
+ return False
222
+
223
+ elif cp_value == 0x30FB:
224
+ for cp in label:
225
+ if cp == "\u30fb":
226
+ continue
227
+ if _is_script(cp, "Hiragana") or _is_script(cp, "Katakana") or _is_script(cp, "Han"):
228
+ return True
229
+ return False
230
+
231
+ elif 0x660 <= cp_value <= 0x669:
232
+ for cp in label:
233
+ if 0x6F0 <= ord(cp) <= 0x06F9:
234
+ return False
235
+ return True
236
+
237
+ elif 0x6F0 <= cp_value <= 0x6F9:
238
+ for cp in label:
239
+ if 0x660 <= ord(cp) <= 0x0669:
240
+ return False
241
+ return True
242
+
243
+ return False
244
+
245
+
246
+ def check_label(label: Union[str, bytes, bytearray]) -> None:
247
+ if isinstance(label, (bytes, bytearray)):
248
+ label = label.decode("utf-8")
249
+ if len(label) == 0:
250
+ raise IDNAError("Empty Label")
251
+
252
+ check_nfc(label)
253
+ check_hyphen_ok(label)
254
+ check_initial_combiner(label)
255
+
256
+ for pos, cp in enumerate(label):
257
+ cp_value = ord(cp)
258
+ if intranges_contain(cp_value, idnadata.codepoint_classes["PVALID"]):
259
+ continue
260
+ elif intranges_contain(cp_value, idnadata.codepoint_classes["CONTEXTJ"]):
261
+ try:
262
+ if not valid_contextj(label, pos):
263
+ raise InvalidCodepointContext(
264
+ "Joiner {} not allowed at position {} in {}".format(_unot(cp_value), pos + 1, repr(label))
265
+ )
266
+ except ValueError:
267
+ raise IDNAError(
268
+ "Unknown codepoint adjacent to joiner {} at position {} in {}".format(
269
+ _unot(cp_value), pos + 1, repr(label)
270
+ )
271
+ )
272
+ elif intranges_contain(cp_value, idnadata.codepoint_classes["CONTEXTO"]):
273
+ if not valid_contexto(label, pos):
274
+ raise InvalidCodepointContext(
275
+ "Codepoint {} not allowed at position {} in {}".format(_unot(cp_value), pos + 1, repr(label))
276
+ )
277
+ else:
278
+ raise InvalidCodepoint(
279
+ "Codepoint {} at position {} of {} not allowed".format(_unot(cp_value), pos + 1, repr(label))
280
+ )
281
+
282
+ check_bidi(label)
283
+
284
+
285
+ def alabel(label: str) -> bytes:
286
+ try:
287
+ label_bytes = label.encode("ascii")
288
+ ulabel(label_bytes)
289
+ if not valid_label_length(label_bytes):
290
+ raise IDNAError("Label too long")
291
+ return label_bytes
292
+ except UnicodeEncodeError:
293
+ pass
294
+
295
+ check_label(label)
296
+ label_bytes = _alabel_prefix + _punycode(label)
297
+
298
+ if not valid_label_length(label_bytes):
299
+ raise IDNAError("Label too long")
300
+
301
+ return label_bytes
302
+
303
+
304
+ def ulabel(label: Union[str, bytes, bytearray]) -> str:
305
+ if not isinstance(label, (bytes, bytearray)):
306
+ try:
307
+ label_bytes = label.encode("ascii")
308
+ except UnicodeEncodeError:
309
+ check_label(label)
310
+ return label
311
+ else:
312
+ label_bytes = bytes(label)
313
+
314
+ label_bytes = label_bytes.lower()
315
+ if label_bytes.startswith(_alabel_prefix):
316
+ label_bytes = label_bytes[len(_alabel_prefix) :]
317
+ if not label_bytes:
318
+ raise IDNAError("Malformed A-label, no Punycode eligible content found")
319
+ if label_bytes.decode("ascii")[-1] == "-":
320
+ raise IDNAError("A-label must not end with a hyphen")
321
+ else:
322
+ check_label(label_bytes)
323
+ return label_bytes.decode("ascii")
324
+
325
+ try:
326
+ label = label_bytes.decode("punycode")
327
+ except UnicodeError:
328
+ raise IDNAError("Invalid A-label")
329
+ check_label(label)
330
+ return label
331
+
332
+
333
+ def uts46_remap(domain: str, std3_rules: bool = True, transitional: bool = False) -> str:
334
+ """Re-map the characters in the string according to UTS46 processing."""
335
+ from .uts46data import uts46data
336
+
337
+ output = ""
338
+
339
+ for pos, char in enumerate(domain):
340
+ code_point = ord(char)
341
+ uts46row = uts46data[code_point if code_point < 256 else bisect.bisect_left(uts46data, (code_point, "Z")) - 1]
342
+ status = uts46row[1]
343
+ replacement: Optional[str] = None
344
+ if len(uts46row) == 3:
345
+ replacement = uts46row[2]
346
+ if status == "V" or (status == "D" and not transitional) or (status == "3" and not std3_rules and replacement is None):
347
+ output += char
348
+ elif replacement is not None and (
349
+ status == "M" or (status == "3" and not std3_rules) or (status == "D" and transitional)
350
+ ):
351
+ output += replacement
352
+ elif status == "I":
353
+ continue
354
+ else:
355
+ raise InvalidCodepoint(
356
+ "Codepoint {} not allowed at position {} in {}".format(_unot(code_point), pos + 1, repr(domain))
357
+ )
358
+
359
+ return unicodedata.normalize("NFC", output)
360
+
361
+
362
+ def encode(
363
+ s: Union[str, bytes, bytearray],
364
+ strict: bool = False,
365
+ uts46: bool = False,
366
+ std3_rules: bool = False,
367
+ transitional: bool = False,
368
+ ) -> bytes:
369
+ if transitional:
370
+ warnings.warn(
371
+ "Transitional processing has been removed from UTS #46. "
372
+ "The transitional argument will be removed in a future version.",
373
+ DeprecationWarning,
374
+ stacklevel=2,
375
+ )
376
+ if not isinstance(s, str):
377
+ try:
378
+ s = str(s, "ascii")
379
+ except UnicodeDecodeError:
380
+ raise IDNAError("should pass a unicode string to the function rather than a byte string.")
381
+ if uts46:
382
+ s = uts46_remap(s, std3_rules, transitional)
383
+ trailing_dot = False
384
+ result = []
385
+ if strict:
386
+ labels = s.split(".")
387
+ else:
388
+ labels = _unicode_dots_re.split(s)
389
+ if not labels or labels == [""]:
390
+ raise IDNAError("Empty domain")
391
+ if labels[-1] == "":
392
+ del labels[-1]
393
+ trailing_dot = True
394
+ for label in labels:
395
+ s = alabel(label)
396
+ if s:
397
+ result.append(s)
398
+ else:
399
+ raise IDNAError("Empty label")
400
+ if trailing_dot:
401
+ result.append(b"")
402
+ s = b".".join(result)
403
+ if not valid_string_length(s, trailing_dot):
404
+ raise IDNAError("Domain too long")
405
+ return s
406
+
407
+
408
+ def decode(
409
+ s: Union[str, bytes, bytearray],
410
+ strict: bool = False,
411
+ uts46: bool = False,
412
+ std3_rules: bool = False,
413
+ ) -> str:
414
+ try:
415
+ if not isinstance(s, str):
416
+ s = str(s, "ascii")
417
+ except UnicodeDecodeError:
418
+ raise IDNAError("Invalid ASCII in A-label")
419
+ if uts46:
420
+ s = uts46_remap(s, std3_rules, False)
421
+ trailing_dot = False
422
+ result = []
423
+ if not strict:
424
+ labels = _unicode_dots_re.split(s)
425
+ else:
426
+ labels = s.split(".")
427
+ if not labels or labels == [""]:
428
+ raise IDNAError("Empty domain")
429
+ if not labels[-1]:
430
+ del labels[-1]
431
+ trailing_dot = True
432
+ for label in labels:
433
+ s = ulabel(label)
434
+ if s:
435
+ result.append(s)
436
+ else:
437
+ raise IDNAError("Empty label")
438
+ if trailing_dot:
439
+ result.append("")
440
+ return ".".join(result)
venv/lib/python3.12/site-packages/idna/idnadata.py ADDED
@@ -0,0 +1,4367 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file is automatically generated by tools/idna-data
2
+
3
+ from functools import lru_cache
4
+ from typing import Dict
5
+
6
+ __version__ = "17.0.0"
7
+
8
+ scripts = {
9
+ "Greek": (
10
+ 0x37000000374,
11
+ 0x37500000378,
12
+ 0x37A0000037E,
13
+ 0x37F00000380,
14
+ 0x38400000385,
15
+ 0x38600000387,
16
+ 0x3880000038B,
17
+ 0x38C0000038D,
18
+ 0x38E000003A2,
19
+ 0x3A3000003E2,
20
+ 0x3F000000400,
21
+ 0x1D2600001D2B,
22
+ 0x1D5D00001D62,
23
+ 0x1D6600001D6B,
24
+ 0x1DBF00001DC0,
25
+ 0x1F0000001F16,
26
+ 0x1F1800001F1E,
27
+ 0x1F2000001F46,
28
+ 0x1F4800001F4E,
29
+ 0x1F5000001F58,
30
+ 0x1F5900001F5A,
31
+ 0x1F5B00001F5C,
32
+ 0x1F5D00001F5E,
33
+ 0x1F5F00001F7E,
34
+ 0x1F8000001FB5,
35
+ 0x1FB600001FC5,
36
+ 0x1FC600001FD4,
37
+ 0x1FD600001FDC,
38
+ 0x1FDD00001FF0,
39
+ 0x1FF200001FF5,
40
+ 0x1FF600001FFF,
41
+ 0x212600002127,
42
+ 0xAB650000AB66,
43
+ 0x101400001018F,
44
+ 0x101A0000101A1,
45
+ 0x1D2000001D246,
46
+ ),
47
+ "Han": (
48
+ 0x2E8000002E9A,
49
+ 0x2E9B00002EF4,
50
+ 0x2F0000002FD6,
51
+ 0x300500003006,
52
+ 0x300700003008,
53
+ 0x30210000302A,
54
+ 0x30380000303C,
55
+ 0x340000004DC0,
56
+ 0x4E000000A000,
57
+ 0xF9000000FA6E,
58
+ 0xFA700000FADA,
59
+ 0x16FE200016FE4,
60
+ 0x16FF000016FF7,
61
+ 0x200000002A6E0,
62
+ 0x2A7000002B81E,
63
+ 0x2B8200002CEAE,
64
+ 0x2CEB00002EBE1,
65
+ 0x2EBF00002EE5E,
66
+ 0x2F8000002FA1E,
67
+ 0x300000003134B,
68
+ 0x313500003347A,
69
+ ),
70
+ "Hebrew": (
71
+ 0x591000005C8,
72
+ 0x5D0000005EB,
73
+ 0x5EF000005F5,
74
+ 0xFB1D0000FB37,
75
+ 0xFB380000FB3D,
76
+ 0xFB3E0000FB3F,
77
+ 0xFB400000FB42,
78
+ 0xFB430000FB45,
79
+ 0xFB460000FB50,
80
+ ),
81
+ "Hiragana": (
82
+ 0x304100003097,
83
+ 0x309D000030A0,
84
+ 0x1B0010001B120,
85
+ 0x1B1320001B133,
86
+ 0x1B1500001B153,
87
+ 0x1F2000001F201,
88
+ ),
89
+ "Katakana": (
90
+ 0x30A1000030FB,
91
+ 0x30FD00003100,
92
+ 0x31F000003200,
93
+ 0x32D0000032FF,
94
+ 0x330000003358,
95
+ 0xFF660000FF70,
96
+ 0xFF710000FF9E,
97
+ 0x1AFF00001AFF4,
98
+ 0x1AFF50001AFFC,
99
+ 0x1AFFD0001AFFF,
100
+ 0x1B0000001B001,
101
+ 0x1B1200001B123,
102
+ 0x1B1550001B156,
103
+ 0x1B1640001B168,
104
+ ),
105
+ }
106
+
107
+
108
+ @lru_cache(None)
109
+ def joining_types() -> Dict[int, int]:
110
+ return {
111
+ 0xAD: 84,
112
+ 0x300: 84,
113
+ 0x301: 84,
114
+ 0x302: 84,
115
+ 0x303: 84,
116
+ 0x304: 84,
117
+ 0x305: 84,
118
+ 0x306: 84,
119
+ 0x307: 84,
120
+ 0x308: 84,
121
+ 0x309: 84,
122
+ 0x30A: 84,
123
+ 0x30B: 84,
124
+ 0x30C: 84,
125
+ 0x30D: 84,
126
+ 0x30E: 84,
127
+ 0x30F: 84,
128
+ 0x310: 84,
129
+ 0x311: 84,
130
+ 0x312: 84,
131
+ 0x313: 84,
132
+ 0x314: 84,
133
+ 0x315: 84,
134
+ 0x316: 84,
135
+ 0x317: 84,
136
+ 0x318: 84,
137
+ 0x319: 84,
138
+ 0x31A: 84,
139
+ 0x31B: 84,
140
+ 0x31C: 84,
141
+ 0x31D: 84,
142
+ 0x31E: 84,
143
+ 0x31F: 84,
144
+ 0x320: 84,
145
+ 0x321: 84,
146
+ 0x322: 84,
147
+ 0x323: 84,
148
+ 0x324: 84,
149
+ 0x325: 84,
150
+ 0x326: 84,
151
+ 0x327: 84,
152
+ 0x328: 84,
153
+ 0x329: 84,
154
+ 0x32A: 84,
155
+ 0x32B: 84,
156
+ 0x32C: 84,
157
+ 0x32D: 84,
158
+ 0x32E: 84,
159
+ 0x32F: 84,
160
+ 0x330: 84,
161
+ 0x331: 84,
162
+ 0x332: 84,
163
+ 0x333: 84,
164
+ 0x334: 84,
165
+ 0x335: 84,
166
+ 0x336: 84,
167
+ 0x337: 84,
168
+ 0x338: 84,
169
+ 0x339: 84,
170
+ 0x33A: 84,
171
+ 0x33B: 84,
172
+ 0x33C: 84,
173
+ 0x33D: 84,
174
+ 0x33E: 84,
175
+ 0x33F: 84,
176
+ 0x340: 84,
177
+ 0x341: 84,
178
+ 0x342: 84,
179
+ 0x343: 84,
180
+ 0x344: 84,
181
+ 0x345: 84,
182
+ 0x346: 84,
183
+ 0x347: 84,
184
+ 0x348: 84,
185
+ 0x349: 84,
186
+ 0x34A: 84,
187
+ 0x34B: 84,
188
+ 0x34C: 84,
189
+ 0x34D: 84,
190
+ 0x34E: 84,
191
+ 0x34F: 84,
192
+ 0x350: 84,
193
+ 0x351: 84,
194
+ 0x352: 84,
195
+ 0x353: 84,
196
+ 0x354: 84,
197
+ 0x355: 84,
198
+ 0x356: 84,
199
+ 0x357: 84,
200
+ 0x358: 84,
201
+ 0x359: 84,
202
+ 0x35A: 84,
203
+ 0x35B: 84,
204
+ 0x35C: 84,
205
+ 0x35D: 84,
206
+ 0x35E: 84,
207
+ 0x35F: 84,
208
+ 0x360: 84,
209
+ 0x361: 84,
210
+ 0x362: 84,
211
+ 0x363: 84,
212
+ 0x364: 84,
213
+ 0x365: 84,
214
+ 0x366: 84,
215
+ 0x367: 84,
216
+ 0x368: 84,
217
+ 0x369: 84,
218
+ 0x36A: 84,
219
+ 0x36B: 84,
220
+ 0x36C: 84,
221
+ 0x36D: 84,
222
+ 0x36E: 84,
223
+ 0x36F: 84,
224
+ 0x483: 84,
225
+ 0x484: 84,
226
+ 0x485: 84,
227
+ 0x486: 84,
228
+ 0x487: 84,
229
+ 0x488: 84,
230
+ 0x489: 84,
231
+ 0x591: 84,
232
+ 0x592: 84,
233
+ 0x593: 84,
234
+ 0x594: 84,
235
+ 0x595: 84,
236
+ 0x596: 84,
237
+ 0x597: 84,
238
+ 0x598: 84,
239
+ 0x599: 84,
240
+ 0x59A: 84,
241
+ 0x59B: 84,
242
+ 0x59C: 84,
243
+ 0x59D: 84,
244
+ 0x59E: 84,
245
+ 0x59F: 84,
246
+ 0x5A0: 84,
247
+ 0x5A1: 84,
248
+ 0x5A2: 84,
249
+ 0x5A3: 84,
250
+ 0x5A4: 84,
251
+ 0x5A5: 84,
252
+ 0x5A6: 84,
253
+ 0x5A7: 84,
254
+ 0x5A8: 84,
255
+ 0x5A9: 84,
256
+ 0x5AA: 84,
257
+ 0x5AB: 84,
258
+ 0x5AC: 84,
259
+ 0x5AD: 84,
260
+ 0x5AE: 84,
261
+ 0x5AF: 84,
262
+ 0x5B0: 84,
263
+ 0x5B1: 84,
264
+ 0x5B2: 84,
265
+ 0x5B3: 84,
266
+ 0x5B4: 84,
267
+ 0x5B5: 84,
268
+ 0x5B6: 84,
269
+ 0x5B7: 84,
270
+ 0x5B8: 84,
271
+ 0x5B9: 84,
272
+ 0x5BA: 84,
273
+ 0x5BB: 84,
274
+ 0x5BC: 84,
275
+ 0x5BD: 84,
276
+ 0x5BF: 84,
277
+ 0x5C1: 84,
278
+ 0x5C2: 84,
279
+ 0x5C4: 84,
280
+ 0x5C5: 84,
281
+ 0x5C7: 84,
282
+ 0x610: 84,
283
+ 0x611: 84,
284
+ 0x612: 84,
285
+ 0x613: 84,
286
+ 0x614: 84,
287
+ 0x615: 84,
288
+ 0x616: 84,
289
+ 0x617: 84,
290
+ 0x618: 84,
291
+ 0x619: 84,
292
+ 0x61A: 84,
293
+ 0x61C: 84,
294
+ 0x620: 68,
295
+ 0x622: 82,
296
+ 0x623: 82,
297
+ 0x624: 82,
298
+ 0x625: 82,
299
+ 0x626: 68,
300
+ 0x627: 82,
301
+ 0x628: 68,
302
+ 0x629: 82,
303
+ 0x62A: 68,
304
+ 0x62B: 68,
305
+ 0x62C: 68,
306
+ 0x62D: 68,
307
+ 0x62E: 68,
308
+ 0x62F: 82,
309
+ 0x630: 82,
310
+ 0x631: 82,
311
+ 0x632: 82,
312
+ 0x633: 68,
313
+ 0x634: 68,
314
+ 0x635: 68,
315
+ 0x636: 68,
316
+ 0x637: 68,
317
+ 0x638: 68,
318
+ 0x639: 68,
319
+ 0x63A: 68,
320
+ 0x63B: 68,
321
+ 0x63C: 68,
322
+ 0x63D: 68,
323
+ 0x63E: 68,
324
+ 0x63F: 68,
325
+ 0x640: 67,
326
+ 0x641: 68,
327
+ 0x642: 68,
328
+ 0x643: 68,
329
+ 0x644: 68,
330
+ 0x645: 68,
331
+ 0x646: 68,
332
+ 0x647: 68,
333
+ 0x648: 82,
334
+ 0x649: 68,
335
+ 0x64A: 68,
336
+ 0x64B: 84,
337
+ 0x64C: 84,
338
+ 0x64D: 84,
339
+ 0x64E: 84,
340
+ 0x64F: 84,
341
+ 0x650: 84,
342
+ 0x651: 84,
343
+ 0x652: 84,
344
+ 0x653: 84,
345
+ 0x654: 84,
346
+ 0x655: 84,
347
+ 0x656: 84,
348
+ 0x657: 84,
349
+ 0x658: 84,
350
+ 0x659: 84,
351
+ 0x65A: 84,
352
+ 0x65B: 84,
353
+ 0x65C: 84,
354
+ 0x65D: 84,
355
+ 0x65E: 84,
356
+ 0x65F: 84,
357
+ 0x66E: 68,
358
+ 0x66F: 68,
359
+ 0x670: 84,
360
+ 0x671: 82,
361
+ 0x672: 82,
362
+ 0x673: 82,
363
+ 0x675: 82,
364
+ 0x676: 82,
365
+ 0x677: 82,
366
+ 0x678: 68,
367
+ 0x679: 68,
368
+ 0x67A: 68,
369
+ 0x67B: 68,
370
+ 0x67C: 68,
371
+ 0x67D: 68,
372
+ 0x67E: 68,
373
+ 0x67F: 68,
374
+ 0x680: 68,
375
+ 0x681: 68,
376
+ 0x682: 68,
377
+ 0x683: 68,
378
+ 0x684: 68,
379
+ 0x685: 68,
380
+ 0x686: 68,
381
+ 0x687: 68,
382
+ 0x688: 82,
383
+ 0x689: 82,
384
+ 0x68A: 82,
385
+ 0x68B: 82,
386
+ 0x68C: 82,
387
+ 0x68D: 82,
388
+ 0x68E: 82,
389
+ 0x68F: 82,
390
+ 0x690: 82,
391
+ 0x691: 82,
392
+ 0x692: 82,
393
+ 0x693: 82,
394
+ 0x694: 82,
395
+ 0x695: 82,
396
+ 0x696: 82,
397
+ 0x697: 82,
398
+ 0x698: 82,
399
+ 0x699: 82,
400
+ 0x69A: 68,
401
+ 0x69B: 68,
402
+ 0x69C: 68,
403
+ 0x69D: 68,
404
+ 0x69E: 68,
405
+ 0x69F: 68,
406
+ 0x6A0: 68,
407
+ 0x6A1: 68,
408
+ 0x6A2: 68,
409
+ 0x6A3: 68,
410
+ 0x6A4: 68,
411
+ 0x6A5: 68,
412
+ 0x6A6: 68,
413
+ 0x6A7: 68,
414
+ 0x6A8: 68,
415
+ 0x6A9: 68,
416
+ 0x6AA: 68,
417
+ 0x6AB: 68,
418
+ 0x6AC: 68,
419
+ 0x6AD: 68,
420
+ 0x6AE: 68,
421
+ 0x6AF: 68,
422
+ 0x6B0: 68,
423
+ 0x6B1: 68,
424
+ 0x6B2: 68,
425
+ 0x6B3: 68,
426
+ 0x6B4: 68,
427
+ 0x6B5: 68,
428
+ 0x6B6: 68,
429
+ 0x6B7: 68,
430
+ 0x6B8: 68,
431
+ 0x6B9: 68,
432
+ 0x6BA: 68,
433
+ 0x6BB: 68,
434
+ 0x6BC: 68,
435
+ 0x6BD: 68,
436
+ 0x6BE: 68,
437
+ 0x6BF: 68,
438
+ 0x6C0: 82,
439
+ 0x6C1: 68,
440
+ 0x6C2: 68,
441
+ 0x6C3: 82,
442
+ 0x6C4: 82,
443
+ 0x6C5: 82,
444
+ 0x6C6: 82,
445
+ 0x6C7: 82,
446
+ 0x6C8: 82,
447
+ 0x6C9: 82,
448
+ 0x6CA: 82,
449
+ 0x6CB: 82,
450
+ 0x6CC: 68,
451
+ 0x6CD: 82,
452
+ 0x6CE: 68,
453
+ 0x6CF: 82,
454
+ 0x6D0: 68,
455
+ 0x6D1: 68,
456
+ 0x6D2: 82,
457
+ 0x6D3: 82,
458
+ 0x6D5: 82,
459
+ 0x6D6: 84,
460
+ 0x6D7: 84,
461
+ 0x6D8: 84,
462
+ 0x6D9: 84,
463
+ 0x6DA: 84,
464
+ 0x6DB: 84,
465
+ 0x6DC: 84,
466
+ 0x6DF: 84,
467
+ 0x6E0: 84,
468
+ 0x6E1: 84,
469
+ 0x6E2: 84,
470
+ 0x6E3: 84,
471
+ 0x6E4: 84,
472
+ 0x6E7: 84,
473
+ 0x6E8: 84,
474
+ 0x6EA: 84,
475
+ 0x6EB: 84,
476
+ 0x6EC: 84,
477
+ 0x6ED: 84,
478
+ 0x6EE: 82,
479
+ 0x6EF: 82,
480
+ 0x6FA: 68,
481
+ 0x6FB: 68,
482
+ 0x6FC: 68,
483
+ 0x6FF: 68,
484
+ 0x70F: 84,
485
+ 0x710: 82,
486
+ 0x711: 84,
487
+ 0x712: 68,
488
+ 0x713: 68,
489
+ 0x714: 68,
490
+ 0x715: 82,
491
+ 0x716: 82,
492
+ 0x717: 82,
493
+ 0x718: 82,
494
+ 0x719: 82,
495
+ 0x71A: 68,
496
+ 0x71B: 68,
497
+ 0x71C: 68,
498
+ 0x71D: 68,
499
+ 0x71E: 82,
500
+ 0x71F: 68,
501
+ 0x720: 68,
502
+ 0x721: 68,
503
+ 0x722: 68,
504
+ 0x723: 68,
505
+ 0x724: 68,
506
+ 0x725: 68,
507
+ 0x726: 68,
508
+ 0x727: 68,
509
+ 0x728: 82,
510
+ 0x729: 68,
511
+ 0x72A: 82,
512
+ 0x72B: 68,
513
+ 0x72C: 82,
514
+ 0x72D: 68,
515
+ 0x72E: 68,
516
+ 0x72F: 82,
517
+ 0x730: 84,
518
+ 0x731: 84,
519
+ 0x732: 84,
520
+ 0x733: 84,
521
+ 0x734: 84,
522
+ 0x735: 84,
523
+ 0x736: 84,
524
+ 0x737: 84,
525
+ 0x738: 84,
526
+ 0x739: 84,
527
+ 0x73A: 84,
528
+ 0x73B: 84,
529
+ 0x73C: 84,
530
+ 0x73D: 84,
531
+ 0x73E: 84,
532
+ 0x73F: 84,
533
+ 0x740: 84,
534
+ 0x741: 84,
535
+ 0x742: 84,
536
+ 0x743: 84,
537
+ 0x744: 84,
538
+ 0x745: 84,
539
+ 0x746: 84,
540
+ 0x747: 84,
541
+ 0x748: 84,
542
+ 0x749: 84,
543
+ 0x74A: 84,
544
+ 0x74D: 82,
545
+ 0x74E: 68,
546
+ 0x74F: 68,
547
+ 0x750: 68,
548
+ 0x751: 68,
549
+ 0x752: 68,
550
+ 0x753: 68,
551
+ 0x754: 68,
552
+ 0x755: 68,
553
+ 0x756: 68,
554
+ 0x757: 68,
555
+ 0x758: 68,
556
+ 0x759: 82,
557
+ 0x75A: 82,
558
+ 0x75B: 82,
559
+ 0x75C: 68,
560
+ 0x75D: 68,
561
+ 0x75E: 68,
562
+ 0x75F: 68,
563
+ 0x760: 68,
564
+ 0x761: 68,
565
+ 0x762: 68,
566
+ 0x763: 68,
567
+ 0x764: 68,
568
+ 0x765: 68,
569
+ 0x766: 68,
570
+ 0x767: 68,
571
+ 0x768: 68,
572
+ 0x769: 68,
573
+ 0x76A: 68,
574
+ 0x76B: 82,
575
+ 0x76C: 82,
576
+ 0x76D: 68,
577
+ 0x76E: 68,
578
+ 0x76F: 68,
579
+ 0x770: 68,
580
+ 0x771: 82,
581
+ 0x772: 68,
582
+ 0x773: 82,
583
+ 0x774: 82,
584
+ 0x775: 68,
585
+ 0x776: 68,
586
+ 0x777: 68,
587
+ 0x778: 82,
588
+ 0x779: 82,
589
+ 0x77A: 68,
590
+ 0x77B: 68,
591
+ 0x77C: 68,
592
+ 0x77D: 68,
593
+ 0x77E: 68,
594
+ 0x77F: 68,
595
+ 0x7A6: 84,
596
+ 0x7A7: 84,
597
+ 0x7A8: 84,
598
+ 0x7A9: 84,
599
+ 0x7AA: 84,
600
+ 0x7AB: 84,
601
+ 0x7AC: 84,
602
+ 0x7AD: 84,
603
+ 0x7AE: 84,
604
+ 0x7AF: 84,
605
+ 0x7B0: 84,
606
+ 0x7CA: 68,
607
+ 0x7CB: 68,
608
+ 0x7CC: 68,
609
+ 0x7CD: 68,
610
+ 0x7CE: 68,
611
+ 0x7CF: 68,
612
+ 0x7D0: 68,
613
+ 0x7D1: 68,
614
+ 0x7D2: 68,
615
+ 0x7D3: 68,
616
+ 0x7D4: 68,
617
+ 0x7D5: 68,
618
+ 0x7D6: 68,
619
+ 0x7D7: 68,
620
+ 0x7D8: 68,
621
+ 0x7D9: 68,
622
+ 0x7DA: 68,
623
+ 0x7DB: 68,
624
+ 0x7DC: 68,
625
+ 0x7DD: 68,
626
+ 0x7DE: 68,
627
+ 0x7DF: 68,
628
+ 0x7E0: 68,
629
+ 0x7E1: 68,
630
+ 0x7E2: 68,
631
+ 0x7E3: 68,
632
+ 0x7E4: 68,
633
+ 0x7E5: 68,
634
+ 0x7E6: 68,
635
+ 0x7E7: 68,
636
+ 0x7E8: 68,
637
+ 0x7E9: 68,
638
+ 0x7EA: 68,
639
+ 0x7EB: 84,
640
+ 0x7EC: 84,
641
+ 0x7ED: 84,
642
+ 0x7EE: 84,
643
+ 0x7EF: 84,
644
+ 0x7F0: 84,
645
+ 0x7F1: 84,
646
+ 0x7F2: 84,
647
+ 0x7F3: 84,
648
+ 0x7FA: 67,
649
+ 0x7FD: 84,
650
+ 0x816: 84,
651
+ 0x817: 84,
652
+ 0x818: 84,
653
+ 0x819: 84,
654
+ 0x81B: 84,
655
+ 0x81C: 84,
656
+ 0x81D: 84,
657
+ 0x81E: 84,
658
+ 0x81F: 84,
659
+ 0x820: 84,
660
+ 0x821: 84,
661
+ 0x822: 84,
662
+ 0x823: 84,
663
+ 0x825: 84,
664
+ 0x826: 84,
665
+ 0x827: 84,
666
+ 0x829: 84,
667
+ 0x82A: 84,
668
+ 0x82B: 84,
669
+ 0x82C: 84,
670
+ 0x82D: 84,
671
+ 0x840: 82,
672
+ 0x841: 68,
673
+ 0x842: 68,
674
+ 0x843: 68,
675
+ 0x844: 68,
676
+ 0x845: 68,
677
+ 0x846: 82,
678
+ 0x847: 82,
679
+ 0x848: 68,
680
+ 0x849: 82,
681
+ 0x84A: 68,
682
+ 0x84B: 68,
683
+ 0x84C: 68,
684
+ 0x84D: 68,
685
+ 0x84E: 68,
686
+ 0x84F: 68,
687
+ 0x850: 68,
688
+ 0x851: 68,
689
+ 0x852: 68,
690
+ 0x853: 68,
691
+ 0x854: 82,
692
+ 0x855: 68,
693
+ 0x856: 82,
694
+ 0x857: 82,
695
+ 0x858: 82,
696
+ 0x859: 84,
697
+ 0x85A: 84,
698
+ 0x85B: 84,
699
+ 0x860: 68,
700
+ 0x862: 68,
701
+ 0x863: 68,
702
+ 0x864: 68,
703
+ 0x865: 68,
704
+ 0x867: 82,
705
+ 0x868: 68,
706
+ 0x869: 82,
707
+ 0x86A: 82,
708
+ 0x870: 82,
709
+ 0x871: 82,
710
+ 0x872: 82,
711
+ 0x873: 82,
712
+ 0x874: 82,
713
+ 0x875: 82,
714
+ 0x876: 82,
715
+ 0x877: 82,
716
+ 0x878: 82,
717
+ 0x879: 82,
718
+ 0x87A: 82,
719
+ 0x87B: 82,
720
+ 0x87C: 82,
721
+ 0x87D: 82,
722
+ 0x87E: 82,
723
+ 0x87F: 82,
724
+ 0x880: 82,
725
+ 0x881: 82,
726
+ 0x882: 82,
727
+ 0x883: 67,
728
+ 0x884: 67,
729
+ 0x885: 67,
730
+ 0x886: 68,
731
+ 0x889: 68,
732
+ 0x88A: 68,
733
+ 0x88B: 68,
734
+ 0x88C: 68,
735
+ 0x88D: 68,
736
+ 0x88E: 82,
737
+ 0x88F: 68,
738
+ 0x897: 84,
739
+ 0x898: 84,
740
+ 0x899: 84,
741
+ 0x89A: 84,
742
+ 0x89B: 84,
743
+ 0x89C: 84,
744
+ 0x89D: 84,
745
+ 0x89E: 84,
746
+ 0x89F: 84,
747
+ 0x8A0: 68,
748
+ 0x8A1: 68,
749
+ 0x8A2: 68,
750
+ 0x8A3: 68,
751
+ 0x8A4: 68,
752
+ 0x8A5: 68,
753
+ 0x8A6: 68,
754
+ 0x8A7: 68,
755
+ 0x8A8: 68,
756
+ 0x8A9: 68,
757
+ 0x8AA: 82,
758
+ 0x8AB: 82,
759
+ 0x8AC: 82,
760
+ 0x8AE: 82,
761
+ 0x8AF: 68,
762
+ 0x8B0: 68,
763
+ 0x8B1: 82,
764
+ 0x8B2: 82,
765
+ 0x8B3: 68,
766
+ 0x8B4: 68,
767
+ 0x8B5: 68,
768
+ 0x8B6: 68,
769
+ 0x8B7: 68,
770
+ 0x8B8: 68,
771
+ 0x8B9: 82,
772
+ 0x8BA: 68,
773
+ 0x8BB: 68,
774
+ 0x8BC: 68,
775
+ 0x8BD: 68,
776
+ 0x8BE: 68,
777
+ 0x8BF: 68,
778
+ 0x8C0: 68,
779
+ 0x8C1: 68,
780
+ 0x8C2: 68,
781
+ 0x8C3: 68,
782
+ 0x8C4: 68,
783
+ 0x8C5: 68,
784
+ 0x8C6: 68,
785
+ 0x8C7: 68,
786
+ 0x8C8: 68,
787
+ 0x8CA: 84,
788
+ 0x8CB: 84,
789
+ 0x8CC: 84,
790
+ 0x8CD: 84,
791
+ 0x8CE: 84,
792
+ 0x8CF: 84,
793
+ 0x8D0: 84,
794
+ 0x8D1: 84,
795
+ 0x8D2: 84,
796
+ 0x8D3: 84,
797
+ 0x8D4: 84,
798
+ 0x8D5: 84,
799
+ 0x8D6: 84,
800
+ 0x8D7: 84,
801
+ 0x8D8: 84,
802
+ 0x8D9: 84,
803
+ 0x8DA: 84,
804
+ 0x8DB: 84,
805
+ 0x8DC: 84,
806
+ 0x8DD: 84,
807
+ 0x8DE: 84,
808
+ 0x8DF: 84,
809
+ 0x8E0: 84,
810
+ 0x8E1: 84,
811
+ 0x8E3: 84,
812
+ 0x8E4: 84,
813
+ 0x8E5: 84,
814
+ 0x8E6: 84,
815
+ 0x8E7: 84,
816
+ 0x8E8: 84,
817
+ 0x8E9: 84,
818
+ 0x8EA: 84,
819
+ 0x8EB: 84,
820
+ 0x8EC: 84,
821
+ 0x8ED: 84,
822
+ 0x8EE: 84,
823
+ 0x8EF: 84,
824
+ 0x8F0: 84,
825
+ 0x8F1: 84,
826
+ 0x8F2: 84,
827
+ 0x8F3: 84,
828
+ 0x8F4: 84,
829
+ 0x8F5: 84,
830
+ 0x8F6: 84,
831
+ 0x8F7: 84,
832
+ 0x8F8: 84,
833
+ 0x8F9: 84,
834
+ 0x8FA: 84,
835
+ 0x8FB: 84,
836
+ 0x8FC: 84,
837
+ 0x8FD: 84,
838
+ 0x8FE: 84,
839
+ 0x8FF: 84,
840
+ 0x900: 84,
841
+ 0x901: 84,
842
+ 0x902: 84,
843
+ 0x93A: 84,
844
+ 0x93C: 84,
845
+ 0x941: 84,
846
+ 0x942: 84,
847
+ 0x943: 84,
848
+ 0x944: 84,
849
+ 0x945: 84,
850
+ 0x946: 84,
851
+ 0x947: 84,
852
+ 0x948: 84,
853
+ 0x94D: 84,
854
+ 0x951: 84,
855
+ 0x952: 84,
856
+ 0x953: 84,
857
+ 0x954: 84,
858
+ 0x955: 84,
859
+ 0x956: 84,
860
+ 0x957: 84,
861
+ 0x962: 84,
862
+ 0x963: 84,
863
+ 0x981: 84,
864
+ 0x9BC: 84,
865
+ 0x9C1: 84,
866
+ 0x9C2: 84,
867
+ 0x9C3: 84,
868
+ 0x9C4: 84,
869
+ 0x9CD: 84,
870
+ 0x9E2: 84,
871
+ 0x9E3: 84,
872
+ 0x9FE: 84,
873
+ 0xA01: 84,
874
+ 0xA02: 84,
875
+ 0xA3C: 84,
876
+ 0xA41: 84,
877
+ 0xA42: 84,
878
+ 0xA47: 84,
879
+ 0xA48: 84,
880
+ 0xA4B: 84,
881
+ 0xA4C: 84,
882
+ 0xA4D: 84,
883
+ 0xA51: 84,
884
+ 0xA70: 84,
885
+ 0xA71: 84,
886
+ 0xA75: 84,
887
+ 0xA81: 84,
888
+ 0xA82: 84,
889
+ 0xABC: 84,
890
+ 0xAC1: 84,
891
+ 0xAC2: 84,
892
+ 0xAC3: 84,
893
+ 0xAC4: 84,
894
+ 0xAC5: 84,
895
+ 0xAC7: 84,
896
+ 0xAC8: 84,
897
+ 0xACD: 84,
898
+ 0xAE2: 84,
899
+ 0xAE3: 84,
900
+ 0xAFA: 84,
901
+ 0xAFB: 84,
902
+ 0xAFC: 84,
903
+ 0xAFD: 84,
904
+ 0xAFE: 84,
905
+ 0xAFF: 84,
906
+ 0xB01: 84,
907
+ 0xB3C: 84,
908
+ 0xB3F: 84,
909
+ 0xB41: 84,
910
+ 0xB42: 84,
911
+ 0xB43: 84,
912
+ 0xB44: 84,
913
+ 0xB4D: 84,
914
+ 0xB55: 84,
915
+ 0xB56: 84,
916
+ 0xB62: 84,
917
+ 0xB63: 84,
918
+ 0xB82: 84,
919
+ 0xBC0: 84,
920
+ 0xBCD: 84,
921
+ 0xC00: 84,
922
+ 0xC04: 84,
923
+ 0xC3C: 84,
924
+ 0xC3E: 84,
925
+ 0xC3F: 84,
926
+ 0xC40: 84,
927
+ 0xC46: 84,
928
+ 0xC47: 84,
929
+ 0xC48: 84,
930
+ 0xC4A: 84,
931
+ 0xC4B: 84,
932
+ 0xC4C: 84,
933
+ 0xC4D: 84,
934
+ 0xC55: 84,
935
+ 0xC56: 84,
936
+ 0xC62: 84,
937
+ 0xC63: 84,
938
+ 0xC81: 84,
939
+ 0xCBC: 84,
940
+ 0xCBF: 84,
941
+ 0xCC6: 84,
942
+ 0xCCC: 84,
943
+ 0xCCD: 84,
944
+ 0xCE2: 84,
945
+ 0xCE3: 84,
946
+ 0xD00: 84,
947
+ 0xD01: 84,
948
+ 0xD3B: 84,
949
+ 0xD3C: 84,
950
+ 0xD41: 84,
951
+ 0xD42: 84,
952
+ 0xD43: 84,
953
+ 0xD44: 84,
954
+ 0xD4D: 84,
955
+ 0xD62: 84,
956
+ 0xD63: 84,
957
+ 0xD81: 84,
958
+ 0xDCA: 84,
959
+ 0xDD2: 84,
960
+ 0xDD3: 84,
961
+ 0xDD4: 84,
962
+ 0xDD6: 84,
963
+ 0xE31: 84,
964
+ 0xE34: 84,
965
+ 0xE35: 84,
966
+ 0xE36: 84,
967
+ 0xE37: 84,
968
+ 0xE38: 84,
969
+ 0xE39: 84,
970
+ 0xE3A: 84,
971
+ 0xE47: 84,
972
+ 0xE48: 84,
973
+ 0xE49: 84,
974
+ 0xE4A: 84,
975
+ 0xE4B: 84,
976
+ 0xE4C: 84,
977
+ 0xE4D: 84,
978
+ 0xE4E: 84,
979
+ 0xEB1: 84,
980
+ 0xEB4: 84,
981
+ 0xEB5: 84,
982
+ 0xEB6: 84,
983
+ 0xEB7: 84,
984
+ 0xEB8: 84,
985
+ 0xEB9: 84,
986
+ 0xEBA: 84,
987
+ 0xEBB: 84,
988
+ 0xEBC: 84,
989
+ 0xEC8: 84,
990
+ 0xEC9: 84,
991
+ 0xECA: 84,
992
+ 0xECB: 84,
993
+ 0xECC: 84,
994
+ 0xECD: 84,
995
+ 0xECE: 84,
996
+ 0xF18: 84,
997
+ 0xF19: 84,
998
+ 0xF35: 84,
999
+ 0xF37: 84,
1000
+ 0xF39: 84,
1001
+ 0xF71: 84,
1002
+ 0xF72: 84,
1003
+ 0xF73: 84,
1004
+ 0xF74: 84,
1005
+ 0xF75: 84,
1006
+ 0xF76: 84,
1007
+ 0xF77: 84,
1008
+ 0xF78: 84,
1009
+ 0xF79: 84,
1010
+ 0xF7A: 84,
1011
+ 0xF7B: 84,
1012
+ 0xF7C: 84,
1013
+ 0xF7D: 84,
1014
+ 0xF7E: 84,
1015
+ 0xF80: 84,
1016
+ 0xF81: 84,
1017
+ 0xF82: 84,
1018
+ 0xF83: 84,
1019
+ 0xF84: 84,
1020
+ 0xF86: 84,
1021
+ 0xF87: 84,
1022
+ 0xF8D: 84,
1023
+ 0xF8E: 84,
1024
+ 0xF8F: 84,
1025
+ 0xF90: 84,
1026
+ 0xF91: 84,
1027
+ 0xF92: 84,
1028
+ 0xF93: 84,
1029
+ 0xF94: 84,
1030
+ 0xF95: 84,
1031
+ 0xF96: 84,
1032
+ 0xF97: 84,
1033
+ 0xF99: 84,
1034
+ 0xF9A: 84,
1035
+ 0xF9B: 84,
1036
+ 0xF9C: 84,
1037
+ 0xF9D: 84,
1038
+ 0xF9E: 84,
1039
+ 0xF9F: 84,
1040
+ 0xFA0: 84,
1041
+ 0xFA1: 84,
1042
+ 0xFA2: 84,
1043
+ 0xFA3: 84,
1044
+ 0xFA4: 84,
1045
+ 0xFA5: 84,
1046
+ 0xFA6: 84,
1047
+ 0xFA7: 84,
1048
+ 0xFA8: 84,
1049
+ 0xFA9: 84,
1050
+ 0xFAA: 84,
1051
+ 0xFAB: 84,
1052
+ 0xFAC: 84,
1053
+ 0xFAD: 84,
1054
+ 0xFAE: 84,
1055
+ 0xFAF: 84,
1056
+ 0xFB0: 84,
1057
+ 0xFB1: 84,
1058
+ 0xFB2: 84,
1059
+ 0xFB3: 84,
1060
+ 0xFB4: 84,
1061
+ 0xFB5: 84,
1062
+ 0xFB6: 84,
1063
+ 0xFB7: 84,
1064
+ 0xFB8: 84,
1065
+ 0xFB9: 84,
1066
+ 0xFBA: 84,
1067
+ 0xFBB: 84,
1068
+ 0xFBC: 84,
1069
+ 0xFC6: 84,
1070
+ 0x102D: 84,
1071
+ 0x102E: 84,
1072
+ 0x102F: 84,
1073
+ 0x1030: 84,
1074
+ 0x1032: 84,
1075
+ 0x1033: 84,
1076
+ 0x1034: 84,
1077
+ 0x1035: 84,
1078
+ 0x1036: 84,
1079
+ 0x1037: 84,
1080
+ 0x1039: 84,
1081
+ 0x103A: 84,
1082
+ 0x103D: 84,
1083
+ 0x103E: 84,
1084
+ 0x1058: 84,
1085
+ 0x1059: 84,
1086
+ 0x105E: 84,
1087
+ 0x105F: 84,
1088
+ 0x1060: 84,
1089
+ 0x1071: 84,
1090
+ 0x1072: 84,
1091
+ 0x1073: 84,
1092
+ 0x1074: 84,
1093
+ 0x1082: 84,
1094
+ 0x1085: 84,
1095
+ 0x1086: 84,
1096
+ 0x108D: 84,
1097
+ 0x109D: 84,
1098
+ 0x135D: 84,
1099
+ 0x135E: 84,
1100
+ 0x135F: 84,
1101
+ 0x1712: 84,
1102
+ 0x1713: 84,
1103
+ 0x1714: 84,
1104
+ 0x1732: 84,
1105
+ 0x1733: 84,
1106
+ 0x1752: 84,
1107
+ 0x1753: 84,
1108
+ 0x1772: 84,
1109
+ 0x1773: 84,
1110
+ 0x17B4: 84,
1111
+ 0x17B5: 84,
1112
+ 0x17B7: 84,
1113
+ 0x17B8: 84,
1114
+ 0x17B9: 84,
1115
+ 0x17BA: 84,
1116
+ 0x17BB: 84,
1117
+ 0x17BC: 84,
1118
+ 0x17BD: 84,
1119
+ 0x17C6: 84,
1120
+ 0x17C9: 84,
1121
+ 0x17CA: 84,
1122
+ 0x17CB: 84,
1123
+ 0x17CC: 84,
1124
+ 0x17CD: 84,
1125
+ 0x17CE: 84,
1126
+ 0x17CF: 84,
1127
+ 0x17D0: 84,
1128
+ 0x17D1: 84,
1129
+ 0x17D2: 84,
1130
+ 0x17D3: 84,
1131
+ 0x17DD: 84,
1132
+ 0x1807: 68,
1133
+ 0x180A: 67,
1134
+ 0x180B: 84,
1135
+ 0x180C: 84,
1136
+ 0x180D: 84,
1137
+ 0x180F: 84,
1138
+ 0x1820: 68,
1139
+ 0x1821: 68,
1140
+ 0x1822: 68,
1141
+ 0x1823: 68,
1142
+ 0x1824: 68,
1143
+ 0x1825: 68,
1144
+ 0x1826: 68,
1145
+ 0x1827: 68,
1146
+ 0x1828: 68,
1147
+ 0x1829: 68,
1148
+ 0x182A: 68,
1149
+ 0x182B: 68,
1150
+ 0x182C: 68,
1151
+ 0x182D: 68,
1152
+ 0x182E: 68,
1153
+ 0x182F: 68,
1154
+ 0x1830: 68,
1155
+ 0x1831: 68,
1156
+ 0x1832: 68,
1157
+ 0x1833: 68,
1158
+ 0x1834: 68,
1159
+ 0x1835: 68,
1160
+ 0x1836: 68,
1161
+ 0x1837: 68,
1162
+ 0x1838: 68,
1163
+ 0x1839: 68,
1164
+ 0x183A: 68,
1165
+ 0x183B: 68,
1166
+ 0x183C: 68,
1167
+ 0x183D: 68,
1168
+ 0x183E: 68,
1169
+ 0x183F: 68,
1170
+ 0x1840: 68,
1171
+ 0x1841: 68,
1172
+ 0x1842: 68,
1173
+ 0x1843: 68,
1174
+ 0x1844: 68,
1175
+ 0x1845: 68,
1176
+ 0x1846: 68,
1177
+ 0x1847: 68,
1178
+ 0x1848: 68,
1179
+ 0x1849: 68,
1180
+ 0x184A: 68,
1181
+ 0x184B: 68,
1182
+ 0x184C: 68,
1183
+ 0x184D: 68,
1184
+ 0x184E: 68,
1185
+ 0x184F: 68,
1186
+ 0x1850: 68,
1187
+ 0x1851: 68,
1188
+ 0x1852: 68,
1189
+ 0x1853: 68,
1190
+ 0x1854: 68,
1191
+ 0x1855: 68,
1192
+ 0x1856: 68,
1193
+ 0x1857: 68,
1194
+ 0x1858: 68,
1195
+ 0x1859: 68,
1196
+ 0x185A: 68,
1197
+ 0x185B: 68,
1198
+ 0x185C: 68,
1199
+ 0x185D: 68,
1200
+ 0x185E: 68,
1201
+ 0x185F: 68,
1202
+ 0x1860: 68,
1203
+ 0x1861: 68,
1204
+ 0x1862: 68,
1205
+ 0x1863: 68,
1206
+ 0x1864: 68,
1207
+ 0x1865: 68,
1208
+ 0x1866: 68,
1209
+ 0x1867: 68,
1210
+ 0x1868: 68,
1211
+ 0x1869: 68,
1212
+ 0x186A: 68,
1213
+ 0x186B: 68,
1214
+ 0x186C: 68,
1215
+ 0x186D: 68,
1216
+ 0x186E: 68,
1217
+ 0x186F: 68,
1218
+ 0x1870: 68,
1219
+ 0x1871: 68,
1220
+ 0x1872: 68,
1221
+ 0x1873: 68,
1222
+ 0x1874: 68,
1223
+ 0x1875: 68,
1224
+ 0x1876: 68,
1225
+ 0x1877: 68,
1226
+ 0x1878: 68,
1227
+ 0x1885: 84,
1228
+ 0x1886: 84,
1229
+ 0x1887: 68,
1230
+ 0x1888: 68,
1231
+ 0x1889: 68,
1232
+ 0x188A: 68,
1233
+ 0x188B: 68,
1234
+ 0x188C: 68,
1235
+ 0x188D: 68,
1236
+ 0x188E: 68,
1237
+ 0x188F: 68,
1238
+ 0x1890: 68,
1239
+ 0x1891: 68,
1240
+ 0x1892: 68,
1241
+ 0x1893: 68,
1242
+ 0x1894: 68,
1243
+ 0x1895: 68,
1244
+ 0x1896: 68,
1245
+ 0x1897: 68,
1246
+ 0x1898: 68,
1247
+ 0x1899: 68,
1248
+ 0x189A: 68,
1249
+ 0x189B: 68,
1250
+ 0x189C: 68,
1251
+ 0x189D: 68,
1252
+ 0x189E: 68,
1253
+ 0x189F: 68,
1254
+ 0x18A0: 68,
1255
+ 0x18A1: 68,
1256
+ 0x18A2: 68,
1257
+ 0x18A3: 68,
1258
+ 0x18A4: 68,
1259
+ 0x18A5: 68,
1260
+ 0x18A6: 68,
1261
+ 0x18A7: 68,
1262
+ 0x18A8: 68,
1263
+ 0x18A9: 84,
1264
+ 0x18AA: 68,
1265
+ 0x1920: 84,
1266
+ 0x1921: 84,
1267
+ 0x1922: 84,
1268
+ 0x1927: 84,
1269
+ 0x1928: 84,
1270
+ 0x1932: 84,
1271
+ 0x1939: 84,
1272
+ 0x193A: 84,
1273
+ 0x193B: 84,
1274
+ 0x1A17: 84,
1275
+ 0x1A18: 84,
1276
+ 0x1A1B: 84,
1277
+ 0x1A56: 84,
1278
+ 0x1A58: 84,
1279
+ 0x1A59: 84,
1280
+ 0x1A5A: 84,
1281
+ 0x1A5B: 84,
1282
+ 0x1A5C: 84,
1283
+ 0x1A5D: 84,
1284
+ 0x1A5E: 84,
1285
+ 0x1A60: 84,
1286
+ 0x1A62: 84,
1287
+ 0x1A65: 84,
1288
+ 0x1A66: 84,
1289
+ 0x1A67: 84,
1290
+ 0x1A68: 84,
1291
+ 0x1A69: 84,
1292
+ 0x1A6A: 84,
1293
+ 0x1A6B: 84,
1294
+ 0x1A6C: 84,
1295
+ 0x1A73: 84,
1296
+ 0x1A74: 84,
1297
+ 0x1A75: 84,
1298
+ 0x1A76: 84,
1299
+ 0x1A77: 84,
1300
+ 0x1A78: 84,
1301
+ 0x1A79: 84,
1302
+ 0x1A7A: 84,
1303
+ 0x1A7B: 84,
1304
+ 0x1A7C: 84,
1305
+ 0x1A7F: 84,
1306
+ 0x1AB0: 84,
1307
+ 0x1AB1: 84,
1308
+ 0x1AB2: 84,
1309
+ 0x1AB3: 84,
1310
+ 0x1AB4: 84,
1311
+ 0x1AB5: 84,
1312
+ 0x1AB6: 84,
1313
+ 0x1AB7: 84,
1314
+ 0x1AB8: 84,
1315
+ 0x1AB9: 84,
1316
+ 0x1ABA: 84,
1317
+ 0x1ABB: 84,
1318
+ 0x1ABC: 84,
1319
+ 0x1ABD: 84,
1320
+ 0x1ABE: 84,
1321
+ 0x1ABF: 84,
1322
+ 0x1AC0: 84,
1323
+ 0x1AC1: 84,
1324
+ 0x1AC2: 84,
1325
+ 0x1AC3: 84,
1326
+ 0x1AC4: 84,
1327
+ 0x1AC5: 84,
1328
+ 0x1AC6: 84,
1329
+ 0x1AC7: 84,
1330
+ 0x1AC8: 84,
1331
+ 0x1AC9: 84,
1332
+ 0x1ACA: 84,
1333
+ 0x1ACB: 84,
1334
+ 0x1ACC: 84,
1335
+ 0x1ACD: 84,
1336
+ 0x1ACE: 84,
1337
+ 0x1ACF: 84,
1338
+ 0x1AD0: 84,
1339
+ 0x1AD1: 84,
1340
+ 0x1AD2: 84,
1341
+ 0x1AD3: 84,
1342
+ 0x1AD4: 84,
1343
+ 0x1AD5: 84,
1344
+ 0x1AD6: 84,
1345
+ 0x1AD7: 84,
1346
+ 0x1AD8: 84,
1347
+ 0x1AD9: 84,
1348
+ 0x1ADA: 84,
1349
+ 0x1ADB: 84,
1350
+ 0x1ADC: 84,
1351
+ 0x1ADD: 84,
1352
+ 0x1AE0: 84,
1353
+ 0x1AE1: 84,
1354
+ 0x1AE2: 84,
1355
+ 0x1AE3: 84,
1356
+ 0x1AE4: 84,
1357
+ 0x1AE5: 84,
1358
+ 0x1AE6: 84,
1359
+ 0x1AE7: 84,
1360
+ 0x1AE8: 84,
1361
+ 0x1AE9: 84,
1362
+ 0x1AEA: 84,
1363
+ 0x1AEB: 84,
1364
+ 0x1B00: 84,
1365
+ 0x1B01: 84,
1366
+ 0x1B02: 84,
1367
+ 0x1B03: 84,
1368
+ 0x1B34: 84,
1369
+ 0x1B36: 84,
1370
+ 0x1B37: 84,
1371
+ 0x1B38: 84,
1372
+ 0x1B39: 84,
1373
+ 0x1B3A: 84,
1374
+ 0x1B3C: 84,
1375
+ 0x1B42: 84,
1376
+ 0x1B6B: 84,
1377
+ 0x1B6C: 84,
1378
+ 0x1B6D: 84,
1379
+ 0x1B6E: 84,
1380
+ 0x1B6F: 84,
1381
+ 0x1B70: 84,
1382
+ 0x1B71: 84,
1383
+ 0x1B72: 84,
1384
+ 0x1B73: 84,
1385
+ 0x1B80: 84,
1386
+ 0x1B81: 84,
1387
+ 0x1BA2: 84,
1388
+ 0x1BA3: 84,
1389
+ 0x1BA4: 84,
1390
+ 0x1BA5: 84,
1391
+ 0x1BA8: 84,
1392
+ 0x1BA9: 84,
1393
+ 0x1BAB: 84,
1394
+ 0x1BAC: 84,
1395
+ 0x1BAD: 84,
1396
+ 0x1BE6: 84,
1397
+ 0x1BE8: 84,
1398
+ 0x1BE9: 84,
1399
+ 0x1BED: 84,
1400
+ 0x1BEF: 84,
1401
+ 0x1BF0: 84,
1402
+ 0x1BF1: 84,
1403
+ 0x1C2C: 84,
1404
+ 0x1C2D: 84,
1405
+ 0x1C2E: 84,
1406
+ 0x1C2F: 84,
1407
+ 0x1C30: 84,
1408
+ 0x1C31: 84,
1409
+ 0x1C32: 84,
1410
+ 0x1C33: 84,
1411
+ 0x1C36: 84,
1412
+ 0x1C37: 84,
1413
+ 0x1CD0: 84,
1414
+ 0x1CD1: 84,
1415
+ 0x1CD2: 84,
1416
+ 0x1CD4: 84,
1417
+ 0x1CD5: 84,
1418
+ 0x1CD6: 84,
1419
+ 0x1CD7: 84,
1420
+ 0x1CD8: 84,
1421
+ 0x1CD9: 84,
1422
+ 0x1CDA: 84,
1423
+ 0x1CDB: 84,
1424
+ 0x1CDC: 84,
1425
+ 0x1CDD: 84,
1426
+ 0x1CDE: 84,
1427
+ 0x1CDF: 84,
1428
+ 0x1CE0: 84,
1429
+ 0x1CE2: 84,
1430
+ 0x1CE3: 84,
1431
+ 0x1CE4: 84,
1432
+ 0x1CE5: 84,
1433
+ 0x1CE6: 84,
1434
+ 0x1CE7: 84,
1435
+ 0x1CE8: 84,
1436
+ 0x1CED: 84,
1437
+ 0x1CF4: 84,
1438
+ 0x1CF8: 84,
1439
+ 0x1CF9: 84,
1440
+ 0x1DC0: 84,
1441
+ 0x1DC1: 84,
1442
+ 0x1DC2: 84,
1443
+ 0x1DC3: 84,
1444
+ 0x1DC4: 84,
1445
+ 0x1DC5: 84,
1446
+ 0x1DC6: 84,
1447
+ 0x1DC7: 84,
1448
+ 0x1DC8: 84,
1449
+ 0x1DC9: 84,
1450
+ 0x1DCA: 84,
1451
+ 0x1DCB: 84,
1452
+ 0x1DCC: 84,
1453
+ 0x1DCD: 84,
1454
+ 0x1DCE: 84,
1455
+ 0x1DCF: 84,
1456
+ 0x1DD0: 84,
1457
+ 0x1DD1: 84,
1458
+ 0x1DD2: 84,
1459
+ 0x1DD3: 84,
1460
+ 0x1DD4: 84,
1461
+ 0x1DD5: 84,
1462
+ 0x1DD6: 84,
1463
+ 0x1DD7: 84,
1464
+ 0x1DD8: 84,
1465
+ 0x1DD9: 84,
1466
+ 0x1DDA: 84,
1467
+ 0x1DDB: 84,
1468
+ 0x1DDC: 84,
1469
+ 0x1DDD: 84,
1470
+ 0x1DDE: 84,
1471
+ 0x1DDF: 84,
1472
+ 0x1DE0: 84,
1473
+ 0x1DE1: 84,
1474
+ 0x1DE2: 84,
1475
+ 0x1DE3: 84,
1476
+ 0x1DE4: 84,
1477
+ 0x1DE5: 84,
1478
+ 0x1DE6: 84,
1479
+ 0x1DE7: 84,
1480
+ 0x1DE8: 84,
1481
+ 0x1DE9: 84,
1482
+ 0x1DEA: 84,
1483
+ 0x1DEB: 84,
1484
+ 0x1DEC: 84,
1485
+ 0x1DED: 84,
1486
+ 0x1DEE: 84,
1487
+ 0x1DEF: 84,
1488
+ 0x1DF0: 84,
1489
+ 0x1DF1: 84,
1490
+ 0x1DF2: 84,
1491
+ 0x1DF3: 84,
1492
+ 0x1DF4: 84,
1493
+ 0x1DF5: 84,
1494
+ 0x1DF6: 84,
1495
+ 0x1DF7: 84,
1496
+ 0x1DF8: 84,
1497
+ 0x1DF9: 84,
1498
+ 0x1DFA: 84,
1499
+ 0x1DFB: 84,
1500
+ 0x1DFC: 84,
1501
+ 0x1DFD: 84,
1502
+ 0x1DFE: 84,
1503
+ 0x1DFF: 84,
1504
+ 0x200B: 84,
1505
+ 0x200D: 67,
1506
+ 0x200E: 84,
1507
+ 0x200F: 84,
1508
+ 0x202A: 84,
1509
+ 0x202B: 84,
1510
+ 0x202C: 84,
1511
+ 0x202D: 84,
1512
+ 0x202E: 84,
1513
+ 0x2060: 84,
1514
+ 0x2061: 84,
1515
+ 0x2062: 84,
1516
+ 0x2063: 84,
1517
+ 0x2064: 84,
1518
+ 0x206A: 84,
1519
+ 0x206B: 84,
1520
+ 0x206C: 84,
1521
+ 0x206D: 84,
1522
+ 0x206E: 84,
1523
+ 0x206F: 84,
1524
+ 0x20D0: 84,
1525
+ 0x20D1: 84,
1526
+ 0x20D2: 84,
1527
+ 0x20D3: 84,
1528
+ 0x20D4: 84,
1529
+ 0x20D5: 84,
1530
+ 0x20D6: 84,
1531
+ 0x20D7: 84,
1532
+ 0x20D8: 84,
1533
+ 0x20D9: 84,
1534
+ 0x20DA: 84,
1535
+ 0x20DB: 84,
1536
+ 0x20DC: 84,
1537
+ 0x20DD: 84,
1538
+ 0x20DE: 84,
1539
+ 0x20DF: 84,
1540
+ 0x20E0: 84,
1541
+ 0x20E1: 84,
1542
+ 0x20E2: 84,
1543
+ 0x20E3: 84,
1544
+ 0x20E4: 84,
1545
+ 0x20E5: 84,
1546
+ 0x20E6: 84,
1547
+ 0x20E7: 84,
1548
+ 0x20E8: 84,
1549
+ 0x20E9: 84,
1550
+ 0x20EA: 84,
1551
+ 0x20EB: 84,
1552
+ 0x20EC: 84,
1553
+ 0x20ED: 84,
1554
+ 0x20EE: 84,
1555
+ 0x20EF: 84,
1556
+ 0x20F0: 84,
1557
+ 0x2CEF: 84,
1558
+ 0x2CF0: 84,
1559
+ 0x2CF1: 84,
1560
+ 0x2D7F: 84,
1561
+ 0x2DE0: 84,
1562
+ 0x2DE1: 84,
1563
+ 0x2DE2: 84,
1564
+ 0x2DE3: 84,
1565
+ 0x2DE4: 84,
1566
+ 0x2DE5: 84,
1567
+ 0x2DE6: 84,
1568
+ 0x2DE7: 84,
1569
+ 0x2DE8: 84,
1570
+ 0x2DE9: 84,
1571
+ 0x2DEA: 84,
1572
+ 0x2DEB: 84,
1573
+ 0x2DEC: 84,
1574
+ 0x2DED: 84,
1575
+ 0x2DEE: 84,
1576
+ 0x2DEF: 84,
1577
+ 0x2DF0: 84,
1578
+ 0x2DF1: 84,
1579
+ 0x2DF2: 84,
1580
+ 0x2DF3: 84,
1581
+ 0x2DF4: 84,
1582
+ 0x2DF5: 84,
1583
+ 0x2DF6: 84,
1584
+ 0x2DF7: 84,
1585
+ 0x2DF8: 84,
1586
+ 0x2DF9: 84,
1587
+ 0x2DFA: 84,
1588
+ 0x2DFB: 84,
1589
+ 0x2DFC: 84,
1590
+ 0x2DFD: 84,
1591
+ 0x2DFE: 84,
1592
+ 0x2DFF: 84,
1593
+ 0x302A: 84,
1594
+ 0x302B: 84,
1595
+ 0x302C: 84,
1596
+ 0x302D: 84,
1597
+ 0x3099: 84,
1598
+ 0x309A: 84,
1599
+ 0xA66F: 84,
1600
+ 0xA670: 84,
1601
+ 0xA671: 84,
1602
+ 0xA672: 84,
1603
+ 0xA674: 84,
1604
+ 0xA675: 84,
1605
+ 0xA676: 84,
1606
+ 0xA677: 84,
1607
+ 0xA678: 84,
1608
+ 0xA679: 84,
1609
+ 0xA67A: 84,
1610
+ 0xA67B: 84,
1611
+ 0xA67C: 84,
1612
+ 0xA67D: 84,
1613
+ 0xA69E: 84,
1614
+ 0xA69F: 84,
1615
+ 0xA6F0: 84,
1616
+ 0xA6F1: 84,
1617
+ 0xA802: 84,
1618
+ 0xA806: 84,
1619
+ 0xA80B: 84,
1620
+ 0xA825: 84,
1621
+ 0xA826: 84,
1622
+ 0xA82C: 84,
1623
+ 0xA840: 68,
1624
+ 0xA841: 68,
1625
+ 0xA842: 68,
1626
+ 0xA843: 68,
1627
+ 0xA844: 68,
1628
+ 0xA845: 68,
1629
+ 0xA846: 68,
1630
+ 0xA847: 68,
1631
+ 0xA848: 68,
1632
+ 0xA849: 68,
1633
+ 0xA84A: 68,
1634
+ 0xA84B: 68,
1635
+ 0xA84C: 68,
1636
+ 0xA84D: 68,
1637
+ 0xA84E: 68,
1638
+ 0xA84F: 68,
1639
+ 0xA850: 68,
1640
+ 0xA851: 68,
1641
+ 0xA852: 68,
1642
+ 0xA853: 68,
1643
+ 0xA854: 68,
1644
+ 0xA855: 68,
1645
+ 0xA856: 68,
1646
+ 0xA857: 68,
1647
+ 0xA858: 68,
1648
+ 0xA859: 68,
1649
+ 0xA85A: 68,
1650
+ 0xA85B: 68,
1651
+ 0xA85C: 68,
1652
+ 0xA85D: 68,
1653
+ 0xA85E: 68,
1654
+ 0xA85F: 68,
1655
+ 0xA860: 68,
1656
+ 0xA861: 68,
1657
+ 0xA862: 68,
1658
+ 0xA863: 68,
1659
+ 0xA864: 68,
1660
+ 0xA865: 68,
1661
+ 0xA866: 68,
1662
+ 0xA867: 68,
1663
+ 0xA868: 68,
1664
+ 0xA869: 68,
1665
+ 0xA86A: 68,
1666
+ 0xA86B: 68,
1667
+ 0xA86C: 68,
1668
+ 0xA86D: 68,
1669
+ 0xA86E: 68,
1670
+ 0xA86F: 68,
1671
+ 0xA870: 68,
1672
+ 0xA871: 68,
1673
+ 0xA872: 76,
1674
+ 0xA8C4: 84,
1675
+ 0xA8C5: 84,
1676
+ 0xA8E0: 84,
1677
+ 0xA8E1: 84,
1678
+ 0xA8E2: 84,
1679
+ 0xA8E3: 84,
1680
+ 0xA8E4: 84,
1681
+ 0xA8E5: 84,
1682
+ 0xA8E6: 84,
1683
+ 0xA8E7: 84,
1684
+ 0xA8E8: 84,
1685
+ 0xA8E9: 84,
1686
+ 0xA8EA: 84,
1687
+ 0xA8EB: 84,
1688
+ 0xA8EC: 84,
1689
+ 0xA8ED: 84,
1690
+ 0xA8EE: 84,
1691
+ 0xA8EF: 84,
1692
+ 0xA8F0: 84,
1693
+ 0xA8F1: 84,
1694
+ 0xA8FF: 84,
1695
+ 0xA926: 84,
1696
+ 0xA927: 84,
1697
+ 0xA928: 84,
1698
+ 0xA929: 84,
1699
+ 0xA92A: 84,
1700
+ 0xA92B: 84,
1701
+ 0xA92C: 84,
1702
+ 0xA92D: 84,
1703
+ 0xA947: 84,
1704
+ 0xA948: 84,
1705
+ 0xA949: 84,
1706
+ 0xA94A: 84,
1707
+ 0xA94B: 84,
1708
+ 0xA94C: 84,
1709
+ 0xA94D: 84,
1710
+ 0xA94E: 84,
1711
+ 0xA94F: 84,
1712
+ 0xA950: 84,
1713
+ 0xA951: 84,
1714
+ 0xA980: 84,
1715
+ 0xA981: 84,
1716
+ 0xA982: 84,
1717
+ 0xA9B3: 84,
1718
+ 0xA9B6: 84,
1719
+ 0xA9B7: 84,
1720
+ 0xA9B8: 84,
1721
+ 0xA9B9: 84,
1722
+ 0xA9BC: 84,
1723
+ 0xA9BD: 84,
1724
+ 0xA9E5: 84,
1725
+ 0xAA29: 84,
1726
+ 0xAA2A: 84,
1727
+ 0xAA2B: 84,
1728
+ 0xAA2C: 84,
1729
+ 0xAA2D: 84,
1730
+ 0xAA2E: 84,
1731
+ 0xAA31: 84,
1732
+ 0xAA32: 84,
1733
+ 0xAA35: 84,
1734
+ 0xAA36: 84,
1735
+ 0xAA43: 84,
1736
+ 0xAA4C: 84,
1737
+ 0xAA7C: 84,
1738
+ 0xAAB0: 84,
1739
+ 0xAAB2: 84,
1740
+ 0xAAB3: 84,
1741
+ 0xAAB4: 84,
1742
+ 0xAAB7: 84,
1743
+ 0xAAB8: 84,
1744
+ 0xAABE: 84,
1745
+ 0xAABF: 84,
1746
+ 0xAAC1: 84,
1747
+ 0xAAEC: 84,
1748
+ 0xAAED: 84,
1749
+ 0xAAF6: 84,
1750
+ 0xABE5: 84,
1751
+ 0xABE8: 84,
1752
+ 0xABED: 84,
1753
+ 0xFB1E: 84,
1754
+ 0xFE00: 84,
1755
+ 0xFE01: 84,
1756
+ 0xFE02: 84,
1757
+ 0xFE03: 84,
1758
+ 0xFE04: 84,
1759
+ 0xFE05: 84,
1760
+ 0xFE06: 84,
1761
+ 0xFE07: 84,
1762
+ 0xFE08: 84,
1763
+ 0xFE09: 84,
1764
+ 0xFE0A: 84,
1765
+ 0xFE0B: 84,
1766
+ 0xFE0C: 84,
1767
+ 0xFE0D: 84,
1768
+ 0xFE0E: 84,
1769
+ 0xFE0F: 84,
1770
+ 0xFE20: 84,
1771
+ 0xFE21: 84,
1772
+ 0xFE22: 84,
1773
+ 0xFE23: 84,
1774
+ 0xFE24: 84,
1775
+ 0xFE25: 84,
1776
+ 0xFE26: 84,
1777
+ 0xFE27: 84,
1778
+ 0xFE28: 84,
1779
+ 0xFE29: 84,
1780
+ 0xFE2A: 84,
1781
+ 0xFE2B: 84,
1782
+ 0xFE2C: 84,
1783
+ 0xFE2D: 84,
1784
+ 0xFE2E: 84,
1785
+ 0xFE2F: 84,
1786
+ 0xFEFF: 84,
1787
+ 0xFFF9: 84,
1788
+ 0xFFFA: 84,
1789
+ 0xFFFB: 84,
1790
+ 0x101FD: 84,
1791
+ 0x102E0: 84,
1792
+ 0x10376: 84,
1793
+ 0x10377: 84,
1794
+ 0x10378: 84,
1795
+ 0x10379: 84,
1796
+ 0x1037A: 84,
1797
+ 0x10A01: 84,
1798
+ 0x10A02: 84,
1799
+ 0x10A03: 84,
1800
+ 0x10A05: 84,
1801
+ 0x10A06: 84,
1802
+ 0x10A0C: 84,
1803
+ 0x10A0D: 84,
1804
+ 0x10A0E: 84,
1805
+ 0x10A0F: 84,
1806
+ 0x10A38: 84,
1807
+ 0x10A39: 84,
1808
+ 0x10A3A: 84,
1809
+ 0x10A3F: 84,
1810
+ 0x10AC0: 68,
1811
+ 0x10AC1: 68,
1812
+ 0x10AC2: 68,
1813
+ 0x10AC3: 68,
1814
+ 0x10AC4: 68,
1815
+ 0x10AC5: 82,
1816
+ 0x10AC7: 82,
1817
+ 0x10AC9: 82,
1818
+ 0x10ACA: 82,
1819
+ 0x10ACD: 76,
1820
+ 0x10ACE: 82,
1821
+ 0x10ACF: 82,
1822
+ 0x10AD0: 82,
1823
+ 0x10AD1: 82,
1824
+ 0x10AD2: 82,
1825
+ 0x10AD3: 68,
1826
+ 0x10AD4: 68,
1827
+ 0x10AD5: 68,
1828
+ 0x10AD6: 68,
1829
+ 0x10AD7: 76,
1830
+ 0x10AD8: 68,
1831
+ 0x10AD9: 68,
1832
+ 0x10ADA: 68,
1833
+ 0x10ADB: 68,
1834
+ 0x10ADC: 68,
1835
+ 0x10ADD: 82,
1836
+ 0x10ADE: 68,
1837
+ 0x10ADF: 68,
1838
+ 0x10AE0: 68,
1839
+ 0x10AE1: 82,
1840
+ 0x10AE4: 82,
1841
+ 0x10AE5: 84,
1842
+ 0x10AE6: 84,
1843
+ 0x10AEB: 68,
1844
+ 0x10AEC: 68,
1845
+ 0x10AED: 68,
1846
+ 0x10AEE: 68,
1847
+ 0x10AEF: 82,
1848
+ 0x10B80: 68,
1849
+ 0x10B81: 82,
1850
+ 0x10B82: 68,
1851
+ 0x10B83: 82,
1852
+ 0x10B84: 82,
1853
+ 0x10B85: 82,
1854
+ 0x10B86: 68,
1855
+ 0x10B87: 68,
1856
+ 0x10B88: 68,
1857
+ 0x10B89: 82,
1858
+ 0x10B8A: 68,
1859
+ 0x10B8B: 68,
1860
+ 0x10B8C: 82,
1861
+ 0x10B8D: 68,
1862
+ 0x10B8E: 82,
1863
+ 0x10B8F: 82,
1864
+ 0x10B90: 68,
1865
+ 0x10B91: 82,
1866
+ 0x10BA9: 82,
1867
+ 0x10BAA: 82,
1868
+ 0x10BAB: 82,
1869
+ 0x10BAC: 82,
1870
+ 0x10BAD: 68,
1871
+ 0x10BAE: 68,
1872
+ 0x10D00: 76,
1873
+ 0x10D01: 68,
1874
+ 0x10D02: 68,
1875
+ 0x10D03: 68,
1876
+ 0x10D04: 68,
1877
+ 0x10D05: 68,
1878
+ 0x10D06: 68,
1879
+ 0x10D07: 68,
1880
+ 0x10D08: 68,
1881
+ 0x10D09: 68,
1882
+ 0x10D0A: 68,
1883
+ 0x10D0B: 68,
1884
+ 0x10D0C: 68,
1885
+ 0x10D0D: 68,
1886
+ 0x10D0E: 68,
1887
+ 0x10D0F: 68,
1888
+ 0x10D10: 68,
1889
+ 0x10D11: 68,
1890
+ 0x10D12: 68,
1891
+ 0x10D13: 68,
1892
+ 0x10D14: 68,
1893
+ 0x10D15: 68,
1894
+ 0x10D16: 68,
1895
+ 0x10D17: 68,
1896
+ 0x10D18: 68,
1897
+ 0x10D19: 68,
1898
+ 0x10D1A: 68,
1899
+ 0x10D1B: 68,
1900
+ 0x10D1C: 68,
1901
+ 0x10D1D: 68,
1902
+ 0x10D1E: 68,
1903
+ 0x10D1F: 68,
1904
+ 0x10D20: 68,
1905
+ 0x10D21: 68,
1906
+ 0x10D22: 82,
1907
+ 0x10D23: 68,
1908
+ 0x10D24: 84,
1909
+ 0x10D25: 84,
1910
+ 0x10D26: 84,
1911
+ 0x10D27: 84,
1912
+ 0x10D69: 84,
1913
+ 0x10D6A: 84,
1914
+ 0x10D6B: 84,
1915
+ 0x10D6C: 84,
1916
+ 0x10D6D: 84,
1917
+ 0x10EAB: 84,
1918
+ 0x10EAC: 84,
1919
+ 0x10EC2: 82,
1920
+ 0x10EC3: 68,
1921
+ 0x10EC4: 68,
1922
+ 0x10EC6: 68,
1923
+ 0x10EC7: 68,
1924
+ 0x10EFA: 84,
1925
+ 0x10EFB: 84,
1926
+ 0x10EFC: 84,
1927
+ 0x10EFD: 84,
1928
+ 0x10EFE: 84,
1929
+ 0x10EFF: 84,
1930
+ 0x10F30: 68,
1931
+ 0x10F31: 68,
1932
+ 0x10F32: 68,
1933
+ 0x10F33: 82,
1934
+ 0x10F34: 68,
1935
+ 0x10F35: 68,
1936
+ 0x10F36: 68,
1937
+ 0x10F37: 68,
1938
+ 0x10F38: 68,
1939
+ 0x10F39: 68,
1940
+ 0x10F3A: 68,
1941
+ 0x10F3B: 68,
1942
+ 0x10F3C: 68,
1943
+ 0x10F3D: 68,
1944
+ 0x10F3E: 68,
1945
+ 0x10F3F: 68,
1946
+ 0x10F40: 68,
1947
+ 0x10F41: 68,
1948
+ 0x10F42: 68,
1949
+ 0x10F43: 68,
1950
+ 0x10F44: 68,
1951
+ 0x10F46: 84,
1952
+ 0x10F47: 84,
1953
+ 0x10F48: 84,
1954
+ 0x10F49: 84,
1955
+ 0x10F4A: 84,
1956
+ 0x10F4B: 84,
1957
+ 0x10F4C: 84,
1958
+ 0x10F4D: 84,
1959
+ 0x10F4E: 84,
1960
+ 0x10F4F: 84,
1961
+ 0x10F50: 84,
1962
+ 0x10F51: 68,
1963
+ 0x10F52: 68,
1964
+ 0x10F53: 68,
1965
+ 0x10F54: 82,
1966
+ 0x10F70: 68,
1967
+ 0x10F71: 68,
1968
+ 0x10F72: 68,
1969
+ 0x10F73: 68,
1970
+ 0x10F74: 82,
1971
+ 0x10F75: 82,
1972
+ 0x10F76: 68,
1973
+ 0x10F77: 68,
1974
+ 0x10F78: 68,
1975
+ 0x10F79: 68,
1976
+ 0x10F7A: 68,
1977
+ 0x10F7B: 68,
1978
+ 0x10F7C: 68,
1979
+ 0x10F7D: 68,
1980
+ 0x10F7E: 68,
1981
+ 0x10F7F: 68,
1982
+ 0x10F80: 68,
1983
+ 0x10F81: 68,
1984
+ 0x10F82: 84,
1985
+ 0x10F83: 84,
1986
+ 0x10F84: 84,
1987
+ 0x10F85: 84,
1988
+ 0x10FB0: 68,
1989
+ 0x10FB2: 68,
1990
+ 0x10FB3: 68,
1991
+ 0x10FB4: 82,
1992
+ 0x10FB5: 82,
1993
+ 0x10FB6: 82,
1994
+ 0x10FB8: 68,
1995
+ 0x10FB9: 82,
1996
+ 0x10FBA: 82,
1997
+ 0x10FBB: 68,
1998
+ 0x10FBC: 68,
1999
+ 0x10FBD: 82,
2000
+ 0x10FBE: 68,
2001
+ 0x10FBF: 68,
2002
+ 0x10FC1: 68,
2003
+ 0x10FC2: 82,
2004
+ 0x10FC3: 82,
2005
+ 0x10FC4: 68,
2006
+ 0x10FC9: 82,
2007
+ 0x10FCA: 68,
2008
+ 0x10FCB: 76,
2009
+ 0x11001: 84,
2010
+ 0x11038: 84,
2011
+ 0x11039: 84,
2012
+ 0x1103A: 84,
2013
+ 0x1103B: 84,
2014
+ 0x1103C: 84,
2015
+ 0x1103D: 84,
2016
+ 0x1103E: 84,
2017
+ 0x1103F: 84,
2018
+ 0x11040: 84,
2019
+ 0x11041: 84,
2020
+ 0x11042: 84,
2021
+ 0x11043: 84,
2022
+ 0x11044: 84,
2023
+ 0x11045: 84,
2024
+ 0x11046: 84,
2025
+ 0x11070: 84,
2026
+ 0x11073: 84,
2027
+ 0x11074: 84,
2028
+ 0x1107F: 84,
2029
+ 0x11080: 84,
2030
+ 0x11081: 84,
2031
+ 0x110B3: 84,
2032
+ 0x110B4: 84,
2033
+ 0x110B5: 84,
2034
+ 0x110B6: 84,
2035
+ 0x110B9: 84,
2036
+ 0x110BA: 84,
2037
+ 0x110C2: 84,
2038
+ 0x11100: 84,
2039
+ 0x11101: 84,
2040
+ 0x11102: 84,
2041
+ 0x11127: 84,
2042
+ 0x11128: 84,
2043
+ 0x11129: 84,
2044
+ 0x1112A: 84,
2045
+ 0x1112B: 84,
2046
+ 0x1112D: 84,
2047
+ 0x1112E: 84,
2048
+ 0x1112F: 84,
2049
+ 0x11130: 84,
2050
+ 0x11131: 84,
2051
+ 0x11132: 84,
2052
+ 0x11133: 84,
2053
+ 0x11134: 84,
2054
+ 0x11173: 84,
2055
+ 0x11180: 84,
2056
+ 0x11181: 84,
2057
+ 0x111B6: 84,
2058
+ 0x111B7: 84,
2059
+ 0x111B8: 84,
2060
+ 0x111B9: 84,
2061
+ 0x111BA: 84,
2062
+ 0x111BB: 84,
2063
+ 0x111BC: 84,
2064
+ 0x111BD: 84,
2065
+ 0x111BE: 84,
2066
+ 0x111C9: 84,
2067
+ 0x111CA: 84,
2068
+ 0x111CB: 84,
2069
+ 0x111CC: 84,
2070
+ 0x111CF: 84,
2071
+ 0x1122F: 84,
2072
+ 0x11230: 84,
2073
+ 0x11231: 84,
2074
+ 0x11234: 84,
2075
+ 0x11236: 84,
2076
+ 0x11237: 84,
2077
+ 0x1123E: 84,
2078
+ 0x11241: 84,
2079
+ 0x112DF: 84,
2080
+ 0x112E3: 84,
2081
+ 0x112E4: 84,
2082
+ 0x112E5: 84,
2083
+ 0x112E6: 84,
2084
+ 0x112E7: 84,
2085
+ 0x112E8: 84,
2086
+ 0x112E9: 84,
2087
+ 0x112EA: 84,
2088
+ 0x11300: 84,
2089
+ 0x11301: 84,
2090
+ 0x1133B: 84,
2091
+ 0x1133C: 84,
2092
+ 0x11340: 84,
2093
+ 0x11366: 84,
2094
+ 0x11367: 84,
2095
+ 0x11368: 84,
2096
+ 0x11369: 84,
2097
+ 0x1136A: 84,
2098
+ 0x1136B: 84,
2099
+ 0x1136C: 84,
2100
+ 0x11370: 84,
2101
+ 0x11371: 84,
2102
+ 0x11372: 84,
2103
+ 0x11373: 84,
2104
+ 0x11374: 84,
2105
+ 0x113BB: 84,
2106
+ 0x113BC: 84,
2107
+ 0x113BD: 84,
2108
+ 0x113BE: 84,
2109
+ 0x113BF: 84,
2110
+ 0x113C0: 84,
2111
+ 0x113CE: 84,
2112
+ 0x113D0: 84,
2113
+ 0x113D2: 84,
2114
+ 0x113E1: 84,
2115
+ 0x113E2: 84,
2116
+ 0x11438: 84,
2117
+ 0x11439: 84,
2118
+ 0x1143A: 84,
2119
+ 0x1143B: 84,
2120
+ 0x1143C: 84,
2121
+ 0x1143D: 84,
2122
+ 0x1143E: 84,
2123
+ 0x1143F: 84,
2124
+ 0x11442: 84,
2125
+ 0x11443: 84,
2126
+ 0x11444: 84,
2127
+ 0x11446: 84,
2128
+ 0x1145E: 84,
2129
+ 0x114B3: 84,
2130
+ 0x114B4: 84,
2131
+ 0x114B5: 84,
2132
+ 0x114B6: 84,
2133
+ 0x114B7: 84,
2134
+ 0x114B8: 84,
2135
+ 0x114BA: 84,
2136
+ 0x114BF: 84,
2137
+ 0x114C0: 84,
2138
+ 0x114C2: 84,
2139
+ 0x114C3: 84,
2140
+ 0x115B2: 84,
2141
+ 0x115B3: 84,
2142
+ 0x115B4: 84,
2143
+ 0x115B5: 84,
2144
+ 0x115BC: 84,
2145
+ 0x115BD: 84,
2146
+ 0x115BF: 84,
2147
+ 0x115C0: 84,
2148
+ 0x115DC: 84,
2149
+ 0x115DD: 84,
2150
+ 0x11633: 84,
2151
+ 0x11634: 84,
2152
+ 0x11635: 84,
2153
+ 0x11636: 84,
2154
+ 0x11637: 84,
2155
+ 0x11638: 84,
2156
+ 0x11639: 84,
2157
+ 0x1163A: 84,
2158
+ 0x1163D: 84,
2159
+ 0x1163F: 84,
2160
+ 0x11640: 84,
2161
+ 0x116AB: 84,
2162
+ 0x116AD: 84,
2163
+ 0x116B0: 84,
2164
+ 0x116B1: 84,
2165
+ 0x116B2: 84,
2166
+ 0x116B3: 84,
2167
+ 0x116B4: 84,
2168
+ 0x116B5: 84,
2169
+ 0x116B7: 84,
2170
+ 0x1171D: 84,
2171
+ 0x1171F: 84,
2172
+ 0x11722: 84,
2173
+ 0x11723: 84,
2174
+ 0x11724: 84,
2175
+ 0x11725: 84,
2176
+ 0x11727: 84,
2177
+ 0x11728: 84,
2178
+ 0x11729: 84,
2179
+ 0x1172A: 84,
2180
+ 0x1172B: 84,
2181
+ 0x1182F: 84,
2182
+ 0x11830: 84,
2183
+ 0x11831: 84,
2184
+ 0x11832: 84,
2185
+ 0x11833: 84,
2186
+ 0x11834: 84,
2187
+ 0x11835: 84,
2188
+ 0x11836: 84,
2189
+ 0x11837: 84,
2190
+ 0x11839: 84,
2191
+ 0x1183A: 84,
2192
+ 0x1193B: 84,
2193
+ 0x1193C: 84,
2194
+ 0x1193E: 84,
2195
+ 0x11943: 84,
2196
+ 0x119D4: 84,
2197
+ 0x119D5: 84,
2198
+ 0x119D6: 84,
2199
+ 0x119D7: 84,
2200
+ 0x119DA: 84,
2201
+ 0x119DB: 84,
2202
+ 0x119E0: 84,
2203
+ 0x11A01: 84,
2204
+ 0x11A02: 84,
2205
+ 0x11A03: 84,
2206
+ 0x11A04: 84,
2207
+ 0x11A05: 84,
2208
+ 0x11A06: 84,
2209
+ 0x11A07: 84,
2210
+ 0x11A08: 84,
2211
+ 0x11A09: 84,
2212
+ 0x11A0A: 84,
2213
+ 0x11A33: 84,
2214
+ 0x11A34: 84,
2215
+ 0x11A35: 84,
2216
+ 0x11A36: 84,
2217
+ 0x11A37: 84,
2218
+ 0x11A38: 84,
2219
+ 0x11A3B: 84,
2220
+ 0x11A3C: 84,
2221
+ 0x11A3D: 84,
2222
+ 0x11A3E: 84,
2223
+ 0x11A47: 84,
2224
+ 0x11A51: 84,
2225
+ 0x11A52: 84,
2226
+ 0x11A53: 84,
2227
+ 0x11A54: 84,
2228
+ 0x11A55: 84,
2229
+ 0x11A56: 84,
2230
+ 0x11A59: 84,
2231
+ 0x11A5A: 84,
2232
+ 0x11A5B: 84,
2233
+ 0x11A8A: 84,
2234
+ 0x11A8B: 84,
2235
+ 0x11A8C: 84,
2236
+ 0x11A8D: 84,
2237
+ 0x11A8E: 84,
2238
+ 0x11A8F: 84,
2239
+ 0x11A90: 84,
2240
+ 0x11A91: 84,
2241
+ 0x11A92: 84,
2242
+ 0x11A93: 84,
2243
+ 0x11A94: 84,
2244
+ 0x11A95: 84,
2245
+ 0x11A96: 84,
2246
+ 0x11A98: 84,
2247
+ 0x11A99: 84,
2248
+ 0x11B60: 84,
2249
+ 0x11B62: 84,
2250
+ 0x11B63: 84,
2251
+ 0x11B64: 84,
2252
+ 0x11B66: 84,
2253
+ 0x11C30: 84,
2254
+ 0x11C31: 84,
2255
+ 0x11C32: 84,
2256
+ 0x11C33: 84,
2257
+ 0x11C34: 84,
2258
+ 0x11C35: 84,
2259
+ 0x11C36: 84,
2260
+ 0x11C38: 84,
2261
+ 0x11C39: 84,
2262
+ 0x11C3A: 84,
2263
+ 0x11C3B: 84,
2264
+ 0x11C3C: 84,
2265
+ 0x11C3D: 84,
2266
+ 0x11C3F: 84,
2267
+ 0x11C92: 84,
2268
+ 0x11C93: 84,
2269
+ 0x11C94: 84,
2270
+ 0x11C95: 84,
2271
+ 0x11C96: 84,
2272
+ 0x11C97: 84,
2273
+ 0x11C98: 84,
2274
+ 0x11C99: 84,
2275
+ 0x11C9A: 84,
2276
+ 0x11C9B: 84,
2277
+ 0x11C9C: 84,
2278
+ 0x11C9D: 84,
2279
+ 0x11C9E: 84,
2280
+ 0x11C9F: 84,
2281
+ 0x11CA0: 84,
2282
+ 0x11CA1: 84,
2283
+ 0x11CA2: 84,
2284
+ 0x11CA3: 84,
2285
+ 0x11CA4: 84,
2286
+ 0x11CA5: 84,
2287
+ 0x11CA6: 84,
2288
+ 0x11CA7: 84,
2289
+ 0x11CAA: 84,
2290
+ 0x11CAB: 84,
2291
+ 0x11CAC: 84,
2292
+ 0x11CAD: 84,
2293
+ 0x11CAE: 84,
2294
+ 0x11CAF: 84,
2295
+ 0x11CB0: 84,
2296
+ 0x11CB2: 84,
2297
+ 0x11CB3: 84,
2298
+ 0x11CB5: 84,
2299
+ 0x11CB6: 84,
2300
+ 0x11D31: 84,
2301
+ 0x11D32: 84,
2302
+ 0x11D33: 84,
2303
+ 0x11D34: 84,
2304
+ 0x11D35: 84,
2305
+ 0x11D36: 84,
2306
+ 0x11D3A: 84,
2307
+ 0x11D3C: 84,
2308
+ 0x11D3D: 84,
2309
+ 0x11D3F: 84,
2310
+ 0x11D40: 84,
2311
+ 0x11D41: 84,
2312
+ 0x11D42: 84,
2313
+ 0x11D43: 84,
2314
+ 0x11D44: 84,
2315
+ 0x11D45: 84,
2316
+ 0x11D47: 84,
2317
+ 0x11D90: 84,
2318
+ 0x11D91: 84,
2319
+ 0x11D95: 84,
2320
+ 0x11D97: 84,
2321
+ 0x11EF3: 84,
2322
+ 0x11EF4: 84,
2323
+ 0x11F00: 84,
2324
+ 0x11F01: 84,
2325
+ 0x11F36: 84,
2326
+ 0x11F37: 84,
2327
+ 0x11F38: 84,
2328
+ 0x11F39: 84,
2329
+ 0x11F3A: 84,
2330
+ 0x11F40: 84,
2331
+ 0x11F42: 84,
2332
+ 0x11F5A: 84,
2333
+ 0x13430: 84,
2334
+ 0x13431: 84,
2335
+ 0x13432: 84,
2336
+ 0x13433: 84,
2337
+ 0x13434: 84,
2338
+ 0x13435: 84,
2339
+ 0x13436: 84,
2340
+ 0x13437: 84,
2341
+ 0x13438: 84,
2342
+ 0x13439: 84,
2343
+ 0x1343A: 84,
2344
+ 0x1343B: 84,
2345
+ 0x1343C: 84,
2346
+ 0x1343D: 84,
2347
+ 0x1343E: 84,
2348
+ 0x1343F: 84,
2349
+ 0x13440: 84,
2350
+ 0x13447: 84,
2351
+ 0x13448: 84,
2352
+ 0x13449: 84,
2353
+ 0x1344A: 84,
2354
+ 0x1344B: 84,
2355
+ 0x1344C: 84,
2356
+ 0x1344D: 84,
2357
+ 0x1344E: 84,
2358
+ 0x1344F: 84,
2359
+ 0x13450: 84,
2360
+ 0x13451: 84,
2361
+ 0x13452: 84,
2362
+ 0x13453: 84,
2363
+ 0x13454: 84,
2364
+ 0x13455: 84,
2365
+ 0x1611E: 84,
2366
+ 0x1611F: 84,
2367
+ 0x16120: 84,
2368
+ 0x16121: 84,
2369
+ 0x16122: 84,
2370
+ 0x16123: 84,
2371
+ 0x16124: 84,
2372
+ 0x16125: 84,
2373
+ 0x16126: 84,
2374
+ 0x16127: 84,
2375
+ 0x16128: 84,
2376
+ 0x16129: 84,
2377
+ 0x1612D: 84,
2378
+ 0x1612E: 84,
2379
+ 0x1612F: 84,
2380
+ 0x16AF0: 84,
2381
+ 0x16AF1: 84,
2382
+ 0x16AF2: 84,
2383
+ 0x16AF3: 84,
2384
+ 0x16AF4: 84,
2385
+ 0x16B30: 84,
2386
+ 0x16B31: 84,
2387
+ 0x16B32: 84,
2388
+ 0x16B33: 84,
2389
+ 0x16B34: 84,
2390
+ 0x16B35: 84,
2391
+ 0x16B36: 84,
2392
+ 0x16F4F: 84,
2393
+ 0x16F8F: 84,
2394
+ 0x16F90: 84,
2395
+ 0x16F91: 84,
2396
+ 0x16F92: 84,
2397
+ 0x16FE4: 84,
2398
+ 0x1BC9D: 84,
2399
+ 0x1BC9E: 84,
2400
+ 0x1BCA0: 84,
2401
+ 0x1BCA1: 84,
2402
+ 0x1BCA2: 84,
2403
+ 0x1BCA3: 84,
2404
+ 0x1CF00: 84,
2405
+ 0x1CF01: 84,
2406
+ 0x1CF02: 84,
2407
+ 0x1CF03: 84,
2408
+ 0x1CF04: 84,
2409
+ 0x1CF05: 84,
2410
+ 0x1CF06: 84,
2411
+ 0x1CF07: 84,
2412
+ 0x1CF08: 84,
2413
+ 0x1CF09: 84,
2414
+ 0x1CF0A: 84,
2415
+ 0x1CF0B: 84,
2416
+ 0x1CF0C: 84,
2417
+ 0x1CF0D: 84,
2418
+ 0x1CF0E: 84,
2419
+ 0x1CF0F: 84,
2420
+ 0x1CF10: 84,
2421
+ 0x1CF11: 84,
2422
+ 0x1CF12: 84,
2423
+ 0x1CF13: 84,
2424
+ 0x1CF14: 84,
2425
+ 0x1CF15: 84,
2426
+ 0x1CF16: 84,
2427
+ 0x1CF17: 84,
2428
+ 0x1CF18: 84,
2429
+ 0x1CF19: 84,
2430
+ 0x1CF1A: 84,
2431
+ 0x1CF1B: 84,
2432
+ 0x1CF1C: 84,
2433
+ 0x1CF1D: 84,
2434
+ 0x1CF1E: 84,
2435
+ 0x1CF1F: 84,
2436
+ 0x1CF20: 84,
2437
+ 0x1CF21: 84,
2438
+ 0x1CF22: 84,
2439
+ 0x1CF23: 84,
2440
+ 0x1CF24: 84,
2441
+ 0x1CF25: 84,
2442
+ 0x1CF26: 84,
2443
+ 0x1CF27: 84,
2444
+ 0x1CF28: 84,
2445
+ 0x1CF29: 84,
2446
+ 0x1CF2A: 84,
2447
+ 0x1CF2B: 84,
2448
+ 0x1CF2C: 84,
2449
+ 0x1CF2D: 84,
2450
+ 0x1CF30: 84,
2451
+ 0x1CF31: 84,
2452
+ 0x1CF32: 84,
2453
+ 0x1CF33: 84,
2454
+ 0x1CF34: 84,
2455
+ 0x1CF35: 84,
2456
+ 0x1CF36: 84,
2457
+ 0x1CF37: 84,
2458
+ 0x1CF38: 84,
2459
+ 0x1CF39: 84,
2460
+ 0x1CF3A: 84,
2461
+ 0x1CF3B: 84,
2462
+ 0x1CF3C: 84,
2463
+ 0x1CF3D: 84,
2464
+ 0x1CF3E: 84,
2465
+ 0x1CF3F: 84,
2466
+ 0x1CF40: 84,
2467
+ 0x1CF41: 84,
2468
+ 0x1CF42: 84,
2469
+ 0x1CF43: 84,
2470
+ 0x1CF44: 84,
2471
+ 0x1CF45: 84,
2472
+ 0x1CF46: 84,
2473
+ 0x1D167: 84,
2474
+ 0x1D168: 84,
2475
+ 0x1D169: 84,
2476
+ 0x1D173: 84,
2477
+ 0x1D174: 84,
2478
+ 0x1D175: 84,
2479
+ 0x1D176: 84,
2480
+ 0x1D177: 84,
2481
+ 0x1D178: 84,
2482
+ 0x1D179: 84,
2483
+ 0x1D17A: 84,
2484
+ 0x1D17B: 84,
2485
+ 0x1D17C: 84,
2486
+ 0x1D17D: 84,
2487
+ 0x1D17E: 84,
2488
+ 0x1D17F: 84,
2489
+ 0x1D180: 84,
2490
+ 0x1D181: 84,
2491
+ 0x1D182: 84,
2492
+ 0x1D185: 84,
2493
+ 0x1D186: 84,
2494
+ 0x1D187: 84,
2495
+ 0x1D188: 84,
2496
+ 0x1D189: 84,
2497
+ 0x1D18A: 84,
2498
+ 0x1D18B: 84,
2499
+ 0x1D1AA: 84,
2500
+ 0x1D1AB: 84,
2501
+ 0x1D1AC: 84,
2502
+ 0x1D1AD: 84,
2503
+ 0x1D242: 84,
2504
+ 0x1D243: 84,
2505
+ 0x1D244: 84,
2506
+ 0x1DA00: 84,
2507
+ 0x1DA01: 84,
2508
+ 0x1DA02: 84,
2509
+ 0x1DA03: 84,
2510
+ 0x1DA04: 84,
2511
+ 0x1DA05: 84,
2512
+ 0x1DA06: 84,
2513
+ 0x1DA07: 84,
2514
+ 0x1DA08: 84,
2515
+ 0x1DA09: 84,
2516
+ 0x1DA0A: 84,
2517
+ 0x1DA0B: 84,
2518
+ 0x1DA0C: 84,
2519
+ 0x1DA0D: 84,
2520
+ 0x1DA0E: 84,
2521
+ 0x1DA0F: 84,
2522
+ 0x1DA10: 84,
2523
+ 0x1DA11: 84,
2524
+ 0x1DA12: 84,
2525
+ 0x1DA13: 84,
2526
+ 0x1DA14: 84,
2527
+ 0x1DA15: 84,
2528
+ 0x1DA16: 84,
2529
+ 0x1DA17: 84,
2530
+ 0x1DA18: 84,
2531
+ 0x1DA19: 84,
2532
+ 0x1DA1A: 84,
2533
+ 0x1DA1B: 84,
2534
+ 0x1DA1C: 84,
2535
+ 0x1DA1D: 84,
2536
+ 0x1DA1E: 84,
2537
+ 0x1DA1F: 84,
2538
+ 0x1DA20: 84,
2539
+ 0x1DA21: 84,
2540
+ 0x1DA22: 84,
2541
+ 0x1DA23: 84,
2542
+ 0x1DA24: 84,
2543
+ 0x1DA25: 84,
2544
+ 0x1DA26: 84,
2545
+ 0x1DA27: 84,
2546
+ 0x1DA28: 84,
2547
+ 0x1DA29: 84,
2548
+ 0x1DA2A: 84,
2549
+ 0x1DA2B: 84,
2550
+ 0x1DA2C: 84,
2551
+ 0x1DA2D: 84,
2552
+ 0x1DA2E: 84,
2553
+ 0x1DA2F: 84,
2554
+ 0x1DA30: 84,
2555
+ 0x1DA31: 84,
2556
+ 0x1DA32: 84,
2557
+ 0x1DA33: 84,
2558
+ 0x1DA34: 84,
2559
+ 0x1DA35: 84,
2560
+ 0x1DA36: 84,
2561
+ 0x1DA3B: 84,
2562
+ 0x1DA3C: 84,
2563
+ 0x1DA3D: 84,
2564
+ 0x1DA3E: 84,
2565
+ 0x1DA3F: 84,
2566
+ 0x1DA40: 84,
2567
+ 0x1DA41: 84,
2568
+ 0x1DA42: 84,
2569
+ 0x1DA43: 84,
2570
+ 0x1DA44: 84,
2571
+ 0x1DA45: 84,
2572
+ 0x1DA46: 84,
2573
+ 0x1DA47: 84,
2574
+ 0x1DA48: 84,
2575
+ 0x1DA49: 84,
2576
+ 0x1DA4A: 84,
2577
+ 0x1DA4B: 84,
2578
+ 0x1DA4C: 84,
2579
+ 0x1DA4D: 84,
2580
+ 0x1DA4E: 84,
2581
+ 0x1DA4F: 84,
2582
+ 0x1DA50: 84,
2583
+ 0x1DA51: 84,
2584
+ 0x1DA52: 84,
2585
+ 0x1DA53: 84,
2586
+ 0x1DA54: 84,
2587
+ 0x1DA55: 84,
2588
+ 0x1DA56: 84,
2589
+ 0x1DA57: 84,
2590
+ 0x1DA58: 84,
2591
+ 0x1DA59: 84,
2592
+ 0x1DA5A: 84,
2593
+ 0x1DA5B: 84,
2594
+ 0x1DA5C: 84,
2595
+ 0x1DA5D: 84,
2596
+ 0x1DA5E: 84,
2597
+ 0x1DA5F: 84,
2598
+ 0x1DA60: 84,
2599
+ 0x1DA61: 84,
2600
+ 0x1DA62: 84,
2601
+ 0x1DA63: 84,
2602
+ 0x1DA64: 84,
2603
+ 0x1DA65: 84,
2604
+ 0x1DA66: 84,
2605
+ 0x1DA67: 84,
2606
+ 0x1DA68: 84,
2607
+ 0x1DA69: 84,
2608
+ 0x1DA6A: 84,
2609
+ 0x1DA6B: 84,
2610
+ 0x1DA6C: 84,
2611
+ 0x1DA75: 84,
2612
+ 0x1DA84: 84,
2613
+ 0x1DA9B: 84,
2614
+ 0x1DA9C: 84,
2615
+ 0x1DA9D: 84,
2616
+ 0x1DA9E: 84,
2617
+ 0x1DA9F: 84,
2618
+ 0x1DAA1: 84,
2619
+ 0x1DAA2: 84,
2620
+ 0x1DAA3: 84,
2621
+ 0x1DAA4: 84,
2622
+ 0x1DAA5: 84,
2623
+ 0x1DAA6: 84,
2624
+ 0x1DAA7: 84,
2625
+ 0x1DAA8: 84,
2626
+ 0x1DAA9: 84,
2627
+ 0x1DAAA: 84,
2628
+ 0x1DAAB: 84,
2629
+ 0x1DAAC: 84,
2630
+ 0x1DAAD: 84,
2631
+ 0x1DAAE: 84,
2632
+ 0x1DAAF: 84,
2633
+ 0x1E000: 84,
2634
+ 0x1E001: 84,
2635
+ 0x1E002: 84,
2636
+ 0x1E003: 84,
2637
+ 0x1E004: 84,
2638
+ 0x1E005: 84,
2639
+ 0x1E006: 84,
2640
+ 0x1E008: 84,
2641
+ 0x1E009: 84,
2642
+ 0x1E00A: 84,
2643
+ 0x1E00B: 84,
2644
+ 0x1E00C: 84,
2645
+ 0x1E00D: 84,
2646
+ 0x1E00E: 84,
2647
+ 0x1E00F: 84,
2648
+ 0x1E010: 84,
2649
+ 0x1E011: 84,
2650
+ 0x1E012: 84,
2651
+ 0x1E013: 84,
2652
+ 0x1E014: 84,
2653
+ 0x1E015: 84,
2654
+ 0x1E016: 84,
2655
+ 0x1E017: 84,
2656
+ 0x1E018: 84,
2657
+ 0x1E01B: 84,
2658
+ 0x1E01C: 84,
2659
+ 0x1E01D: 84,
2660
+ 0x1E01E: 84,
2661
+ 0x1E01F: 84,
2662
+ 0x1E020: 84,
2663
+ 0x1E021: 84,
2664
+ 0x1E023: 84,
2665
+ 0x1E024: 84,
2666
+ 0x1E026: 84,
2667
+ 0x1E027: 84,
2668
+ 0x1E028: 84,
2669
+ 0x1E029: 84,
2670
+ 0x1E02A: 84,
2671
+ 0x1E08F: 84,
2672
+ 0x1E130: 84,
2673
+ 0x1E131: 84,
2674
+ 0x1E132: 84,
2675
+ 0x1E133: 84,
2676
+ 0x1E134: 84,
2677
+ 0x1E135: 84,
2678
+ 0x1E136: 84,
2679
+ 0x1E2AE: 84,
2680
+ 0x1E2EC: 84,
2681
+ 0x1E2ED: 84,
2682
+ 0x1E2EE: 84,
2683
+ 0x1E2EF: 84,
2684
+ 0x1E4EC: 84,
2685
+ 0x1E4ED: 84,
2686
+ 0x1E4EE: 84,
2687
+ 0x1E4EF: 84,
2688
+ 0x1E5EE: 84,
2689
+ 0x1E5EF: 84,
2690
+ 0x1E6E3: 84,
2691
+ 0x1E6E6: 84,
2692
+ 0x1E6EE: 84,
2693
+ 0x1E6EF: 84,
2694
+ 0x1E6F5: 84,
2695
+ 0x1E8D0: 84,
2696
+ 0x1E8D1: 84,
2697
+ 0x1E8D2: 84,
2698
+ 0x1E8D3: 84,
2699
+ 0x1E8D4: 84,
2700
+ 0x1E8D5: 84,
2701
+ 0x1E8D6: 84,
2702
+ 0x1E900: 68,
2703
+ 0x1E901: 68,
2704
+ 0x1E902: 68,
2705
+ 0x1E903: 68,
2706
+ 0x1E904: 68,
2707
+ 0x1E905: 68,
2708
+ 0x1E906: 68,
2709
+ 0x1E907: 68,
2710
+ 0x1E908: 68,
2711
+ 0x1E909: 68,
2712
+ 0x1E90A: 68,
2713
+ 0x1E90B: 68,
2714
+ 0x1E90C: 68,
2715
+ 0x1E90D: 68,
2716
+ 0x1E90E: 68,
2717
+ 0x1E90F: 68,
2718
+ 0x1E910: 68,
2719
+ 0x1E911: 68,
2720
+ 0x1E912: 68,
2721
+ 0x1E913: 68,
2722
+ 0x1E914: 68,
2723
+ 0x1E915: 68,
2724
+ 0x1E916: 68,
2725
+ 0x1E917: 68,
2726
+ 0x1E918: 68,
2727
+ 0x1E919: 68,
2728
+ 0x1E91A: 68,
2729
+ 0x1E91B: 68,
2730
+ 0x1E91C: 68,
2731
+ 0x1E91D: 68,
2732
+ 0x1E91E: 68,
2733
+ 0x1E91F: 68,
2734
+ 0x1E920: 68,
2735
+ 0x1E921: 68,
2736
+ 0x1E922: 68,
2737
+ 0x1E923: 68,
2738
+ 0x1E924: 68,
2739
+ 0x1E925: 68,
2740
+ 0x1E926: 68,
2741
+ 0x1E927: 68,
2742
+ 0x1E928: 68,
2743
+ 0x1E929: 68,
2744
+ 0x1E92A: 68,
2745
+ 0x1E92B: 68,
2746
+ 0x1E92C: 68,
2747
+ 0x1E92D: 68,
2748
+ 0x1E92E: 68,
2749
+ 0x1E92F: 68,
2750
+ 0x1E930: 68,
2751
+ 0x1E931: 68,
2752
+ 0x1E932: 68,
2753
+ 0x1E933: 68,
2754
+ 0x1E934: 68,
2755
+ 0x1E935: 68,
2756
+ 0x1E936: 68,
2757
+ 0x1E937: 68,
2758
+ 0x1E938: 68,
2759
+ 0x1E939: 68,
2760
+ 0x1E93A: 68,
2761
+ 0x1E93B: 68,
2762
+ 0x1E93C: 68,
2763
+ 0x1E93D: 68,
2764
+ 0x1E93E: 68,
2765
+ 0x1E93F: 68,
2766
+ 0x1E940: 68,
2767
+ 0x1E941: 68,
2768
+ 0x1E942: 68,
2769
+ 0x1E943: 68,
2770
+ 0x1E944: 84,
2771
+ 0x1E945: 84,
2772
+ 0x1E946: 84,
2773
+ 0x1E947: 84,
2774
+ 0x1E948: 84,
2775
+ 0x1E949: 84,
2776
+ 0x1E94A: 84,
2777
+ 0x1E94B: 84,
2778
+ 0xE0001: 84,
2779
+ 0xE0020: 84,
2780
+ 0xE0021: 84,
2781
+ 0xE0022: 84,
2782
+ 0xE0023: 84,
2783
+ 0xE0024: 84,
2784
+ 0xE0025: 84,
2785
+ 0xE0026: 84,
2786
+ 0xE0027: 84,
2787
+ 0xE0028: 84,
2788
+ 0xE0029: 84,
2789
+ 0xE002A: 84,
2790
+ 0xE002B: 84,
2791
+ 0xE002C: 84,
2792
+ 0xE002D: 84,
2793
+ 0xE002E: 84,
2794
+ 0xE002F: 84,
2795
+ 0xE0030: 84,
2796
+ 0xE0031: 84,
2797
+ 0xE0032: 84,
2798
+ 0xE0033: 84,
2799
+ 0xE0034: 84,
2800
+ 0xE0035: 84,
2801
+ 0xE0036: 84,
2802
+ 0xE0037: 84,
2803
+ 0xE0038: 84,
2804
+ 0xE0039: 84,
2805
+ 0xE003A: 84,
2806
+ 0xE003B: 84,
2807
+ 0xE003C: 84,
2808
+ 0xE003D: 84,
2809
+ 0xE003E: 84,
2810
+ 0xE003F: 84,
2811
+ 0xE0040: 84,
2812
+ 0xE0041: 84,
2813
+ 0xE0042: 84,
2814
+ 0xE0043: 84,
2815
+ 0xE0044: 84,
2816
+ 0xE0045: 84,
2817
+ 0xE0046: 84,
2818
+ 0xE0047: 84,
2819
+ 0xE0048: 84,
2820
+ 0xE0049: 84,
2821
+ 0xE004A: 84,
2822
+ 0xE004B: 84,
2823
+ 0xE004C: 84,
2824
+ 0xE004D: 84,
2825
+ 0xE004E: 84,
2826
+ 0xE004F: 84,
2827
+ 0xE0050: 84,
2828
+ 0xE0051: 84,
2829
+ 0xE0052: 84,
2830
+ 0xE0053: 84,
2831
+ 0xE0054: 84,
2832
+ 0xE0055: 84,
2833
+ 0xE0056: 84,
2834
+ 0xE0057: 84,
2835
+ 0xE0058: 84,
2836
+ 0xE0059: 84,
2837
+ 0xE005A: 84,
2838
+ 0xE005B: 84,
2839
+ 0xE005C: 84,
2840
+ 0xE005D: 84,
2841
+ 0xE005E: 84,
2842
+ 0xE005F: 84,
2843
+ 0xE0060: 84,
2844
+ 0xE0061: 84,
2845
+ 0xE0062: 84,
2846
+ 0xE0063: 84,
2847
+ 0xE0064: 84,
2848
+ 0xE0065: 84,
2849
+ 0xE0066: 84,
2850
+ 0xE0067: 84,
2851
+ 0xE0068: 84,
2852
+ 0xE0069: 84,
2853
+ 0xE006A: 84,
2854
+ 0xE006B: 84,
2855
+ 0xE006C: 84,
2856
+ 0xE006D: 84,
2857
+ 0xE006E: 84,
2858
+ 0xE006F: 84,
2859
+ 0xE0070: 84,
2860
+ 0xE0071: 84,
2861
+ 0xE0072: 84,
2862
+ 0xE0073: 84,
2863
+ 0xE0074: 84,
2864
+ 0xE0075: 84,
2865
+ 0xE0076: 84,
2866
+ 0xE0077: 84,
2867
+ 0xE0078: 84,
2868
+ 0xE0079: 84,
2869
+ 0xE007A: 84,
2870
+ 0xE007B: 84,
2871
+ 0xE007C: 84,
2872
+ 0xE007D: 84,
2873
+ 0xE007E: 84,
2874
+ 0xE007F: 84,
2875
+ 0xE0100: 84,
2876
+ 0xE0101: 84,
2877
+ 0xE0102: 84,
2878
+ 0xE0103: 84,
2879
+ 0xE0104: 84,
2880
+ 0xE0105: 84,
2881
+ 0xE0106: 84,
2882
+ 0xE0107: 84,
2883
+ 0xE0108: 84,
2884
+ 0xE0109: 84,
2885
+ 0xE010A: 84,
2886
+ 0xE010B: 84,
2887
+ 0xE010C: 84,
2888
+ 0xE010D: 84,
2889
+ 0xE010E: 84,
2890
+ 0xE010F: 84,
2891
+ 0xE0110: 84,
2892
+ 0xE0111: 84,
2893
+ 0xE0112: 84,
2894
+ 0xE0113: 84,
2895
+ 0xE0114: 84,
2896
+ 0xE0115: 84,
2897
+ 0xE0116: 84,
2898
+ 0xE0117: 84,
2899
+ 0xE0118: 84,
2900
+ 0xE0119: 84,
2901
+ 0xE011A: 84,
2902
+ 0xE011B: 84,
2903
+ 0xE011C: 84,
2904
+ 0xE011D: 84,
2905
+ 0xE011E: 84,
2906
+ 0xE011F: 84,
2907
+ 0xE0120: 84,
2908
+ 0xE0121: 84,
2909
+ 0xE0122: 84,
2910
+ 0xE0123: 84,
2911
+ 0xE0124: 84,
2912
+ 0xE0125: 84,
2913
+ 0xE0126: 84,
2914
+ 0xE0127: 84,
2915
+ 0xE0128: 84,
2916
+ 0xE0129: 84,
2917
+ 0xE012A: 84,
2918
+ 0xE012B: 84,
2919
+ 0xE012C: 84,
2920
+ 0xE012D: 84,
2921
+ 0xE012E: 84,
2922
+ 0xE012F: 84,
2923
+ 0xE0130: 84,
2924
+ 0xE0131: 84,
2925
+ 0xE0132: 84,
2926
+ 0xE0133: 84,
2927
+ 0xE0134: 84,
2928
+ 0xE0135: 84,
2929
+ 0xE0136: 84,
2930
+ 0xE0137: 84,
2931
+ 0xE0138: 84,
2932
+ 0xE0139: 84,
2933
+ 0xE013A: 84,
2934
+ 0xE013B: 84,
2935
+ 0xE013C: 84,
2936
+ 0xE013D: 84,
2937
+ 0xE013E: 84,
2938
+ 0xE013F: 84,
2939
+ 0xE0140: 84,
2940
+ 0xE0141: 84,
2941
+ 0xE0142: 84,
2942
+ 0xE0143: 84,
2943
+ 0xE0144: 84,
2944
+ 0xE0145: 84,
2945
+ 0xE0146: 84,
2946
+ 0xE0147: 84,
2947
+ 0xE0148: 84,
2948
+ 0xE0149: 84,
2949
+ 0xE014A: 84,
2950
+ 0xE014B: 84,
2951
+ 0xE014C: 84,
2952
+ 0xE014D: 84,
2953
+ 0xE014E: 84,
2954
+ 0xE014F: 84,
2955
+ 0xE0150: 84,
2956
+ 0xE0151: 84,
2957
+ 0xE0152: 84,
2958
+ 0xE0153: 84,
2959
+ 0xE0154: 84,
2960
+ 0xE0155: 84,
2961
+ 0xE0156: 84,
2962
+ 0xE0157: 84,
2963
+ 0xE0158: 84,
2964
+ 0xE0159: 84,
2965
+ 0xE015A: 84,
2966
+ 0xE015B: 84,
2967
+ 0xE015C: 84,
2968
+ 0xE015D: 84,
2969
+ 0xE015E: 84,
2970
+ 0xE015F: 84,
2971
+ 0xE0160: 84,
2972
+ 0xE0161: 84,
2973
+ 0xE0162: 84,
2974
+ 0xE0163: 84,
2975
+ 0xE0164: 84,
2976
+ 0xE0165: 84,
2977
+ 0xE0166: 84,
2978
+ 0xE0167: 84,
2979
+ 0xE0168: 84,
2980
+ 0xE0169: 84,
2981
+ 0xE016A: 84,
2982
+ 0xE016B: 84,
2983
+ 0xE016C: 84,
2984
+ 0xE016D: 84,
2985
+ 0xE016E: 84,
2986
+ 0xE016F: 84,
2987
+ 0xE0170: 84,
2988
+ 0xE0171: 84,
2989
+ 0xE0172: 84,
2990
+ 0xE0173: 84,
2991
+ 0xE0174: 84,
2992
+ 0xE0175: 84,
2993
+ 0xE0176: 84,
2994
+ 0xE0177: 84,
2995
+ 0xE0178: 84,
2996
+ 0xE0179: 84,
2997
+ 0xE017A: 84,
2998
+ 0xE017B: 84,
2999
+ 0xE017C: 84,
3000
+ 0xE017D: 84,
3001
+ 0xE017E: 84,
3002
+ 0xE017F: 84,
3003
+ 0xE0180: 84,
3004
+ 0xE0181: 84,
3005
+ 0xE0182: 84,
3006
+ 0xE0183: 84,
3007
+ 0xE0184: 84,
3008
+ 0xE0185: 84,
3009
+ 0xE0186: 84,
3010
+ 0xE0187: 84,
3011
+ 0xE0188: 84,
3012
+ 0xE0189: 84,
3013
+ 0xE018A: 84,
3014
+ 0xE018B: 84,
3015
+ 0xE018C: 84,
3016
+ 0xE018D: 84,
3017
+ 0xE018E: 84,
3018
+ 0xE018F: 84,
3019
+ 0xE0190: 84,
3020
+ 0xE0191: 84,
3021
+ 0xE0192: 84,
3022
+ 0xE0193: 84,
3023
+ 0xE0194: 84,
3024
+ 0xE0195: 84,
3025
+ 0xE0196: 84,
3026
+ 0xE0197: 84,
3027
+ 0xE0198: 84,
3028
+ 0xE0199: 84,
3029
+ 0xE019A: 84,
3030
+ 0xE019B: 84,
3031
+ 0xE019C: 84,
3032
+ 0xE019D: 84,
3033
+ 0xE019E: 84,
3034
+ 0xE019F: 84,
3035
+ 0xE01A0: 84,
3036
+ 0xE01A1: 84,
3037
+ 0xE01A2: 84,
3038
+ 0xE01A3: 84,
3039
+ 0xE01A4: 84,
3040
+ 0xE01A5: 84,
3041
+ 0xE01A6: 84,
3042
+ 0xE01A7: 84,
3043
+ 0xE01A8: 84,
3044
+ 0xE01A9: 84,
3045
+ 0xE01AA: 84,
3046
+ 0xE01AB: 84,
3047
+ 0xE01AC: 84,
3048
+ 0xE01AD: 84,
3049
+ 0xE01AE: 84,
3050
+ 0xE01AF: 84,
3051
+ 0xE01B0: 84,
3052
+ 0xE01B1: 84,
3053
+ 0xE01B2: 84,
3054
+ 0xE01B3: 84,
3055
+ 0xE01B4: 84,
3056
+ 0xE01B5: 84,
3057
+ 0xE01B6: 84,
3058
+ 0xE01B7: 84,
3059
+ 0xE01B8: 84,
3060
+ 0xE01B9: 84,
3061
+ 0xE01BA: 84,
3062
+ 0xE01BB: 84,
3063
+ 0xE01BC: 84,
3064
+ 0xE01BD: 84,
3065
+ 0xE01BE: 84,
3066
+ 0xE01BF: 84,
3067
+ 0xE01C0: 84,
3068
+ 0xE01C1: 84,
3069
+ 0xE01C2: 84,
3070
+ 0xE01C3: 84,
3071
+ 0xE01C4: 84,
3072
+ 0xE01C5: 84,
3073
+ 0xE01C6: 84,
3074
+ 0xE01C7: 84,
3075
+ 0xE01C8: 84,
3076
+ 0xE01C9: 84,
3077
+ 0xE01CA: 84,
3078
+ 0xE01CB: 84,
3079
+ 0xE01CC: 84,
3080
+ 0xE01CD: 84,
3081
+ 0xE01CE: 84,
3082
+ 0xE01CF: 84,
3083
+ 0xE01D0: 84,
3084
+ 0xE01D1: 84,
3085
+ 0xE01D2: 84,
3086
+ 0xE01D3: 84,
3087
+ 0xE01D4: 84,
3088
+ 0xE01D5: 84,
3089
+ 0xE01D6: 84,
3090
+ 0xE01D7: 84,
3091
+ 0xE01D8: 84,
3092
+ 0xE01D9: 84,
3093
+ 0xE01DA: 84,
3094
+ 0xE01DB: 84,
3095
+ 0xE01DC: 84,
3096
+ 0xE01DD: 84,
3097
+ 0xE01DE: 84,
3098
+ 0xE01DF: 84,
3099
+ 0xE01E0: 84,
3100
+ 0xE01E1: 84,
3101
+ 0xE01E2: 84,
3102
+ 0xE01E3: 84,
3103
+ 0xE01E4: 84,
3104
+ 0xE01E5: 84,
3105
+ 0xE01E6: 84,
3106
+ 0xE01E7: 84,
3107
+ 0xE01E8: 84,
3108
+ 0xE01E9: 84,
3109
+ 0xE01EA: 84,
3110
+ 0xE01EB: 84,
3111
+ 0xE01EC: 84,
3112
+ 0xE01ED: 84,
3113
+ 0xE01EE: 84,
3114
+ 0xE01EF: 84,
3115
+ }
3116
+
3117
+
3118
+ codepoint_classes = {
3119
+ "PVALID": (
3120
+ 0x2D0000002E,
3121
+ 0x300000003A,
3122
+ 0x610000007B,
3123
+ 0xDF000000F7,
3124
+ 0xF800000100,
3125
+ 0x10100000102,
3126
+ 0x10300000104,
3127
+ 0x10500000106,
3128
+ 0x10700000108,
3129
+ 0x1090000010A,
3130
+ 0x10B0000010C,
3131
+ 0x10D0000010E,
3132
+ 0x10F00000110,
3133
+ 0x11100000112,
3134
+ 0x11300000114,
3135
+ 0x11500000116,
3136
+ 0x11700000118,
3137
+ 0x1190000011A,
3138
+ 0x11B0000011C,
3139
+ 0x11D0000011E,
3140
+ 0x11F00000120,
3141
+ 0x12100000122,
3142
+ 0x12300000124,
3143
+ 0x12500000126,
3144
+ 0x12700000128,
3145
+ 0x1290000012A,
3146
+ 0x12B0000012C,
3147
+ 0x12D0000012E,
3148
+ 0x12F00000130,
3149
+ 0x13100000132,
3150
+ 0x13500000136,
3151
+ 0x13700000139,
3152
+ 0x13A0000013B,
3153
+ 0x13C0000013D,
3154
+ 0x13E0000013F,
3155
+ 0x14200000143,
3156
+ 0x14400000145,
3157
+ 0x14600000147,
3158
+ 0x14800000149,
3159
+ 0x14B0000014C,
3160
+ 0x14D0000014E,
3161
+ 0x14F00000150,
3162
+ 0x15100000152,
3163
+ 0x15300000154,
3164
+ 0x15500000156,
3165
+ 0x15700000158,
3166
+ 0x1590000015A,
3167
+ 0x15B0000015C,
3168
+ 0x15D0000015E,
3169
+ 0x15F00000160,
3170
+ 0x16100000162,
3171
+ 0x16300000164,
3172
+ 0x16500000166,
3173
+ 0x16700000168,
3174
+ 0x1690000016A,
3175
+ 0x16B0000016C,
3176
+ 0x16D0000016E,
3177
+ 0x16F00000170,
3178
+ 0x17100000172,
3179
+ 0x17300000174,
3180
+ 0x17500000176,
3181
+ 0x17700000178,
3182
+ 0x17A0000017B,
3183
+ 0x17C0000017D,
3184
+ 0x17E0000017F,
3185
+ 0x18000000181,
3186
+ 0x18300000184,
3187
+ 0x18500000186,
3188
+ 0x18800000189,
3189
+ 0x18C0000018E,
3190
+ 0x19200000193,
3191
+ 0x19500000196,
3192
+ 0x1990000019C,
3193
+ 0x19E0000019F,
3194
+ 0x1A1000001A2,
3195
+ 0x1A3000001A4,
3196
+ 0x1A5000001A6,
3197
+ 0x1A8000001A9,
3198
+ 0x1AA000001AC,
3199
+ 0x1AD000001AE,
3200
+ 0x1B0000001B1,
3201
+ 0x1B4000001B5,
3202
+ 0x1B6000001B7,
3203
+ 0x1B9000001BC,
3204
+ 0x1BD000001C4,
3205
+ 0x1CE000001CF,
3206
+ 0x1D0000001D1,
3207
+ 0x1D2000001D3,
3208
+ 0x1D4000001D5,
3209
+ 0x1D6000001D7,
3210
+ 0x1D8000001D9,
3211
+ 0x1DA000001DB,
3212
+ 0x1DC000001DE,
3213
+ 0x1DF000001E0,
3214
+ 0x1E1000001E2,
3215
+ 0x1E3000001E4,
3216
+ 0x1E5000001E6,
3217
+ 0x1E7000001E8,
3218
+ 0x1E9000001EA,
3219
+ 0x1EB000001EC,
3220
+ 0x1ED000001EE,
3221
+ 0x1EF000001F1,
3222
+ 0x1F5000001F6,
3223
+ 0x1F9000001FA,
3224
+ 0x1FB000001FC,
3225
+ 0x1FD000001FE,
3226
+ 0x1FF00000200,
3227
+ 0x20100000202,
3228
+ 0x20300000204,
3229
+ 0x20500000206,
3230
+ 0x20700000208,
3231
+ 0x2090000020A,
3232
+ 0x20B0000020C,
3233
+ 0x20D0000020E,
3234
+ 0x20F00000210,
3235
+ 0x21100000212,
3236
+ 0x21300000214,
3237
+ 0x21500000216,
3238
+ 0x21700000218,
3239
+ 0x2190000021A,
3240
+ 0x21B0000021C,
3241
+ 0x21D0000021E,
3242
+ 0x21F00000220,
3243
+ 0x22100000222,
3244
+ 0x22300000224,
3245
+ 0x22500000226,
3246
+ 0x22700000228,
3247
+ 0x2290000022A,
3248
+ 0x22B0000022C,
3249
+ 0x22D0000022E,
3250
+ 0x22F00000230,
3251
+ 0x23100000232,
3252
+ 0x2330000023A,
3253
+ 0x23C0000023D,
3254
+ 0x23F00000241,
3255
+ 0x24200000243,
3256
+ 0x24700000248,
3257
+ 0x2490000024A,
3258
+ 0x24B0000024C,
3259
+ 0x24D0000024E,
3260
+ 0x24F000002B0,
3261
+ 0x2B9000002C2,
3262
+ 0x2C6000002D2,
3263
+ 0x2EC000002ED,
3264
+ 0x2EE000002EF,
3265
+ 0x30000000340,
3266
+ 0x34200000343,
3267
+ 0x3460000034F,
3268
+ 0x35000000370,
3269
+ 0x37100000372,
3270
+ 0x37300000374,
3271
+ 0x37700000378,
3272
+ 0x37B0000037E,
3273
+ 0x39000000391,
3274
+ 0x3AC000003CF,
3275
+ 0x3D7000003D8,
3276
+ 0x3D9000003DA,
3277
+ 0x3DB000003DC,
3278
+ 0x3DD000003DE,
3279
+ 0x3DF000003E0,
3280
+ 0x3E1000003E2,
3281
+ 0x3E3000003E4,
3282
+ 0x3E5000003E6,
3283
+ 0x3E7000003E8,
3284
+ 0x3E9000003EA,
3285
+ 0x3EB000003EC,
3286
+ 0x3ED000003EE,
3287
+ 0x3EF000003F0,
3288
+ 0x3F3000003F4,
3289
+ 0x3F8000003F9,
3290
+ 0x3FB000003FD,
3291
+ 0x43000000460,
3292
+ 0x46100000462,
3293
+ 0x46300000464,
3294
+ 0x46500000466,
3295
+ 0x46700000468,
3296
+ 0x4690000046A,
3297
+ 0x46B0000046C,
3298
+ 0x46D0000046E,
3299
+ 0x46F00000470,
3300
+ 0x47100000472,
3301
+ 0x47300000474,
3302
+ 0x47500000476,
3303
+ 0x47700000478,
3304
+ 0x4790000047A,
3305
+ 0x47B0000047C,
3306
+ 0x47D0000047E,
3307
+ 0x47F00000480,
3308
+ 0x48100000482,
3309
+ 0x48300000488,
3310
+ 0x48B0000048C,
3311
+ 0x48D0000048E,
3312
+ 0x48F00000490,
3313
+ 0x49100000492,
3314
+ 0x49300000494,
3315
+ 0x49500000496,
3316
+ 0x49700000498,
3317
+ 0x4990000049A,
3318
+ 0x49B0000049C,
3319
+ 0x49D0000049E,
3320
+ 0x49F000004A0,
3321
+ 0x4A1000004A2,
3322
+ 0x4A3000004A4,
3323
+ 0x4A5000004A6,
3324
+ 0x4A7000004A8,
3325
+ 0x4A9000004AA,
3326
+ 0x4AB000004AC,
3327
+ 0x4AD000004AE,
3328
+ 0x4AF000004B0,
3329
+ 0x4B1000004B2,
3330
+ 0x4B3000004B4,
3331
+ 0x4B5000004B6,
3332
+ 0x4B7000004B8,
3333
+ 0x4B9000004BA,
3334
+ 0x4BB000004BC,
3335
+ 0x4BD000004BE,
3336
+ 0x4BF000004C0,
3337
+ 0x4C2000004C3,
3338
+ 0x4C4000004C5,
3339
+ 0x4C6000004C7,
3340
+ 0x4C8000004C9,
3341
+ 0x4CA000004CB,
3342
+ 0x4CC000004CD,
3343
+ 0x4CE000004D0,
3344
+ 0x4D1000004D2,
3345
+ 0x4D3000004D4,
3346
+ 0x4D5000004D6,
3347
+ 0x4D7000004D8,
3348
+ 0x4D9000004DA,
3349
+ 0x4DB000004DC,
3350
+ 0x4DD000004DE,
3351
+ 0x4DF000004E0,
3352
+ 0x4E1000004E2,
3353
+ 0x4E3000004E4,
3354
+ 0x4E5000004E6,
3355
+ 0x4E7000004E8,
3356
+ 0x4E9000004EA,
3357
+ 0x4EB000004EC,
3358
+ 0x4ED000004EE,
3359
+ 0x4EF000004F0,
3360
+ 0x4F1000004F2,
3361
+ 0x4F3000004F4,
3362
+ 0x4F5000004F6,
3363
+ 0x4F7000004F8,
3364
+ 0x4F9000004FA,
3365
+ 0x4FB000004FC,
3366
+ 0x4FD000004FE,
3367
+ 0x4FF00000500,
3368
+ 0x50100000502,
3369
+ 0x50300000504,
3370
+ 0x50500000506,
3371
+ 0x50700000508,
3372
+ 0x5090000050A,
3373
+ 0x50B0000050C,
3374
+ 0x50D0000050E,
3375
+ 0x50F00000510,
3376
+ 0x51100000512,
3377
+ 0x51300000514,
3378
+ 0x51500000516,
3379
+ 0x51700000518,
3380
+ 0x5190000051A,
3381
+ 0x51B0000051C,
3382
+ 0x51D0000051E,
3383
+ 0x51F00000520,
3384
+ 0x52100000522,
3385
+ 0x52300000524,
3386
+ 0x52500000526,
3387
+ 0x52700000528,
3388
+ 0x5290000052A,
3389
+ 0x52B0000052C,
3390
+ 0x52D0000052E,
3391
+ 0x52F00000530,
3392
+ 0x5590000055A,
3393
+ 0x56000000587,
3394
+ 0x58800000589,
3395
+ 0x591000005BE,
3396
+ 0x5BF000005C0,
3397
+ 0x5C1000005C3,
3398
+ 0x5C4000005C6,
3399
+ 0x5C7000005C8,
3400
+ 0x5D0000005EB,
3401
+ 0x5EF000005F3,
3402
+ 0x6100000061B,
3403
+ 0x62000000640,
3404
+ 0x64100000660,
3405
+ 0x66E00000675,
3406
+ 0x679000006D4,
3407
+ 0x6D5000006DD,
3408
+ 0x6DF000006E9,
3409
+ 0x6EA000006F0,
3410
+ 0x6FA00000700,
3411
+ 0x7100000074B,
3412
+ 0x74D000007B2,
3413
+ 0x7C0000007F6,
3414
+ 0x7FD000007FE,
3415
+ 0x8000000082E,
3416
+ 0x8400000085C,
3417
+ 0x8600000086B,
3418
+ 0x87000000888,
3419
+ 0x88900000890,
3420
+ 0x897000008E2,
3421
+ 0x8E300000958,
3422
+ 0x96000000964,
3423
+ 0x96600000970,
3424
+ 0x97100000984,
3425
+ 0x9850000098D,
3426
+ 0x98F00000991,
3427
+ 0x993000009A9,
3428
+ 0x9AA000009B1,
3429
+ 0x9B2000009B3,
3430
+ 0x9B6000009BA,
3431
+ 0x9BC000009C5,
3432
+ 0x9C7000009C9,
3433
+ 0x9CB000009CF,
3434
+ 0x9D7000009D8,
3435
+ 0x9E0000009E4,
3436
+ 0x9E6000009F2,
3437
+ 0x9FC000009FD,
3438
+ 0x9FE000009FF,
3439
+ 0xA0100000A04,
3440
+ 0xA0500000A0B,
3441
+ 0xA0F00000A11,
3442
+ 0xA1300000A29,
3443
+ 0xA2A00000A31,
3444
+ 0xA3200000A33,
3445
+ 0xA3500000A36,
3446
+ 0xA3800000A3A,
3447
+ 0xA3C00000A3D,
3448
+ 0xA3E00000A43,
3449
+ 0xA4700000A49,
3450
+ 0xA4B00000A4E,
3451
+ 0xA5100000A52,
3452
+ 0xA5C00000A5D,
3453
+ 0xA6600000A76,
3454
+ 0xA8100000A84,
3455
+ 0xA8500000A8E,
3456
+ 0xA8F00000A92,
3457
+ 0xA9300000AA9,
3458
+ 0xAAA00000AB1,
3459
+ 0xAB200000AB4,
3460
+ 0xAB500000ABA,
3461
+ 0xABC00000AC6,
3462
+ 0xAC700000ACA,
3463
+ 0xACB00000ACE,
3464
+ 0xAD000000AD1,
3465
+ 0xAE000000AE4,
3466
+ 0xAE600000AF0,
3467
+ 0xAF900000B00,
3468
+ 0xB0100000B04,
3469
+ 0xB0500000B0D,
3470
+ 0xB0F00000B11,
3471
+ 0xB1300000B29,
3472
+ 0xB2A00000B31,
3473
+ 0xB3200000B34,
3474
+ 0xB3500000B3A,
3475
+ 0xB3C00000B45,
3476
+ 0xB4700000B49,
3477
+ 0xB4B00000B4E,
3478
+ 0xB5500000B58,
3479
+ 0xB5F00000B64,
3480
+ 0xB6600000B70,
3481
+ 0xB7100000B72,
3482
+ 0xB8200000B84,
3483
+ 0xB8500000B8B,
3484
+ 0xB8E00000B91,
3485
+ 0xB9200000B96,
3486
+ 0xB9900000B9B,
3487
+ 0xB9C00000B9D,
3488
+ 0xB9E00000BA0,
3489
+ 0xBA300000BA5,
3490
+ 0xBA800000BAB,
3491
+ 0xBAE00000BBA,
3492
+ 0xBBE00000BC3,
3493
+ 0xBC600000BC9,
3494
+ 0xBCA00000BCE,
3495
+ 0xBD000000BD1,
3496
+ 0xBD700000BD8,
3497
+ 0xBE600000BF0,
3498
+ 0xC0000000C0D,
3499
+ 0xC0E00000C11,
3500
+ 0xC1200000C29,
3501
+ 0xC2A00000C3A,
3502
+ 0xC3C00000C45,
3503
+ 0xC4600000C49,
3504
+ 0xC4A00000C4E,
3505
+ 0xC5500000C57,
3506
+ 0xC5800000C5B,
3507
+ 0xC5C00000C5E,
3508
+ 0xC6000000C64,
3509
+ 0xC6600000C70,
3510
+ 0xC8000000C84,
3511
+ 0xC8500000C8D,
3512
+ 0xC8E00000C91,
3513
+ 0xC9200000CA9,
3514
+ 0xCAA00000CB4,
3515
+ 0xCB500000CBA,
3516
+ 0xCBC00000CC5,
3517
+ 0xCC600000CC9,
3518
+ 0xCCA00000CCE,
3519
+ 0xCD500000CD7,
3520
+ 0xCDC00000CDF,
3521
+ 0xCE000000CE4,
3522
+ 0xCE600000CF0,
3523
+ 0xCF100000CF4,
3524
+ 0xD0000000D0D,
3525
+ 0xD0E00000D11,
3526
+ 0xD1200000D45,
3527
+ 0xD4600000D49,
3528
+ 0xD4A00000D4F,
3529
+ 0xD5400000D58,
3530
+ 0xD5F00000D64,
3531
+ 0xD6600000D70,
3532
+ 0xD7A00000D80,
3533
+ 0xD8100000D84,
3534
+ 0xD8500000D97,
3535
+ 0xD9A00000DB2,
3536
+ 0xDB300000DBC,
3537
+ 0xDBD00000DBE,
3538
+ 0xDC000000DC7,
3539
+ 0xDCA00000DCB,
3540
+ 0xDCF00000DD5,
3541
+ 0xDD600000DD7,
3542
+ 0xDD800000DE0,
3543
+ 0xDE600000DF0,
3544
+ 0xDF200000DF4,
3545
+ 0xE0100000E33,
3546
+ 0xE3400000E3B,
3547
+ 0xE4000000E4F,
3548
+ 0xE5000000E5A,
3549
+ 0xE8100000E83,
3550
+ 0xE8400000E85,
3551
+ 0xE8600000E8B,
3552
+ 0xE8C00000EA4,
3553
+ 0xEA500000EA6,
3554
+ 0xEA700000EB3,
3555
+ 0xEB400000EBE,
3556
+ 0xEC000000EC5,
3557
+ 0xEC600000EC7,
3558
+ 0xEC800000ECF,
3559
+ 0xED000000EDA,
3560
+ 0xEDE00000EE0,
3561
+ 0xF0000000F01,
3562
+ 0xF0B00000F0C,
3563
+ 0xF1800000F1A,
3564
+ 0xF2000000F2A,
3565
+ 0xF3500000F36,
3566
+ 0xF3700000F38,
3567
+ 0xF3900000F3A,
3568
+ 0xF3E00000F43,
3569
+ 0xF4400000F48,
3570
+ 0xF4900000F4D,
3571
+ 0xF4E00000F52,
3572
+ 0xF5300000F57,
3573
+ 0xF5800000F5C,
3574
+ 0xF5D00000F69,
3575
+ 0xF6A00000F6D,
3576
+ 0xF7100000F73,
3577
+ 0xF7400000F75,
3578
+ 0xF7A00000F81,
3579
+ 0xF8200000F85,
3580
+ 0xF8600000F93,
3581
+ 0xF9400000F98,
3582
+ 0xF9900000F9D,
3583
+ 0xF9E00000FA2,
3584
+ 0xFA300000FA7,
3585
+ 0xFA800000FAC,
3586
+ 0xFAD00000FB9,
3587
+ 0xFBA00000FBD,
3588
+ 0xFC600000FC7,
3589
+ 0x10000000104A,
3590
+ 0x10500000109E,
3591
+ 0x10D0000010FB,
3592
+ 0x10FD00001100,
3593
+ 0x120000001249,
3594
+ 0x124A0000124E,
3595
+ 0x125000001257,
3596
+ 0x125800001259,
3597
+ 0x125A0000125E,
3598
+ 0x126000001289,
3599
+ 0x128A0000128E,
3600
+ 0x1290000012B1,
3601
+ 0x12B2000012B6,
3602
+ 0x12B8000012BF,
3603
+ 0x12C0000012C1,
3604
+ 0x12C2000012C6,
3605
+ 0x12C8000012D7,
3606
+ 0x12D800001311,
3607
+ 0x131200001316,
3608
+ 0x13180000135B,
3609
+ 0x135D00001360,
3610
+ 0x138000001390,
3611
+ 0x13A0000013F6,
3612
+ 0x14010000166D,
3613
+ 0x166F00001680,
3614
+ 0x16810000169B,
3615
+ 0x16A0000016EB,
3616
+ 0x16F1000016F9,
3617
+ 0x170000001716,
3618
+ 0x171F00001735,
3619
+ 0x174000001754,
3620
+ 0x17600000176D,
3621
+ 0x176E00001771,
3622
+ 0x177200001774,
3623
+ 0x1780000017B4,
3624
+ 0x17B6000017D4,
3625
+ 0x17D7000017D8,
3626
+ 0x17DC000017DE,
3627
+ 0x17E0000017EA,
3628
+ 0x18100000181A,
3629
+ 0x182000001879,
3630
+ 0x1880000018AB,
3631
+ 0x18B0000018F6,
3632
+ 0x19000000191F,
3633
+ 0x19200000192C,
3634
+ 0x19300000193C,
3635
+ 0x19460000196E,
3636
+ 0x197000001975,
3637
+ 0x1980000019AC,
3638
+ 0x19B0000019CA,
3639
+ 0x19D0000019DA,
3640
+ 0x1A0000001A1C,
3641
+ 0x1A2000001A5F,
3642
+ 0x1A6000001A7D,
3643
+ 0x1A7F00001A8A,
3644
+ 0x1A9000001A9A,
3645
+ 0x1AA700001AA8,
3646
+ 0x1AB000001ABE,
3647
+ 0x1ABF00001ADE,
3648
+ 0x1AE000001AEC,
3649
+ 0x1B0000001B4D,
3650
+ 0x1B5000001B5A,
3651
+ 0x1B6B00001B74,
3652
+ 0x1B8000001BF4,
3653
+ 0x1C0000001C38,
3654
+ 0x1C4000001C4A,
3655
+ 0x1C4D00001C7E,
3656
+ 0x1C8A00001C8B,
3657
+ 0x1CD000001CD3,
3658
+ 0x1CD400001CFB,
3659
+ 0x1D0000001D2C,
3660
+ 0x1D2F00001D30,
3661
+ 0x1D3B00001D3C,
3662
+ 0x1D4E00001D4F,
3663
+ 0x1D6B00001D78,
3664
+ 0x1D7900001D9B,
3665
+ 0x1DC000001E00,
3666
+ 0x1E0100001E02,
3667
+ 0x1E0300001E04,
3668
+ 0x1E0500001E06,
3669
+ 0x1E0700001E08,
3670
+ 0x1E0900001E0A,
3671
+ 0x1E0B00001E0C,
3672
+ 0x1E0D00001E0E,
3673
+ 0x1E0F00001E10,
3674
+ 0x1E1100001E12,
3675
+ 0x1E1300001E14,
3676
+ 0x1E1500001E16,
3677
+ 0x1E1700001E18,
3678
+ 0x1E1900001E1A,
3679
+ 0x1E1B00001E1C,
3680
+ 0x1E1D00001E1E,
3681
+ 0x1E1F00001E20,
3682
+ 0x1E2100001E22,
3683
+ 0x1E2300001E24,
3684
+ 0x1E2500001E26,
3685
+ 0x1E2700001E28,
3686
+ 0x1E2900001E2A,
3687
+ 0x1E2B00001E2C,
3688
+ 0x1E2D00001E2E,
3689
+ 0x1E2F00001E30,
3690
+ 0x1E3100001E32,
3691
+ 0x1E3300001E34,
3692
+ 0x1E3500001E36,
3693
+ 0x1E3700001E38,
3694
+ 0x1E3900001E3A,
3695
+ 0x1E3B00001E3C,
3696
+ 0x1E3D00001E3E,
3697
+ 0x1E3F00001E40,
3698
+ 0x1E4100001E42,
3699
+ 0x1E4300001E44,
3700
+ 0x1E4500001E46,
3701
+ 0x1E4700001E48,
3702
+ 0x1E4900001E4A,
3703
+ 0x1E4B00001E4C,
3704
+ 0x1E4D00001E4E,
3705
+ 0x1E4F00001E50,
3706
+ 0x1E5100001E52,
3707
+ 0x1E5300001E54,
3708
+ 0x1E5500001E56,
3709
+ 0x1E5700001E58,
3710
+ 0x1E5900001E5A,
3711
+ 0x1E5B00001E5C,
3712
+ 0x1E5D00001E5E,
3713
+ 0x1E5F00001E60,
3714
+ 0x1E6100001E62,
3715
+ 0x1E6300001E64,
3716
+ 0x1E6500001E66,
3717
+ 0x1E6700001E68,
3718
+ 0x1E6900001E6A,
3719
+ 0x1E6B00001E6C,
3720
+ 0x1E6D00001E6E,
3721
+ 0x1E6F00001E70,
3722
+ 0x1E7100001E72,
3723
+ 0x1E7300001E74,
3724
+ 0x1E7500001E76,
3725
+ 0x1E7700001E78,
3726
+ 0x1E7900001E7A,
3727
+ 0x1E7B00001E7C,
3728
+ 0x1E7D00001E7E,
3729
+ 0x1E7F00001E80,
3730
+ 0x1E8100001E82,
3731
+ 0x1E8300001E84,
3732
+ 0x1E8500001E86,
3733
+ 0x1E8700001E88,
3734
+ 0x1E8900001E8A,
3735
+ 0x1E8B00001E8C,
3736
+ 0x1E8D00001E8E,
3737
+ 0x1E8F00001E90,
3738
+ 0x1E9100001E92,
3739
+ 0x1E9300001E94,
3740
+ 0x1E9500001E9A,
3741
+ 0x1E9C00001E9E,
3742
+ 0x1E9F00001EA0,
3743
+ 0x1EA100001EA2,
3744
+ 0x1EA300001EA4,
3745
+ 0x1EA500001EA6,
3746
+ 0x1EA700001EA8,
3747
+ 0x1EA900001EAA,
3748
+ 0x1EAB00001EAC,
3749
+ 0x1EAD00001EAE,
3750
+ 0x1EAF00001EB0,
3751
+ 0x1EB100001EB2,
3752
+ 0x1EB300001EB4,
3753
+ 0x1EB500001EB6,
3754
+ 0x1EB700001EB8,
3755
+ 0x1EB900001EBA,
3756
+ 0x1EBB00001EBC,
3757
+ 0x1EBD00001EBE,
3758
+ 0x1EBF00001EC0,
3759
+ 0x1EC100001EC2,
3760
+ 0x1EC300001EC4,
3761
+ 0x1EC500001EC6,
3762
+ 0x1EC700001EC8,
3763
+ 0x1EC900001ECA,
3764
+ 0x1ECB00001ECC,
3765
+ 0x1ECD00001ECE,
3766
+ 0x1ECF00001ED0,
3767
+ 0x1ED100001ED2,
3768
+ 0x1ED300001ED4,
3769
+ 0x1ED500001ED6,
3770
+ 0x1ED700001ED8,
3771
+ 0x1ED900001EDA,
3772
+ 0x1EDB00001EDC,
3773
+ 0x1EDD00001EDE,
3774
+ 0x1EDF00001EE0,
3775
+ 0x1EE100001EE2,
3776
+ 0x1EE300001EE4,
3777
+ 0x1EE500001EE6,
3778
+ 0x1EE700001EE8,
3779
+ 0x1EE900001EEA,
3780
+ 0x1EEB00001EEC,
3781
+ 0x1EED00001EEE,
3782
+ 0x1EEF00001EF0,
3783
+ 0x1EF100001EF2,
3784
+ 0x1EF300001EF4,
3785
+ 0x1EF500001EF6,
3786
+ 0x1EF700001EF8,
3787
+ 0x1EF900001EFA,
3788
+ 0x1EFB00001EFC,
3789
+ 0x1EFD00001EFE,
3790
+ 0x1EFF00001F08,
3791
+ 0x1F1000001F16,
3792
+ 0x1F2000001F28,
3793
+ 0x1F3000001F38,
3794
+ 0x1F4000001F46,
3795
+ 0x1F5000001F58,
3796
+ 0x1F6000001F68,
3797
+ 0x1F7000001F71,
3798
+ 0x1F7200001F73,
3799
+ 0x1F7400001F75,
3800
+ 0x1F7600001F77,
3801
+ 0x1F7800001F79,
3802
+ 0x1F7A00001F7B,
3803
+ 0x1F7C00001F7D,
3804
+ 0x1FB000001FB2,
3805
+ 0x1FB600001FB7,
3806
+ 0x1FC600001FC7,
3807
+ 0x1FD000001FD3,
3808
+ 0x1FD600001FD8,
3809
+ 0x1FE000001FE3,
3810
+ 0x1FE400001FE8,
3811
+ 0x1FF600001FF7,
3812
+ 0x214E0000214F,
3813
+ 0x218400002185,
3814
+ 0x2C3000002C60,
3815
+ 0x2C6100002C62,
3816
+ 0x2C6500002C67,
3817
+ 0x2C6800002C69,
3818
+ 0x2C6A00002C6B,
3819
+ 0x2C6C00002C6D,
3820
+ 0x2C7100002C72,
3821
+ 0x2C7300002C75,
3822
+ 0x2C7600002C7C,
3823
+ 0x2C8100002C82,
3824
+ 0x2C8300002C84,
3825
+ 0x2C8500002C86,
3826
+ 0x2C8700002C88,
3827
+ 0x2C8900002C8A,
3828
+ 0x2C8B00002C8C,
3829
+ 0x2C8D00002C8E,
3830
+ 0x2C8F00002C90,
3831
+ 0x2C9100002C92,
3832
+ 0x2C9300002C94,
3833
+ 0x2C9500002C96,
3834
+ 0x2C9700002C98,
3835
+ 0x2C9900002C9A,
3836
+ 0x2C9B00002C9C,
3837
+ 0x2C9D00002C9E,
3838
+ 0x2C9F00002CA0,
3839
+ 0x2CA100002CA2,
3840
+ 0x2CA300002CA4,
3841
+ 0x2CA500002CA6,
3842
+ 0x2CA700002CA8,
3843
+ 0x2CA900002CAA,
3844
+ 0x2CAB00002CAC,
3845
+ 0x2CAD00002CAE,
3846
+ 0x2CAF00002CB0,
3847
+ 0x2CB100002CB2,
3848
+ 0x2CB300002CB4,
3849
+ 0x2CB500002CB6,
3850
+ 0x2CB700002CB8,
3851
+ 0x2CB900002CBA,
3852
+ 0x2CBB00002CBC,
3853
+ 0x2CBD00002CBE,
3854
+ 0x2CBF00002CC0,
3855
+ 0x2CC100002CC2,
3856
+ 0x2CC300002CC4,
3857
+ 0x2CC500002CC6,
3858
+ 0x2CC700002CC8,
3859
+ 0x2CC900002CCA,
3860
+ 0x2CCB00002CCC,
3861
+ 0x2CCD00002CCE,
3862
+ 0x2CCF00002CD0,
3863
+ 0x2CD100002CD2,
3864
+ 0x2CD300002CD4,
3865
+ 0x2CD500002CD6,
3866
+ 0x2CD700002CD8,
3867
+ 0x2CD900002CDA,
3868
+ 0x2CDB00002CDC,
3869
+ 0x2CDD00002CDE,
3870
+ 0x2CDF00002CE0,
3871
+ 0x2CE100002CE2,
3872
+ 0x2CE300002CE5,
3873
+ 0x2CEC00002CED,
3874
+ 0x2CEE00002CF2,
3875
+ 0x2CF300002CF4,
3876
+ 0x2D0000002D26,
3877
+ 0x2D2700002D28,
3878
+ 0x2D2D00002D2E,
3879
+ 0x2D3000002D68,
3880
+ 0x2D7F00002D97,
3881
+ 0x2DA000002DA7,
3882
+ 0x2DA800002DAF,
3883
+ 0x2DB000002DB7,
3884
+ 0x2DB800002DBF,
3885
+ 0x2DC000002DC7,
3886
+ 0x2DC800002DCF,
3887
+ 0x2DD000002DD7,
3888
+ 0x2DD800002DDF,
3889
+ 0x2DE000002E00,
3890
+ 0x2E2F00002E30,
3891
+ 0x300500003008,
3892
+ 0x302A0000302E,
3893
+ 0x303C0000303D,
3894
+ 0x304100003097,
3895
+ 0x30990000309B,
3896
+ 0x309D0000309F,
3897
+ 0x30A1000030FB,
3898
+ 0x30FC000030FF,
3899
+ 0x310500003130,
3900
+ 0x31A0000031C0,
3901
+ 0x31F000003200,
3902
+ 0x340000004DC0,
3903
+ 0x4E000000A48D,
3904
+ 0xA4D00000A4FE,
3905
+ 0xA5000000A60D,
3906
+ 0xA6100000A62C,
3907
+ 0xA6410000A642,
3908
+ 0xA6430000A644,
3909
+ 0xA6450000A646,
3910
+ 0xA6470000A648,
3911
+ 0xA6490000A64A,
3912
+ 0xA64B0000A64C,
3913
+ 0xA64D0000A64E,
3914
+ 0xA64F0000A650,
3915
+ 0xA6510000A652,
3916
+ 0xA6530000A654,
3917
+ 0xA6550000A656,
3918
+ 0xA6570000A658,
3919
+ 0xA6590000A65A,
3920
+ 0xA65B0000A65C,
3921
+ 0xA65D0000A65E,
3922
+ 0xA65F0000A660,
3923
+ 0xA6610000A662,
3924
+ 0xA6630000A664,
3925
+ 0xA6650000A666,
3926
+ 0xA6670000A668,
3927
+ 0xA6690000A66A,
3928
+ 0xA66B0000A66C,
3929
+ 0xA66D0000A670,
3930
+ 0xA6740000A67E,
3931
+ 0xA67F0000A680,
3932
+ 0xA6810000A682,
3933
+ 0xA6830000A684,
3934
+ 0xA6850000A686,
3935
+ 0xA6870000A688,
3936
+ 0xA6890000A68A,
3937
+ 0xA68B0000A68C,
3938
+ 0xA68D0000A68E,
3939
+ 0xA68F0000A690,
3940
+ 0xA6910000A692,
3941
+ 0xA6930000A694,
3942
+ 0xA6950000A696,
3943
+ 0xA6970000A698,
3944
+ 0xA6990000A69A,
3945
+ 0xA69B0000A69C,
3946
+ 0xA69E0000A6E6,
3947
+ 0xA6F00000A6F2,
3948
+ 0xA7170000A720,
3949
+ 0xA7230000A724,
3950
+ 0xA7250000A726,
3951
+ 0xA7270000A728,
3952
+ 0xA7290000A72A,
3953
+ 0xA72B0000A72C,
3954
+ 0xA72D0000A72E,
3955
+ 0xA72F0000A732,
3956
+ 0xA7330000A734,
3957
+ 0xA7350000A736,
3958
+ 0xA7370000A738,
3959
+ 0xA7390000A73A,
3960
+ 0xA73B0000A73C,
3961
+ 0xA73D0000A73E,
3962
+ 0xA73F0000A740,
3963
+ 0xA7410000A742,
3964
+ 0xA7430000A744,
3965
+ 0xA7450000A746,
3966
+ 0xA7470000A748,
3967
+ 0xA7490000A74A,
3968
+ 0xA74B0000A74C,
3969
+ 0xA74D0000A74E,
3970
+ 0xA74F0000A750,
3971
+ 0xA7510000A752,
3972
+ 0xA7530000A754,
3973
+ 0xA7550000A756,
3974
+ 0xA7570000A758,
3975
+ 0xA7590000A75A,
3976
+ 0xA75B0000A75C,
3977
+ 0xA75D0000A75E,
3978
+ 0xA75F0000A760,
3979
+ 0xA7610000A762,
3980
+ 0xA7630000A764,
3981
+ 0xA7650000A766,
3982
+ 0xA7670000A768,
3983
+ 0xA7690000A76A,
3984
+ 0xA76B0000A76C,
3985
+ 0xA76D0000A76E,
3986
+ 0xA76F0000A770,
3987
+ 0xA7710000A779,
3988
+ 0xA77A0000A77B,
3989
+ 0xA77C0000A77D,
3990
+ 0xA77F0000A780,
3991
+ 0xA7810000A782,
3992
+ 0xA7830000A784,
3993
+ 0xA7850000A786,
3994
+ 0xA7870000A789,
3995
+ 0xA78C0000A78D,
3996
+ 0xA78E0000A790,
3997
+ 0xA7910000A792,
3998
+ 0xA7930000A796,
3999
+ 0xA7970000A798,
4000
+ 0xA7990000A79A,
4001
+ 0xA79B0000A79C,
4002
+ 0xA79D0000A79E,
4003
+ 0xA79F0000A7A0,
4004
+ 0xA7A10000A7A2,
4005
+ 0xA7A30000A7A4,
4006
+ 0xA7A50000A7A6,
4007
+ 0xA7A70000A7A8,
4008
+ 0xA7A90000A7AA,
4009
+ 0xA7AF0000A7B0,
4010
+ 0xA7B50000A7B6,
4011
+ 0xA7B70000A7B8,
4012
+ 0xA7B90000A7BA,
4013
+ 0xA7BB0000A7BC,
4014
+ 0xA7BD0000A7BE,
4015
+ 0xA7BF0000A7C0,
4016
+ 0xA7C10000A7C2,
4017
+ 0xA7C30000A7C4,
4018
+ 0xA7C80000A7C9,
4019
+ 0xA7CA0000A7CB,
4020
+ 0xA7CD0000A7CE,
4021
+ 0xA7CF0000A7D0,
4022
+ 0xA7D10000A7D2,
4023
+ 0xA7D30000A7D4,
4024
+ 0xA7D50000A7D6,
4025
+ 0xA7D70000A7D8,
4026
+ 0xA7D90000A7DA,
4027
+ 0xA7DB0000A7DC,
4028
+ 0xA7F60000A7F8,
4029
+ 0xA7FA0000A828,
4030
+ 0xA82C0000A82D,
4031
+ 0xA8400000A874,
4032
+ 0xA8800000A8C6,
4033
+ 0xA8D00000A8DA,
4034
+ 0xA8E00000A8F8,
4035
+ 0xA8FB0000A8FC,
4036
+ 0xA8FD0000A92E,
4037
+ 0xA9300000A954,
4038
+ 0xA9800000A9C1,
4039
+ 0xA9CF0000A9DA,
4040
+ 0xA9E00000A9FF,
4041
+ 0xAA000000AA37,
4042
+ 0xAA400000AA4E,
4043
+ 0xAA500000AA5A,
4044
+ 0xAA600000AA77,
4045
+ 0xAA7A0000AAC3,
4046
+ 0xAADB0000AADE,
4047
+ 0xAAE00000AAF0,
4048
+ 0xAAF20000AAF7,
4049
+ 0xAB010000AB07,
4050
+ 0xAB090000AB0F,
4051
+ 0xAB110000AB17,
4052
+ 0xAB200000AB27,
4053
+ 0xAB280000AB2F,
4054
+ 0xAB300000AB5B,
4055
+ 0xAB600000AB69,
4056
+ 0xABC00000ABEB,
4057
+ 0xABEC0000ABEE,
4058
+ 0xABF00000ABFA,
4059
+ 0xAC000000D7A4,
4060
+ 0xFA0E0000FA10,
4061
+ 0xFA110000FA12,
4062
+ 0xFA130000FA15,
4063
+ 0xFA1F0000FA20,
4064
+ 0xFA210000FA22,
4065
+ 0xFA230000FA25,
4066
+ 0xFA270000FA2A,
4067
+ 0xFB1E0000FB1F,
4068
+ 0xFE200000FE30,
4069
+ 0xFE730000FE74,
4070
+ 0x100000001000C,
4071
+ 0x1000D00010027,
4072
+ 0x100280001003B,
4073
+ 0x1003C0001003E,
4074
+ 0x1003F0001004E,
4075
+ 0x100500001005E,
4076
+ 0x10080000100FB,
4077
+ 0x101FD000101FE,
4078
+ 0x102800001029D,
4079
+ 0x102A0000102D1,
4080
+ 0x102E0000102E1,
4081
+ 0x1030000010320,
4082
+ 0x1032D00010341,
4083
+ 0x103420001034A,
4084
+ 0x103500001037B,
4085
+ 0x103800001039E,
4086
+ 0x103A0000103C4,
4087
+ 0x103C8000103D0,
4088
+ 0x104280001049E,
4089
+ 0x104A0000104AA,
4090
+ 0x104D8000104FC,
4091
+ 0x1050000010528,
4092
+ 0x1053000010564,
4093
+ 0x10597000105A2,
4094
+ 0x105A3000105B2,
4095
+ 0x105B3000105BA,
4096
+ 0x105BB000105BD,
4097
+ 0x105C0000105F4,
4098
+ 0x1060000010737,
4099
+ 0x1074000010756,
4100
+ 0x1076000010768,
4101
+ 0x1078000010781,
4102
+ 0x1080000010806,
4103
+ 0x1080800010809,
4104
+ 0x1080A00010836,
4105
+ 0x1083700010839,
4106
+ 0x1083C0001083D,
4107
+ 0x1083F00010856,
4108
+ 0x1086000010877,
4109
+ 0x108800001089F,
4110
+ 0x108E0000108F3,
4111
+ 0x108F4000108F6,
4112
+ 0x1090000010916,
4113
+ 0x109200001093A,
4114
+ 0x109400001095A,
4115
+ 0x10980000109B8,
4116
+ 0x109BE000109C0,
4117
+ 0x10A0000010A04,
4118
+ 0x10A0500010A07,
4119
+ 0x10A0C00010A14,
4120
+ 0x10A1500010A18,
4121
+ 0x10A1900010A36,
4122
+ 0x10A3800010A3B,
4123
+ 0x10A3F00010A40,
4124
+ 0x10A6000010A7D,
4125
+ 0x10A8000010A9D,
4126
+ 0x10AC000010AC8,
4127
+ 0x10AC900010AE7,
4128
+ 0x10B0000010B36,
4129
+ 0x10B4000010B56,
4130
+ 0x10B6000010B73,
4131
+ 0x10B8000010B92,
4132
+ 0x10C0000010C49,
4133
+ 0x10CC000010CF3,
4134
+ 0x10D0000010D28,
4135
+ 0x10D3000010D3A,
4136
+ 0x10D4000010D50,
4137
+ 0x10D6900010D6E,
4138
+ 0x10D6F00010D86,
4139
+ 0x10E8000010EAA,
4140
+ 0x10EAB00010EAD,
4141
+ 0x10EB000010EB2,
4142
+ 0x10EC200010EC8,
4143
+ 0x10EFA00010F1D,
4144
+ 0x10F2700010F28,
4145
+ 0x10F3000010F51,
4146
+ 0x10F7000010F86,
4147
+ 0x10FB000010FC5,
4148
+ 0x10FE000010FF7,
4149
+ 0x1100000011047,
4150
+ 0x1106600011076,
4151
+ 0x1107F000110BB,
4152
+ 0x110C2000110C3,
4153
+ 0x110D0000110E9,
4154
+ 0x110F0000110FA,
4155
+ 0x1110000011135,
4156
+ 0x1113600011140,
4157
+ 0x1114400011148,
4158
+ 0x1115000011174,
4159
+ 0x1117600011177,
4160
+ 0x11180000111C5,
4161
+ 0x111C9000111CD,
4162
+ 0x111CE000111DB,
4163
+ 0x111DC000111DD,
4164
+ 0x1120000011212,
4165
+ 0x1121300011238,
4166
+ 0x1123E00011242,
4167
+ 0x1128000011287,
4168
+ 0x1128800011289,
4169
+ 0x1128A0001128E,
4170
+ 0x1128F0001129E,
4171
+ 0x1129F000112A9,
4172
+ 0x112B0000112EB,
4173
+ 0x112F0000112FA,
4174
+ 0x1130000011304,
4175
+ 0x113050001130D,
4176
+ 0x1130F00011311,
4177
+ 0x1131300011329,
4178
+ 0x1132A00011331,
4179
+ 0x1133200011334,
4180
+ 0x113350001133A,
4181
+ 0x1133B00011345,
4182
+ 0x1134700011349,
4183
+ 0x1134B0001134E,
4184
+ 0x1135000011351,
4185
+ 0x1135700011358,
4186
+ 0x1135D00011364,
4187
+ 0x113660001136D,
4188
+ 0x1137000011375,
4189
+ 0x113800001138A,
4190
+ 0x1138B0001138C,
4191
+ 0x1138E0001138F,
4192
+ 0x11390000113B6,
4193
+ 0x113B7000113C1,
4194
+ 0x113C2000113C3,
4195
+ 0x113C5000113C6,
4196
+ 0x113C7000113CB,
4197
+ 0x113CC000113D4,
4198
+ 0x113E1000113E3,
4199
+ 0x114000001144B,
4200
+ 0x114500001145A,
4201
+ 0x1145E00011462,
4202
+ 0x11480000114C6,
4203
+ 0x114C7000114C8,
4204
+ 0x114D0000114DA,
4205
+ 0x11580000115B6,
4206
+ 0x115B8000115C1,
4207
+ 0x115D8000115DE,
4208
+ 0x1160000011641,
4209
+ 0x1164400011645,
4210
+ 0x116500001165A,
4211
+ 0x11680000116B9,
4212
+ 0x116C0000116CA,
4213
+ 0x116D0000116E4,
4214
+ 0x117000001171B,
4215
+ 0x1171D0001172C,
4216
+ 0x117300001173A,
4217
+ 0x1174000011747,
4218
+ 0x118000001183B,
4219
+ 0x118C0000118EA,
4220
+ 0x118FF00011907,
4221
+ 0x119090001190A,
4222
+ 0x1190C00011914,
4223
+ 0x1191500011917,
4224
+ 0x1191800011936,
4225
+ 0x1193700011939,
4226
+ 0x1193B00011944,
4227
+ 0x119500001195A,
4228
+ 0x119A0000119A8,
4229
+ 0x119AA000119D8,
4230
+ 0x119DA000119E2,
4231
+ 0x119E3000119E5,
4232
+ 0x11A0000011A3F,
4233
+ 0x11A4700011A48,
4234
+ 0x11A5000011A9A,
4235
+ 0x11A9D00011A9E,
4236
+ 0x11AB000011AF9,
4237
+ 0x11B6000011B68,
4238
+ 0x11BC000011BE1,
4239
+ 0x11BF000011BFA,
4240
+ 0x11C0000011C09,
4241
+ 0x11C0A00011C37,
4242
+ 0x11C3800011C41,
4243
+ 0x11C5000011C5A,
4244
+ 0x11C7200011C90,
4245
+ 0x11C9200011CA8,
4246
+ 0x11CA900011CB7,
4247
+ 0x11D0000011D07,
4248
+ 0x11D0800011D0A,
4249
+ 0x11D0B00011D37,
4250
+ 0x11D3A00011D3B,
4251
+ 0x11D3C00011D3E,
4252
+ 0x11D3F00011D48,
4253
+ 0x11D5000011D5A,
4254
+ 0x11D6000011D66,
4255
+ 0x11D6700011D69,
4256
+ 0x11D6A00011D8F,
4257
+ 0x11D9000011D92,
4258
+ 0x11D9300011D99,
4259
+ 0x11DA000011DAA,
4260
+ 0x11DB000011DDC,
4261
+ 0x11DE000011DEA,
4262
+ 0x11EE000011EF7,
4263
+ 0x11F0000011F11,
4264
+ 0x11F1200011F3B,
4265
+ 0x11F3E00011F43,
4266
+ 0x11F5000011F5B,
4267
+ 0x11FB000011FB1,
4268
+ 0x120000001239A,
4269
+ 0x1248000012544,
4270
+ 0x12F9000012FF1,
4271
+ 0x1300000013430,
4272
+ 0x1344000013456,
4273
+ 0x13460000143FB,
4274
+ 0x1440000014647,
4275
+ 0x161000001613A,
4276
+ 0x1680000016A39,
4277
+ 0x16A4000016A5F,
4278
+ 0x16A6000016A6A,
4279
+ 0x16A7000016ABF,
4280
+ 0x16AC000016ACA,
4281
+ 0x16AD000016AEE,
4282
+ 0x16AF000016AF5,
4283
+ 0x16B0000016B37,
4284
+ 0x16B4000016B44,
4285
+ 0x16B5000016B5A,
4286
+ 0x16B6300016B78,
4287
+ 0x16B7D00016B90,
4288
+ 0x16D4000016D6D,
4289
+ 0x16D7000016D7A,
4290
+ 0x16E6000016E80,
4291
+ 0x16EBB00016ED4,
4292
+ 0x16F0000016F4B,
4293
+ 0x16F4F00016F88,
4294
+ 0x16F8F00016FA0,
4295
+ 0x16FE000016FE2,
4296
+ 0x16FE300016FE5,
4297
+ 0x16FF000016FF4,
4298
+ 0x1700000018CD6,
4299
+ 0x18CFF00018D1F,
4300
+ 0x18D8000018DF3,
4301
+ 0x1AFF00001AFF4,
4302
+ 0x1AFF50001AFFC,
4303
+ 0x1AFFD0001AFFF,
4304
+ 0x1B0000001B123,
4305
+ 0x1B1320001B133,
4306
+ 0x1B1500001B153,
4307
+ 0x1B1550001B156,
4308
+ 0x1B1640001B168,
4309
+ 0x1B1700001B2FC,
4310
+ 0x1BC000001BC6B,
4311
+ 0x1BC700001BC7D,
4312
+ 0x1BC800001BC89,
4313
+ 0x1BC900001BC9A,
4314
+ 0x1BC9D0001BC9F,
4315
+ 0x1CF000001CF2E,
4316
+ 0x1CF300001CF47,
4317
+ 0x1DA000001DA37,
4318
+ 0x1DA3B0001DA6D,
4319
+ 0x1DA750001DA76,
4320
+ 0x1DA840001DA85,
4321
+ 0x1DA9B0001DAA0,
4322
+ 0x1DAA10001DAB0,
4323
+ 0x1DF000001DF1F,
4324
+ 0x1DF250001DF2B,
4325
+ 0x1E0000001E007,
4326
+ 0x1E0080001E019,
4327
+ 0x1E01B0001E022,
4328
+ 0x1E0230001E025,
4329
+ 0x1E0260001E02B,
4330
+ 0x1E08F0001E090,
4331
+ 0x1E1000001E12D,
4332
+ 0x1E1300001E13E,
4333
+ 0x1E1400001E14A,
4334
+ 0x1E14E0001E14F,
4335
+ 0x1E2900001E2AF,
4336
+ 0x1E2C00001E2FA,
4337
+ 0x1E4D00001E4FA,
4338
+ 0x1E5D00001E5FB,
4339
+ 0x1E6C00001E6DF,
4340
+ 0x1E6E00001E6F6,
4341
+ 0x1E6FE0001E700,
4342
+ 0x1E7E00001E7E7,
4343
+ 0x1E7E80001E7EC,
4344
+ 0x1E7ED0001E7EF,
4345
+ 0x1E7F00001E7FF,
4346
+ 0x1E8000001E8C5,
4347
+ 0x1E8D00001E8D7,
4348
+ 0x1E9220001E94C,
4349
+ 0x1E9500001E95A,
4350
+ 0x200000002A6E0,
4351
+ 0x2A7000002B81E,
4352
+ 0x2B8200002CEAE,
4353
+ 0x2CEB00002EBE1,
4354
+ 0x2EBF00002EE5E,
4355
+ 0x300000003134B,
4356
+ 0x313500003347A,
4357
+ ),
4358
+ "CONTEXTJ": (0x200C0000200E,),
4359
+ "CONTEXTO": (
4360
+ 0xB7000000B8,
4361
+ 0x37500000376,
4362
+ 0x5F3000005F5,
4363
+ 0x6600000066A,
4364
+ 0x6F0000006FA,
4365
+ 0x30FB000030FC,
4366
+ ),
4367
+ }
venv/lib/python3.12/site-packages/idna/intranges.py ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Given a list of integers, made up of (hopefully) a small number of long runs
3
+ of consecutive integers, compute a representation of the form
4
+ ((start1, end1), (start2, end2) ...). Then answer the question "was x present
5
+ in the original list?" in time O(log(# runs)).
6
+ """
7
+
8
+ import bisect
9
+ from typing import List, Tuple
10
+
11
+
12
+ def intranges_from_list(list_: List[int]) -> Tuple[int, ...]:
13
+ """Represent a list of integers as a sequence of ranges:
14
+ ((start_0, end_0), (start_1, end_1), ...), such that the original
15
+ integers are exactly those x such that start_i <= x < end_i for some i.
16
+
17
+ Ranges are encoded as single integers (start << 32 | end), not as tuples.
18
+ """
19
+
20
+ sorted_list = sorted(list_)
21
+ ranges = []
22
+ last_write = -1
23
+ for i in range(len(sorted_list)):
24
+ if i + 1 < len(sorted_list):
25
+ if sorted_list[i] == sorted_list[i + 1] - 1:
26
+ continue
27
+ current_range = sorted_list[last_write + 1 : i + 1]
28
+ ranges.append(_encode_range(current_range[0], current_range[-1] + 1))
29
+ last_write = i
30
+
31
+ return tuple(ranges)
32
+
33
+
34
+ def _encode_range(start: int, end: int) -> int:
35
+ return (start << 32) | end
36
+
37
+
38
+ def _decode_range(r: int) -> Tuple[int, int]:
39
+ return (r >> 32), (r & ((1 << 32) - 1))
40
+
41
+
42
+ def intranges_contain(int_: int, ranges: Tuple[int, ...]) -> bool:
43
+ """Determine if `int_` falls into one of the ranges in `ranges`."""
44
+ tuple_ = _encode_range(int_, 0)
45
+ pos = bisect.bisect_left(ranges, tuple_)
46
+ # we could be immediately ahead of a tuple (start, end)
47
+ # with start < int_ <= end
48
+ if pos > 0:
49
+ left, right = _decode_range(ranges[pos - 1])
50
+ if left <= int_ < right:
51
+ return True
52
+ # or we could be immediately behind a tuple (int_, end)
53
+ if pos < len(ranges):
54
+ left, _ = _decode_range(ranges[pos])
55
+ if left == int_:
56
+ return True
57
+ return False
venv/lib/python3.12/site-packages/idna/package_data.py ADDED
@@ -0,0 +1 @@
 
 
1
+ __version__ = "3.13"
venv/lib/python3.12/site-packages/idna/py.typed ADDED
File without changes
venv/lib/python3.12/site-packages/idna/uts46data.py ADDED
The diff for this file is too large to render. See raw diff
 
venv/lib/python3.12/site-packages/pip/__init__.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import List, Optional
2
+
3
+ __version__ = "24.0"
4
+
5
+
6
+ def main(args: Optional[List[str]] = None) -> int:
7
+ """This is an internal API only meant for use by pip's own console scripts.
8
+
9
+ For additional details, see https://github.com/pypa/pip/issues/7498.
10
+ """
11
+ from pip._internal.utils.entrypoints import _wrapper
12
+
13
+ return _wrapper(args)
venv/lib/python3.12/site-packages/pip/__main__.py ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import sys
3
+
4
+ # Remove '' and current working directory from the first entry
5
+ # of sys.path, if present to avoid using current directory
6
+ # in pip commands check, freeze, install, list and show,
7
+ # when invoked as python -m pip <command>
8
+ if sys.path[0] in ("", os.getcwd()):
9
+ sys.path.pop(0)
10
+
11
+ # If we are running from a wheel, add the wheel to sys.path
12
+ # This allows the usage python pip-*.whl/pip install pip-*.whl
13
+ if __package__ == "":
14
+ # __file__ is pip-*.whl/pip/__main__.py
15
+ # first dirname call strips of '/__main__.py', second strips off '/pip'
16
+ # Resulting path is the name of the wheel itself
17
+ # Add that to sys.path so we can import pip
18
+ path = os.path.dirname(os.path.dirname(__file__))
19
+ sys.path.insert(0, path)
20
+
21
+ if __name__ == "__main__":
22
+ from pip._internal.cli.main import main as _main
23
+
24
+ sys.exit(_main())
venv/lib/python3.12/site-packages/pip/__pip-runner__.py ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Execute exactly this copy of pip, within a different environment.
2
+
3
+ This file is named as it is, to ensure that this module can't be imported via
4
+ an import statement.
5
+ """
6
+
7
+ # /!\ This version compatibility check section must be Python 2 compatible. /!\
8
+
9
+ import sys
10
+
11
+ # Copied from setup.py
12
+ PYTHON_REQUIRES = (3, 7)
13
+
14
+
15
+ def version_str(version): # type: ignore
16
+ return ".".join(str(v) for v in version)
17
+
18
+
19
+ if sys.version_info[:2] < PYTHON_REQUIRES:
20
+ raise SystemExit(
21
+ "This version of pip does not support python {} (requires >={}).".format(
22
+ version_str(sys.version_info[:2]), version_str(PYTHON_REQUIRES)
23
+ )
24
+ )
25
+
26
+ # From here on, we can use Python 3 features, but the syntax must remain
27
+ # Python 2 compatible.
28
+
29
+ import runpy # noqa: E402
30
+ from importlib.machinery import PathFinder # noqa: E402
31
+ from os.path import dirname # noqa: E402
32
+
33
+ PIP_SOURCES_ROOT = dirname(dirname(__file__))
34
+
35
+
36
+ class PipImportRedirectingFinder:
37
+ @classmethod
38
+ def find_spec(self, fullname, path=None, target=None): # type: ignore
39
+ if fullname != "pip":
40
+ return None
41
+
42
+ spec = PathFinder.find_spec(fullname, [PIP_SOURCES_ROOT], target)
43
+ assert spec, (PIP_SOURCES_ROOT, fullname)
44
+ return spec
45
+
46
+
47
+ sys.meta_path.insert(0, PipImportRedirectingFinder())
48
+
49
+ assert __name__ == "__main__", "Cannot run __pip-runner__.py as a non-main module"
50
+ runpy.run_module("pip", run_name="__main__", alter_sys=True)
venv/lib/python3.12/site-packages/pip/py.typed ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ pip is a command line program. While it is implemented in Python, and so is
2
+ available for import, you must not use pip's internal APIs in this way. Typing
3
+ information is provided as a convenience only and is not a guarantee. Expect
4
+ unannounced changes to the API and types in releases.