ZTWHHH commited on
Commit
cc45d6e
·
verified ·
1 Parent(s): 88bbe91

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. .gitattributes +1 -0
  2. mplug_owl2/lib/pkgconfig/libcrypto.pc +13 -0
  3. mplug_owl2/lib/pkgconfig/libffi.pc +11 -0
  4. mplug_owl2/lib/pkgconfig/liblzma.pc +16 -0
  5. mplug_owl2/lib/pkgconfig/libssl.pc +11 -0
  6. mplug_owl2/lib/pkgconfig/menuw.pc +19 -0
  7. mplug_owl2/lib/pkgconfig/python-3.10-embed.pc +13 -0
  8. mplug_owl2/lib/pkgconfig/python3.pc +13 -0
  9. mplug_owl2/lib/pkgconfig/readline.pc +12 -0
  10. mplug_owl2/lib/pkgconfig/sqlite3.pc +13 -0
  11. mplug_owl2/lib/pkgconfig/tk.pc +15 -0
  12. mplug_owl2/lib/pkgconfig/uuid.pc +11 -0
  13. mplug_owl2/lib/pkgconfig/zlib.pc +13 -0
  14. mplug_owl2/lib/tk8.6/demos/images/teapot.ppm +3 -0
  15. mplug_owl2/lib/tk8.6/images/README +7 -0
  16. mplug_owl2/lib/tk8.6/images/logo.eps +2091 -0
  17. mplug_owl2/lib/tk8.6/images/logo64.gif +3 -0
  18. mplug_owl2/lib/tk8.6/images/pwrdLogo.eps +1897 -0
  19. mplug_owl2/lib/tk8.6/msgs/cs.msg +77 -0
  20. mplug_owl2/lib/tk8.6/msgs/de.msg +91 -0
  21. mplug_owl2/lib/tk8.6/msgs/el.msg +86 -0
  22. mplug_owl2/lib/tk8.6/msgs/en_gb.msg +3 -0
  23. mplug_owl2/lib/tk8.6/msgs/it.msg +73 -0
  24. mplug_owl2/lib/tk8.6/msgs/nl.msg +91 -0
  25. openflamingo/lib/python3.10/site-packages/transformers/models/dit/__init__.py +0 -0
  26. openflamingo/lib/python3.10/site-packages/transformers/models/dit/__pycache__/__init__.cpython-310.pyc +0 -0
  27. openflamingo/lib/python3.10/site-packages/transformers/models/dit/__pycache__/convert_dit_unilm_to_pytorch.cpython-310.pyc +0 -0
  28. openflamingo/lib/python3.10/site-packages/transformers/models/herbert/__init__.py +45 -0
  29. openflamingo/lib/python3.10/site-packages/transformers/models/herbert/__pycache__/__init__.cpython-310.pyc +0 -0
  30. openflamingo/lib/python3.10/site-packages/transformers/models/herbert/__pycache__/tokenization_herbert.cpython-310.pyc +0 -0
  31. openflamingo/lib/python3.10/site-packages/transformers/models/herbert/__pycache__/tokenization_herbert_fast.cpython-310.pyc +0 -0
  32. openflamingo/lib/python3.10/site-packages/transformers/models/herbert/tokenization_herbert.py +659 -0
  33. openflamingo/lib/python3.10/site-packages/transformers/models/herbert/tokenization_herbert_fast.py +173 -0
  34. openflamingo/lib/python3.10/site-packages/transformers/models/instructblip/__pycache__/processing_instructblip.cpython-310.pyc +0 -0
  35. openflamingo/lib/python3.10/site-packages/transformers/models/instructblip/processing_instructblip.py +172 -0
  36. openflamingo/lib/python3.10/site-packages/transformers/models/jukebox/__init__.py +70 -0
  37. openflamingo/lib/python3.10/site-packages/transformers/models/jukebox/__pycache__/__init__.cpython-310.pyc +0 -0
  38. openflamingo/lib/python3.10/site-packages/transformers/models/jukebox/__pycache__/configuration_jukebox.cpython-310.pyc +0 -0
  39. openflamingo/lib/python3.10/site-packages/transformers/models/jukebox/__pycache__/convert_jukebox.cpython-310.pyc +0 -0
  40. openflamingo/lib/python3.10/site-packages/transformers/models/jukebox/__pycache__/modeling_jukebox.cpython-310.pyc +0 -0
  41. openflamingo/lib/python3.10/site-packages/transformers/models/jukebox/__pycache__/tokenization_jukebox.cpython-310.pyc +0 -0
  42. openflamingo/lib/python3.10/site-packages/transformers/models/jukebox/configuration_jukebox.py +614 -0
  43. openflamingo/lib/python3.10/site-packages/transformers/models/jukebox/convert_jukebox.py +279 -0
  44. openflamingo/lib/python3.10/site-packages/transformers/models/jukebox/modeling_jukebox.py +0 -0
  45. openflamingo/lib/python3.10/site-packages/transformers/models/jukebox/tokenization_jukebox.py +418 -0
  46. openflamingo/lib/python3.10/site-packages/transformers/models/layoutxlm/__pycache__/__init__.cpython-310.pyc +0 -0
  47. openflamingo/lib/python3.10/site-packages/transformers/models/layoutxlm/__pycache__/processing_layoutxlm.cpython-310.pyc +0 -0
  48. openflamingo/lib/python3.10/site-packages/transformers/models/layoutxlm/__pycache__/tokenization_layoutxlm.cpython-310.pyc +0 -0
  49. openflamingo/lib/python3.10/site-packages/transformers/models/layoutxlm/__pycache__/tokenization_layoutxlm_fast.cpython-310.pyc +0 -0
  50. openflamingo/lib/python3.10/site-packages/transformers/models/layoutxlm/tokenization_layoutxlm.py +1176 -0
.gitattributes CHANGED
@@ -727,3 +727,4 @@ mplug_owl2/lib/python3.10/lib-dynload/_hashlib.cpython-310-x86_64-linux-gnu.so f
727
  mplug_owl2/lib/itcl4.2.4/libitcl4.2.4.so filter=lfs diff=lfs merge=lfs -text
728
  mplug_owl2/lib/sqlite3.44.2/libsqlite3.44.2.so filter=lfs diff=lfs merge=lfs -text
729
  mplug_owl2/lib/ossl-modules/legacy.so filter=lfs diff=lfs merge=lfs -text
 
 
727
  mplug_owl2/lib/itcl4.2.4/libitcl4.2.4.so filter=lfs diff=lfs merge=lfs -text
728
  mplug_owl2/lib/sqlite3.44.2/libsqlite3.44.2.so filter=lfs diff=lfs merge=lfs -text
729
  mplug_owl2/lib/ossl-modules/legacy.so filter=lfs diff=lfs merge=lfs -text
730
+ mplug_owl2/lib/tk8.6/demos/images/teapot.ppm filter=lfs diff=lfs merge=lfs -text
mplug_owl2/lib/pkgconfig/libcrypto.pc ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ prefix=/root/envs/mplug_owl2
2
+ exec_prefix=${prefix}
3
+ libdir=${exec_prefix}/lib
4
+ includedir=${prefix}/include
5
+ enginesdir=${libdir}/engines-3
6
+ modulesdir=${libdir}/ossl-modules
7
+
8
+ Name: OpenSSL-libcrypto
9
+ Description: OpenSSL cryptography library
10
+ Version: 3.0.16
11
+ Libs: -L${libdir} -lcrypto
12
+ Libs.private: -ldl -pthread
13
+ Cflags: -I${includedir}
mplug_owl2/lib/pkgconfig/libffi.pc ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ prefix=/root/envs/mplug_owl2
2
+ exec_prefix=${prefix}
3
+ libdir=${exec_prefix}/lib
4
+ toolexeclibdir=${libdir}
5
+ includedir=/root/envs/mplug_owl2/include
6
+
7
+ Name: libffi
8
+ Description: Library supporting Foreign Function Interfaces
9
+ Version: 3.4.4
10
+ Libs: -L${toolexeclibdir} -lffi
11
+ Cflags: -I${includedir}
mplug_owl2/lib/pkgconfig/liblzma.pc ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: 0BSD
2
+ # Author: Lasse Collin
3
+
4
+ prefix=/root/envs/mplug_owl2
5
+ exec_prefix=${prefix}
6
+ libdir=${exec_prefix}/lib
7
+ includedir=${prefix}/include
8
+
9
+ Name: liblzma
10
+ Description: General purpose data compression library
11
+ URL: https://tukaani.org/xz/
12
+ Version: 5.6.4
13
+ Cflags: -I${includedir}
14
+ Cflags.private: -DLZMA_API_STATIC
15
+ Libs: -L${libdir} -llzma
16
+ Libs.private: -pthread
mplug_owl2/lib/pkgconfig/libssl.pc ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ prefix=/root/envs/mplug_owl2
2
+ exec_prefix=${prefix}
3
+ libdir=${exec_prefix}/lib
4
+ includedir=${prefix}/include
5
+
6
+ Name: OpenSSL-libssl
7
+ Description: Secure Sockets Layer and cryptography libraries
8
+ Version: 3.0.16
9
+ Requires.private: libcrypto
10
+ Libs: -L${libdir} -lssl
11
+ Cflags: -I${includedir}
mplug_owl2/lib/pkgconfig/menuw.pc ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # pkg-config file generated by gen-pkgconfig
2
+ # vile:makemode
3
+
4
+ prefix=/root/envs/mplug_owl2
5
+ exec_prefix=${prefix}
6
+ libdir=${exec_prefix}/lib
7
+ includedir=${prefix}/include/ncursesw
8
+ abi_version=6
9
+ major_version=6
10
+ version=6.4.20221231
11
+
12
+ Name: menuw
13
+ Description: ncurses 6.4 add-on library
14
+ Version: ${version}
15
+ URL: https://invisible-island.net/ncurses
16
+ Requires.private: ncursesw
17
+ Libs: -L/root/envs/mplug_owl2/lib -Wl,-O2 -Wl,--sort-common -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-rpath,/root/envs/mplug_owl2/lib -Wl,-rpath-link,/root/envs/mplug_owl2/lib -lmenuw
18
+ Libs.private:
19
+ Cflags: -D_GNU_SOURCE -DNCURSES_WIDECHAR -I${includedir} -I/root/envs/mplug_owl2/include
mplug_owl2/lib/pkgconfig/python-3.10-embed.pc ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # See: man pkg-config
2
+ prefix=/root/envs/mplug_owl2
3
+ exec_prefix=${prefix}
4
+ libdir=${exec_prefix}/lib
5
+ includedir=${prefix}/include
6
+
7
+ Name: Python
8
+ Description: Embed Python into an application
9
+ Requires:
10
+ Version: 3.10
11
+ Libs.private: -lcrypt -lpthread -ldl -lutil -lm
12
+ Libs: -L${libdir} -lpython3.10
13
+ Cflags: -I${includedir}/python3.10
mplug_owl2/lib/pkgconfig/python3.pc ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # See: man pkg-config
2
+ prefix=/root/envs/mplug_owl2
3
+ exec_prefix=${prefix}
4
+ libdir=${exec_prefix}/lib
5
+ includedir=${prefix}/include
6
+
7
+ Name: Python
8
+ Description: Build a C extension for Python
9
+ Requires:
10
+ Version: 3.10
11
+ Libs.private: -lcrypt -lpthread -ldl -lutil -lm
12
+ Libs:
13
+ Cflags: -I${includedir}/python3.10
mplug_owl2/lib/pkgconfig/readline.pc ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ prefix=/root/envs/mplug_owl2
2
+ exec_prefix=${prefix}
3
+ libdir=${exec_prefix}/lib
4
+ includedir=${prefix}/include
5
+
6
+ Name: Readline
7
+ Description: Gnu Readline library for command line editing
8
+ URL: http://tiswww.cwru.edu/php/chet/readline/rltop.html
9
+ Version: 8.2
10
+ Requires.private: tinfo
11
+ Libs: -L${libdir} -lreadline
12
+ Cflags: -I${includedir}
mplug_owl2/lib/pkgconfig/sqlite3.pc ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Package Information for pkg-config
2
+
3
+ prefix=/root/envs/mplug_owl2
4
+ exec_prefix=${prefix}
5
+ libdir=${exec_prefix}/lib
6
+ includedir=${prefix}/include
7
+
8
+ Name: SQLite
9
+ Description: SQL database engine
10
+ Version: 3.45.3
11
+ Libs: -L${libdir} -lsqlite3
12
+ Libs.private: -lz -lm -ldl -lpthread
13
+ Cflags: -I${includedir}
mplug_owl2/lib/pkgconfig/tk.pc ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # tk pkg-config source file
2
+
3
+ prefix=/root/envs/mplug_owl2
4
+ exec_prefix=/root/envs/mplug_owl2
5
+ libdir=/root/envs/mplug_owl2/lib
6
+ includedir=${prefix}/include
7
+
8
+ Name: The Tk Toolkit
9
+ Description: Tk is a cross-platform graphical user interface toolkit, the standard GUI not only for Tcl, but for many other dynamic languages as well.
10
+ URL: https://www.tcl-lang.org/
11
+ Version: 8.6.14
12
+ Requires: tcl >= 8.6
13
+ Libs: -L${libdir} -ltk8.6 -ltkstub8.6
14
+ Libs.private: -lX11
15
+ Cflags: -I${includedir}
mplug_owl2/lib/pkgconfig/uuid.pc ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ prefix=/root/envs/mplug_owl2
2
+ exec_prefix=/root/envs/mplug_owl2
3
+ libdir=/root/envs/mplug_owl2/lib
4
+ includedir=/root/envs/mplug_owl2/include
5
+
6
+ Name: uuid
7
+ Description: Universally unique id library
8
+ Version: 2.32.1
9
+ Requires:
10
+ Cflags: -I${includedir}/uuid
11
+ Libs: -L${libdir} -luuid
mplug_owl2/lib/pkgconfig/zlib.pc ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ prefix=/root/envs/mplug_owl2
2
+ exec_prefix=/root/envs/mplug_owl2
3
+ libdir=/root/envs/mplug_owl2/lib
4
+ sharedlibdir=/root/envs/mplug_owl2/lib
5
+ includedir=/root/envs/mplug_owl2/include
6
+
7
+ Name: zlib
8
+ Description: zlib compression library
9
+ Version: 1.2.13
10
+
11
+ Requires:
12
+ Libs: -L${libdir} -L${sharedlibdir} -lz
13
+ Cflags: -I${includedir}
mplug_owl2/lib/tk8.6/demos/images/teapot.ppm ADDED

Git LFS Details

  • SHA256: 786f29b88771e439187dd2e86ad4d255dd185e0c1ea3f8c37d21770fd1df253a
  • Pointer size: 131 Bytes
  • Size of remote file: 197 kB
mplug_owl2/lib/tk8.6/images/README ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ README - images directory
2
+
3
+ This directory includes images for the Tcl Logo and the Tcl Powered
4
+ Logo. Please feel free to use the Tcl Powered Logo on any of your
5
+ products that employ the use of Tcl or Tk. The Tcl logo may also be
6
+ used to promote Tcl in your product documentation, web site or other
7
+ places you so desire.
mplug_owl2/lib/tk8.6/images/logo.eps ADDED
@@ -0,0 +1,2091 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ %!PS-Adobe-3.0 EPSF-3.0
2
+ %%Creator: Adobe Illustrator(TM) 5.5
3
+ %%For: (Bud Northern) (Mark Anderson Design)
4
+ %%Title: (TCL/TK LOGO.ILLUS)
5
+ %%CreationDate: (8/1/96) (4:58 PM)
6
+ %%BoundingBox: 251 331 371 512
7
+ %%HiResBoundingBox: 251.3386 331.5616 370.5213 511.775
8
+ %%DocumentProcessColors: Cyan Magenta Yellow
9
+ %%DocumentSuppliedResources: procset Adobe_level2_AI5 1.0 0
10
+ %%+ procset Adobe_IllustratorA_AI5 1.0 0
11
+ %AI5_FileFormat 1.2
12
+ %AI3_ColorUsage: Color
13
+ %%DocumentCustomColors: (TCL RED)
14
+ %%CMYKCustomColor: 0 0.45 1 0 (Orange)
15
+ %%+ 0 0.25 1 0 (Orange Yellow)
16
+ %%+ 0 0.79 0.91 0 (TCL RED)
17
+ %AI3_TemplateBox: 306 396 306 396
18
+ %AI3_TileBox: 12 12 600 780
19
+ %AI3_DocumentPreview: Macintosh_ColorPic
20
+ %AI5_ArtSize: 612 792
21
+ %AI5_RulerUnits: 0
22
+ %AI5_ArtFlags: 1 0 0 1 0 0 1 1 0
23
+ %AI5_TargetResolution: 800
24
+ %AI5_NumLayers: 1
25
+ %AI5_OpenToView: 90 576 2 938 673 18 1 1 2 40
26
+ %AI5_OpenViewLayers: 7
27
+ %%EndComments
28
+ %%BeginProlog
29
+ %%BeginResource: procset Adobe_level2_AI5 1.0 0
30
+ %%Title: (Adobe Illustrator (R) Version 5.0 Level 2 Emulation)
31
+ %%Version: 1.0
32
+ %%CreationDate: (04/10/93) ()
33
+ %%Copyright: ((C) 1987-1993 Adobe Systems Incorporated All Rights Reserved)
34
+ userdict /Adobe_level2_AI5 21 dict dup begin
35
+ put
36
+ /packedarray where not
37
+ {
38
+ userdict begin
39
+ /packedarray
40
+ {
41
+ array astore readonly
42
+ } bind def
43
+ /setpacking /pop load def
44
+ /currentpacking false def
45
+ end
46
+ 0
47
+ } if
48
+ pop
49
+ userdict /defaultpacking currentpacking put true setpacking
50
+ /initialize
51
+ {
52
+ Adobe_level2_AI5 begin
53
+ } bind def
54
+ /terminate
55
+ {
56
+ currentdict Adobe_level2_AI5 eq
57
+ {
58
+ end
59
+ } if
60
+ } bind def
61
+ mark
62
+ /setcustomcolor where not
63
+ {
64
+ /findcmykcustomcolor
65
+ {
66
+ 5 packedarray
67
+ } bind def
68
+ /setcustomcolor
69
+ {
70
+ exch aload pop pop
71
+ 4
72
+ {
73
+ 4 index mul 4 1 roll
74
+ } repeat
75
+ 5 -1 roll pop
76
+ setcmykcolor
77
+ }
78
+ def
79
+ } if
80
+
81
+ /gt38? mark {version cvx exec} stopped {cleartomark true} {38 gt exch pop} ifelse def
82
+ userdict /deviceDPI 72 0 matrix defaultmatrix dtransform dup mul exch dup mul add sqrt put
83
+ userdict /level2?
84
+ systemdict /languagelevel known dup
85
+ {
86
+ pop systemdict /languagelevel get 2 ge
87
+ } if
88
+ put
89
+ level2? not
90
+ {
91
+ /setcmykcolor where not
92
+ {
93
+ /setcmykcolor
94
+ {
95
+ exch .11 mul add exch .59 mul add exch .3 mul add
96
+ 1 exch sub setgray
97
+ } def
98
+ } if
99
+ /currentcmykcolor where not
100
+ {
101
+ /currentcmykcolor
102
+ {
103
+ 0 0 0 1 currentgray sub
104
+ } def
105
+ } if
106
+ /setoverprint where not
107
+ {
108
+ /setoverprint /pop load def
109
+ } if
110
+ /selectfont where not
111
+ {
112
+ /selectfont
113
+ {
114
+ exch findfont exch
115
+ dup type /arraytype eq
116
+ {
117
+ makefont
118
+ }
119
+ {
120
+ scalefont
121
+ } ifelse
122
+ setfont
123
+ } bind def
124
+ } if
125
+ /cshow where not
126
+ {
127
+ /cshow
128
+ {
129
+ [
130
+ 0 0 5 -1 roll aload pop
131
+ ] cvx bind forall
132
+ } bind def
133
+ } if
134
+ } if
135
+ cleartomark
136
+ /anyColor?
137
+ {
138
+ add add add 0 ne
139
+ } bind def
140
+ /testColor
141
+ {
142
+ gsave
143
+ setcmykcolor currentcmykcolor
144
+ grestore
145
+ } bind def
146
+ /testCMYKColorThrough
147
+ {
148
+ testColor anyColor?
149
+ } bind def
150
+ userdict /composite?
151
+ level2?
152
+ {
153
+ gsave 1 1 1 1 setcmykcolor currentcmykcolor grestore
154
+ add add add 4 eq
155
+ }
156
+ {
157
+ 1 0 0 0 testCMYKColorThrough
158
+ 0 1 0 0 testCMYKColorThrough
159
+ 0 0 1 0 testCMYKColorThrough
160
+ 0 0 0 1 testCMYKColorThrough
161
+ and and and
162
+ } ifelse
163
+ put
164
+ composite? not
165
+ {
166
+ userdict begin
167
+ gsave
168
+ /cyan? 1 0 0 0 testCMYKColorThrough def
169
+ /magenta? 0 1 0 0 testCMYKColorThrough def
170
+ /yellow? 0 0 1 0 testCMYKColorThrough def
171
+ /black? 0 0 0 1 testCMYKColorThrough def
172
+ grestore
173
+ /isCMYKSep? cyan? magenta? yellow? black? or or or def
174
+ /customColor? isCMYKSep? not def
175
+ end
176
+ } if
177
+ end defaultpacking setpacking
178
+ %%EndResource
179
+ %%BeginResource: procset Adobe_IllustratorA_AI5 1.1 0
180
+ %%Title: (Adobe Illustrator (R) Version 5.0 Abbreviated Prolog)
181
+ %%Version: 1.1
182
+ %%CreationDate: (3/7/1994) ()
183
+ %%Copyright: ((C) 1987-1994 Adobe Systems Incorporated All Rights Reserved)
184
+ currentpacking true setpacking
185
+ userdict /Adobe_IllustratorA_AI5_vars 70 dict dup begin
186
+ put
187
+ /_lp /none def
188
+ /_pf
189
+ {
190
+ } def
191
+ /_ps
192
+ {
193
+ } def
194
+ /_psf
195
+ {
196
+ } def
197
+ /_pss
198
+ {
199
+ } def
200
+ /_pjsf
201
+ {
202
+ } def
203
+ /_pjss
204
+ {
205
+ } def
206
+ /_pola 0 def
207
+ /_doClip 0 def
208
+ /cf currentflat def
209
+ /_tm matrix def
210
+ /_renderStart
211
+ [
212
+ /e0 /r0 /a0 /o0 /e1 /r1 /a1 /i0
213
+ ] def
214
+ /_renderEnd
215
+ [
216
+ null null null null /i1 /i1 /i1 /i1
217
+ ] def
218
+ /_render -1 def
219
+ /_rise 0 def
220
+ /_ax 0 def
221
+ /_ay 0 def
222
+ /_cx 0 def
223
+ /_cy 0 def
224
+ /_leading
225
+ [
226
+ 0 0
227
+ ] def
228
+ /_ctm matrix def
229
+ /_mtx matrix def
230
+ /_sp 16#020 def
231
+ /_hyphen (-) def
232
+ /_fScl 0 def
233
+ /_cnt 0 def
234
+ /_hs 1 def
235
+ /_nativeEncoding 0 def
236
+ /_useNativeEncoding 0 def
237
+ /_tempEncode 0 def
238
+ /_pntr 0 def
239
+ /_tDict 2 dict def
240
+ /_wv 0 def
241
+ /Tx
242
+ {
243
+ } def
244
+ /Tj
245
+ {
246
+ } def
247
+ /CRender
248
+ {
249
+ } def
250
+ /_AI3_savepage
251
+ {
252
+ } def
253
+ /_gf null def
254
+ /_cf 4 array def
255
+ /_if null def
256
+ /_of false def
257
+ /_fc
258
+ {
259
+ } def
260
+ /_gs null def
261
+ /_cs 4 array def
262
+ /_is null def
263
+ /_os false def
264
+ /_sc
265
+ {
266
+ } def
267
+ /discardSave null def
268
+ /buffer 256 string def
269
+ /beginString null def
270
+ /endString null def
271
+ /endStringLength null def
272
+ /layerCnt 1 def
273
+ /layerCount 1 def
274
+ /perCent (%) 0 get def
275
+ /perCentSeen? false def
276
+ /newBuff null def
277
+ /newBuffButFirst null def
278
+ /newBuffLast null def
279
+ /clipForward? false def
280
+ end
281
+ userdict /Adobe_IllustratorA_AI5 74 dict dup begin
282
+ put
283
+ /initialize
284
+ {
285
+ Adobe_IllustratorA_AI5 dup begin
286
+ Adobe_IllustratorA_AI5_vars begin
287
+ discardDict
288
+ {
289
+ bind pop pop
290
+ } forall
291
+ dup /nc get begin
292
+ {
293
+ dup xcheck 1 index type /operatortype ne and
294
+ {
295
+ bind
296
+ } if
297
+ pop pop
298
+ } forall
299
+ end
300
+ newpath
301
+ } def
302
+ /terminate
303
+ {
304
+ end
305
+ end
306
+ } def
307
+ /_
308
+ null def
309
+ /ddef
310
+ {
311
+ Adobe_IllustratorA_AI5_vars 3 1 roll put
312
+ } def
313
+ /xput
314
+ {
315
+ dup load dup length exch maxlength eq
316
+ {
317
+ dup dup load dup
318
+ length 2 mul dict copy def
319
+ } if
320
+ load begin
321
+ def
322
+ end
323
+ } def
324
+ /npop
325
+ {
326
+ {
327
+ pop
328
+ } repeat
329
+ } def
330
+ /sw
331
+ {
332
+ dup length exch stringwidth
333
+ exch 5 -1 roll 3 index mul add
334
+ 4 1 roll 3 1 roll mul add
335
+ } def
336
+ /swj
337
+ {
338
+ dup 4 1 roll
339
+ dup length exch stringwidth
340
+ exch 5 -1 roll 3 index mul add
341
+ 4 1 roll 3 1 roll mul add
342
+ 6 2 roll /_cnt 0 ddef
343
+ {
344
+ 1 index eq
345
+ {
346
+ /_cnt _cnt 1 add ddef
347
+ } if
348
+ } forall
349
+ pop
350
+ exch _cnt mul exch _cnt mul 2 index add 4 1 roll 2 index add 4 1 roll pop pop
351
+ } def
352
+ /ss
353
+ {
354
+ 4 1 roll
355
+ {
356
+ 2 npop
357
+ (0) exch 2 copy 0 exch put pop
358
+ gsave
359
+ false charpath currentpoint
360
+ 4 index setmatrix
361
+ stroke
362
+ grestore
363
+ moveto
364
+ 2 copy rmoveto
365
+ } exch cshow
366
+ 3 npop
367
+ } def
368
+ /jss
369
+ {
370
+ 4 1 roll
371
+ {
372
+ 2 npop
373
+ (0) exch 2 copy 0 exch put
374
+ gsave
375
+ _sp eq
376
+ {
377
+ exch 6 index 6 index 6 index 5 -1 roll widthshow
378
+ currentpoint
379
+ }
380
+ {
381
+ false charpath currentpoint
382
+ 4 index setmatrix stroke
383
+ } ifelse
384
+ grestore
385
+ moveto
386
+ 2 copy rmoveto
387
+ } exch cshow
388
+ 6 npop
389
+ } def
390
+ /sp
391
+ {
392
+ {
393
+ 2 npop (0) exch
394
+ 2 copy 0 exch put pop
395
+ false charpath
396
+ 2 copy rmoveto
397
+ } exch cshow
398
+ 2 npop
399
+ } def
400
+ /jsp
401
+ {
402
+ {
403
+ 2 npop
404
+ (0) exch 2 copy 0 exch put
405
+ _sp eq
406
+ {
407
+ exch 5 index 5 index 5 index 5 -1 roll widthshow
408
+ }
409
+ {
410
+ false charpath
411
+ } ifelse
412
+ 2 copy rmoveto
413
+ } exch cshow
414
+ 5 npop
415
+ } def
416
+ /pl
417
+ {
418
+ transform
419
+ 0.25 sub round 0.25 add exch
420
+ 0.25 sub round 0.25 add exch
421
+ itransform
422
+ } def
423
+ /setstrokeadjust where
424
+ {
425
+ pop true setstrokeadjust
426
+ /c
427
+ {
428
+ curveto
429
+ } def
430
+ /C
431
+ /c load def
432
+ /v
433
+ {
434
+ currentpoint 6 2 roll curveto
435
+ } def
436
+ /V
437
+ /v load def
438
+ /y
439
+ {
440
+ 2 copy curveto
441
+ } def
442
+ /Y
443
+ /y load def
444
+ /l
445
+ {
446
+ lineto
447
+ } def
448
+ /L
449
+ /l load def
450
+ /m
451
+ {
452
+ moveto
453
+ } def
454
+ }
455
+ {
456
+ /c
457
+ {
458
+ pl curveto
459
+ } def
460
+ /C
461
+ /c load def
462
+ /v
463
+ {
464
+ currentpoint 6 2 roll pl curveto
465
+ } def
466
+ /V
467
+ /v load def
468
+ /y
469
+ {
470
+ pl 2 copy curveto
471
+ } def
472
+ /Y
473
+ /y load def
474
+ /l
475
+ {
476
+ pl lineto
477
+ } def
478
+ /L
479
+ /l load def
480
+ /m
481
+ {
482
+ pl moveto
483
+ } def
484
+ } ifelse
485
+ /d
486
+ {
487
+ setdash
488
+ } def
489
+ /cf
490
+ {
491
+ } def
492
+ /i
493
+ {
494
+ dup 0 eq
495
+ {
496
+ pop cf
497
+ } if
498
+ setflat
499
+ } def
500
+ /j
501
+ {
502
+ setlinejoin
503
+ } def
504
+ /J
505
+ {
506
+ setlinecap
507
+ } def
508
+ /M
509
+ {
510
+ setmiterlimit
511
+ } def
512
+ /w
513
+ {
514
+ setlinewidth
515
+ } def
516
+ /H
517
+ {
518
+ } def
519
+ /h
520
+ {
521
+ closepath
522
+ } def
523
+ /N
524
+ {
525
+ _pola 0 eq
526
+ {
527
+ _doClip 1 eq
528
+ {
529
+ clip /_doClip 0 ddef
530
+ } if
531
+ newpath
532
+ }
533
+ {
534
+ /CRender
535
+ {
536
+ N
537
+ } ddef
538
+ } ifelse
539
+ } def
540
+ /n
541
+ {
542
+ N
543
+ } def
544
+ /F
545
+ {
546
+ _pola 0 eq
547
+ {
548
+ _doClip 1 eq
549
+ {
550
+ gsave _pf grestore clip newpath /_lp /none ddef _fc
551
+ /_doClip 0 ddef
552
+ }
553
+ {
554
+ _pf
555
+ } ifelse
556
+ }
557
+ {
558
+ /CRender
559
+ {
560
+ F
561
+ } ddef
562
+ } ifelse
563
+ } def
564
+ /f
565
+ {
566
+ closepath
567
+ F
568
+ } def
569
+ /S
570
+ {
571
+ _pola 0 eq
572
+ {
573
+ _doClip 1 eq
574
+ {
575
+ gsave _ps grestore clip newpath /_lp /none ddef _sc
576
+ /_doClip 0 ddef
577
+ }
578
+ {
579
+ _ps
580
+ } ifelse
581
+ }
582
+ {
583
+ /CRender
584
+ {
585
+ S
586
+ } ddef
587
+ } ifelse
588
+ } def
589
+ /s
590
+ {
591
+ closepath
592
+ S
593
+ } def
594
+ /B
595
+ {
596
+ _pola 0 eq
597
+ {
598
+ _doClip 1 eq
599
+ gsave F grestore
600
+ {
601
+ gsave S grestore clip newpath /_lp /none ddef _sc
602
+ /_doClip 0 ddef
603
+ }
604
+ {
605
+ S
606
+ } ifelse
607
+ }
608
+ {
609
+ /CRender
610
+ {
611
+ B
612
+ } ddef
613
+ } ifelse
614
+ } def
615
+ /b
616
+ {
617
+ closepath
618
+ B
619
+ } def
620
+ /W
621
+ {
622
+ /_doClip 1 ddef
623
+ } def
624
+ /*
625
+ {
626
+ count 0 ne
627
+ {
628
+ dup type /stringtype eq
629
+ {
630
+ pop
631
+ } if
632
+ } if
633
+ newpath
634
+ } def
635
+ /u
636
+ {
637
+ } def
638
+ /U
639
+ {
640
+ } def
641
+ /q
642
+ {
643
+ _pola 0 eq
644
+ {
645
+ gsave
646
+ } if
647
+ } def
648
+ /Q
649
+ {
650
+ _pola 0 eq
651
+ {
652
+ grestore
653
+ } if
654
+ } def
655
+ /*u
656
+ {
657
+ _pola 1 add /_pola exch ddef
658
+ } def
659
+ /*U
660
+ {
661
+ _pola 1 sub /_pola exch ddef
662
+ _pola 0 eq
663
+ {
664
+ CRender
665
+ } if
666
+ } def
667
+ /D
668
+ {
669
+ pop
670
+ } def
671
+ /*w
672
+ {
673
+ } def
674
+ /*W
675
+ {
676
+ } def
677
+ /`
678
+ {
679
+ /_i save ddef
680
+ clipForward?
681
+ {
682
+ nulldevice
683
+ } if
684
+ 6 1 roll 4 npop
685
+ concat pop
686
+ userdict begin
687
+ /showpage
688
+ {
689
+ } def
690
+ 0 setgray
691
+ 0 setlinecap
692
+ 1 setlinewidth
693
+ 0 setlinejoin
694
+ 10 setmiterlimit
695
+ [] 0 setdash
696
+ /setstrokeadjust where {pop false setstrokeadjust} if
697
+ newpath
698
+ 0 setgray
699
+ false setoverprint
700
+ } def
701
+ /~
702
+ {
703
+ end
704
+ _i restore
705
+ } def
706
+ /O
707
+ {
708
+ 0 ne
709
+ /_of exch ddef
710
+ /_lp /none ddef
711
+ } def
712
+ /R
713
+ {
714
+ 0 ne
715
+ /_os exch ddef
716
+ /_lp /none ddef
717
+ } def
718
+ /g
719
+ {
720
+ /_gf exch ddef
721
+ /_fc
722
+ {
723
+ _lp /fill ne
724
+ {
725
+ _of setoverprint
726
+ _gf setgray
727
+ /_lp /fill ddef
728
+ } if
729
+ } ddef
730
+ /_pf
731
+ {
732
+ _fc
733
+ fill
734
+ } ddef
735
+ /_psf
736
+ {
737
+ _fc
738
+ ashow
739
+ } ddef
740
+ /_pjsf
741
+ {
742
+ _fc
743
+ awidthshow
744
+ } ddef
745
+ /_lp /none ddef
746
+ } def
747
+ /G
748
+ {
749
+ /_gs exch ddef
750
+ /_sc
751
+ {
752
+ _lp /stroke ne
753
+ {
754
+ _os setoverprint
755
+ _gs setgray
756
+ /_lp /stroke ddef
757
+ } if
758
+ } ddef
759
+ /_ps
760
+ {
761
+ _sc
762
+ stroke
763
+ } ddef
764
+ /_pss
765
+ {
766
+ _sc
767
+ ss
768
+ } ddef
769
+ /_pjss
770
+ {
771
+ _sc
772
+ jss
773
+ } ddef
774
+ /_lp /none ddef
775
+ } def
776
+ /k
777
+ {
778
+ _cf astore pop
779
+ /_fc
780
+ {
781
+ _lp /fill ne
782
+ {
783
+ _of setoverprint
784
+ _cf aload pop setcmykcolor
785
+ /_lp /fill ddef
786
+ } if
787
+ } ddef
788
+ /_pf
789
+ {
790
+ _fc
791
+ fill
792
+ } ddef
793
+ /_psf
794
+ {
795
+ _fc
796
+ ashow
797
+ } ddef
798
+ /_pjsf
799
+ {
800
+ _fc
801
+ awidthshow
802
+ } ddef
803
+ /_lp /none ddef
804
+ } def
805
+ /K
806
+ {
807
+ _cs astore pop
808
+ /_sc
809
+ {
810
+ _lp /stroke ne
811
+ {
812
+ _os setoverprint
813
+ _cs aload pop setcmykcolor
814
+ /_lp /stroke ddef
815
+ } if
816
+ } ddef
817
+ /_ps
818
+ {
819
+ _sc
820
+ stroke
821
+ } ddef
822
+ /_pss
823
+ {
824
+ _sc
825
+ ss
826
+ } ddef
827
+ /_pjss
828
+ {
829
+ _sc
830
+ jss
831
+ } ddef
832
+ /_lp /none ddef
833
+ } def
834
+ /x
835
+ {
836
+ /_gf exch ddef
837
+ findcmykcustomcolor
838
+ /_if exch ddef
839
+ /_fc
840
+ {
841
+ _lp /fill ne
842
+ {
843
+ _of setoverprint
844
+ _if _gf 1 exch sub setcustomcolor
845
+ /_lp /fill ddef
846
+ } if
847
+ } ddef
848
+ /_pf
849
+ {
850
+ _fc
851
+ fill
852
+ } ddef
853
+ /_psf
854
+ {
855
+ _fc
856
+ ashow
857
+ } ddef
858
+ /_pjsf
859
+ {
860
+ _fc
861
+ awidthshow
862
+ } ddef
863
+ /_lp /none ddef
864
+ } def
865
+ /X
866
+ {
867
+ /_gs exch ddef
868
+ findcmykcustomcolor
869
+ /_is exch ddef
870
+ /_sc
871
+ {
872
+ _lp /stroke ne
873
+ {
874
+ _os setoverprint
875
+ _is _gs 1 exch sub setcustomcolor
876
+ /_lp /stroke ddef
877
+ } if
878
+ } ddef
879
+ /_ps
880
+ {
881
+ _sc
882
+ stroke
883
+ } ddef
884
+ /_pss
885
+ {
886
+ _sc
887
+ ss
888
+ } ddef
889
+ /_pjss
890
+ {
891
+ _sc
892
+ jss
893
+ } ddef
894
+ /_lp /none ddef
895
+ } def
896
+ /A
897
+ {
898
+ pop
899
+ } def
900
+ /annotatepage
901
+ {
902
+ userdict /annotatepage 2 copy known {get exec} {pop pop} ifelse
903
+ } def
904
+ /discard
905
+ {
906
+ save /discardSave exch store
907
+ discardDict begin
908
+ /endString exch store
909
+ gt38?
910
+ {
911
+ 2 add
912
+ } if
913
+ load
914
+ stopped
915
+ pop
916
+ end
917
+ discardSave restore
918
+ } bind def
919
+ userdict /discardDict 7 dict dup begin
920
+ put
921
+ /pre38Initialize
922
+ {
923
+ /endStringLength endString length store
924
+ /newBuff buffer 0 endStringLength getinterval store
925
+ /newBuffButFirst newBuff 1 endStringLength 1 sub getinterval store
926
+ /newBuffLast newBuff endStringLength 1 sub 1 getinterval store
927
+ } def
928
+ /shiftBuffer
929
+ {
930
+ newBuff 0 newBuffButFirst putinterval
931
+ newBuffLast 0
932
+ currentfile read not
933
+ {
934
+ stop
935
+ } if
936
+ put
937
+ } def
938
+ 0
939
+ {
940
+ pre38Initialize
941
+ mark
942
+ currentfile newBuff readstring exch pop
943
+ {
944
+ {
945
+ newBuff endString eq
946
+ {
947
+ cleartomark stop
948
+ } if
949
+ shiftBuffer
950
+ } loop
951
+ }
952
+ {
953
+ stop
954
+ } ifelse
955
+ } def
956
+ 1
957
+ {
958
+ pre38Initialize
959
+ /beginString exch store
960
+ mark
961
+ currentfile newBuff readstring exch pop
962
+ {
963
+ {
964
+ newBuff beginString eq
965
+ {
966
+ /layerCount dup load 1 add store
967
+ }
968
+ {
969
+ newBuff endString eq
970
+ {
971
+ /layerCount dup load 1 sub store
972
+ layerCount 0 eq
973
+ {
974
+ cleartomark stop
975
+ } if
976
+ } if
977
+ } ifelse
978
+ shiftBuffer
979
+ } loop
980
+ }
981
+ {
982
+ stop
983
+ } ifelse
984
+ } def
985
+ 2
986
+ {
987
+ mark
988
+ {
989
+ currentfile buffer readline not
990
+ {
991
+ stop
992
+ } if
993
+ endString eq
994
+ {
995
+ cleartomark stop
996
+ } if
997
+ } loop
998
+ } def
999
+ 3
1000
+ {
1001
+ /beginString exch store
1002
+ /layerCnt 1 store
1003
+ mark
1004
+ {
1005
+ currentfile buffer readline not
1006
+ {
1007
+ stop
1008
+ } if
1009
+ dup beginString eq
1010
+ {
1011
+ pop /layerCnt dup load 1 add store
1012
+ }
1013
+ {
1014
+ endString eq
1015
+ {
1016
+ layerCnt 1 eq
1017
+ {
1018
+ cleartomark stop
1019
+ }
1020
+ {
1021
+ /layerCnt dup load 1 sub store
1022
+ } ifelse
1023
+ } if
1024
+ } ifelse
1025
+ } loop
1026
+ } def
1027
+ end
1028
+ userdict /clipRenderOff 15 dict dup begin
1029
+ put
1030
+ {
1031
+ /n /N /s /S /f /F /b /B
1032
+ }
1033
+ {
1034
+ {
1035
+ _doClip 1 eq
1036
+ {
1037
+ /_doClip 0 ddef clip
1038
+ } if
1039
+ newpath
1040
+ } def
1041
+ } forall
1042
+ /Tr /pop load def
1043
+ /Bb {} def
1044
+ /BB /pop load def
1045
+ /Bg {12 npop} def
1046
+ /Bm {6 npop} def
1047
+ /Bc /Bm load def
1048
+ /Bh {4 npop} def
1049
+ end
1050
+ /Lb
1051
+ {
1052
+ 4 npop
1053
+ 6 1 roll
1054
+ pop
1055
+ 4 1 roll
1056
+ pop pop pop
1057
+ 0 eq
1058
+ {
1059
+ 0 eq
1060
+ {
1061
+ (%AI5_BeginLayer) 1 (%AI5_EndLayer--) discard
1062
+ }
1063
+ {
1064
+ /clipForward? true def
1065
+
1066
+ /Tx /pop load def
1067
+ /Tj /pop load def
1068
+ currentdict end clipRenderOff begin begin
1069
+ } ifelse
1070
+ }
1071
+ {
1072
+ 0 eq
1073
+ {
1074
+ save /discardSave exch store
1075
+ } if
1076
+ } ifelse
1077
+ } bind def
1078
+ /LB
1079
+ {
1080
+ discardSave dup null ne
1081
+ {
1082
+ restore
1083
+ }
1084
+ {
1085
+ pop
1086
+ clipForward?
1087
+ {
1088
+ currentdict
1089
+ end
1090
+ end
1091
+ begin
1092
+
1093
+ /clipForward? false ddef
1094
+ } if
1095
+ } ifelse
1096
+ } bind def
1097
+ /Pb
1098
+ {
1099
+ pop pop
1100
+ 0 (%AI5_EndPalette) discard
1101
+ } bind def
1102
+ /Np
1103
+ {
1104
+ 0 (%AI5_End_NonPrinting--) discard
1105
+ } bind def
1106
+ /Ln /pop load def
1107
+ /Ap
1108
+ /pop load def
1109
+ /Ar
1110
+ {
1111
+ 72 exch div
1112
+ 0 dtransform dup mul exch dup mul add sqrt
1113
+ dup 1 lt
1114
+ {
1115
+ pop 1
1116
+ } if
1117
+ setflat
1118
+ } def
1119
+ /Mb
1120
+ {
1121
+ q
1122
+ } def
1123
+ /Md
1124
+ {
1125
+ } def
1126
+ /MB
1127
+ {
1128
+ Q
1129
+ } def
1130
+ /nc 3 dict def
1131
+ nc begin
1132
+ /setgray
1133
+ {
1134
+ pop
1135
+ } bind def
1136
+ /setcmykcolor
1137
+ {
1138
+ 4 npop
1139
+ } bind def
1140
+ /setcustomcolor
1141
+ {
1142
+ 2 npop
1143
+ } bind def
1144
+ currentdict readonly pop
1145
+ end
1146
+ currentdict readonly pop
1147
+ end
1148
+ setpacking
1149
+ %%EndResource
1150
+ %%EndProlog
1151
+ %%BeginSetup
1152
+ Adobe_level2_AI5 /initialize get exec
1153
+ Adobe_IllustratorA_AI5 /initialize get exec
1154
+ %AI5_Begin_NonPrinting
1155
+ Np
1156
+ %AI3_BeginPattern: (Yellow Stripe)
1157
+ (Yellow Stripe) 8.4499 4.6 80.4499 76.6 [
1158
+ %AI3_Tile
1159
+ (0 O 0 R 0 0.4 1 0 k 0 0.4 1 0 K) @
1160
+ (
1161
+ 800 Ar
1162
+ 0 J 0 j 3.6 w 4 M []0 d
1163
+ %AI3_Note:
1164
+ 0 D
1165
+ 8.1999 8.1999 m
1166
+ 80.6999 8.1999 L
1167
+ S
1168
+ 8.1999 22.6 m
1169
+ 80.6999 22.6 L
1170
+ S
1171
+ 8.1999 37.0001 m
1172
+ 80.6999 37.0001 L
1173
+ S
1174
+ 8.1999 51.3999 m
1175
+ 80.6999 51.3999 L
1176
+ S
1177
+ 8.1999 65.8 m
1178
+ 80.6999 65.8 L
1179
+ S
1180
+ 8.1999 15.3999 m
1181
+ 80.6999 15.3999 L
1182
+ S
1183
+ 8.1999 29.8 m
1184
+ 80.6999 29.8 L
1185
+ S
1186
+ 8.1999 44.1999 m
1187
+ 80.6999 44.1999 L
1188
+ S
1189
+ 8.1999 58.6 m
1190
+ 80.6999 58.6 L
1191
+ S
1192
+ 8.1999 73.0001 m
1193
+ 80.6999 73.0001 L
1194
+ S
1195
+ ) &
1196
+ ] E
1197
+ %AI3_EndPattern
1198
+ %AI5_End_NonPrinting--
1199
+ %AI5_Begin_NonPrinting
1200
+ Np
1201
+ 3 Bn
1202
+ %AI5_BeginGradient: (Black & White)
1203
+ (Black & White) 0 2 Bd
1204
+ [
1205
+ <
1206
+ FFFEFDFCFBFAF9F8F7F6F5F4F3F2F1F0EFEEEDECEBEAE9E8E7E6E5E4E3E2E1E0DFDEDDDCDBDAD9D8
1207
+ D7D6D5D4D3D2D1D0CFCECDCCCBCAC9C8C7C6C5C4C3C2C1C0BFBEBDBCBBBAB9B8B7B6B5B4B3B2B1B0
1208
+ AFAEADACABAAA9A8A7A6A5A4A3A2A1A09F9E9D9C9B9A999897969594939291908F8E8D8C8B8A8988
1209
+ 87868584838281807F7E7D7C7B7A797877767574737271706F6E6D6C6B6A69686766656463626160
1210
+ 5F5E5D5C5B5A595857565554535251504F4E4D4C4B4A494847464544434241403F3E3D3C3B3A3938
1211
+ 37363534333231302F2E2D2C2B2A292827262524232221201F1E1D1C1B1A19181716151413121110
1212
+ 0F0E0D0C0B0A09080706050403020100
1213
+ >
1214
+ 0 %_Br
1215
+ [
1216
+ 0 0 50 100 %_Bs
1217
+ 1 0 50 0 %_Bs
1218
+ BD
1219
+ %AI5_EndGradient
1220
+ %AI5_BeginGradient: (Red & Yellow)
1221
+ (Red & Yellow) 0 2 Bd
1222
+ [
1223
+ 0
1224
+ <
1225
+ 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F2021222324252627
1226
+ 28292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F
1227
+ 505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F7071727374757677
1228
+ 78797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9F
1229
+ A0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7
1230
+ C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEF
1231
+ F0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF
1232
+ >
1233
+ <
1234
+ FFFFFEFEFDFDFDFCFCFBFBFBFAFAF9F9F9F8F8F7F7F7F6F6F5F5F5F4F4F3F3F3F2F2F1F1F1F0F0EF
1235
+ EFEFEEEEEDEDEDECECEBEBEBEAEAE9E9E9E8E8E7E7E7E6E6E5E5E5E4E4E3E3E3E2E2E1E1E1E0E0DF
1236
+ DFDFDEDEDDDDDDDCDCDBDBDBDADAD9D9D9D8D8D7D7D7D6D6D5D5D5D4D4D3D3D3D2D2D1D1D1D0D0CF
1237
+ CFCFCECECDCDCDCCCCCBCBCBCACAC9C9C9C8C8C7C7C7C6C6C5C5C5C4C4C3C3C3C2C2C1C1C1C0C0BF
1238
+ BFBFBEBEBDBDBDBCBCBBBBBBBABAB9B9B9B8B8B7B7B7B6B6B5B5B5B4B4B3B3B3B2B2B1B1B1B0B0AF
1239
+ AFAFAEAEADADADACACABABABAAAAA9A9A9A8A8A7A7A7A6A6A5A5A5A4A4A3A3A3A2A2A1A1A1A0A09F
1240
+ 9F9F9E9E9D9D9D9C9C9B9B9B9A9A9999
1241
+ >
1242
+ 0
1243
+ 1 %_Br
1244
+ [
1245
+ 0 1 0.6 0 1 50 100 %_Bs
1246
+ 0 0 1 0 1 50 0 %_Bs
1247
+ BD
1248
+ %AI5_EndGradient
1249
+ %AI5_BeginGradient: (Yellow & Blue Radial)
1250
+ (Yellow & Blue Radial) 1 2 Bd
1251
+ [
1252
+ <
1253
+ 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F2021222324252627
1254
+ 28292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F
1255
+ 505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F7071727374757677
1256
+ 78797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9F
1257
+ A0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7
1258
+ C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEF
1259
+ F0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF
1260
+ >
1261
+ <
1262
+ 1415161718191A1B1C1D1E1F1F202122232425262728292A2A2B2C2D2E2F30313233343536363738
1263
+ 393A3B3C3D3E3F40414142434445464748494A4B4C4D4D4E4F50515253545556575858595A5B5C5D
1264
+ 5E5F60616263646465666768696A6B6C6D6E6F6F707172737475767778797A7B7B7C7D7E7F808182
1265
+ 83848586868788898A8B8C8D8E8F90919292939495969798999A9B9C9D9D9E9FA0A1A2A3A4A5A6A7
1266
+ A8A9A9AAABACADAEAFB0B1B2B3B4B4B5B6B7B8B9BABBBCBDBEBFC0C0C1C2C3C4C5C6C7C8C9CACBCB
1267
+ CCCDCECFD0D1D2D3D4D5D6D7D7D8D9DADBDCDDDEDFE0E1E2E2E3E4E5E6E7E8E9EAEBECEDEEEEEFF0
1268
+ F1F2F3F4F5F6F7F8F9F9FAFBFCFDFEFF
1269
+ >
1270
+ <
1271
+ ABAAAAA9A8A7A7A6A5A5A4A3A3A2A1A1A09F9F9E9D9D9C9B9B9A9999989797969595949393929191
1272
+ 908F8F8E8D8D8C8B8B8A8989888787868585848383828181807F7F7E7D7D7C7B7B7A797978777776
1273
+ 7575747373727171706F6F6E6D6D6C6B6B6A6969686767666565646362626160605F5E5E5D5C5C5B
1274
+ 5A5A5958585756565554545352525150504F4E4E4D4C4C4B4A4A4948484746464544444342424140
1275
+ 403F3E3E3D3C3C3B3A3A3938383736363534343332323130302F2E2E2D2C2C2B2A2A292828272626
1276
+ 25242423222121201F1F1E1D1D1C1B1B1A1919181717161515141313121111100F0F0E0D0D0C0B0B
1277
+ 0A090908070706050504030302010100
1278
+ >
1279
+ 0
1280
+ 1 %_Br
1281
+ [
1282
+ 0 0.08 0.67 0 1 50 14 %_Bs
1283
+ 1 1 0 0 1 50 100 %_Bs
1284
+ BD
1285
+ %AI5_EndGradient
1286
+ %AI5_End_NonPrinting--
1287
+ %AI5_BeginPalette
1288
+ 144 170 Pb
1289
+ Pn
1290
+ Pc
1291
+ 1 g
1292
+ Pc
1293
+ 0 g
1294
+ Pc
1295
+ 0 0 0 0 k
1296
+ Pc
1297
+ 0.75 g
1298
+ Pc
1299
+ 0.5 g
1300
+ Pc
1301
+ 0.25 g
1302
+ Pc
1303
+ 0 g
1304
+ Pc
1305
+ Bb
1306
+ 2 (Black & White) -4014 4716 0 0 1 0 0 1 0 0 Bg
1307
+ 0 BB
1308
+ Pc
1309
+ 0.25 0 0 0 k
1310
+ Pc
1311
+ 0.5 0 0 0 k
1312
+ Pc
1313
+ 0.75 0 0 0 k
1314
+ Pc
1315
+ 1 0 0 0 k
1316
+ Pc
1317
+ 0.25 0.25 0 0 k
1318
+ Pc
1319
+ 0.5 0.5 0 0 k
1320
+ Pc
1321
+ 0.75 0.75 0 0 k
1322
+ Pc
1323
+ 1 1 0 0 k
1324
+ Pc
1325
+ Bb
1326
+ 2 (Red & Yellow) -4014 4716 0 0 1 0 0 1 0 0 Bg
1327
+ 0 BB
1328
+ Pc
1329
+ 0 0.25 0 0 k
1330
+ Pc
1331
+ 0 0.5 0 0 k
1332
+ Pc
1333
+ 0 0.75 0 0 k
1334
+ Pc
1335
+ 0 1 0 0 k
1336
+ Pc
1337
+ 0 0.25 0.25 0 k
1338
+ Pc
1339
+ 0 0.5 0.5 0 k
1340
+ Pc
1341
+ 0 0.75 0.75 0 k
1342
+ Pc
1343
+ 0 1 1 0 k
1344
+ Pc
1345
+ Bb
1346
+ 0 0 0 0 Bh
1347
+ 2 (Yellow & Blue Radial) -4014 4716 0 0 1 0 0 1 0 0 Bg
1348
+ 0 BB
1349
+ Pc
1350
+ 0 0 0.25 0 k
1351
+ Pc
1352
+ 0 0 0.5 0 k
1353
+ Pc
1354
+ 0 0 0.75 0 k
1355
+ Pc
1356
+ 0 0 1 0 k
1357
+ Pc
1358
+ 0.25 0 0.25 0 k
1359
+ Pc
1360
+ 0.5 0 0.5 0 k
1361
+ Pc
1362
+ 0.75 0 0.75 0 k
1363
+ Pc
1364
+ 1 0 1 0 k
1365
+ Pc
1366
+ (Yellow Stripe) 0 0 1 1 0 0 0 0 0 [1 0 0 1 0 0] p
1367
+ Pc
1368
+ 0.25 0.125 0 0 k
1369
+ Pc
1370
+ 0.5 0.25 0 0 k
1371
+ Pc
1372
+ 0.75 0.375 0 0 k
1373
+ Pc
1374
+ 1 0.5 0 0 k
1375
+ Pc
1376
+ 0.125 0.25 0 0 k
1377
+ Pc
1378
+ 0.25 0.5 0 0 k
1379
+ Pc
1380
+ 0.375 0.75 0 0 k
1381
+ Pc
1382
+ 0.5 1 0 0 k
1383
+ Pc
1384
+ 0.375 0.375 0.75 0 k
1385
+ Pc
1386
+ 0 0.25 0.125 0 k
1387
+ Pc
1388
+ 0 0.5 0.25 0 k
1389
+ Pc
1390
+ 0 0.75 0.375 0 k
1391
+ Pc
1392
+ 0 1 0.5 0 k
1393
+ Pc
1394
+ 0 0.125 0.25 0 k
1395
+ Pc
1396
+ 0 0.25 0.5 0 k
1397
+ Pc
1398
+ 0 0.375 0.75 0 k
1399
+ Pc
1400
+ 0 0.5 1 0 k
1401
+ Pc
1402
+ 0 0.79 0.91 0 (TCL RED) 0 x
1403
+ Pc
1404
+ 0.125 0 0.25 0 k
1405
+ Pc
1406
+ 0.25 0 0.5 0 k
1407
+ Pc
1408
+ 0.375 0 0.75 0 k
1409
+ Pc
1410
+ 0.5 0 1 0 k
1411
+ Pc
1412
+ 0.25 0 0.125 0 k
1413
+ Pc
1414
+ 0.5 0 0.25 0 k
1415
+ Pc
1416
+ 0.75 0 0.375 0 k
1417
+ Pc
1418
+ 1 0 0.5 0 k
1419
+ Pc
1420
+ 0.5 1 0 0 k
1421
+ Pc
1422
+ 0.25 0.125 0.125 0 k
1423
+ Pc
1424
+ 0.5 0.25 0.25 0 k
1425
+ Pc
1426
+ 0.75 0.375 0.375 0 k
1427
+ Pc
1428
+ 1 0.5 0.5 0 k
1429
+ Pc
1430
+ 0.25 0.25 0.125 0 k
1431
+ Pc
1432
+ 0.5 0.5 0.25 0 k
1433
+ Pc
1434
+ 0.75 0.75 0.375 0 k
1435
+ Pc
1436
+ 1 1 0.5 0 k
1437
+ Pc
1438
+ 0 1 0.5 0 k
1439
+ Pc
1440
+ 0.125 0.25 0.125 0 k
1441
+ Pc
1442
+ 0.25 0.5 0.25 0 k
1443
+ Pc
1444
+ 0.375 0.75 0.375 0 k
1445
+ Pc
1446
+ 0.5 1 0.5 0 k
1447
+ Pc
1448
+ 0.125 0.25 0.25 0 k
1449
+ Pc
1450
+ 0.25 0.5 0.5 0 k
1451
+ Pc
1452
+ 0.375 0.75 0.75 0 k
1453
+ Pc
1454
+ 0.5 1 1 0 k
1455
+ Pc
1456
+ 0.75 0.75 0.375 0 k
1457
+ Pc
1458
+ 0.125 0.125 0.25 0 k
1459
+ Pc
1460
+ 0.25 0.25 0.5 0 k
1461
+ Pc
1462
+ 0.375 0.375 0.75 0 k
1463
+ Pc
1464
+ 0.5 0.5 1 0 k
1465
+ Pc
1466
+ 0.25 0.125 0.25 0 k
1467
+ Pc
1468
+ 0.5 0.25 0.5 0 k
1469
+ Pc
1470
+ 0.75 0.375 0.75 0 k
1471
+ Pc
1472
+ 1 0.5 1 0 k
1473
+ Pc
1474
+ 0 0.79 0.91 0 (TCL RED) 0 x
1475
+ Pc
1476
+ 0 0 0 0 k
1477
+ Pc
1478
+ Pc
1479
+ Pc
1480
+ Pc
1481
+ Pc
1482
+ Pc
1483
+ Pc
1484
+ Pc
1485
+ 1 0.5 0.5 0 k
1486
+ Pc
1487
+ 0 0 0 0 k
1488
+ Pc
1489
+ Pc
1490
+ Pc
1491
+ Pc
1492
+ Pc
1493
+ Pc
1494
+ Pc
1495
+ Pc
1496
+ 0 0.25 1 0 (Orange Yellow) 0 x
1497
+ Pc
1498
+ 0 0 0 0 k
1499
+ Pc
1500
+ Pc
1501
+ Pc
1502
+ Pc
1503
+ Pc
1504
+ Pc
1505
+ Pc
1506
+ Pc
1507
+ 0 1 0.5 0 k
1508
+ Pc
1509
+ 0 0 0 0 k
1510
+ Pc
1511
+ Pc
1512
+ Pc
1513
+ Pc
1514
+ Pc
1515
+ Pc
1516
+ Pc
1517
+ Pc
1518
+ 1 0 0.5 0 k
1519
+ Pc
1520
+ 0 0 0 0 k
1521
+ Pc
1522
+ Pc
1523
+ Pc
1524
+ Pc
1525
+ Pc
1526
+ Pc
1527
+ Pc
1528
+ Pc
1529
+ 0 0.45 1 0 (Orange) 0 x
1530
+ Pc
1531
+ 0 0 0 0 k
1532
+ Pc
1533
+ Pc
1534
+ Pc
1535
+ Pc
1536
+ Pc
1537
+ Pc
1538
+ Pc
1539
+ Pc
1540
+ 0.375 0.375 0.75 0 k
1541
+ Pc
1542
+ 0 0 0 0 k
1543
+ Pc
1544
+ Pc
1545
+ Pc
1546
+ Pc
1547
+ Pc
1548
+ Pc
1549
+ Pc
1550
+ Pc
1551
+ 0 0.79 0.91 0 (TCL RED) 0 x
1552
+ Pc
1553
+ 0 0 0 0 k
1554
+ Pc
1555
+ Pc
1556
+ Pc
1557
+ Pc
1558
+ Pc
1559
+ Pc
1560
+ Pc
1561
+ Pc
1562
+ 1 0.65 0 0 k
1563
+ Pc
1564
+ 0 0 0 0 k
1565
+ Pc
1566
+ Pc
1567
+ Pc
1568
+ Pc
1569
+ Pc
1570
+ Pc
1571
+ Pc
1572
+ Pc
1573
+ 0 0 1 0 k
1574
+ Pc
1575
+ PB
1576
+ %AI5_EndPalette
1577
+ %%EndSetup
1578
+ %AI5_BeginLayer
1579
+ 1 1 1 1 0 0 0 79 128 255 Lb
1580
+ (Layer 1) Ln
1581
+ 0 A
1582
+ u
1583
+ 1 Ap
1584
+ 0 O
1585
+ 0 0.79 0.91 0 (TCL RED) 0 x
1586
+ 800 Ar
1587
+ 0 J 0 j 1.25 w 4 M []0 d
1588
+ %AI3_Note:
1589
+ 0 D
1590
+ 294.5207 335.3041 m
1591
+ 368.2181 333.001 L
1592
+ 363.6121 423.9713 L
1593
+ 370.5213 507.1689 L
1594
+ 336.5513 505.4417 L
1595
+ 320.7179 511.775 L
1596
+ 251.3386 508.0325 L
1597
+ 254.7931 425.9866 L
1598
+ 251.3386 331.5616 L
1599
+ 294.5207 335.3041 L
1600
+ f
1601
+ u
1602
+ 0 Ap
1603
+ 1 0.65 0 0 k
1604
+ 1 w
1605
+ 318.1366 400.9627 m
1606
+ 311.8663 399.2526 l
1607
+ 315.2864 407.5177 l
1608
+ 318.7064 430.6032 l
1609
+ 314.4314 431.4581 l
1610
+ 319.5616 438.5832 l
1611
+ 325.9526 462.6014 l
1612
+ 314.7164 460.2436 l
1613
+ 320.6412 471.0911 326.9284 478.1557 v
1614
+ 318.7064 484.469 l
1615
+ 292.2183 472.8011 299.3434 434.8954 v
1616
+ 293.8679 435.8542 l
1617
+ 299.1189 396.1175 l
1618
+ 294.6797 394.9775 l
1619
+ 299.2277 385.6974 305.5963 381.2973 v
1620
+ 306.1744 380.8979 297.6162 412.3629 306.7363 443.7133 c
1621
+ 307.5914 441.7183 l
1622
+ 300.3238 408.3015 307.5914 381.2973 v
1623
+ 307.9261 380.656 311.5598 381.0836 v
1624
+ 318.1366 393.4813 318.1366 400.9627 v
1625
+ f
1626
+ u
1627
+ *u
1628
+ 1 g
1629
+ 271.4311 372.5074 m
1630
+ 272.7184 372.5074 L
1631
+ 272.7184 375.1913 L
1632
+ 273.2858 375.1913 273.8313 375.1913 274.3768 375.2786 c
1633
+ 274.3768 372.5074 L
1634
+ 276.2969 372.5074 L
1635
+ 276.2969 372.0056 L
1636
+ 274.3768 372.0056 L
1637
+ 274.3768 365.3286 L
1638
+ 274.3768 364.9359 274.3768 364.3467 275.2059 364.3467 c
1639
+ 275.7733 364.3467 276.0787 364.7395 276.4279 365.1541 c
1640
+ 276.777 364.9141 L
1641
+ 276.3624 364.0849 275.2932 363.583 274.4204 363.583 c
1642
+ 272.8494 363.583 272.6748 364.434 272.6748 365.4814 c
1643
+ 272.6748 372.0056 L
1644
+ 271.4311 372.0056 L
1645
+ 271.4311 372.5074 l
1646
+ f
1647
+ *U
1648
+ *u
1649
+ 290.5617 366.5724 m
1650
+ 290.0598 365.0232 289.187 363.6703 286.9178 363.583 c
1651
+ 283.5356 363.583 282.5101 366.3978 282.5101 367.9034 c
1652
+ 282.5101 371.7874 285.6304 372.7256 286.8741 372.7256 c
1653
+ 288.2924 372.7256 290.2999 372.071 290.2999 370.3909 c
1654
+ 290.2999 369.8018 289.9289 369.2344 289.318 369.2344 c
1655
+ 288.7288 369.2344 288.2924 369.6272 288.2924 370.26 c
1656
+ 288.2924 371.111 288.9907 371.2201 288.9907 371.4601 c
1657
+ 288.9907 372.0492 287.616 372.2892 287.136 372.2892 c
1658
+ 285.0412 372.2892 284.4957 370.7618 284.4957 367.9034 c
1659
+ 284.4957 366.5942 284.823 365.5905 284.9539 365.285 c
1660
+ 285.2812 364.5649 285.9577 364.1067 287.0923 364.0413 c
1661
+ 288.3579 363.9758 289.5798 365.0013 290.1035 366.5724 C
1662
+ 290.5617 366.5724 l
1663
+ f
1664
+ *U
1665
+ *u
1666
+ 296.6 363.8667 m
1667
+ 296.6 364.3686 L
1668
+ 298.2802 364.3686 L
1669
+ 298.2802 378.3989 L
1670
+ 296.6 378.3989 L
1671
+ 296.6 378.9007 L
1672
+ 297.5383 378.9007 L
1673
+ 298.3457 378.9007 299.1966 378.9444 299.9822 379.0971 c
1674
+ 299.9822 364.3686 L
1675
+ 301.6623 364.3686 L
1676
+ 301.6623 363.8667 L
1677
+ 296.6 363.8667 l
1678
+ f
1679
+ *U
1680
+ *u
1681
+ 317.4527 372.5074 m
1682
+ 318.7401 372.5074 L
1683
+ 318.7401 375.1913 L
1684
+ 319.3074 375.1913 319.8529 375.1913 320.3984 375.2786 c
1685
+ 320.3984 372.5074 L
1686
+ 322.3186 372.5074 L
1687
+ 322.3186 372.0056 L
1688
+ 320.3984 372.0056 L
1689
+ 320.3984 365.3286 L
1690
+ 320.3984 364.9359 320.3984 364.3467 321.2276 364.3467 c
1691
+ 321.7949 364.3467 322.1004 364.7395 322.4495 365.1541 c
1692
+ 322.7986 364.9141 L
1693
+ 322.384 364.0849 321.3148 363.583 320.442 363.583 c
1694
+ 318.871 363.583 318.6964 364.434 318.6964 365.4814 c
1695
+ 318.6964 372.0056 L
1696
+ 317.4527 372.0056 L
1697
+ 317.4527 372.5074 l
1698
+ f
1699
+ *U
1700
+ *u
1701
+ 333.7467 372.0056 m
1702
+ 333.7467 372.5074 L
1703
+ 337.3252 372.5074 L
1704
+ 337.3252 372.0056 L
1705
+ 335.9942 372.0056 L
1706
+ 332.983 369.3872 L
1707
+ 337.1288 364.3686 L
1708
+ 338.0453 364.3686 L
1709
+ 338.0453 363.8667 L
1710
+ 333.8995 363.8667 L
1711
+ 333.8995 364.3686 L
1712
+ 334.9905 364.3686 L
1713
+ 331.3465 368.798 L
1714
+ 335.0341 371.9401 L
1715
+ 335.0341 372.0056 L
1716
+ 333.7467 372.0056 l
1717
+ f
1718
+ 328.4881 363.8667 m
1719
+ 328.4881 364.3686 L
1720
+ 329.6227 364.3686 L
1721
+ 329.6227 378.3989 L
1722
+ 328.4881 378.3989 L
1723
+ 328.4881 378.9007 L
1724
+ 328.8809 378.9007 L
1725
+ 329.6882 378.9007 330.5392 378.9444 331.3247 379.0971 c
1726
+ 331.3247 364.3686 L
1727
+ 332.6339 364.3686 L
1728
+ 332.6339 363.8667 L
1729
+ 328.4881 363.8667 l
1730
+ f
1731
+ *U
1732
+ u
1733
+ 309.5341 446.5364 m
1734
+ 305.6878 429.3874 306.7947 401.5837 v
1735
+ 307.1266 393.2441 308.0387 385.5779 309.1527 378.9301 C
1736
+ 309.1587 378.9297 L
1737
+ 309.8832 373.0923 310.3679 370.9791 312.2568 363.9454 C
1738
+ 312.1466 359.4091 L
1739
+ 297.0216 407.7015 309.5341 446.5364 V
1740
+ f
1741
+ 318.8187 461.4058 m
1742
+ 322.2203 463.1 327.0966 463.7165 v
1743
+ 332.427 453.9463 319.3087 437.2655 v
1744
+ 327.1346 454.735 325.2889 460.2079 v
1745
+ 323.225 461.4903 318.8187 461.4058 v
1746
+ f
1747
+ 317.2065 432.0795 m
1748
+ 320.2613 431.3723 321.7279 432.5601 v
1749
+ 318.8383 421.2839 319.5958 415.0813 v
1750
+ 320.3533 408.8787 314.8881 404.9079 y
1751
+ 319.5435 410.7982 318.0802 415.5959 v
1752
+ 317.0657 418.9214 318.2006 427.4326 319.4809 430.1349 c
1753
+ 318.2853 430.3025 317.2065 432.0795 v
1754
+ f
1755
+ 314.1861 402.3703 m
1756
+ 319.2343 402.9744 319.7646 405.5244 v
1757
+ 320.3824 390.2725 313.3689 383.9873 v
1758
+ 318.7204 392.3347 317.8807 400.9697 v
1759
+ 314.1861 402.3703 l
1760
+ f
1761
+ 299.9864 396.0219 m
1762
+ 298.3586 394.1986 293.4739 398.2203 v
1763
+ 295.0301 387.9694 304.6978 383.2767 v
1764
+ 298.0444 388.2897 296.2519 393.7045 v
1765
+ 298.6029 394.3966 299.9864 396.0219 v
1766
+ f
1767
+ 298.4281 399.9096 m
1768
+ 291.8229 416.6749 293.2382 439.3286 v
1769
+ 294.7808 435.2261 299.738 433.7875 v
1770
+ 297.4026 433.3101 296.0372 433.517 v
1771
+ 292.5816 423.9535 298.4281 399.9096 v
1772
+ f
1773
+ 326.1736 477.812 m
1774
+ 323.6983 496.0028 308.2122 477.6066 v
1775
+ 295.8813 462.9582 297.3508 450.5217 298.1072 443.5831 c
1776
+ 298.3007 441.8079 295.8131 462.1138 309.3231 475.4768 c
1777
+ 322.8328 488.8398 325.8846 478.5879 326.1736 477.812 c
1778
+ f
1779
+ U
1780
+ 0 0 1 0 k
1781
+ 303.3623 493.3274 m
1782
+ 291.211 496.7978 287.3437 456.5222 v
1783
+ 284.3599 468.9535 292.0777 486.5353 v
1784
+ 299.7955 504.1172 303.3623 493.3274 y
1785
+ f
1786
+ 288.2873 496.2718 m
1787
+ 282.0897 486.9502 283.4958 477.0213 v
1788
+ 278.7953 495.712 288.2873 496.2718 v
1789
+ f
1790
+ 333.8987 470.1328 m
1791
+ 341.2276 472.8361 330.7334 445.5571 v
1792
+ 336.1654 453.5292 339.5844 466.0531 v
1793
+ 341.7789 474.0903 333.8987 470.1328 y
1794
+ f
1795
+ 345.752 472.2583 m
1796
+ 350.9334 467.5681 347.2615 461.3636 v
1797
+ 356.4779 471.0481 345.752 472.2583 v
1798
+ f
1799
+ U
1800
+ *u
1801
+ 273.1765 354.3318 m
1802
+ 273.1765 353.7507 273.1305 353.2908 272.5159 353.2908 c
1803
+ 271.8846 353.2908 271.8554 353.7674 271.8554 354.3318 c
1804
+ 271.8554 356.485 L
1805
+ 272.148 356.485 L
1806
+ 272.148 354.3486 L
1807
+ 272.148 353.8259 272.1773 353.5751 272.5159 353.5751 c
1808
+ 272.8504 353.5751 272.8839 353.8259 272.8839 354.3486 c
1809
+ 272.8839 356.485 L
1810
+ 273.1765 356.485 L
1811
+ 273.1765 354.3318 l
1812
+ f
1813
+ *U
1814
+ *u
1815
+ 277.1612 356.485 m
1816
+ 276.9062 356.485 L
1817
+ 276.9062 354.3862 l
1818
+ 276.9062 354.2482 276.9271 354.1061 276.9355 353.9681 C
1819
+ 276.9229 353.9681 l
1820
+ 276.8937 354.0768 276.8644 354.1855 276.8268 354.2942 C
1821
+ 276.1035 356.485 L
1822
+ 275.8484 356.485 L
1823
+ 275.8484 353.3326 L
1824
+ 276.1035 353.3326 L
1825
+ 276.1035 355.2474 l
1826
+ 276.1035 355.4523 276.0826 355.653 276.07 355.8579 C
1827
+ 276.0867 355.8579 l
1828
+ 276.1244 355.7241 276.1495 355.5819 276.1954 355.4523 C
1829
+ 276.9062 353.3326 L
1830
+ 277.1612 353.3326 l
1831
+ 277.1612 356.485 L
1832
+ f
1833
+ *U
1834
+ *u
1835
+ 280.1421 353.3326 m
1836
+ 279.8494 353.3326 L
1837
+ 279.8494 356.485 L
1838
+ 280.1421 356.485 L
1839
+ 280.1421 353.3326 l
1840
+ f
1841
+ *U
1842
+ *u
1843
+ 283.5141 353.3326 m
1844
+ 283.2549 353.3326 L
1845
+ 282.6194 356.485 L
1846
+ 282.9205 356.485 L
1847
+ 283.3344 354.1897 L
1848
+ 283.3511 354.1102 283.3678 353.9054 283.3845 353.7632 c
1849
+ 283.4013 353.7632 L
1850
+ 283.4138 353.9054 283.4305 354.1144 283.4431 354.1897 c
1851
+ 283.8528 356.485 L
1852
+ 284.1496 356.485 L
1853
+ 283.5141 353.3326 l
1854
+ f
1855
+ *U
1856
+ *u
1857
+ 287.6238 356.2174 m
1858
+ 286.9256 356.2174 L
1859
+ 286.9256 355.1053 L
1860
+ 287.6029 355.1053 L
1861
+ 287.6029 354.8377 L
1862
+ 286.9256 354.8377 L
1863
+ 286.9256 353.6002 L
1864
+ 287.6238 353.6002 L
1865
+ 287.6238 353.3326 L
1866
+ 286.6329 353.3326 L
1867
+ 286.6329 356.485 L
1868
+ 287.6238 356.485 L
1869
+ 287.6238 356.2174 l
1870
+ f
1871
+ *U
1872
+ *u
1873
+ 290.2278 353.3326 m
1874
+ 290.2278 356.485 L
1875
+ 290.5414 356.485 L
1876
+ 290.9804 356.485 291.4026 356.4515 291.4026 355.6823 c
1877
+ 291.4026 355.2809 291.3148 354.8879 290.8089 354.8712 c
1878
+ 291.5072 353.3326 L
1879
+ 291.1978 353.3326 L
1880
+ 290.5288 354.8753 L
1881
+ 290.5205 354.8753 L
1882
+ 290.5205 353.3326 L
1883
+ 290.2278 353.3326 l
1884
+ f
1885
+ 290.5205 355.1137 m
1886
+ 290.625 355.1137 L
1887
+ 291.0347 355.1137 291.1016 355.2558 291.1016 355.6697 c
1888
+ 291.1016 356.1672 290.9511 356.2174 290.579 356.2174 c
1889
+ 290.5205 356.2174 L
1890
+ 290.5205 355.1137 l
1891
+ f
1892
+ *U
1893
+ *u
1894
+ 295.0981 355.9875 m
1895
+ 294.9727 356.1296 294.8347 356.2425 294.634 356.2425 c
1896
+ 294.3414 356.2425 294.1783 356 294.1783 355.7324 c
1897
+ 294.1783 355.3645 294.4459 355.1931 294.7176 355.0091 c
1898
+ 294.9852 354.821 295.2528 354.6203 295.2528 354.1855 c
1899
+ 295.2528 353.7256 294.9559 353.2908 294.4626 353.2908 c
1900
+ 294.287 353.2908 294.1072 353.341 293.9651 353.4497 c
1901
+ 293.9651 353.8301 L
1902
+ 294.0989 353.688 294.2745 353.5751 294.4751 353.5751 c
1903
+ 294.7845 353.5751 294.9559 353.8468 294.9518 354.1311 c
1904
+ 294.9559 354.4991 294.6842 354.6621 294.4166 354.8503 c
1905
+ 294.149 355.0342 293.8773 355.2391 293.8773 355.6906 c
1906
+ 293.8773 356.1129 294.1365 356.5268 294.6006 356.5268 c
1907
+ 294.7887 356.5268 294.9476 356.4641 295.0981 356.3596 C
1908
+ 295.0981 355.9875 l
1909
+ f
1910
+ *U
1911
+ *u
1912
+ 299.0865 353.3326 m
1913
+ 298.773 353.3326 L
1914
+ 298.6559 353.9806 L
1915
+ 297.9869 353.9806 L
1916
+ 297.8741 353.3326 L
1917
+ 297.5605 353.3326 L
1918
+ 298.1793 356.485 L
1919
+ 298.4552 356.485 L
1920
+ 299.0865 353.3326 l
1921
+ f
1922
+ 298.6099 354.2357 m
1923
+ 298.4009 355.444 L
1924
+ 298.3632 355.6572 298.3465 355.8746 298.3214 356.0878 c
1925
+ 298.3047 356.0878 L
1926
+ 298.2754 355.8746 298.2545 355.6572 298.2211 355.444 c
1927
+ 298.0371 354.2357 L
1928
+ 298.6099 354.2357 l
1929
+ f
1930
+ *U
1931
+ *u
1932
+ 301.8124 353.6002 m
1933
+ 302.4981 353.6002 L
1934
+ 302.4981 353.3326 L
1935
+ 301.5198 353.3326 L
1936
+ 301.5198 356.485 L
1937
+ 301.8124 356.485 L
1938
+ 301.8124 353.6002 l
1939
+ f
1940
+ *U
1941
+ *u
1942
+ 309.0754 355.9875 m
1943
+ 308.95 356.1296 308.812 356.2425 308.6114 356.2425 c
1944
+ 308.3187 356.2425 308.1556 356 308.1556 355.7324 c
1945
+ 308.1556 355.3645 308.4232 355.1931 308.695 355.0091 c
1946
+ 308.9626 354.821 309.2301 354.6203 309.2301 354.1855 c
1947
+ 309.2301 353.7256 308.9333 353.2908 308.4399 353.2908 c
1948
+ 308.2643 353.2908 308.0846 353.341 307.9424 353.4497 c
1949
+ 307.9424 353.8301 L
1950
+ 308.0762 353.688 308.2518 353.5751 308.4525 353.5751 c
1951
+ 308.7619 353.5751 308.9333 353.8468 308.9291 354.1311 c
1952
+ 308.9333 354.4991 308.6615 354.6621 308.3939 354.8503 c
1953
+ 308.1264 355.0342 307.8546 355.2391 307.8546 355.6906 c
1954
+ 307.8546 356.1129 308.1138 356.5268 308.5779 356.5268 c
1955
+ 308.766 356.5268 308.9249 356.4641 309.0754 356.3596 C
1956
+ 309.0754 355.9875 l
1957
+ f
1958
+ *U
1959
+ *u
1960
+ 312.9468 353.7172 m
1961
+ 312.8339 353.6378 312.7001 353.5751 312.558 353.5751 c
1962
+ 311.9977 353.5751 311.9977 354.5492 311.9977 354.9172 c
1963
+ 311.9977 355.5025 312.0688 356.2425 312.5789 356.2425 c
1964
+ 312.7252 356.2425 312.8297 356.184 312.9468 356.1045 C
1965
+ 312.9468 356.4265 l
1966
+ 312.8506 356.4975 312.6918 356.5268 312.5747 356.5268 c
1967
+ 311.7134 356.5268 311.6967 355.306 311.6967 354.7959 c
1968
+ 311.6967 354.2566 311.8054 353.2908 312.5454 353.2908 c
1969
+ 312.6834 353.2908 312.8381 353.3451 312.9468 353.4204 c
1970
+ 312.9468 353.7172 L
1971
+ f
1972
+ *U
1973
+ *u
1974
+ 315.5053 353.3326 m
1975
+ 315.5053 356.485 L
1976
+ 315.8188 356.485 L
1977
+ 316.2578 356.485 316.6801 356.4515 316.6801 355.6823 c
1978
+ 316.6801 355.2809 316.5923 354.8879 316.0864 354.8712 c
1979
+ 316.7846 353.3326 L
1980
+ 316.4752 353.3326 L
1981
+ 315.8063 354.8753 L
1982
+ 315.7979 354.8753 L
1983
+ 315.7979 353.3326 L
1984
+ 315.5053 353.3326 l
1985
+ f
1986
+ 315.7979 355.1137 m
1987
+ 315.9025 355.1137 L
1988
+ 316.3122 355.1137 316.3791 355.2558 316.3791 355.6697 c
1989
+ 316.3791 356.1672 316.2286 356.2174 315.8565 356.2174 c
1990
+ 315.7979 356.2174 L
1991
+ 315.7979 355.1137 l
1992
+ f
1993
+ *U
1994
+ *u
1995
+ 319.5728 353.3326 m
1996
+ 319.2802 353.3326 L
1997
+ 319.2802 356.485 L
1998
+ 319.5728 356.485 L
1999
+ 319.5728 353.3326 l
2000
+ f
2001
+ *U
2002
+ *u
2003
+ 322.2551 353.3326 m
2004
+ 322.2551 356.485 L
2005
+ 322.5812 356.485 L
2006
+ 323.0327 356.485 323.4341 356.4432 323.4341 355.6655 c
2007
+ 323.4341 355.0551 323.2209 354.8419 322.623 354.8419 c
2008
+ 322.5477 354.8419 L
2009
+ 322.5477 353.3326 L
2010
+ 322.2551 353.3326 l
2011
+ f
2012
+ 322.5477 355.1095 m
2013
+ 322.6606 355.1095 L
2014
+ 323.0703 355.1095 323.1205 355.26 323.1331 355.6655 c
2015
+ 323.1331 356.1004 323.016 356.2174 322.6063 356.2174 c
2016
+ 322.5477 356.2174 L
2017
+ 322.5477 355.1095 l
2018
+ f
2019
+ *U
2020
+ *u
2021
+ 326.9539 356.485 m
2022
+ 325.7164 356.485 L
2023
+ 325.7164 356.2174 L
2024
+ 326.1888 356.2174 L
2025
+ 326.1888 353.3326 L
2026
+ 326.4815 353.3326 L
2027
+ 326.4815 356.2174 L
2028
+ 326.9539 356.2174 l
2029
+ 326.9539 356.485 L
2030
+ f
2031
+ *U
2032
+ *u
2033
+ 329.7077 353.3326 m
2034
+ 329.4151 353.3326 L
2035
+ 329.4151 356.485 L
2036
+ 329.7077 356.485 L
2037
+ 329.7077 353.3326 l
2038
+ f
2039
+ *U
2040
+ *u
2041
+ 333.7028 353.3326 m
2042
+ 333.4477 353.3326 L
2043
+ 332.737 355.4523 L
2044
+ 332.691 355.5819 332.6659 355.7241 332.6283 355.8579 c
2045
+ 332.6116 355.8579 L
2046
+ 332.6241 355.653 332.645 355.4523 332.645 355.2474 c
2047
+ 332.645 353.3326 L
2048
+ 332.39 353.3326 L
2049
+ 332.39 356.485 L
2050
+ 332.645 356.485 L
2051
+ 333.3683 354.2942 L
2052
+ 333.4059 354.1855 333.4352 354.0768 333.4645 353.9681 c
2053
+ 333.477 353.9681 L
2054
+ 333.4686 354.1061 333.4477 354.2482 333.4477 354.3862 c
2055
+ 333.4477 356.485 L
2056
+ 333.7028 356.485 L
2057
+ 333.7028 353.3326 l
2058
+ f
2059
+ *U
2060
+ *u
2061
+ 336.9846 354.9966 m
2062
+ 337.7037 354.9966 L
2063
+ 337.7037 354.4154 L
2064
+ 337.7037 353.9179 337.6787 353.2908 337.0264 353.2908 c
2065
+ 336.3617 353.2908 336.299 353.989 336.299 354.9841 c
2066
+ 336.299 355.7283 336.3868 356.5268 337.0557 356.5268 c
2067
+ 337.432 356.5268 337.6201 356.276 337.6996 355.9331 c
2068
+ 337.4111 355.8202 L
2069
+ 337.3776 356.0084 337.2982 356.2425 337.0682 356.2425 c
2070
+ 336.6334 356.2383 336.6 355.5652 336.6 355.0091 c
2071
+ 336.6 353.8427 336.7463 353.5751 337.0515 353.5751 c
2072
+ 337.3818 353.5751 337.4111 353.8176 337.4111 354.4907 c
2073
+ 337.4111 354.729 L
2074
+ 336.9846 354.729 L
2075
+ 336.9846 354.9966 l
2076
+ f
2077
+ *U
2078
+ U
2079
+ U
2080
+ 337.6667 -3924 m
2081
+ (N) *
2082
+ 337.6667 4716 m
2083
+ (N) *
2084
+ LB
2085
+ %AI5_EndLayer--
2086
+ %%PageTrailer
2087
+ gsave annotatepage grestore showpage
2088
+ %%Trailer
2089
+ Adobe_IllustratorA_AI5 /terminate get exec
2090
+ Adobe_level2_AI5 /terminate get exec
2091
+ %%EOF
mplug_owl2/lib/tk8.6/images/logo64.gif ADDED

Git LFS Details

  • SHA256: 138c240382304f350383b02ed56c69103a9431c0544eb1ec5dcd7dec7a555dd9
  • Pointer size: 129 Bytes
  • Size of remote file: 1.67 kB
mplug_owl2/lib/tk8.6/images/pwrdLogo.eps ADDED
@@ -0,0 +1,1897 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ %!PS-Adobe-3.0 EPSF-3.0
2
+ %%Creator: Adobe Illustrator(TM) 5.5
3
+ %%For: (Bud Northern) (Mark Anderson Design)
4
+ %%Title: (TCL PWRD LOGO.ILLUS)
5
+ %%CreationDate: (8/1/96) (4:59 PM)
6
+ %%BoundingBox: 242 302 377 513
7
+ %%HiResBoundingBox: 242.0523 302.5199 376.3322 512.5323
8
+ %%DocumentProcessColors: Cyan Magenta Yellow
9
+ %%DocumentSuppliedResources: procset Adobe_level2_AI5 1.0 0
10
+ %%+ procset Adobe_IllustratorA_AI5 1.0 0
11
+ %AI5_FileFormat 1.2
12
+ %AI3_ColorUsage: Color
13
+ %%CMYKCustomColor: 0 0.45 1 0 (Orange)
14
+ %%+ 0 0.25 1 0 (Orange Yellow)
15
+ %%+ 0 0.79 0.91 0 (PANTONE Warm Red CV)
16
+ %%+ 0 0.79 0.91 0 (TCL RED)
17
+ %AI3_TemplateBox: 306 396 306 396
18
+ %AI3_TileBox: 12 12 600 780
19
+ %AI3_DocumentPreview: Macintosh_ColorPic
20
+ %AI5_ArtSize: 612 792
21
+ %AI5_RulerUnits: 0
22
+ %AI5_ArtFlags: 1 0 0 1 0 0 1 1 0
23
+ %AI5_TargetResolution: 800
24
+ %AI5_NumLayers: 1
25
+ %AI5_OpenToView: 102 564 2 938 673 18 1 1 2 40
26
+ %AI5_OpenViewLayers: 7
27
+ %%EndComments
28
+ %%BeginProlog
29
+ %%BeginResource: procset Adobe_level2_AI5 1.0 0
30
+ %%Title: (Adobe Illustrator (R) Version 5.0 Level 2 Emulation)
31
+ %%Version: 1.0
32
+ %%CreationDate: (04/10/93) ()
33
+ %%Copyright: ((C) 1987-1993 Adobe Systems Incorporated All Rights Reserved)
34
+ userdict /Adobe_level2_AI5 21 dict dup begin
35
+ put
36
+ /packedarray where not
37
+ {
38
+ userdict begin
39
+ /packedarray
40
+ {
41
+ array astore readonly
42
+ } bind def
43
+ /setpacking /pop load def
44
+ /currentpacking false def
45
+ end
46
+ 0
47
+ } if
48
+ pop
49
+ userdict /defaultpacking currentpacking put true setpacking
50
+ /initialize
51
+ {
52
+ Adobe_level2_AI5 begin
53
+ } bind def
54
+ /terminate
55
+ {
56
+ currentdict Adobe_level2_AI5 eq
57
+ {
58
+ end
59
+ } if
60
+ } bind def
61
+ mark
62
+ /setcustomcolor where not
63
+ {
64
+ /findcmykcustomcolor
65
+ {
66
+ 5 packedarray
67
+ } bind def
68
+ /setcustomcolor
69
+ {
70
+ exch aload pop pop
71
+ 4
72
+ {
73
+ 4 index mul 4 1 roll
74
+ } repeat
75
+ 5 -1 roll pop
76
+ setcmykcolor
77
+ }
78
+ def
79
+ } if
80
+
81
+ /gt38? mark {version cvx exec} stopped {cleartomark true} {38 gt exch pop} ifelse def
82
+ userdict /deviceDPI 72 0 matrix defaultmatrix dtransform dup mul exch dup mul add sqrt put
83
+ userdict /level2?
84
+ systemdict /languagelevel known dup
85
+ {
86
+ pop systemdict /languagelevel get 2 ge
87
+ } if
88
+ put
89
+ level2? not
90
+ {
91
+ /setcmykcolor where not
92
+ {
93
+ /setcmykcolor
94
+ {
95
+ exch .11 mul add exch .59 mul add exch .3 mul add
96
+ 1 exch sub setgray
97
+ } def
98
+ } if
99
+ /currentcmykcolor where not
100
+ {
101
+ /currentcmykcolor
102
+ {
103
+ 0 0 0 1 currentgray sub
104
+ } def
105
+ } if
106
+ /setoverprint where not
107
+ {
108
+ /setoverprint /pop load def
109
+ } if
110
+ /selectfont where not
111
+ {
112
+ /selectfont
113
+ {
114
+ exch findfont exch
115
+ dup type /arraytype eq
116
+ {
117
+ makefont
118
+ }
119
+ {
120
+ scalefont
121
+ } ifelse
122
+ setfont
123
+ } bind def
124
+ } if
125
+ /cshow where not
126
+ {
127
+ /cshow
128
+ {
129
+ [
130
+ 0 0 5 -1 roll aload pop
131
+ ] cvx bind forall
132
+ } bind def
133
+ } if
134
+ } if
135
+ cleartomark
136
+ /anyColor?
137
+ {
138
+ add add add 0 ne
139
+ } bind def
140
+ /testColor
141
+ {
142
+ gsave
143
+ setcmykcolor currentcmykcolor
144
+ grestore
145
+ } bind def
146
+ /testCMYKColorThrough
147
+ {
148
+ testColor anyColor?
149
+ } bind def
150
+ userdict /composite?
151
+ level2?
152
+ {
153
+ gsave 1 1 1 1 setcmykcolor currentcmykcolor grestore
154
+ add add add 4 eq
155
+ }
156
+ {
157
+ 1 0 0 0 testCMYKColorThrough
158
+ 0 1 0 0 testCMYKColorThrough
159
+ 0 0 1 0 testCMYKColorThrough
160
+ 0 0 0 1 testCMYKColorThrough
161
+ and and and
162
+ } ifelse
163
+ put
164
+ composite? not
165
+ {
166
+ userdict begin
167
+ gsave
168
+ /cyan? 1 0 0 0 testCMYKColorThrough def
169
+ /magenta? 0 1 0 0 testCMYKColorThrough def
170
+ /yellow? 0 0 1 0 testCMYKColorThrough def
171
+ /black? 0 0 0 1 testCMYKColorThrough def
172
+ grestore
173
+ /isCMYKSep? cyan? magenta? yellow? black? or or or def
174
+ /customColor? isCMYKSep? not def
175
+ end
176
+ } if
177
+ end defaultpacking setpacking
178
+ %%EndResource
179
+ %%BeginResource: procset Adobe_IllustratorA_AI5 1.1 0
180
+ %%Title: (Adobe Illustrator (R) Version 5.0 Abbreviated Prolog)
181
+ %%Version: 1.1
182
+ %%CreationDate: (3/7/1994) ()
183
+ %%Copyright: ((C) 1987-1994 Adobe Systems Incorporated All Rights Reserved)
184
+ currentpacking true setpacking
185
+ userdict /Adobe_IllustratorA_AI5_vars 70 dict dup begin
186
+ put
187
+ /_lp /none def
188
+ /_pf
189
+ {
190
+ } def
191
+ /_ps
192
+ {
193
+ } def
194
+ /_psf
195
+ {
196
+ } def
197
+ /_pss
198
+ {
199
+ } def
200
+ /_pjsf
201
+ {
202
+ } def
203
+ /_pjss
204
+ {
205
+ } def
206
+ /_pola 0 def
207
+ /_doClip 0 def
208
+ /cf currentflat def
209
+ /_tm matrix def
210
+ /_renderStart
211
+ [
212
+ /e0 /r0 /a0 /o0 /e1 /r1 /a1 /i0
213
+ ] def
214
+ /_renderEnd
215
+ [
216
+ null null null null /i1 /i1 /i1 /i1
217
+ ] def
218
+ /_render -1 def
219
+ /_rise 0 def
220
+ /_ax 0 def
221
+ /_ay 0 def
222
+ /_cx 0 def
223
+ /_cy 0 def
224
+ /_leading
225
+ [
226
+ 0 0
227
+ ] def
228
+ /_ctm matrix def
229
+ /_mtx matrix def
230
+ /_sp 16#020 def
231
+ /_hyphen (-) def
232
+ /_fScl 0 def
233
+ /_cnt 0 def
234
+ /_hs 1 def
235
+ /_nativeEncoding 0 def
236
+ /_useNativeEncoding 0 def
237
+ /_tempEncode 0 def
238
+ /_pntr 0 def
239
+ /_tDict 2 dict def
240
+ /_wv 0 def
241
+ /Tx
242
+ {
243
+ } def
244
+ /Tj
245
+ {
246
+ } def
247
+ /CRender
248
+ {
249
+ } def
250
+ /_AI3_savepage
251
+ {
252
+ } def
253
+ /_gf null def
254
+ /_cf 4 array def
255
+ /_if null def
256
+ /_of false def
257
+ /_fc
258
+ {
259
+ } def
260
+ /_gs null def
261
+ /_cs 4 array def
262
+ /_is null def
263
+ /_os false def
264
+ /_sc
265
+ {
266
+ } def
267
+ /discardSave null def
268
+ /buffer 256 string def
269
+ /beginString null def
270
+ /endString null def
271
+ /endStringLength null def
272
+ /layerCnt 1 def
273
+ /layerCount 1 def
274
+ /perCent (%) 0 get def
275
+ /perCentSeen? false def
276
+ /newBuff null def
277
+ /newBuffButFirst null def
278
+ /newBuffLast null def
279
+ /clipForward? false def
280
+ end
281
+ userdict /Adobe_IllustratorA_AI5 74 dict dup begin
282
+ put
283
+ /initialize
284
+ {
285
+ Adobe_IllustratorA_AI5 dup begin
286
+ Adobe_IllustratorA_AI5_vars begin
287
+ discardDict
288
+ {
289
+ bind pop pop
290
+ } forall
291
+ dup /nc get begin
292
+ {
293
+ dup xcheck 1 index type /operatortype ne and
294
+ {
295
+ bind
296
+ } if
297
+ pop pop
298
+ } forall
299
+ end
300
+ newpath
301
+ } def
302
+ /terminate
303
+ {
304
+ end
305
+ end
306
+ } def
307
+ /_
308
+ null def
309
+ /ddef
310
+ {
311
+ Adobe_IllustratorA_AI5_vars 3 1 roll put
312
+ } def
313
+ /xput
314
+ {
315
+ dup load dup length exch maxlength eq
316
+ {
317
+ dup dup load dup
318
+ length 2 mul dict copy def
319
+ } if
320
+ load begin
321
+ def
322
+ end
323
+ } def
324
+ /npop
325
+ {
326
+ {
327
+ pop
328
+ } repeat
329
+ } def
330
+ /sw
331
+ {
332
+ dup length exch stringwidth
333
+ exch 5 -1 roll 3 index mul add
334
+ 4 1 roll 3 1 roll mul add
335
+ } def
336
+ /swj
337
+ {
338
+ dup 4 1 roll
339
+ dup length exch stringwidth
340
+ exch 5 -1 roll 3 index mul add
341
+ 4 1 roll 3 1 roll mul add
342
+ 6 2 roll /_cnt 0 ddef
343
+ {
344
+ 1 index eq
345
+ {
346
+ /_cnt _cnt 1 add ddef
347
+ } if
348
+ } forall
349
+ pop
350
+ exch _cnt mul exch _cnt mul 2 index add 4 1 roll 2 index add 4 1 roll pop pop
351
+ } def
352
+ /ss
353
+ {
354
+ 4 1 roll
355
+ {
356
+ 2 npop
357
+ (0) exch 2 copy 0 exch put pop
358
+ gsave
359
+ false charpath currentpoint
360
+ 4 index setmatrix
361
+ stroke
362
+ grestore
363
+ moveto
364
+ 2 copy rmoveto
365
+ } exch cshow
366
+ 3 npop
367
+ } def
368
+ /jss
369
+ {
370
+ 4 1 roll
371
+ {
372
+ 2 npop
373
+ (0) exch 2 copy 0 exch put
374
+ gsave
375
+ _sp eq
376
+ {
377
+ exch 6 index 6 index 6 index 5 -1 roll widthshow
378
+ currentpoint
379
+ }
380
+ {
381
+ false charpath currentpoint
382
+ 4 index setmatrix stroke
383
+ } ifelse
384
+ grestore
385
+ moveto
386
+ 2 copy rmoveto
387
+ } exch cshow
388
+ 6 npop
389
+ } def
390
+ /sp
391
+ {
392
+ {
393
+ 2 npop (0) exch
394
+ 2 copy 0 exch put pop
395
+ false charpath
396
+ 2 copy rmoveto
397
+ } exch cshow
398
+ 2 npop
399
+ } def
400
+ /jsp
401
+ {
402
+ {
403
+ 2 npop
404
+ (0) exch 2 copy 0 exch put
405
+ _sp eq
406
+ {
407
+ exch 5 index 5 index 5 index 5 -1 roll widthshow
408
+ }
409
+ {
410
+ false charpath
411
+ } ifelse
412
+ 2 copy rmoveto
413
+ } exch cshow
414
+ 5 npop
415
+ } def
416
+ /pl
417
+ {
418
+ transform
419
+ 0.25 sub round 0.25 add exch
420
+ 0.25 sub round 0.25 add exch
421
+ itransform
422
+ } def
423
+ /setstrokeadjust where
424
+ {
425
+ pop true setstrokeadjust
426
+ /c
427
+ {
428
+ curveto
429
+ } def
430
+ /C
431
+ /c load def
432
+ /v
433
+ {
434
+ currentpoint 6 2 roll curveto
435
+ } def
436
+ /V
437
+ /v load def
438
+ /y
439
+ {
440
+ 2 copy curveto
441
+ } def
442
+ /Y
443
+ /y load def
444
+ /l
445
+ {
446
+ lineto
447
+ } def
448
+ /L
449
+ /l load def
450
+ /m
451
+ {
452
+ moveto
453
+ } def
454
+ }
455
+ {
456
+ /c
457
+ {
458
+ pl curveto
459
+ } def
460
+ /C
461
+ /c load def
462
+ /v
463
+ {
464
+ currentpoint 6 2 roll pl curveto
465
+ } def
466
+ /V
467
+ /v load def
468
+ /y
469
+ {
470
+ pl 2 copy curveto
471
+ } def
472
+ /Y
473
+ /y load def
474
+ /l
475
+ {
476
+ pl lineto
477
+ } def
478
+ /L
479
+ /l load def
480
+ /m
481
+ {
482
+ pl moveto
483
+ } def
484
+ } ifelse
485
+ /d
486
+ {
487
+ setdash
488
+ } def
489
+ /cf
490
+ {
491
+ } def
492
+ /i
493
+ {
494
+ dup 0 eq
495
+ {
496
+ pop cf
497
+ } if
498
+ setflat
499
+ } def
500
+ /j
501
+ {
502
+ setlinejoin
503
+ } def
504
+ /J
505
+ {
506
+ setlinecap
507
+ } def
508
+ /M
509
+ {
510
+ setmiterlimit
511
+ } def
512
+ /w
513
+ {
514
+ setlinewidth
515
+ } def
516
+ /H
517
+ {
518
+ } def
519
+ /h
520
+ {
521
+ closepath
522
+ } def
523
+ /N
524
+ {
525
+ _pola 0 eq
526
+ {
527
+ _doClip 1 eq
528
+ {
529
+ clip /_doClip 0 ddef
530
+ } if
531
+ newpath
532
+ }
533
+ {
534
+ /CRender
535
+ {
536
+ N
537
+ } ddef
538
+ } ifelse
539
+ } def
540
+ /n
541
+ {
542
+ N
543
+ } def
544
+ /F
545
+ {
546
+ _pola 0 eq
547
+ {
548
+ _doClip 1 eq
549
+ {
550
+ gsave _pf grestore clip newpath /_lp /none ddef _fc
551
+ /_doClip 0 ddef
552
+ }
553
+ {
554
+ _pf
555
+ } ifelse
556
+ }
557
+ {
558
+ /CRender
559
+ {
560
+ F
561
+ } ddef
562
+ } ifelse
563
+ } def
564
+ /f
565
+ {
566
+ closepath
567
+ F
568
+ } def
569
+ /S
570
+ {
571
+ _pola 0 eq
572
+ {
573
+ _doClip 1 eq
574
+ {
575
+ gsave _ps grestore clip newpath /_lp /none ddef _sc
576
+ /_doClip 0 ddef
577
+ }
578
+ {
579
+ _ps
580
+ } ifelse
581
+ }
582
+ {
583
+ /CRender
584
+ {
585
+ S
586
+ } ddef
587
+ } ifelse
588
+ } def
589
+ /s
590
+ {
591
+ closepath
592
+ S
593
+ } def
594
+ /B
595
+ {
596
+ _pola 0 eq
597
+ {
598
+ _doClip 1 eq
599
+ gsave F grestore
600
+ {
601
+ gsave S grestore clip newpath /_lp /none ddef _sc
602
+ /_doClip 0 ddef
603
+ }
604
+ {
605
+ S
606
+ } ifelse
607
+ }
608
+ {
609
+ /CRender
610
+ {
611
+ B
612
+ } ddef
613
+ } ifelse
614
+ } def
615
+ /b
616
+ {
617
+ closepath
618
+ B
619
+ } def
620
+ /W
621
+ {
622
+ /_doClip 1 ddef
623
+ } def
624
+ /*
625
+ {
626
+ count 0 ne
627
+ {
628
+ dup type /stringtype eq
629
+ {
630
+ pop
631
+ } if
632
+ } if
633
+ newpath
634
+ } def
635
+ /u
636
+ {
637
+ } def
638
+ /U
639
+ {
640
+ } def
641
+ /q
642
+ {
643
+ _pola 0 eq
644
+ {
645
+ gsave
646
+ } if
647
+ } def
648
+ /Q
649
+ {
650
+ _pola 0 eq
651
+ {
652
+ grestore
653
+ } if
654
+ } def
655
+ /*u
656
+ {
657
+ _pola 1 add /_pola exch ddef
658
+ } def
659
+ /*U
660
+ {
661
+ _pola 1 sub /_pola exch ddef
662
+ _pola 0 eq
663
+ {
664
+ CRender
665
+ } if
666
+ } def
667
+ /D
668
+ {
669
+ pop
670
+ } def
671
+ /*w
672
+ {
673
+ } def
674
+ /*W
675
+ {
676
+ } def
677
+ /`
678
+ {
679
+ /_i save ddef
680
+ clipForward?
681
+ {
682
+ nulldevice
683
+ } if
684
+ 6 1 roll 4 npop
685
+ concat pop
686
+ userdict begin
687
+ /showpage
688
+ {
689
+ } def
690
+ 0 setgray
691
+ 0 setlinecap
692
+ 1 setlinewidth
693
+ 0 setlinejoin
694
+ 10 setmiterlimit
695
+ [] 0 setdash
696
+ /setstrokeadjust where {pop false setstrokeadjust} if
697
+ newpath
698
+ 0 setgray
699
+ false setoverprint
700
+ } def
701
+ /~
702
+ {
703
+ end
704
+ _i restore
705
+ } def
706
+ /O
707
+ {
708
+ 0 ne
709
+ /_of exch ddef
710
+ /_lp /none ddef
711
+ } def
712
+ /R
713
+ {
714
+ 0 ne
715
+ /_os exch ddef
716
+ /_lp /none ddef
717
+ } def
718
+ /g
719
+ {
720
+ /_gf exch ddef
721
+ /_fc
722
+ {
723
+ _lp /fill ne
724
+ {
725
+ _of setoverprint
726
+ _gf setgray
727
+ /_lp /fill ddef
728
+ } if
729
+ } ddef
730
+ /_pf
731
+ {
732
+ _fc
733
+ fill
734
+ } ddef
735
+ /_psf
736
+ {
737
+ _fc
738
+ ashow
739
+ } ddef
740
+ /_pjsf
741
+ {
742
+ _fc
743
+ awidthshow
744
+ } ddef
745
+ /_lp /none ddef
746
+ } def
747
+ /G
748
+ {
749
+ /_gs exch ddef
750
+ /_sc
751
+ {
752
+ _lp /stroke ne
753
+ {
754
+ _os setoverprint
755
+ _gs setgray
756
+ /_lp /stroke ddef
757
+ } if
758
+ } ddef
759
+ /_ps
760
+ {
761
+ _sc
762
+ stroke
763
+ } ddef
764
+ /_pss
765
+ {
766
+ _sc
767
+ ss
768
+ } ddef
769
+ /_pjss
770
+ {
771
+ _sc
772
+ jss
773
+ } ddef
774
+ /_lp /none ddef
775
+ } def
776
+ /k
777
+ {
778
+ _cf astore pop
779
+ /_fc
780
+ {
781
+ _lp /fill ne
782
+ {
783
+ _of setoverprint
784
+ _cf aload pop setcmykcolor
785
+ /_lp /fill ddef
786
+ } if
787
+ } ddef
788
+ /_pf
789
+ {
790
+ _fc
791
+ fill
792
+ } ddef
793
+ /_psf
794
+ {
795
+ _fc
796
+ ashow
797
+ } ddef
798
+ /_pjsf
799
+ {
800
+ _fc
801
+ awidthshow
802
+ } ddef
803
+ /_lp /none ddef
804
+ } def
805
+ /K
806
+ {
807
+ _cs astore pop
808
+ /_sc
809
+ {
810
+ _lp /stroke ne
811
+ {
812
+ _os setoverprint
813
+ _cs aload pop setcmykcolor
814
+ /_lp /stroke ddef
815
+ } if
816
+ } ddef
817
+ /_ps
818
+ {
819
+ _sc
820
+ stroke
821
+ } ddef
822
+ /_pss
823
+ {
824
+ _sc
825
+ ss
826
+ } ddef
827
+ /_pjss
828
+ {
829
+ _sc
830
+ jss
831
+ } ddef
832
+ /_lp /none ddef
833
+ } def
834
+ /x
835
+ {
836
+ /_gf exch ddef
837
+ findcmykcustomcolor
838
+ /_if exch ddef
839
+ /_fc
840
+ {
841
+ _lp /fill ne
842
+ {
843
+ _of setoverprint
844
+ _if _gf 1 exch sub setcustomcolor
845
+ /_lp /fill ddef
846
+ } if
847
+ } ddef
848
+ /_pf
849
+ {
850
+ _fc
851
+ fill
852
+ } ddef
853
+ /_psf
854
+ {
855
+ _fc
856
+ ashow
857
+ } ddef
858
+ /_pjsf
859
+ {
860
+ _fc
861
+ awidthshow
862
+ } ddef
863
+ /_lp /none ddef
864
+ } def
865
+ /X
866
+ {
867
+ /_gs exch ddef
868
+ findcmykcustomcolor
869
+ /_is exch ddef
870
+ /_sc
871
+ {
872
+ _lp /stroke ne
873
+ {
874
+ _os setoverprint
875
+ _is _gs 1 exch sub setcustomcolor
876
+ /_lp /stroke ddef
877
+ } if
878
+ } ddef
879
+ /_ps
880
+ {
881
+ _sc
882
+ stroke
883
+ } ddef
884
+ /_pss
885
+ {
886
+ _sc
887
+ ss
888
+ } ddef
889
+ /_pjss
890
+ {
891
+ _sc
892
+ jss
893
+ } ddef
894
+ /_lp /none ddef
895
+ } def
896
+ /A
897
+ {
898
+ pop
899
+ } def
900
+ /annotatepage
901
+ {
902
+ userdict /annotatepage 2 copy known {get exec} {pop pop} ifelse
903
+ } def
904
+ /discard
905
+ {
906
+ save /discardSave exch store
907
+ discardDict begin
908
+ /endString exch store
909
+ gt38?
910
+ {
911
+ 2 add
912
+ } if
913
+ load
914
+ stopped
915
+ pop
916
+ end
917
+ discardSave restore
918
+ } bind def
919
+ userdict /discardDict 7 dict dup begin
920
+ put
921
+ /pre38Initialize
922
+ {
923
+ /endStringLength endString length store
924
+ /newBuff buffer 0 endStringLength getinterval store
925
+ /newBuffButFirst newBuff 1 endStringLength 1 sub getinterval store
926
+ /newBuffLast newBuff endStringLength 1 sub 1 getinterval store
927
+ } def
928
+ /shiftBuffer
929
+ {
930
+ newBuff 0 newBuffButFirst putinterval
931
+ newBuffLast 0
932
+ currentfile read not
933
+ {
934
+ stop
935
+ } if
936
+ put
937
+ } def
938
+ 0
939
+ {
940
+ pre38Initialize
941
+ mark
942
+ currentfile newBuff readstring exch pop
943
+ {
944
+ {
945
+ newBuff endString eq
946
+ {
947
+ cleartomark stop
948
+ } if
949
+ shiftBuffer
950
+ } loop
951
+ }
952
+ {
953
+ stop
954
+ } ifelse
955
+ } def
956
+ 1
957
+ {
958
+ pre38Initialize
959
+ /beginString exch store
960
+ mark
961
+ currentfile newBuff readstring exch pop
962
+ {
963
+ {
964
+ newBuff beginString eq
965
+ {
966
+ /layerCount dup load 1 add store
967
+ }
968
+ {
969
+ newBuff endString eq
970
+ {
971
+ /layerCount dup load 1 sub store
972
+ layerCount 0 eq
973
+ {
974
+ cleartomark stop
975
+ } if
976
+ } if
977
+ } ifelse
978
+ shiftBuffer
979
+ } loop
980
+ }
981
+ {
982
+ stop
983
+ } ifelse
984
+ } def
985
+ 2
986
+ {
987
+ mark
988
+ {
989
+ currentfile buffer readline not
990
+ {
991
+ stop
992
+ } if
993
+ endString eq
994
+ {
995
+ cleartomark stop
996
+ } if
997
+ } loop
998
+ } def
999
+ 3
1000
+ {
1001
+ /beginString exch store
1002
+ /layerCnt 1 store
1003
+ mark
1004
+ {
1005
+ currentfile buffer readline not
1006
+ {
1007
+ stop
1008
+ } if
1009
+ dup beginString eq
1010
+ {
1011
+ pop /layerCnt dup load 1 add store
1012
+ }
1013
+ {
1014
+ endString eq
1015
+ {
1016
+ layerCnt 1 eq
1017
+ {
1018
+ cleartomark stop
1019
+ }
1020
+ {
1021
+ /layerCnt dup load 1 sub store
1022
+ } ifelse
1023
+ } if
1024
+ } ifelse
1025
+ } loop
1026
+ } def
1027
+ end
1028
+ userdict /clipRenderOff 15 dict dup begin
1029
+ put
1030
+ {
1031
+ /n /N /s /S /f /F /b /B
1032
+ }
1033
+ {
1034
+ {
1035
+ _doClip 1 eq
1036
+ {
1037
+ /_doClip 0 ddef clip
1038
+ } if
1039
+ newpath
1040
+ } def
1041
+ } forall
1042
+ /Tr /pop load def
1043
+ /Bb {} def
1044
+ /BB /pop load def
1045
+ /Bg {12 npop} def
1046
+ /Bm {6 npop} def
1047
+ /Bc /Bm load def
1048
+ /Bh {4 npop} def
1049
+ end
1050
+ /Lb
1051
+ {
1052
+ 4 npop
1053
+ 6 1 roll
1054
+ pop
1055
+ 4 1 roll
1056
+ pop pop pop
1057
+ 0 eq
1058
+ {
1059
+ 0 eq
1060
+ {
1061
+ (%AI5_BeginLayer) 1 (%AI5_EndLayer--) discard
1062
+ }
1063
+ {
1064
+ /clipForward? true def
1065
+
1066
+ /Tx /pop load def
1067
+ /Tj /pop load def
1068
+ currentdict end clipRenderOff begin begin
1069
+ } ifelse
1070
+ }
1071
+ {
1072
+ 0 eq
1073
+ {
1074
+ save /discardSave exch store
1075
+ } if
1076
+ } ifelse
1077
+ } bind def
1078
+ /LB
1079
+ {
1080
+ discardSave dup null ne
1081
+ {
1082
+ restore
1083
+ }
1084
+ {
1085
+ pop
1086
+ clipForward?
1087
+ {
1088
+ currentdict
1089
+ end
1090
+ end
1091
+ begin
1092
+
1093
+ /clipForward? false ddef
1094
+ } if
1095
+ } ifelse
1096
+ } bind def
1097
+ /Pb
1098
+ {
1099
+ pop pop
1100
+ 0 (%AI5_EndPalette) discard
1101
+ } bind def
1102
+ /Np
1103
+ {
1104
+ 0 (%AI5_End_NonPrinting--) discard
1105
+ } bind def
1106
+ /Ln /pop load def
1107
+ /Ap
1108
+ /pop load def
1109
+ /Ar
1110
+ {
1111
+ 72 exch div
1112
+ 0 dtransform dup mul exch dup mul add sqrt
1113
+ dup 1 lt
1114
+ {
1115
+ pop 1
1116
+ } if
1117
+ setflat
1118
+ } def
1119
+ /Mb
1120
+ {
1121
+ q
1122
+ } def
1123
+ /Md
1124
+ {
1125
+ } def
1126
+ /MB
1127
+ {
1128
+ Q
1129
+ } def
1130
+ /nc 3 dict def
1131
+ nc begin
1132
+ /setgray
1133
+ {
1134
+ pop
1135
+ } bind def
1136
+ /setcmykcolor
1137
+ {
1138
+ 4 npop
1139
+ } bind def
1140
+ /setcustomcolor
1141
+ {
1142
+ 2 npop
1143
+ } bind def
1144
+ currentdict readonly pop
1145
+ end
1146
+ currentdict readonly pop
1147
+ end
1148
+ setpacking
1149
+ %%EndResource
1150
+ %%EndProlog
1151
+ %%BeginSetup
1152
+ Adobe_level2_AI5 /initialize get exec
1153
+ Adobe_IllustratorA_AI5 /initialize get exec
1154
+ %AI5_Begin_NonPrinting
1155
+ Np
1156
+ %AI3_BeginPattern: (Yellow Stripe)
1157
+ (Yellow Stripe) 8.4499 4.6 80.4499 76.6 [
1158
+ %AI3_Tile
1159
+ (0 O 0 R 0 0.4 1 0 k 0 0.4 1 0 K) @
1160
+ (
1161
+ 800 Ar
1162
+ 0 J 0 j 3.6 w 4 M []0 d
1163
+ %AI3_Note:
1164
+ 0 D
1165
+ 8.1999 8.1999 m
1166
+ 80.6999 8.1999 L
1167
+ S
1168
+ 8.1999 22.6 m
1169
+ 80.6999 22.6 L
1170
+ S
1171
+ 8.1999 37.0001 m
1172
+ 80.6999 37.0001 L
1173
+ S
1174
+ 8.1999 51.3999 m
1175
+ 80.6999 51.3999 L
1176
+ S
1177
+ 8.1999 65.8 m
1178
+ 80.6999 65.8 L
1179
+ S
1180
+ 8.1999 15.3999 m
1181
+ 80.6999 15.3999 L
1182
+ S
1183
+ 8.1999 29.8 m
1184
+ 80.6999 29.8 L
1185
+ S
1186
+ 8.1999 44.1999 m
1187
+ 80.6999 44.1999 L
1188
+ S
1189
+ 8.1999 58.6 m
1190
+ 80.6999 58.6 L
1191
+ S
1192
+ 8.1999 73.0001 m
1193
+ 80.6999 73.0001 L
1194
+ S
1195
+ ) &
1196
+ ] E
1197
+ %AI3_EndPattern
1198
+ %AI5_End_NonPrinting--
1199
+ %AI5_Begin_NonPrinting
1200
+ Np
1201
+ 3 Bn
1202
+ %AI5_BeginGradient: (Black & White)
1203
+ (Black & White) 0 2 Bd
1204
+ [
1205
+ <
1206
+ FFFEFDFCFBFAF9F8F7F6F5F4F3F2F1F0EFEEEDECEBEAE9E8E7E6E5E4E3E2E1E0DFDEDDDCDBDAD9D8
1207
+ D7D6D5D4D3D2D1D0CFCECDCCCBCAC9C8C7C6C5C4C3C2C1C0BFBEBDBCBBBAB9B8B7B6B5B4B3B2B1B0
1208
+ AFAEADACABAAA9A8A7A6A5A4A3A2A1A09F9E9D9C9B9A999897969594939291908F8E8D8C8B8A8988
1209
+ 87868584838281807F7E7D7C7B7A797877767574737271706F6E6D6C6B6A69686766656463626160
1210
+ 5F5E5D5C5B5A595857565554535251504F4E4D4C4B4A494847464544434241403F3E3D3C3B3A3938
1211
+ 37363534333231302F2E2D2C2B2A292827262524232221201F1E1D1C1B1A19181716151413121110
1212
+ 0F0E0D0C0B0A09080706050403020100
1213
+ >
1214
+ 0 %_Br
1215
+ [
1216
+ 0 0 50 100 %_Bs
1217
+ 1 0 50 0 %_Bs
1218
+ BD
1219
+ %AI5_EndGradient
1220
+ %AI5_BeginGradient: (Red & Yellow)
1221
+ (Red & Yellow) 0 2 Bd
1222
+ [
1223
+ 0
1224
+ <
1225
+ 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F2021222324252627
1226
+ 28292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F
1227
+ 505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F7071727374757677
1228
+ 78797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9F
1229
+ A0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7
1230
+ C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEF
1231
+ F0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF
1232
+ >
1233
+ <
1234
+ FFFFFEFEFDFDFDFCFCFBFBFBFAFAF9F9F9F8F8F7F7F7F6F6F5F5F5F4F4F3F3F3F2F2F1F1F1F0F0EF
1235
+ EFEFEEEEEDEDEDECECEBEBEBEAEAE9E9E9E8E8E7E7E7E6E6E5E5E5E4E4E3E3E3E2E2E1E1E1E0E0DF
1236
+ DFDFDEDEDDDDDDDCDCDBDBDBDADAD9D9D9D8D8D7D7D7D6D6D5D5D5D4D4D3D3D3D2D2D1D1D1D0D0CF
1237
+ CFCFCECECDCDCDCCCCCBCBCBCACAC9C9C9C8C8C7C7C7C6C6C5C5C5C4C4C3C3C3C2C2C1C1C1C0C0BF
1238
+ BFBFBEBEBDBDBDBCBCBBBBBBBABAB9B9B9B8B8B7B7B7B6B6B5B5B5B4B4B3B3B3B2B2B1B1B1B0B0AF
1239
+ AFAFAEAEADADADACACABABABAAAAA9A9A9A8A8A7A7A7A6A6A5A5A5A4A4A3A3A3A2A2A1A1A1A0A09F
1240
+ 9F9F9E9E9D9D9D9C9C9B9B9B9A9A9999
1241
+ >
1242
+ 0
1243
+ 1 %_Br
1244
+ [
1245
+ 0 1 0.6 0 1 50 100 %_Bs
1246
+ 0 0 1 0 1 50 0 %_Bs
1247
+ BD
1248
+ %AI5_EndGradient
1249
+ %AI5_BeginGradient: (Yellow & Blue Radial)
1250
+ (Yellow & Blue Radial) 1 2 Bd
1251
+ [
1252
+ <
1253
+ 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F2021222324252627
1254
+ 28292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F
1255
+ 505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F7071727374757677
1256
+ 78797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9F
1257
+ A0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7
1258
+ C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEF
1259
+ F0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF
1260
+ >
1261
+ <
1262
+ 1415161718191A1B1C1D1E1F1F202122232425262728292A2A2B2C2D2E2F30313233343536363738
1263
+ 393A3B3C3D3E3F40414142434445464748494A4B4C4D4D4E4F50515253545556575858595A5B5C5D
1264
+ 5E5F60616263646465666768696A6B6C6D6E6F6F707172737475767778797A7B7B7C7D7E7F808182
1265
+ 83848586868788898A8B8C8D8E8F90919292939495969798999A9B9C9D9D9E9FA0A1A2A3A4A5A6A7
1266
+ A8A9A9AAABACADAEAFB0B1B2B3B4B4B5B6B7B8B9BABBBCBDBEBFC0C0C1C2C3C4C5C6C7C8C9CACBCB
1267
+ CCCDCECFD0D1D2D3D4D5D6D7D7D8D9DADBDCDDDEDFE0E1E2E2E3E4E5E6E7E8E9EAEBECEDEEEEEFF0
1268
+ F1F2F3F4F5F6F7F8F9F9FAFBFCFDFEFF
1269
+ >
1270
+ <
1271
+ ABAAAAA9A8A7A7A6A5A5A4A3A3A2A1A1A09F9F9E9D9D9C9B9B9A9999989797969595949393929191
1272
+ 908F8F8E8D8D8C8B8B8A8989888787868585848383828181807F7F7E7D7D7C7B7B7A797978777776
1273
+ 7575747373727171706F6F6E6D6D6C6B6B6A6969686767666565646362626160605F5E5E5D5C5C5B
1274
+ 5A5A5958585756565554545352525150504F4E4E4D4C4C4B4A4A4948484746464544444342424140
1275
+ 403F3E3E3D3C3C3B3A3A3938383736363534343332323130302F2E2E2D2C2C2B2A2A292828272626
1276
+ 25242423222121201F1F1E1D1D1C1B1B1A1919181717161515141313121111100F0F0E0D0D0C0B0B
1277
+ 0A090908070706050504030302010100
1278
+ >
1279
+ 0
1280
+ 1 %_Br
1281
+ [
1282
+ 0 0.08 0.67 0 1 50 14 %_Bs
1283
+ 1 1 0 0 1 50 100 %_Bs
1284
+ BD
1285
+ %AI5_EndGradient
1286
+ %AI5_End_NonPrinting--
1287
+ %AI5_BeginPalette
1288
+ 144 161 Pb
1289
+ Pn
1290
+ Pc
1291
+ 1 g
1292
+ Pc
1293
+ 0 g
1294
+ Pc
1295
+ 0 0 0 0 k
1296
+ Pc
1297
+ 0.75 g
1298
+ Pc
1299
+ 0.5 g
1300
+ Pc
1301
+ 0.25 g
1302
+ Pc
1303
+ 0 g
1304
+ Pc
1305
+ Bb
1306
+ 2 (Black & White) -4014 4716 0 0 1 0 0 1 0 0 Bg
1307
+ 0 BB
1308
+ Pc
1309
+ 0.25 0 0 0 k
1310
+ Pc
1311
+ 0.5 0 0 0 k
1312
+ Pc
1313
+ 0.75 0 0 0 k
1314
+ Pc
1315
+ 1 0 0 0 k
1316
+ Pc
1317
+ 0.25 0.25 0 0 k
1318
+ Pc
1319
+ 0.5 0.5 0 0 k
1320
+ Pc
1321
+ 0.75 0.75 0 0 k
1322
+ Pc
1323
+ 1 1 0 0 k
1324
+ Pc
1325
+ Bb
1326
+ 2 (Red & Yellow) -4014 4716 0 0 1 0 0 1 0 0 Bg
1327
+ 0 BB
1328
+ Pc
1329
+ 0 0.25 0 0 k
1330
+ Pc
1331
+ 0 0.5 0 0 k
1332
+ Pc
1333
+ 0 0.75 0 0 k
1334
+ Pc
1335
+ 0 1 0 0 k
1336
+ Pc
1337
+ 0 0.25 0.25 0 k
1338
+ Pc
1339
+ 0 0.5 0.5 0 k
1340
+ Pc
1341
+ 0 0.75 0.75 0 k
1342
+ Pc
1343
+ 0 1 1 0 k
1344
+ Pc
1345
+ Bb
1346
+ 0 0 0 0 Bh
1347
+ 2 (Yellow & Blue Radial) -4014 4716 0 0 1 0 0 1 0 0 Bg
1348
+ 0 BB
1349
+ Pc
1350
+ 0 0 0.25 0 k
1351
+ Pc
1352
+ 0 0 0.5 0 k
1353
+ Pc
1354
+ 0 0 0.75 0 k
1355
+ Pc
1356
+ 0 0 1 0 k
1357
+ Pc
1358
+ 0.25 0 0.25 0 k
1359
+ Pc
1360
+ 0.5 0 0.5 0 k
1361
+ Pc
1362
+ 0.75 0 0.75 0 k
1363
+ Pc
1364
+ 1 0 1 0 k
1365
+ Pc
1366
+ (Yellow Stripe) 0 0 1 1 0 0 0 0 0 [1 0 0 1 0 0] p
1367
+ Pc
1368
+ 0.25 0.125 0 0 k
1369
+ Pc
1370
+ 0.5 0.25 0 0 k
1371
+ Pc
1372
+ 0.75 0.375 0 0 k
1373
+ Pc
1374
+ 1 0.5 0 0 k
1375
+ Pc
1376
+ 0.125 0.25 0 0 k
1377
+ Pc
1378
+ 0.25 0.5 0 0 k
1379
+ Pc
1380
+ 0.375 0.75 0 0 k
1381
+ Pc
1382
+ 0.5 1 0 0 k
1383
+ Pc
1384
+ 0.375 0.375 0.75 0 k
1385
+ Pc
1386
+ 0 0.25 0.125 0 k
1387
+ Pc
1388
+ 0 0.5 0.25 0 k
1389
+ Pc
1390
+ 0 0.75 0.375 0 k
1391
+ Pc
1392
+ 0 1 0.5 0 k
1393
+ Pc
1394
+ 0 0.125 0.25 0 k
1395
+ Pc
1396
+ 0 0.25 0.5 0 k
1397
+ Pc
1398
+ 0 0.375 0.75 0 k
1399
+ Pc
1400
+ 0 0.5 1 0 k
1401
+ Pc
1402
+ 0 0.79 0.91 0 (PANTONE Warm Red CV) 0 x
1403
+ Pc
1404
+ 0.125 0 0.25 0 k
1405
+ Pc
1406
+ 0.25 0 0.5 0 k
1407
+ Pc
1408
+ 0.375 0 0.75 0 k
1409
+ Pc
1410
+ 0.5 0 1 0 k
1411
+ Pc
1412
+ 0.25 0 0.125 0 k
1413
+ Pc
1414
+ 0.5 0 0.25 0 k
1415
+ Pc
1416
+ 0.75 0 0.375 0 k
1417
+ Pc
1418
+ 1 0 0.5 0 k
1419
+ Pc
1420
+ 0.5 1 0 0 k
1421
+ Pc
1422
+ 0.25 0.125 0.125 0 k
1423
+ Pc
1424
+ 0.5 0.25 0.25 0 k
1425
+ Pc
1426
+ 0.75 0.375 0.375 0 k
1427
+ Pc
1428
+ 1 0.5 0.5 0 k
1429
+ Pc
1430
+ 0.25 0.25 0.125 0 k
1431
+ Pc
1432
+ 0.5 0.5 0.25 0 k
1433
+ Pc
1434
+ 0.75 0.75 0.375 0 k
1435
+ Pc
1436
+ 1 1 0.5 0 k
1437
+ Pc
1438
+ 0 1 0.5 0 k
1439
+ Pc
1440
+ 0.125 0.25 0.125 0 k
1441
+ Pc
1442
+ 0.25 0.5 0.25 0 k
1443
+ Pc
1444
+ 0.375 0.75 0.375 0 k
1445
+ Pc
1446
+ 0.5 1 0.5 0 k
1447
+ Pc
1448
+ 0.125 0.25 0.25 0 k
1449
+ Pc
1450
+ 0.25 0.5 0.5 0 k
1451
+ Pc
1452
+ 0.375 0.75 0.75 0 k
1453
+ Pc
1454
+ 0.5 1 1 0 k
1455
+ Pc
1456
+ 0.75 0.75 0.375 0 k
1457
+ Pc
1458
+ 0.125 0.125 0.25 0 k
1459
+ Pc
1460
+ 0.25 0.25 0.5 0 k
1461
+ Pc
1462
+ 0.375 0.375 0.75 0 k
1463
+ Pc
1464
+ 0.5 0.5 1 0 k
1465
+ Pc
1466
+ 0.25 0.125 0.25 0 k
1467
+ Pc
1468
+ 0.5 0.25 0.5 0 k
1469
+ Pc
1470
+ 0.75 0.375 0.75 0 k
1471
+ Pc
1472
+ 1 0.5 1 0 k
1473
+ Pc
1474
+ 0 0.79 0.91 0 (PANTONE Warm Red CV) 0 x
1475
+ Pc
1476
+ 0 0 0 0 k
1477
+ Pc
1478
+ Pc
1479
+ Pc
1480
+ Pc
1481
+ Pc
1482
+ Pc
1483
+ Pc
1484
+ Pc
1485
+ 1 0.5 0.5 0 k
1486
+ Pc
1487
+ 0 0 0 0 k
1488
+ Pc
1489
+ Pc
1490
+ Pc
1491
+ Pc
1492
+ Pc
1493
+ Pc
1494
+ Pc
1495
+ Pc
1496
+ 0 0.25 1 0 (Orange Yellow) 0 x
1497
+ Pc
1498
+ 0 0 0 0 k
1499
+ Pc
1500
+ Pc
1501
+ Pc
1502
+ Pc
1503
+ Pc
1504
+ Pc
1505
+ Pc
1506
+ Pc
1507
+ 0 1 0.5 0 k
1508
+ Pc
1509
+ 0 0 0 0 k
1510
+ Pc
1511
+ Pc
1512
+ Pc
1513
+ Pc
1514
+ Pc
1515
+ Pc
1516
+ Pc
1517
+ Pc
1518
+ 1 0 0.5 0 k
1519
+ Pc
1520
+ 0 0 0 0 k
1521
+ Pc
1522
+ Pc
1523
+ Pc
1524
+ Pc
1525
+ Pc
1526
+ Pc
1527
+ Pc
1528
+ Pc
1529
+ 0 0.45 1 0 (Orange) 0 x
1530
+ Pc
1531
+ 0 0 0 0 k
1532
+ Pc
1533
+ Pc
1534
+ Pc
1535
+ Pc
1536
+ Pc
1537
+ Pc
1538
+ Pc
1539
+ Pc
1540
+ 0.375 0.375 0.75 0 k
1541
+ Pc
1542
+ 0 0 0 0 k
1543
+ Pc
1544
+ Pc
1545
+ Pc
1546
+ Pc
1547
+ Pc
1548
+ Pc
1549
+ Pc
1550
+ Pc
1551
+ 0 0.79 0.91 0 (PANTONE Warm Red CV) 0 x
1552
+ Pc
1553
+ 0 0 0 0 k
1554
+ Pc
1555
+ Pc
1556
+ Pc
1557
+ Pc
1558
+ Pc
1559
+ Pc
1560
+ Pc
1561
+ Pc
1562
+ 1 0.65 0 0 k
1563
+ Pc
1564
+ 0 0 0 0 k
1565
+ Pc
1566
+ Pc
1567
+ Pc
1568
+ Pc
1569
+ Pc
1570
+ Pc
1571
+ Pc
1572
+ Pc
1573
+ 0 0 1 0 k
1574
+ Pc
1575
+ PB
1576
+ %AI5_EndPalette
1577
+ %%EndSetup
1578
+ %AI5_BeginLayer
1579
+ 1 1 1 1 0 0 0 79 128 255 Lb
1580
+ (Layer 1) Ln
1581
+ 0 A
1582
+ 1 Ap
1583
+ 0 O
1584
+ 1 0.65 0 0 k
1585
+ 800 Ar
1586
+ 0 J 0 j 1 w 4 M []0 d
1587
+ %AI3_Note:
1588
+ 0 D
1589
+ 285.0121 311.7976 m
1590
+ 357.5043 302.5199 L
1591
+ 361.6071 392.7105 L
1592
+ 376.3322 474.1377 L
1593
+ 342.6527 475.6628 L
1594
+ 327.6333 483.4165 L
1595
+ 258.8269 486.3189 L
1596
+ 254.4361 405.0427 L
1597
+ 242.0523 312.2099 L
1598
+ 285.0121 311.7976 L
1599
+ f
1600
+ 0 0.79 0.91 0 k
1601
+ 1.25 w
1602
+ 295.4466 337.6172 m
1603
+ 368.4943 335.3343 L
1604
+ 363.9288 425.5026 L
1605
+ 370.7771 507.9667 L
1606
+ 337.1066 506.2547 L
1607
+ 321.4128 512.5323 L
1608
+ 252.6452 508.8228 L
1609
+ 256.0692 427.5002 L
1610
+ 252.6452 333.9077 L
1611
+ 295.4466 337.6172 L
1612
+ f
1613
+ u
1614
+ 0 Ap
1615
+ 1 0.65 0 0 k
1616
+ 1 w
1617
+ 320.532 390.6149 m
1618
+ 312.9017 388.534 l
1619
+ 317.0637 398.5921 l
1620
+ 321.2256 426.6854 l
1621
+ 316.0232 427.7258 l
1622
+ 322.2662 436.3965 l
1623
+ 330.0436 465.6249 l
1624
+ 316.3701 462.7557 l
1625
+ 323.5798 475.9563 331.2311 484.5534 v
1626
+ 321.2256 492.2363 l
1627
+ 288.9913 478.0373 297.6622 431.9088 v
1628
+ 290.9988 433.0755 l
1629
+ 297.3888 384.7188 l
1630
+ 291.9867 383.3315 l
1631
+ 297.5214 372.0383 305.2714 366.6837 v
1632
+ 305.9749 366.1976 295.5601 404.4882 306.6587 442.6395 c
1633
+ 307.6992 440.2117 l
1634
+ 298.855 399.5459 307.6992 366.6837 v
1635
+ 308.1064 365.9033 312.5286 366.4235 v
1636
+ 320.532 381.5106 320.532 390.6149 v
1637
+ f
1638
+ u
1639
+ *u
1640
+ 1 g
1641
+ 263.6948 355.9856 m
1642
+ 265.2612 355.9856 L
1643
+ 265.2612 359.2513 L
1644
+ 265.9515 359.2513 266.6153 359.2513 267.2791 359.3575 c
1645
+ 267.2791 355.9856 L
1646
+ 269.6155 355.9856 L
1647
+ 269.6155 355.3749 L
1648
+ 267.2791 355.3749 L
1649
+ 267.2791 347.2505 L
1650
+ 267.2791 346.7726 267.2791 346.0558 268.288 346.0558 c
1651
+ 268.9783 346.0558 269.35 346.5337 269.7748 347.0381 c
1652
+ 270.1996 346.7461 L
1653
+ 269.6951 345.7372 268.3942 345.1265 267.3322 345.1265 c
1654
+ 265.4205 345.1265 265.2081 346.162 265.2081 347.4364 c
1655
+ 265.2081 355.3749 L
1656
+ 263.6948 355.3749 L
1657
+ 263.6948 355.9856 l
1658
+ f
1659
+ *U
1660
+ *u
1661
+ 285.7796 348.7639 m
1662
+ 285.1689 346.8788 284.1069 345.2327 281.3457 345.1265 c
1663
+ 277.2304 345.1265 275.9825 348.5515 275.9825 350.3835 c
1664
+ 275.9825 355.1094 279.7792 356.2511 281.2926 356.2511 c
1665
+ 283.0184 356.2511 285.461 355.4546 285.461 353.4102 c
1666
+ 285.461 352.6934 285.0096 352.003 284.2662 352.003 c
1667
+ 283.5494 352.003 283.0184 352.481 283.0184 353.2509 c
1668
+ 283.0184 354.2864 283.868 354.4191 283.868 354.7112 c
1669
+ 283.868 355.428 282.1953 355.7201 281.6112 355.7201 c
1670
+ 279.0624 355.7201 278.3986 353.8616 278.3986 350.3835 c
1671
+ 278.3986 348.7905 278.7969 347.5691 278.9562 347.1974 c
1672
+ 279.3544 346.3213 280.1775 345.7637 281.5581 345.6841 c
1673
+ 283.098 345.6044 284.5848 346.8523 285.222 348.7639 C
1674
+ 285.7796 348.7639 l
1675
+ f
1676
+ *U
1677
+ *u
1678
+ 291.9344 345.4717 m
1679
+ 291.9344 346.0823 L
1680
+ 293.9788 346.0823 L
1681
+ 293.9788 363.1542 L
1682
+ 291.9344 363.1542 L
1683
+ 291.9344 363.7648 L
1684
+ 293.0761 363.7648 L
1685
+ 294.0585 363.7648 295.0939 363.8179 296.0497 364.0038 c
1686
+ 296.0497 346.0823 L
1687
+ 298.0941 346.0823 L
1688
+ 298.0941 345.4717 L
1689
+ 291.9344 345.4717 l
1690
+ f
1691
+ *U
1692
+ u
1693
+ 310.0634 446.075 m
1694
+ 305.3828 425.2059 306.7298 391.3708 v
1695
+ 307.1338 381.222 308.2436 371.8929 309.5993 363.8029 C
1696
+ 309.6066 363.8025 L
1697
+ 310.4883 356.6987 311.0781 354.1272 313.3768 345.5676 C
1698
+ 313.2426 340.0473 L
1699
+ 294.8367 398.8155 310.0634 446.075 V
1700
+ f
1701
+ 321.3622 464.1699 m
1702
+ 325.5016 466.2317 331.4359 466.9819 v
1703
+ 337.9224 455.0924 321.9584 434.793 v
1704
+ 331.4821 456.0522 329.2358 462.7122 v
1705
+ 326.7243 464.2727 321.3622 464.1699 v
1706
+ f
1707
+ 319.4002 428.4819 m
1708
+ 323.1177 427.6214 324.9024 429.0668 v
1709
+ 321.386 415.3445 322.3077 407.7964 v
1710
+ 323.2297 400.2483 316.5788 395.4159 y
1711
+ 322.2441 402.584 320.4635 408.4226 v
1712
+ 319.2289 412.4694 320.6101 422.8271 322.1681 426.1155 c
1713
+ 320.7131 426.3196 319.4002 428.4819 v
1714
+ f
1715
+ 315.7246 392.3281 m
1716
+ 321.8677 393.0631 322.5131 396.1662 v
1717
+ 323.265 377.6058 314.7299 369.9571 v
1718
+ 321.2425 380.1152 320.2206 390.6235 v
1719
+ 315.7246 392.3281 l
1720
+ f
1721
+ 298.4445 384.6023 m
1722
+ 296.4635 382.3836 290.5192 387.2778 v
1723
+ 292.4131 374.803 304.1781 369.0924 v
1724
+ 296.0814 375.1928 293.9 381.7824 v
1725
+ 296.7611 382.6245 298.4445 384.6023 v
1726
+ f
1727
+ 296.5483 389.3335 m
1728
+ 288.5102 409.7356 290.2325 437.3036 v
1729
+ 292.1098 432.3112 298.1424 430.5604 v
1730
+ 295.3003 429.9794 293.6387 430.2313 v
1731
+ 289.4335 418.5932 296.5483 389.3335 v
1732
+ f
1733
+ 330.3126 484.1353 m
1734
+ 327.3003 506.2722 308.4549 483.8853 v
1735
+ 293.4491 466.0592 295.2373 450.9247 296.1578 442.4811 c
1736
+ 296.3932 440.3206 293.366 465.0316 309.8067 481.2933 c
1737
+ 326.2471 497.5553 329.9609 485.0794 330.3126 484.1353 c
1738
+ f
1739
+ U
1740
+ 0 0 1 0 k
1741
+ 302.5528 503.0164 m
1742
+ 287.7656 507.2395 283.0593 458.227 v
1743
+ 279.4282 473.3549 288.8204 494.7509 v
1744
+ 298.2122 516.1468 302.5528 503.0164 y
1745
+ f
1746
+ 284.2076 506.5994 m
1747
+ 276.6655 495.2557 278.3767 483.1729 v
1748
+ 272.6565 505.9183 284.2076 506.5994 v
1749
+ f
1750
+ 339.7135 474.7902 m
1751
+ 348.6321 478.0799 335.8615 444.8834 v
1752
+ 342.4718 454.5848 346.6326 469.8253 v
1753
+ 349.303 479.6062 339.7135 474.7902 y
1754
+ f
1755
+ 354.1382 477.3767 m
1756
+ 360.4435 471.669 355.9752 464.1187 v
1757
+ 367.1908 475.904 354.1382 477.3767 v
1758
+ f
1759
+ U
1760
+ U
1761
+ *u
1762
+ 1 g
1763
+ 258.2029 317.4593 m
1764
+ 256.6821 317.4593 L
1765
+ 256.6821 325.2598 L
1766
+ 258.7512 325.2598 L
1767
+ 260.3858 325.2598 261.4514 324.608 261.4514 322.839 c
1768
+ 261.4514 321.1837 260.5513 320.3767 258.9581 320.3767 c
1769
+ 258.2029 320.3767 L
1770
+ 258.2029 317.4593 l
1771
+ f
1772
+ 1 D
1773
+ 258.2029 321.6389 m
1774
+ 258.5132 321.6389 L
1775
+ 259.4133 321.6389 259.8995 321.8354 259.8995 322.8493 c
1776
+ 259.8995 323.8528 259.3202 323.9976 258.4719 323.9976 c
1777
+ 258.2029 323.9976 L
1778
+ 258.2029 321.6389 l
1779
+ f
1780
+ *U
1781
+ *u
1782
+ 0 D
1783
+ 269.0694 321.3699 m
1784
+ 269.0694 323.5528 270.6523 325.4667 272.9283 325.4667 c
1785
+ 275.2043 325.4667 276.7871 323.5528 276.7871 321.3699 c
1786
+ 276.7871 319.1353 275.2043 317.2524 272.9283 317.2524 c
1787
+ 270.6523 317.2524 269.0694 319.1353 269.0694 321.3699 c
1788
+ f
1789
+ 1 D
1790
+ 270.6419 321.432 m
1791
+ 270.6419 320.2526 271.6351 318.7525 272.9283 318.7525 c
1792
+ 274.2215 318.7525 275.2146 320.2526 275.2146 321.432 c
1793
+ 275.2146 322.6941 274.2628 323.9666 272.9283 323.9666 c
1794
+ 271.5937 323.9666 270.6419 322.6941 270.6419 321.432 c
1795
+ f
1796
+ *U
1797
+ *u
1798
+ 0 D
1799
+ 287.2943 319.9422 m
1800
+ 287.315 319.9422 L
1801
+ 288.8668 325.3632 L
1802
+ 289.7668 325.3632 L
1803
+ 291.3807 319.9422 L
1804
+ 291.4014 319.9422 L
1805
+ 292.9326 325.2598 L
1806
+ 294.5258 325.2598 L
1807
+ 291.8877 317.3041 L
1808
+ 290.7704 317.3041 L
1809
+ 289.2185 322.4044 L
1810
+ 289.1978 322.4044 L
1811
+ 287.7288 317.3041 L
1812
+ 286.6115 317.3041 L
1813
+ 284.1286 325.2598 L
1814
+ 285.7218 325.2598 L
1815
+ 287.2943 319.9422 l
1816
+ f
1817
+ *U
1818
+ *u
1819
+ 303.7595 323.9356 m
1820
+ 303.7595 322.2182 L
1821
+ 306.1803 322.2182 L
1822
+ 306.1803 320.894 L
1823
+ 303.7595 320.894 L
1824
+ 303.7595 318.7835 L
1825
+ 306.2734 318.7835 L
1826
+ 306.2734 317.4593 L
1827
+ 302.2387 317.4593 L
1828
+ 302.2387 325.2598 L
1829
+ 306.2734 325.2598 L
1830
+ 306.2734 323.9356 L
1831
+ 303.7595 323.9356 l
1832
+ f
1833
+ *U
1834
+ *u
1835
+ 319.8602 317.4593 m
1836
+ 318.0187 317.4593 L
1837
+ 316.1255 320.6043 L
1838
+ 316.1048 320.6043 L
1839
+ 316.1048 317.4593 L
1840
+ 314.5841 317.4593 L
1841
+ 314.5841 325.2598 L
1842
+ 316.6428 325.2598 L
1843
+ 318.1843 325.2598 319.2499 324.577 319.2499 322.9114 c
1844
+ 319.2499 321.9182 318.7015 320.925 317.6567 320.7492 C
1845
+ 319.8602 317.4593 l
1846
+ f
1847
+ 1 D
1848
+ 316.1048 321.6699 m
1849
+ 316.3014 321.6699 L
1850
+ 317.1394 321.6699 317.7291 321.9182 317.7291 322.87 c
1851
+ 317.7291 323.8321 317.1187 324.0183 316.3117 324.0183 c
1852
+ 316.1048 324.0183 L
1853
+ 316.1048 321.6699 l
1854
+ f
1855
+ *U
1856
+ *u
1857
+ 0 D
1858
+ 329.1754 323.9356 m
1859
+ 329.1754 322.2182 L
1860
+ 331.5962 322.2182 L
1861
+ 331.5962 320.894 L
1862
+ 329.1754 320.894 L
1863
+ 329.1754 318.7835 L
1864
+ 331.6894 318.7835 L
1865
+ 331.6894 317.4593 L
1866
+ 327.6546 317.4593 L
1867
+ 327.6546 325.2598 L
1868
+ 331.6894 325.2598 L
1869
+ 331.6894 323.9356 L
1870
+ 329.1754 323.9356 l
1871
+ f
1872
+ *U
1873
+ *u
1874
+ 340 325.2598 m
1875
+ 342.1725 325.2598 L
1876
+ 344.4279 325.2598 345.9383 323.5735 345.9383 321.3492 c
1877
+ 345.9383 319.156 344.3865 317.4593 342.1622 317.4593 c
1878
+ 340 317.4593 L
1879
+ 340 325.2598 l
1880
+ f
1881
+ 1 D
1882
+ 341.5208 318.7835 m
1883
+ 341.7691 318.7835 L
1884
+ 343.6416 318.7835 344.3658 319.8181 344.3658 321.3596 c
1885
+ 344.3658 323.0562 343.4968 323.9356 341.7691 323.9356 c
1886
+ 341.5208 323.9356 L
1887
+ 341.5208 318.7835 l
1888
+ f
1889
+ *U
1890
+ LB
1891
+ %AI5_EndLayer--
1892
+ %%PageTrailer
1893
+ gsave annotatepage grestore showpage
1894
+ %%Trailer
1895
+ Adobe_IllustratorA_AI5 /terminate get exec
1896
+ Adobe_level2_AI5 /terminate get exec
1897
+ %%EOF
mplug_owl2/lib/tk8.6/msgs/cs.msg ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ namespace eval ::tk {
2
+ ::msgcat::mcset cs "&Abort" "&P\u0159eru\u0161it"
3
+ ::msgcat::mcset cs "&About..." "&O programu..."
4
+ ::msgcat::mcset cs "All Files" "V\u0161echny soubory"
5
+ ::msgcat::mcset cs "Application Error" "Chyba programu"
6
+ ::msgcat::mcset cs "Bold Italic"
7
+ ::msgcat::mcset cs "&Blue" "&Modr\341"
8
+ ::msgcat::mcset cs "Cancel" "Zru\u0161it"
9
+ ::msgcat::mcset cs "&Cancel" "&Zru\u0161it"
10
+ ::msgcat::mcset cs "Cannot change to the directory \"%1\$s\".\nPermission denied." "Nemohu zm\u011bnit atku\341ln\355 adres\341\u0159 na \"%1\$s\".\nP\u0159\355stup odm\355tnut."
11
+ ::msgcat::mcset cs "Choose Directory" "V\375b\u011br adres\341\u0159e"
12
+ ::msgcat::mcset cs "Cl&ear" "Sma&zat"
13
+ ::msgcat::mcset cs "&Clear Console" "&Smazat konzolu"
14
+ ::msgcat::mcset cs "Color" "Barva"
15
+ ::msgcat::mcset cs "Console" "Konzole"
16
+ ::msgcat::mcset cs "&Copy" "&Kop\355rovat"
17
+ ::msgcat::mcset cs "Cu&t" "V&y\u0159\355znout"
18
+ ::msgcat::mcset cs "&Delete" "&Smazat"
19
+ ::msgcat::mcset cs "Details >>" "Detaily >>"
20
+ ::msgcat::mcset cs "Directory \"%1\$s\" does not exist." "Adres\341\u0159 \"%1\$s\" neexistuje."
21
+ ::msgcat::mcset cs "&Directory:" "&Adres\341\u0159:"
22
+ ::msgcat::mcset cs "&Edit" "&\332pravy"
23
+ ::msgcat::mcset cs "Error: %1\$s" "Chyba: %1\$s"
24
+ ::msgcat::mcset cs "E&xit" "&Konec"
25
+ ::msgcat::mcset cs "&File" "&Soubor"
26
+ ::msgcat::mcset cs "File \"%1\$s\" already exists.\nDo you want to overwrite it?" "Soubor \"%1\$s\" ji\u017e existuje.\nChcete jej p\u0159epsat?"
27
+ ::msgcat::mcset cs "File \"%1\$s\" already exists.\n\n" "Soubor \"%1\$s\" ji\u017e existuje.\n\n"
28
+ ::msgcat::mcset cs "File \"%1\$s\" does not exist." "Soubor \"%1\$s\" neexistuje."
29
+ ::msgcat::mcset cs "File &name:" "&Jm\351no souboru:"
30
+ ::msgcat::mcset cs "File &names:" "&Jm\351na soubor\u016f:"
31
+ ::msgcat::mcset cs "Files of &type:" "&Typy soubor\u016f:"
32
+ ::msgcat::mcset cs "Fi&les:" "Sou&bory:"
33
+ ::msgcat::mcset cs "&Filter" "&Filtr"
34
+ ::msgcat::mcset cs "Fil&ter:" "Fil&tr:"
35
+ ::msgcat::mcset cs "Font st&yle:"
36
+ ::msgcat::mcset cs "&Green" "Ze&len\341"
37
+ ::msgcat::mcset cs "&Help" "&N\341pov\u011bda"
38
+ ::msgcat::mcset cs "Hi" "Ahoj"
39
+ ::msgcat::mcset cs "&Hide Console" "&Schovat Konzolu"
40
+ ::msgcat::mcset cs "&Ignore" "&Ignorovat"
41
+ ::msgcat::mcset cs "Invalid file name \"%1\$s\"." "\u0160patn\351 jm\351no souboru \"%1\$s\"."
42
+ ::msgcat::mcset cs "Log Files" "Log soubory"
43
+ ::msgcat::mcset cs "&No" "&Ne"
44
+ ::msgcat::mcset cs "&OK"
45
+ ::msgcat::mcset cs "OK"
46
+ ::msgcat::mcset cs "Ok"
47
+ ::msgcat::mcset cs "Open" "Otev\u0159\355t"
48
+ ::msgcat::mcset cs "&Open" "&Otev\u0159\355t"
49
+ ::msgcat::mcset cs "Open Multiple Files" "Otev\u0159\355t v\355ce soubor\u016f"
50
+ ::msgcat::mcset cs "P&aste" "&Vlo\u017eit"
51
+ ::msgcat::mcset cs "&Quit" "&Ukon\u010dit"
52
+ ::msgcat::mcset cs "&Red" "\u010ce&rven\341"
53
+ ::msgcat::mcset cs "Replace existing file?" "Nahradit st\341vaj\355c\355 soubor?"
54
+ ::msgcat::mcset cs "&Retry" "Z&novu"
55
+ ::msgcat::mcset cs "&Save" "&Ulo\u017eit"
56
+ ::msgcat::mcset cs "Save As" "Ulo\u017eit jako"
57
+ ::msgcat::mcset cs "Save To Log" "Ulo\u017eit do logu"
58
+ ::msgcat::mcset cs "Select Log File" "Vybrat log soubor"
59
+ ::msgcat::mcset cs "Select a file to source" "Vybrat soubor k nahr\341n\355"
60
+ ::msgcat::mcset cs "&Selection:" "&V\375b\u011br:"
61
+ ::msgcat::mcset cs "Skip Messages" "P\u0159esko\u010dit zpr\341vy"
62
+ ::msgcat::mcset cs "&Source..." "&Zdroj..."
63
+ ::msgcat::mcset cs "Tcl Scripts" "Tcl skripty"
64
+ ::msgcat::mcset cs "Tcl for Windows" "Tcl pro Windows"
65
+ ::msgcat::mcset cs "Text Files" "Textov\351 soubory"
66
+ ::msgcat::mcset cs "abort" "p\u0159eru\u0161it"
67
+ ::msgcat::mcset cs "blue" "modr\341"
68
+ ::msgcat::mcset cs "cancel" "zru\u0161it"
69
+ ::msgcat::mcset cs "extension" "p\u0159\355pona"
70
+ ::msgcat::mcset cs "extensions" "p\u0159\355pony"
71
+ ::msgcat::mcset cs "green" "zelen\341"
72
+ ::msgcat::mcset cs "ignore" "ignorovat"
73
+ ::msgcat::mcset cs "ok"
74
+ ::msgcat::mcset cs "red" "\u010derven\341"
75
+ ::msgcat::mcset cs "retry" "znovu"
76
+ ::msgcat::mcset cs "yes" "ano"
77
+ }
mplug_owl2/lib/tk8.6/msgs/de.msg ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ namespace eval ::tk {
2
+ ::msgcat::mcset de "&Abort" "&Abbruch"
3
+ ::msgcat::mcset de "&About..." "&\u00dcber..."
4
+ ::msgcat::mcset de "All Files" "Alle Dateien"
5
+ ::msgcat::mcset de "Application Error" "Applikationsfehler"
6
+ ::msgcat::mcset de "&Apply" "&Anwenden"
7
+ ::msgcat::mcset de "Bold" "Fett"
8
+ ::msgcat::mcset de "Bold Italic" "Fett kursiv"
9
+ ::msgcat::mcset de "&Blue" "&Blau"
10
+ ::msgcat::mcset de "Cancel" "Abbruch"
11
+ ::msgcat::mcset de "&Cancel" "&Abbruch"
12
+ ::msgcat::mcset de "Cannot change to the directory \"%1\$s\".\nPermission denied." "Kann nicht in das Verzeichnis \"%1\$s\" wechseln.\nKeine Rechte vorhanden."
13
+ ::msgcat::mcset de "Choose Directory" "W\u00e4hle Verzeichnis"
14
+ ::msgcat::mcset de "Cl&ear" "&R\u00fccksetzen"
15
+ ::msgcat::mcset de "&Clear Console" "&Konsole l\u00f6schen"
16
+ ::msgcat::mcset de "Color" "Farbe"
17
+ ::msgcat::mcset de "Console" "Konsole"
18
+ ::msgcat::mcset de "&Copy" "&Kopieren"
19
+ ::msgcat::mcset de "Cu&t" "Aus&schneiden"
20
+ ::msgcat::mcset de "&Delete" "&L\u00f6schen"
21
+ ::msgcat::mcset de "Details >>"
22
+ ::msgcat::mcset de "Directory \"%1\$s\" does not exist." "Das Verzeichnis \"%1\$s\" existiert nicht."
23
+ ::msgcat::mcset de "&Directory:" "&Verzeichnis:"
24
+ ::msgcat::mcset de "&Edit" "&Bearbeiten"
25
+ ::msgcat::mcset de "Effects" "Effekte"
26
+ ::msgcat::mcset de "Error: %1\$s" "Fehler: %1\$s"
27
+ ::msgcat::mcset de "E&xit" "&Ende"
28
+ ::msgcat::mcset de "&File" "&Datei"
29
+ ::msgcat::mcset de "File \"%1\$s\" already exists.\nDo you want to overwrite it?" "Die Datei \"%1\$s\" ist bereits vorhanden.\nWollen sie diese Datei \u00fcberschreiben ?"
30
+ ::msgcat::mcset de "File \"%1\$s\" already exists.\n\n" "Die Datei \"%1\$s\" ist bereits vorhanden.\n\n"
31
+ ::msgcat::mcset de "File \"%1\$s\" does not exist." "Die Datei \"%1\$s\" existiert nicht."
32
+ ::msgcat::mcset de "File &name:" "Datei&name:"
33
+ ::msgcat::mcset de "File &names:" "Datei&namen:"
34
+ ::msgcat::mcset de "Files of &type:" "Dateien des &Typs:"
35
+ ::msgcat::mcset de "Fi&les:" "Dat&eien:"
36
+ ::msgcat::mcset de "&Filter"
37
+ ::msgcat::mcset de "Fil&ter:"
38
+ ::msgcat::mcset de "Font" "Schriftart"
39
+ ::msgcat::mcset de "&Font:" "Schriftart:"
40
+ ::msgcat::mcset de "Font st&yle:" "Schriftschnitt:"
41
+ ::msgcat::mcset de "&Green" "&Gr\u00fcn"
42
+ ::msgcat::mcset de "&Help" "&Hilfe"
43
+ ::msgcat::mcset de "Hi" "Hallo"
44
+ ::msgcat::mcset de "&Hide Console" "&Konsole unsichtbar machen"
45
+ ::msgcat::mcset de "&Ignore" "&Ignorieren"
46
+ ::msgcat::mcset de "Invalid file name \"%1\$s\"." "Ung\u00fcltiger Dateiname \"%1\$s\"."
47
+ ::msgcat::mcset de "Italic" "Kursiv"
48
+ ::msgcat::mcset de "Log Files" "Protokolldatei"
49
+ ::msgcat::mcset de "&No" "&Nein"
50
+ ::msgcat::mcset de "&OK"
51
+ ::msgcat::mcset de "OK"
52
+ ::msgcat::mcset de "Ok"
53
+ ::msgcat::mcset de "Open" "\u00d6ffnen"
54
+ ::msgcat::mcset de "&Open" "\u00d6&ffnen"
55
+ ::msgcat::mcset de "Open Multiple Files" "Mehrere Dateien \u00F6ffnen"
56
+ ::msgcat::mcset de "P&aste" "E&inf\u00fcgen"
57
+ ::msgcat::mcset de "&Quit" "&Beenden"
58
+ ::msgcat::mcset de "&Red" "&Rot"
59
+ ::msgcat::mcset de "Regular" "Standard"
60
+ ::msgcat::mcset de "Replace existing file?" "Existierende Datei ersetzen?"
61
+ ::msgcat::mcset de "&Retry" "&Wiederholen"
62
+ ::msgcat::mcset de "Sample" "Beispiel"
63
+ ::msgcat::mcset de "&Save" "&Speichern"
64
+ ::msgcat::mcset de "Save As" "Speichern unter"
65
+ ::msgcat::mcset de "Save To Log" "In Protokoll speichern"
66
+ ::msgcat::mcset de "Select Log File" "Protokolldatei ausw\u00e4hlen"
67
+ ::msgcat::mcset de "Select a file to source" "Auszuf\u00fchrende Datei ausw\u00e4hlen"
68
+ ::msgcat::mcset de "&Selection:" "Auswah&l:"
69
+ ::msgcat::mcset de "&Size:" "Schriftgrad:"
70
+ ::msgcat::mcset de "Show &Hidden Directories" "Zeige versteckte Dateien"
71
+ ::msgcat::mcset de "Show &Hidden Files and Directories" "Zeige versteckte Dateien und Verzeichnisse"
72
+ ::msgcat::mcset de "Skip Messages" "Weitere Nachrichten \u00fcberspringen"
73
+ ::msgcat::mcset de "&Source..." "&Ausf\u00fchren..."
74
+ ::msgcat::mcset de "Stri&keout" "&Durchgestrichen"
75
+ ::msgcat::mcset de "Tcl Scripts" "Tcl-Skripte"
76
+ ::msgcat::mcset de "Tcl for Windows" "Tcl f\u00fcr Windows"
77
+ ::msgcat::mcset de "Text Files" "Textdateien"
78
+ ::msgcat::mcset de "&Underline" "&Unterstrichen"
79
+ ::msgcat::mcset de "&Yes" "&Ja"
80
+ ::msgcat::mcset de "abort" "abbrechen"
81
+ ::msgcat::mcset de "blue" "blau"
82
+ ::msgcat::mcset de "cancel" "abbrechen"
83
+ ::msgcat::mcset de "extension" "Erweiterung"
84
+ ::msgcat::mcset de "extensions" "Erweiterungen"
85
+ ::msgcat::mcset de "green" "gr\u00fcn"
86
+ ::msgcat::mcset de "ignore" "ignorieren"
87
+ ::msgcat::mcset de "ok"
88
+ ::msgcat::mcset de "red" "rot"
89
+ ::msgcat::mcset de "retry" "wiederholen"
90
+ ::msgcat::mcset de "yes" "ja"
91
+ }
mplug_owl2/lib/tk8.6/msgs/el.msg ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## Messages for the Greek (Hellenic - "el") language.
2
+ ## Please report any changes/suggestions to:
3
+ ## petasis@iit.demokritos.gr
4
+
5
+ namespace eval ::tk {
6
+ ::msgcat::mcset el "&Abort" "\u03a4\u03b5\u03c1\u03bc\u03b1\u03c4\u03b9\u03c3\u03bc\u03cc\u03c2"
7
+ ::msgcat::mcset el "About..." "\u03a3\u03c7\u03b5\u03c4\u03b9\u03ba\u03ac..."
8
+ ::msgcat::mcset el "All Files" "\u038c\u03bb\u03b1 \u03c4\u03b1 \u0391\u03c1\u03c7\u03b5\u03af\u03b1"
9
+ ::msgcat::mcset el "Application Error" "\u039b\u03ac\u03b8\u03bf\u03c2 \u0395\u03c6\u03b1\u03c1\u03bc\u03bf\u03b3\u03ae\u03c2"
10
+ ::msgcat::mcset el "&Blue" "\u039c\u03c0\u03bb\u03b5"
11
+ ::msgcat::mcset el "&Cancel" "\u0391\u03ba\u03cd\u03c1\u03c9\u03c3\u03b7"
12
+ ::msgcat::mcset el \
13
+ "Cannot change to the directory \"%1\$s\".\nPermission denied." \
14
+ "\u0394\u03b5\u03bd \u03b5\u03af\u03bd\u03b1\u03b9 \u03b4\u03c5\u03bd\u03b1\u03c4\u03ae \u03b7 \u03b1\u03bb\u03bb\u03b1\u03b3\u03ae \u03ba\u03b1\u03c4\u03b1\u03bb\u03cc\u03b3\u03bf\u03c5 \u03c3\u03b5 \"%1\$s\".\n\u0397 \u03c0\u03c1\u03cc\u03c3\u03b2\u03b1\u03c3\u03b7 \u03b4\u03b5\u03bd \u03b5\u03c0\u03b9\u03c4\u03c1\u03ad\u03c0\u03b5\u03c4\u03b1\u03b9."
15
+ ::msgcat::mcset el "Choose Directory" "\u0395\u03c0\u03b9\u03bb\u03bf\u03b3\u03ae \u039a\u03b1\u03c4\u03b1\u03bb\u03cc\u03b3\u03bf\u03c5"
16
+ ::msgcat::mcset el "Clear" "\u039a\u03b1\u03b8\u03b1\u03c1\u03b9\u03c3\u03bc\u03cc\u03c2"
17
+ ::msgcat::mcset el "Color" "\u03a7\u03c1\u03ce\u03bc\u03b1"
18
+ ::msgcat::mcset el "Console" "\u039a\u03bf\u03bd\u03c3\u03cc\u03bb\u03b1"
19
+ ::msgcat::mcset el "Copy" "\u0391\u03bd\u03c4\u03b9\u03b3\u03c1\u03b1\u03c6\u03ae"
20
+ ::msgcat::mcset el "Cut" "\u0391\u03c0\u03bf\u03ba\u03bf\u03c0\u03ae"
21
+ ::msgcat::mcset el "Delete" "\u0394\u03b9\u03b1\u03b3\u03c1\u03b1\u03c6\u03ae"
22
+ ::msgcat::mcset el "Details >>" "\u039b\u03b5\u03c0\u03c4\u03bf\u03bc\u03ad\u03c1\u03b5\u03b9\u03b5\u03c2 >>"
23
+ ::msgcat::mcset el "Directory \"%1\$s\" does not exist." \
24
+ "\u039f \u03ba\u03b1\u03c4\u03ac\u03bb\u03bf\u03b3\u03bf\u03c2 \"%1\$s\" \u03b4\u03b5\u03bd \u03c5\u03c0\u03ac\u03c1\u03c7\u03b5\u03b9."
25
+ ::msgcat::mcset el "&Directory:" "&\u039a\u03b1\u03c4\u03ac\u03bb\u03bf\u03b3\u03bf\u03c2:"
26
+ ::msgcat::mcset el "Error: %1\$s" "\u039b\u03ac\u03b8\u03bf\u03c2: %1\$s"
27
+ ::msgcat::mcset el "Exit" "\u0388\u03be\u03bf\u03b4\u03bf\u03c2"
28
+ ::msgcat::mcset el \
29
+ "File \"%1\$s\" already exists.\nDo you want to overwrite it?" \
30
+ "\u03a4\u03bf \u03b1\u03c1\u03c7\u03b5\u03af\u03bf \"%1\$s\" \u03ae\u03b4\u03b7 \u03c5\u03c0\u03ac\u03c1\u03c7\u03b5\u03b9.\n\u0398\u03ad\u03bb\u03b5\u03c4\u03b5 \u03bd\u03b1 \u03b5\u03c0\u03b9\u03ba\u03b1\u03bb\u03c5\u03c6\u03b8\u03b5\u03af;"
31
+ ::msgcat::mcset el "File \"%1\$s\" already exists.\n\n" \
32
+ "\u03a4\u03bf \u03b1\u03c1\u03c7\u03b5\u03af\u03bf \"%1\$s\" \u03ae\u03b4\u03b7 \u03c5\u03c0\u03ac\u03c1\u03c7\u03b5\u03b9.\n\n"
33
+ ::msgcat::mcset el "File \"%1\$s\" does not exist." \
34
+ "\u03a4\u03bf \u03b1\u03c1\u03c7\u03b5\u03af\u03bf \"%1\$s\" \u03b4\u03b5\u03bd \u03c5\u03c0\u03ac\u03c1\u03c7\u03b5\u03b9."
35
+ ::msgcat::mcset el "File &name:" "\u038c&\u03bd\u03bf\u03bc\u03b1 \u03b1\u03c1\u03c7\u03b5\u03af\u03bf\u03c5:"
36
+ ::msgcat::mcset el "File &names:" "\u038c&\u03bd\u03bf\u03bc\u03b1 \u03b1\u03c1\u03c7\u03b5\u03af\u03c9\u03bd:"
37
+ ::msgcat::mcset el "Files of &type:" "\u0391\u03c1\u03c7\u03b5\u03af\u03b1 \u03c4\u03bf\u03c5 &\u03c4\u03cd\u03c0\u03bf\u03c5:"
38
+ ::msgcat::mcset el "Fi&les:" "\u0391\u03c1\u03c7\u03b5\u03af\u03b1:"
39
+ ::msgcat::mcset el "&Filter" "\u03a6\u03af\u03bb\u03c4\u03c1\u03bf"
40
+ ::msgcat::mcset el "Fil&ter:" "\u03a6\u03af\u03bb\u03c4\u03c1\u03bf:"
41
+ ::msgcat::mcset el "&Green" "\u03a0\u03c1\u03ac\u03c3\u03b9\u03bd\u03bf"
42
+ ::msgcat::mcset el "Hi" "\u0393\u03b5\u03b9\u03b1"
43
+ ::msgcat::mcset el "Hide Console" "\u0391\u03c0\u03cc\u03ba\u03c1\u03c5\u03c8\u03b7 \u03ba\u03bf\u03bd\u03c3\u03cc\u03bb\u03b1\u03c2"
44
+ ::msgcat::mcset el "&Ignore" "\u0391\u03b3\u03bd\u03cc\u03b7\u03c3\u03b7"
45
+ ::msgcat::mcset el "Invalid file name \"%1\$s\"." \
46
+ "\u0386\u03ba\u03c5\u03c1\u03bf \u03cc\u03bd\u03bf\u03bc\u03b1 \u03b1\u03c1\u03c7\u03b5\u03af\u03bf\u03c5 \"%1\$s\"."
47
+ ::msgcat::mcset el "Log Files" "\u0391\u03c1\u03c7\u03b5\u03af\u03b1 \u039a\u03b1\u03c4\u03b1\u03b3\u03c1\u03b1\u03c6\u03ae\u03c2"
48
+ ::msgcat::mcset el "&No" "\u038c\u03c7\u03b9"
49
+ ::msgcat::mcset el "&OK" "\u0395\u03bd\u03c4\u03ac\u03be\u03b5\u03b9"
50
+ ::msgcat::mcset el "OK" "\u0395\u03bd\u03c4\u03ac\u03be\u03b5\u03b9"
51
+ ::msgcat::mcset el "Ok" "\u0395\u03bd\u03c4\u03ac\u03be\u03b5\u03b9"
52
+ ::msgcat::mcset el "Open" "\u0386\u03bd\u03bf\u03b9\u03b3\u03bc\u03b1"
53
+ ::msgcat::mcset el "&Open" "\u0386\u03bd\u03bf\u03b9\u03b3\u03bc\u03b1"
54
+ ::msgcat::mcset el "Open Multiple Files" \
55
+ "\u0386\u03bd\u03bf\u03b9\u03b3\u03bc\u03b1 \u03c0\u03bf\u03bb\u03bb\u03b1\u03c0\u03bb\u03ce\u03bd \u03b1\u03c1\u03c7\u03b5\u03af\u03c9\u03bd"
56
+ ::msgcat::mcset el "P&aste" "\u0395\u03c0\u03b9\u03ba\u03cc\u03bb\u03bb\u03b7\u03c3\u03b7"
57
+ ::msgcat::mcset el "Quit" "\u0388\u03be\u03bf\u03b4\u03bf\u03c2"
58
+ ::msgcat::mcset el "&Red" "\u039a\u03cc\u03ba\u03ba\u03b9\u03bd\u03bf"
59
+ ::msgcat::mcset el "Replace existing file?" \
60
+ "\u0395\u03c0\u03b9\u03ba\u03ac\u03bb\u03c5\u03c8\u03b7 \u03c5\u03c0\u03ac\u03c1\u03c7\u03bf\u03bd\u03c4\u03bf\u03c2 \u03b1\u03c1\u03c7\u03b5\u03af\u03bf\u03c5;"
61
+ ::msgcat::mcset el "&Retry" "\u03a0\u03c1\u03bf\u03c3\u03c0\u03ac\u03b8\u03b7\u03c3\u03b5 \u03be\u03b1\u03bd\u03ac"
62
+ ::msgcat::mcset el "&Save" "\u0391\u03c0\u03bf\u03b8\u03ae\u03ba\u03b5\u03c5\u03c3\u03b7"
63
+ ::msgcat::mcset el "Save As" "\u0391\u03c0\u03bf\u03b8\u03ae\u03ba\u03b5\u03c5\u03c3\u03b7 \u03c3\u03b1\u03bd"
64
+ ::msgcat::mcset el "Save To Log" "\u0391\u03c0\u03bf\u03b8\u03ae\u03ba\u03b5\u03c5\u03c3\u03b7 \u03c3\u03c4\u03bf \u03b1\u03c1\u03c7\u03b5\u03af\u03bf \u03ba\u03b1\u03c4\u03b1\u03b3\u03c1\u03b1\u03c6\u03ae\u03c2"
65
+ ::msgcat::mcset el "Select Log File" "\u0395\u03c0\u03b9\u03bb\u03bf\u03b3\u03ae \u03b1\u03c1\u03c7\u03b5\u03af\u03bf\u03c5 \u03ba\u03b1\u03c4\u03b1\u03b3\u03c1\u03b1\u03c6\u03ae\u03c2"
66
+ ::msgcat::mcset el "Select a file to source" \
67
+ "\u0395\u03c0\u03b9\u03bb\u03ad\u03be\u03c4\u03b5 \u03b1\u03c1\u03c7\u03b5\u03af\u03bf \u03b3\u03b9\u03b1 \u03b5\u03ba\u03c4\u03ad\u03bb\u03b5\u03c3\u03b7"
68
+ ::msgcat::mcset el "&Selection:" "\u0395\u03c0\u03b9\u03bb\u03bf\u03b3\u03ae:"
69
+ ::msgcat::mcset el "Skip Messages" "\u0391\u03c0\u03bf\u03c6\u03c5\u03b3\u03ae\u03bc\u03b7\u03bd\u03c5\u03bc\u03ac\u03c4\u03c9\u03bd"
70
+ ::msgcat::mcset el "&Source..." "\u0395\u03ba\u03c4\u03ad\u03bb\u03b5\u03c3\u03b7..."
71
+ ::msgcat::mcset el "Tcl Scripts" "Tcl Scripts"
72
+ ::msgcat::mcset el "Tcl for Windows" "Tcl \u03b3\u03b9\u03b1 Windows"
73
+ ::msgcat::mcset el "Text Files" "\u0391\u03c1\u03c7\u03b5\u03af\u03b1 \u039a\u03b5\u03b9\u03bc\u03ad\u03bd\u03bf\u03c5"
74
+ ::msgcat::mcset el "&Yes" "\u039d\u03b1\u03b9"
75
+ ::msgcat::mcset el "abort" "\u03c4\u03b5\u03c1\u03bc\u03b1\u03c4\u03b9\u03c3\u03bc\u03cc\u03c2"
76
+ ::msgcat::mcset el "blue" "\u03bc\u03c0\u03bb\u03b5"
77
+ ::msgcat::mcset el "cancel" "\u03b1\u03ba\u03cd\u03c1\u03c9\u03c3\u03b7"
78
+ ::msgcat::mcset el "extension" "\u03b5\u03c0\u03ad\u03ba\u03c4\u03b1\u03c3\u03b7"
79
+ ::msgcat::mcset el "extensions" "\u03b5\u03c0\u03b5\u03ba\u03c4\u03ac\u03c3\u03b5\u03b9\u03c2"
80
+ ::msgcat::mcset el "green" "\u03c0\u03c1\u03ac\u03c3\u03b9\u03bd\u03bf"
81
+ ::msgcat::mcset el "ignore" "\u03b1\u03b3\u03bd\u03cc\u03b7\u03c3\u03b7"
82
+ ::msgcat::mcset el "ok" "\u03b5\u03bd\u03c4\u03ac\u03be\u03b5\u03b9"
83
+ ::msgcat::mcset el "red" "\u03ba\u03cc\u03ba\u03ba\u03b9\u03bd\u03bf"
84
+ ::msgcat::mcset el "retry" "\u03c0\u03c1\u03bf\u03c3\u03c0\u03ac\u03b8\u03b7\u03c3\u03b5 \u03be\u03b1\u03bd\u03ac"
85
+ ::msgcat::mcset el "yes" "\u03bd\u03b1\u03b9"
86
+ }
mplug_owl2/lib/tk8.6/msgs/en_gb.msg ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ namespace eval ::tk {
2
+ ::msgcat::mcset en_gb Color Colour
3
+ }
mplug_owl2/lib/tk8.6/msgs/it.msg ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ namespace eval ::tk {
2
+ ::msgcat::mcset it "&Abort" "&Interrompi"
3
+ ::msgcat::mcset it "&About..." "Informazioni..."
4
+ ::msgcat::mcset it "All Files" "Tutti i file"
5
+ ::msgcat::mcset it "Application Error" "Errore dell' applicazione"
6
+ ::msgcat::mcset it "&Blue" "&Blu"
7
+ ::msgcat::mcset it "Cancel" "Annulla"
8
+ ::msgcat::mcset it "&Cancel" "&Annulla"
9
+ ::msgcat::mcset it "Cannot change to the directory \"%1\$s\".\nPermission denied." "Impossibile accedere alla directory \"%1\$s\".\nPermesso negato."
10
+ ::msgcat::mcset it "Choose Directory" "Scegli una directory"
11
+ ::msgcat::mcset it "Cl&ear" "Azzera"
12
+ ::msgcat::mcset it "&Clear Console" "Azzera Console"
13
+ ::msgcat::mcset it "Color" "Colore"
14
+ ::msgcat::mcset it "Console"
15
+ ::msgcat::mcset it "&Copy" "Copia"
16
+ ::msgcat::mcset it "Cu&t" "Taglia"
17
+ ::msgcat::mcset it "Delete" "Cancella"
18
+ ::msgcat::mcset it "Details >>" "Dettagli >>"
19
+ ::msgcat::mcset it "Directory \"%1\$s\" does not exist." "La directory \"%1\$s\" non esiste."
20
+ ::msgcat::mcset it "&Directory:"
21
+ ::msgcat::mcset it "Error: %1\$s" "Errore: %1\$s"
22
+ ::msgcat::mcset it "E&xit" "Esci"
23
+ ::msgcat::mcset it "File \"%1\$s\" already exists.\nDo you want to overwrite it?" "Il file \"%1\$s\" esiste gi\u00e0.\nVuoi sovrascriverlo?"
24
+ ::msgcat::mcset it "File \"%1\$s\" already exists.\n\n" "Il file \"%1\$s\" esiste gi\u00e0.\n\n"
25
+ ::msgcat::mcset it "File \"%1\$s\" does not exist." "Il file \"%1\$s\" non esiste."
26
+ ::msgcat::mcset it "File &name:" "&Nome del file:"
27
+ ::msgcat::mcset it "File &names:" "&Nomi dei file:"
28
+ ::msgcat::mcset it "Files of &type:" "File di &tipo:"
29
+ ::msgcat::mcset it "Fi&les:" "Fi&le:"
30
+ ::msgcat::mcset it "&Filter" "&Filtro"
31
+ ::msgcat::mcset it "Fil&ter:" "Fil&tro:"
32
+ ::msgcat::mcset it "&Green" "&Verde"
33
+ ::msgcat::mcset it "Hi" "Salve"
34
+ ::msgcat::mcset it "&Hide Console" "Nascondi la console"
35
+ ::msgcat::mcset it "&Ignore" "&Ignora"
36
+ ::msgcat::mcset it "Invalid file name \"%1\$s\"." "Nome di file non valido \"%1\$s\"."
37
+ ::msgcat::mcset it "Log Files" "File di log"
38
+ ::msgcat::mcset it "&No"
39
+ ::msgcat::mcset it "&OK"
40
+ ::msgcat::mcset it "OK"
41
+ ::msgcat::mcset it "Ok"
42
+ ::msgcat::mcset it "Open" "Apri"
43
+ ::msgcat::mcset it "&Open" "A&pri"
44
+ ::msgcat::mcset it "Open Multiple Files" "Apri file multipli"
45
+ ::msgcat::mcset it "P&aste" "Incolla"
46
+ ::msgcat::mcset it "&Quit" "Esci"
47
+ ::msgcat::mcset it "&Red" "&Rosso"
48
+ ::msgcat::mcset it "Replace existing file?" "Sostituisci il file esistente?"
49
+ ::msgcat::mcset it "&Retry" "&Riprova"
50
+ ::msgcat::mcset it "&Save" "&Salva"
51
+ ::msgcat::mcset it "Save As" "Salva come"
52
+ ::msgcat::mcset it "Save To Log" "Salva il log"
53
+ ::msgcat::mcset it "Select Log File" "Scegli un file di log"
54
+ ::msgcat::mcset it "Select a file to source" "Scegli un file da eseguire"
55
+ ::msgcat::mcset it "&Selection:" "&Selezione:"
56
+ ::msgcat::mcset it "Skip Messages" "Salta i messaggi"
57
+ ::msgcat::mcset it "Source..." "Esegui..."
58
+ ::msgcat::mcset it "Tcl Scripts" "Script Tcl"
59
+ ::msgcat::mcset it "Tcl for Windows" "Tcl per Windows"
60
+ ::msgcat::mcset it "Text Files" "File di testo"
61
+ ::msgcat::mcset it "&Yes" "&S\u00ec"
62
+ ::msgcat::mcset it "abort" "interrompi"
63
+ ::msgcat::mcset it "blue" "blu"
64
+ ::msgcat::mcset it "cancel" "annulla"
65
+ ::msgcat::mcset it "extension" "estensione"
66
+ ::msgcat::mcset it "extensions" "estensioni"
67
+ ::msgcat::mcset it "green" "verde"
68
+ ::msgcat::mcset it "ignore" "ignora"
69
+ ::msgcat::mcset it "ok"
70
+ ::msgcat::mcset it "red" "rosso"
71
+ ::msgcat::mcset it "retry" "riprova"
72
+ ::msgcat::mcset it "yes" "s\u00ec"
73
+ }
mplug_owl2/lib/tk8.6/msgs/nl.msg ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ namespace eval ::tk {
2
+ ::msgcat::mcset nl "&Abort" "&Afbreken"
3
+ ::msgcat::mcset nl "&About..." "Over..."
4
+ ::msgcat::mcset nl "All Files" "Alle Bestanden"
5
+ ::msgcat::mcset nl "Application Error" "Toepassingsfout"
6
+ ::msgcat::mcset nl "&Apply" "Toepassen"
7
+ ::msgcat::mcset nl "Bold" "Vet"
8
+ ::msgcat::mcset nl "Bold Italic" "Vet Cursief"
9
+ ::msgcat::mcset nl "&Blue" "&Blauw"
10
+ ::msgcat::mcset nl "Cancel" "Annuleren"
11
+ ::msgcat::mcset nl "&Cancel" "&Annuleren"
12
+ ::msgcat::mcset nl "Cannot change to the directory \"%1\$s\".\nPermission denied." "Kan niet naar map \"%1\$s\" gaan.\nU heeft hiervoor geen toestemming."
13
+ ::msgcat::mcset nl "Choose Directory" "Kies map"
14
+ ::msgcat::mcset nl "Cl&ear" "Wissen"
15
+ ::msgcat::mcset nl "&Clear Console" "&Wis Console"
16
+ ::msgcat::mcset nl "Color" "Kleur"
17
+ ::msgcat::mcset nl "Console"
18
+ ::msgcat::mcset nl "&Copy" "Kopi\u00ebren"
19
+ ::msgcat::mcset nl "Cu&t" "Knippen"
20
+ ::msgcat::mcset nl "&Delete" "Wissen"
21
+ ::msgcat::mcset nl "Details >>"
22
+ ::msgcat::mcset nl "Directory \"%1\$s\" does not exist." "Map \"%1\$s\" bestaat niet."
23
+ ::msgcat::mcset nl "&Directory:" "&Map:"
24
+ ::msgcat::mcset nl "&Edit" "Bewerken"
25
+ ::msgcat::mcset nl "Effects" "Effecten"
26
+ ::msgcat::mcset nl "Error: %1\$s" "Fout: %1\$s"
27
+ ::msgcat::mcset nl "E&xit" "Be\u00ebindigen"
28
+ ::msgcat::mcset nl "&File" "Bestand"
29
+ ::msgcat::mcset nl "File \"%1\$s\" already exists.\nDo you want to overwrite it?" "Bestand \"%1\$s\" bestaat al.\nWilt u het overschrijven?"
30
+ ::msgcat::mcset nl "File \"%1\$s\" already exists.\n\n" "Bestand \"%1\$s\" bestaat al.\n\n"
31
+ ::msgcat::mcset nl "File \"%1\$s\" does not exist." "Bestand \"%1\$s\" bestaat niet."
32
+ ::msgcat::mcset nl "File &name:" "Bestands&naam:"
33
+ ::msgcat::mcset nl "File &names:" "Bestands&namen:"
34
+ ::msgcat::mcset nl "Files of &type:" "Bestanden van het &type:"
35
+ ::msgcat::mcset nl "Fi&les:" "&Bestanden:"
36
+ ::msgcat::mcset nl "&Filter"
37
+ ::msgcat::mcset nl "Fil&ter:"
38
+ ::msgcat::mcset nl "Font"
39
+ ::msgcat::mcset nl "&Font:"
40
+ ::msgcat::mcset nl "Font st&yle:" "Font stijl:"
41
+ ::msgcat::mcset nl "&Green" "&Groen"
42
+ ::msgcat::mcset nl "&Help"
43
+ ::msgcat::mcset nl "Hi" "H\u00e9"
44
+ ::msgcat::mcset nl "&Hide Console" "Verberg Console"
45
+ ::msgcat::mcset nl "&Ignore" "&Negeren"
46
+ ::msgcat::mcset nl "Invalid file name \"%1\$s\"." "Ongeldige bestandsnaam \"%1\$s\"."
47
+ ::msgcat::mcset nl "Italic" "Cursief"
48
+ ::msgcat::mcset nl "Log Files" "Log Bestanden"
49
+ ::msgcat::mcset nl "&No" "&Nee"
50
+ ::msgcat::mcset nl "&OK"
51
+ ::msgcat::mcset nl "OK"
52
+ ::msgcat::mcset nl "Ok"
53
+ ::msgcat::mcset nl "Open" "Openen"
54
+ ::msgcat::mcset nl "&Open" "&Openen"
55
+ ::msgcat::mcset nl "Open Multiple Files" "Open meerdere bestanden"
56
+ ::msgcat::mcset nl "P&aste" "Pl&akken"
57
+ ::msgcat::mcset nl "&Quit" "Stoppen"
58
+ ::msgcat::mcset nl "&Red" "&Rood"
59
+ ::msgcat::mcset nl "Regular" "Standaard"
60
+ ::msgcat::mcset nl "Replace existing file?" "Vervang bestaand bestand?"
61
+ ::msgcat::mcset nl "&Retry" "&Herhalen"
62
+ ::msgcat::mcset nl "Sample"
63
+ ::msgcat::mcset nl "&Save" "Op&slaan"
64
+ ::msgcat::mcset nl "Save As" "Opslaan als"
65
+ ::msgcat::mcset nl "Save To Log" "Opslaan naar Log"
66
+ ::msgcat::mcset nl "Select Log File" "Selecteer Log bestand"
67
+ ::msgcat::mcset nl "Select a file to source" "Selecteer bronbestand"
68
+ ::msgcat::mcset nl "&Selection:" "&Selectie:"
69
+ ::msgcat::mcset nl "&Size:" "Grootte"
70
+ ::msgcat::mcset nl "Show &Hidden Directories" "Laat verborgen mappen zien"
71
+ ::msgcat::mcset nl "Show &Hidden Files and Directories" "Laat verborgen bestanden mappen zien"
72
+ ::msgcat::mcset nl "Skip Messages" "Berichten overslaan"
73
+ ::msgcat::mcset nl "&Source..." "Bron..."
74
+ ::msgcat::mcset nl "Stri&keout"
75
+ ::msgcat::mcset nl "Tcl Scripts"
76
+ ::msgcat::mcset nl "Tcl for Windows" "Tcl voor Windows"
77
+ ::msgcat::mcset nl "Text Files" "Tekstbestanden"
78
+ ::msgcat::mcset nl "&Underline" "Onderstreept"
79
+ ::msgcat::mcset nl "&Yes" "&Ja"
80
+ ::msgcat::mcset nl "abort" "afbreken"
81
+ ::msgcat::mcset nl "blue" "blauw"
82
+ ::msgcat::mcset nl "cancel" "annuleren"
83
+ ::msgcat::mcset nl "extension"
84
+ ::msgcat::mcset nl "extensions"
85
+ ::msgcat::mcset nl "green" "groen"
86
+ ::msgcat::mcset nl "ignore" "negeren"
87
+ ::msgcat::mcset nl "ok"
88
+ ::msgcat::mcset nl "red" "rood"
89
+ ::msgcat::mcset nl "retry" "opnieuw"
90
+ ::msgcat::mcset nl "yes" "ja"
91
+ }
openflamingo/lib/python3.10/site-packages/transformers/models/dit/__init__.py ADDED
File without changes
openflamingo/lib/python3.10/site-packages/transformers/models/dit/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (181 Bytes). View file
 
openflamingo/lib/python3.10/site-packages/transformers/models/dit/__pycache__/convert_dit_unilm_to_pytorch.cpython-310.pyc ADDED
Binary file (6.43 kB). View file
 
openflamingo/lib/python3.10/site-packages/transformers/models/herbert/__init__.py ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright 2020 The HuggingFace Team. All rights reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ from typing import TYPE_CHECKING
16
+
17
+ from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_tokenizers_available
18
+
19
+
20
+ _import_structure = {"tokenization_herbert": ["HerbertTokenizer"]}
21
+
22
+ try:
23
+ if not is_tokenizers_available():
24
+ raise OptionalDependencyNotAvailable()
25
+ except OptionalDependencyNotAvailable:
26
+ pass
27
+ else:
28
+ _import_structure["tokenization_herbert_fast"] = ["HerbertTokenizerFast"]
29
+
30
+
31
+ if TYPE_CHECKING:
32
+ from .tokenization_herbert import HerbertTokenizer
33
+
34
+ try:
35
+ if not is_tokenizers_available():
36
+ raise OptionalDependencyNotAvailable()
37
+ except OptionalDependencyNotAvailable:
38
+ pass
39
+ else:
40
+ from .tokenization_herbert_fast import HerbertTokenizerFast
41
+
42
+ else:
43
+ import sys
44
+
45
+ sys.modules[__name__] = _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)
openflamingo/lib/python3.10/site-packages/transformers/models/herbert/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (769 Bytes). View file
 
openflamingo/lib/python3.10/site-packages/transformers/models/herbert/__pycache__/tokenization_herbert.cpython-310.pyc ADDED
Binary file (19.3 kB). View file
 
openflamingo/lib/python3.10/site-packages/transformers/models/herbert/__pycache__/tokenization_herbert_fast.cpython-310.pyc ADDED
Binary file (5.86 kB). View file
 
openflamingo/lib/python3.10/site-packages/transformers/models/herbert/tokenization_herbert.py ADDED
@@ -0,0 +1,659 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding=utf-8
2
+ # Copyright 2020 The Google AI Language Team Authors, Allegro.pl, Facebook Inc. and the HuggingFace Inc. team.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ import json
16
+ import os
17
+ import re
18
+ import unicodedata
19
+ from typing import List, Optional, Tuple
20
+
21
+ from ...tokenization_utils import PreTrainedTokenizer, _is_control, _is_punctuation, _is_whitespace
22
+ from ...utils import logging
23
+
24
+
25
+ logger = logging.get_logger(__name__)
26
+
27
+ VOCAB_FILES_NAMES = {
28
+ "vocab_file": "vocab.json",
29
+ "merges_file": "merges.txt",
30
+ }
31
+
32
+ PRETRAINED_VOCAB_FILES_MAP = {
33
+ "vocab_file": {
34
+ "allegro/herbert-base-cased": "https://huggingface.co/allegro/herbert-base-cased/resolve/main/vocab.json"
35
+ },
36
+ "merges_file": {
37
+ "allegro/herbert-base-cased": "https://huggingface.co/allegro/herbert-base-cased/resolve/main/merges.txt"
38
+ },
39
+ }
40
+
41
+ PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES = {"allegro/herbert-base-cased": 514}
42
+ PRETRAINED_INIT_CONFIGURATION = {}
43
+
44
+
45
+ # Copied from transformers.models.xlm.tokenization_xlm.get_pairs
46
+ def get_pairs(word):
47
+ """
48
+ Return set of symbol pairs in a word. word is represented as tuple of symbols (symbols being variable-length
49
+ strings)
50
+ """
51
+ pairs = set()
52
+ prev_char = word[0]
53
+ for char in word[1:]:
54
+ pairs.add((prev_char, char))
55
+ prev_char = char
56
+ return pairs
57
+
58
+
59
+ # Copied from transformers.models.xlm.tokenization_xlm.replace_unicode_punct
60
+ def replace_unicode_punct(text):
61
+ """
62
+ Port of https://github.com/moses-smt/mosesdecoder/blob/master/scripts/tokenizer/replace-unicode-punctuation.perl
63
+ """
64
+ text = text.replace(",", ",")
65
+ text = re.sub(r"。\s*", ". ", text)
66
+ text = text.replace("、", ",")
67
+ text = text.replace("”", '"')
68
+ text = text.replace("“", '"')
69
+ text = text.replace("∶", ":")
70
+ text = text.replace(":", ":")
71
+ text = text.replace("?", "?")
72
+ text = text.replace("《", '"')
73
+ text = text.replace("》", '"')
74
+ text = text.replace(")", ")")
75
+ text = text.replace("!", "!")
76
+ text = text.replace("(", "(")
77
+ text = text.replace(";", ";")
78
+ text = text.replace("1", "1")
79
+ text = text.replace("」", '"')
80
+ text = text.replace("「", '"')
81
+ text = text.replace("0", "0")
82
+ text = text.replace("3", "3")
83
+ text = text.replace("2", "2")
84
+ text = text.replace("5", "5")
85
+ text = text.replace("6", "6")
86
+ text = text.replace("9", "9")
87
+ text = text.replace("7", "7")
88
+ text = text.replace("8", "8")
89
+ text = text.replace("4", "4")
90
+ text = re.sub(r".\s*", ". ", text)
91
+ text = text.replace("~", "~")
92
+ text = text.replace("’", "'")
93
+ text = text.replace("…", "...")
94
+ text = text.replace("━", "-")
95
+ text = text.replace("〈", "<")
96
+ text = text.replace("〉", ">")
97
+ text = text.replace("【", "[")
98
+ text = text.replace("】", "]")
99
+ text = text.replace("%", "%")
100
+ return text
101
+
102
+
103
+ # Copied from transformers.models.xlm.tokenization_xlm.remove_non_printing_char
104
+ def remove_non_printing_char(text):
105
+ """
106
+ Port of https://github.com/moses-smt/mosesdecoder/blob/master/scripts/tokenizer/remove-non-printing-char.perl
107
+ """
108
+ output = []
109
+ for char in text:
110
+ cat = unicodedata.category(char)
111
+ if cat.startswith("C"):
112
+ continue
113
+ output.append(char)
114
+ return "".join(output)
115
+
116
+
117
+ # Copied from transformers.models.bert.tokenization_bert.whitespace_tokenize
118
+ def whitespace_tokenize(text):
119
+ """Runs basic whitespace cleaning and splitting on a piece of text."""
120
+ text = text.strip()
121
+ if not text:
122
+ return []
123
+ tokens = text.split()
124
+ return tokens
125
+
126
+
127
+ # Copied from transformers.models.bert.tokenization_bert.BasicTokenizer
128
+ class BasicTokenizer(object):
129
+ """
130
+ Constructs a BasicTokenizer that will run basic tokenization (punctuation splitting, lower casing, etc.).
131
+
132
+ Args:
133
+ do_lower_case (`bool`, *optional*, defaults to `True`):
134
+ Whether or not to lowercase the input when tokenizing.
135
+ never_split (`Iterable`, *optional*):
136
+ Collection of tokens which will never be split during tokenization. Only has an effect when
137
+ `do_basic_tokenize=True`
138
+ tokenize_chinese_chars (`bool`, *optional*, defaults to `True`):
139
+ Whether or not to tokenize Chinese characters.
140
+
141
+ This should likely be deactivated for Japanese (see this
142
+ [issue](https://github.com/huggingface/transformers/issues/328)).
143
+ strip_accents (`bool`, *optional*):
144
+ Whether or not to strip all accents. If this option is not specified, then it will be determined by the
145
+ value for `lowercase` (as in the original BERT).
146
+ do_split_on_punc (`bool`, *optional*, defaults to `True`):
147
+ In some instances we want to skip the basic punctuation splitting so that later tokenization can capture
148
+ the full context of the words, such as contractions.
149
+ """
150
+
151
+ def __init__(
152
+ self,
153
+ do_lower_case=True,
154
+ never_split=None,
155
+ tokenize_chinese_chars=True,
156
+ strip_accents=None,
157
+ do_split_on_punc=True,
158
+ ):
159
+ if never_split is None:
160
+ never_split = []
161
+ self.do_lower_case = do_lower_case
162
+ self.never_split = set(never_split)
163
+ self.tokenize_chinese_chars = tokenize_chinese_chars
164
+ self.strip_accents = strip_accents
165
+ self.do_split_on_punc = do_split_on_punc
166
+
167
+ def tokenize(self, text, never_split=None):
168
+ """
169
+ Basic Tokenization of a piece of text. For sub-word tokenization, see WordPieceTokenizer.
170
+
171
+ Args:
172
+ never_split (`List[str]`, *optional*)
173
+ Kept for backward compatibility purposes. Now implemented directly at the base class level (see
174
+ [`PreTrainedTokenizer.tokenize`]) List of token not to split.
175
+ """
176
+ # union() returns a new set by concatenating the two sets.
177
+ never_split = self.never_split.union(set(never_split)) if never_split else self.never_split
178
+ text = self._clean_text(text)
179
+
180
+ # This was added on November 1st, 2018 for the multilingual and Chinese
181
+ # models. This is also applied to the English models now, but it doesn't
182
+ # matter since the English models were not trained on any Chinese data
183
+ # and generally don't have any Chinese data in them (there are Chinese
184
+ # characters in the vocabulary because Wikipedia does have some Chinese
185
+ # words in the English Wikipedia.).
186
+ if self.tokenize_chinese_chars:
187
+ text = self._tokenize_chinese_chars(text)
188
+ # prevents treating the same character with different unicode codepoints as different characters
189
+ unicode_normalized_text = unicodedata.normalize("NFC", text)
190
+ orig_tokens = whitespace_tokenize(unicode_normalized_text)
191
+ split_tokens = []
192
+ for token in orig_tokens:
193
+ if token not in never_split:
194
+ if self.do_lower_case:
195
+ token = token.lower()
196
+ if self.strip_accents is not False:
197
+ token = self._run_strip_accents(token)
198
+ elif self.strip_accents:
199
+ token = self._run_strip_accents(token)
200
+ split_tokens.extend(self._run_split_on_punc(token, never_split))
201
+
202
+ output_tokens = whitespace_tokenize(" ".join(split_tokens))
203
+ return output_tokens
204
+
205
+ def _run_strip_accents(self, text):
206
+ """Strips accents from a piece of text."""
207
+ text = unicodedata.normalize("NFD", text)
208
+ output = []
209
+ for char in text:
210
+ cat = unicodedata.category(char)
211
+ if cat == "Mn":
212
+ continue
213
+ output.append(char)
214
+ return "".join(output)
215
+
216
+ def _run_split_on_punc(self, text, never_split=None):
217
+ """Splits punctuation on a piece of text."""
218
+ if not self.do_split_on_punc or (never_split is not None and text in never_split):
219
+ return [text]
220
+ chars = list(text)
221
+ i = 0
222
+ start_new_word = True
223
+ output = []
224
+ while i < len(chars):
225
+ char = chars[i]
226
+ if _is_punctuation(char):
227
+ output.append([char])
228
+ start_new_word = True
229
+ else:
230
+ if start_new_word:
231
+ output.append([])
232
+ start_new_word = False
233
+ output[-1].append(char)
234
+ i += 1
235
+
236
+ return ["".join(x) for x in output]
237
+
238
+ def _tokenize_chinese_chars(self, text):
239
+ """Adds whitespace around any CJK character."""
240
+ output = []
241
+ for char in text:
242
+ cp = ord(char)
243
+ if self._is_chinese_char(cp):
244
+ output.append(" ")
245
+ output.append(char)
246
+ output.append(" ")
247
+ else:
248
+ output.append(char)
249
+ return "".join(output)
250
+
251
+ def _is_chinese_char(self, cp):
252
+ """Checks whether CP is the codepoint of a CJK character."""
253
+ # This defines a "chinese character" as anything in the CJK Unicode block:
254
+ # https://en.wikipedia.org/wiki/CJK_Unified_Ideographs_(Unicode_block)
255
+ #
256
+ # Note that the CJK Unicode block is NOT all Japanese and Korean characters,
257
+ # despite its name. The modern Korean Hangul alphabet is a different block,
258
+ # as is Japanese Hiragana and Katakana. Those alphabets are used to write
259
+ # space-separated words, so they are not treated specially and handled
260
+ # like the all of the other languages.
261
+ if (
262
+ (cp >= 0x4E00 and cp <= 0x9FFF)
263
+ or (cp >= 0x3400 and cp <= 0x4DBF) #
264
+ or (cp >= 0x20000 and cp <= 0x2A6DF) #
265
+ or (cp >= 0x2A700 and cp <= 0x2B73F) #
266
+ or (cp >= 0x2B740 and cp <= 0x2B81F) #
267
+ or (cp >= 0x2B820 and cp <= 0x2CEAF) #
268
+ or (cp >= 0xF900 and cp <= 0xFAFF)
269
+ or (cp >= 0x2F800 and cp <= 0x2FA1F) #
270
+ ): #
271
+ return True
272
+
273
+ return False
274
+
275
+ def _clean_text(self, text):
276
+ """Performs invalid character removal and whitespace cleanup on text."""
277
+ output = []
278
+ for char in text:
279
+ cp = ord(char)
280
+ if cp == 0 or cp == 0xFFFD or _is_control(char):
281
+ continue
282
+ if _is_whitespace(char):
283
+ output.append(" ")
284
+ else:
285
+ output.append(char)
286
+ return "".join(output)
287
+
288
+
289
+ class HerbertTokenizer(PreTrainedTokenizer):
290
+ """
291
+ Construct a BPE tokenizer for HerBERT.
292
+
293
+ Peculiarities:
294
+
295
+ - uses BERT's pre-tokenizer: BaseTokenizer splits tokens on spaces, and also on punctuation. Each occurrence of a
296
+ punctuation character will be treated separately.
297
+
298
+ - Such pretokenized input is BPE subtokenized
299
+
300
+ This tokenizer inherits from [`XLMTokenizer`] which contains most of the methods. Users should refer to the
301
+ superclass for more information regarding methods.
302
+ """
303
+
304
+ vocab_files_names = VOCAB_FILES_NAMES
305
+ pretrained_vocab_files_map = PRETRAINED_VOCAB_FILES_MAP
306
+ pretrained_init_configuration = PRETRAINED_INIT_CONFIGURATION
307
+ max_model_input_sizes = PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES
308
+
309
+ def __init__(
310
+ self,
311
+ vocab_file,
312
+ merges_file,
313
+ tokenizer_file=None,
314
+ cls_token="<s>",
315
+ unk_token="<unk>",
316
+ pad_token="<pad>",
317
+ mask_token="<mask>",
318
+ sep_token="</s>",
319
+ bos_token="<s>",
320
+ do_lowercase_and_remove_accent=False,
321
+ additional_special_tokens=[
322
+ "<special0>",
323
+ "<special1>",
324
+ "<special2>",
325
+ "<special3>",
326
+ "<special4>",
327
+ "<special5>",
328
+ "<special6>",
329
+ "<special7>",
330
+ "<special8>",
331
+ "<special9>",
332
+ ],
333
+ lang2id=None,
334
+ id2lang=None,
335
+ **kwargs,
336
+ ):
337
+ super().__init__(
338
+ unk_token=unk_token,
339
+ bos_token=bos_token,
340
+ sep_token=sep_token,
341
+ pad_token=pad_token,
342
+ cls_token=cls_token,
343
+ mask_token=mask_token,
344
+ additional_special_tokens=additional_special_tokens,
345
+ lang2id=lang2id,
346
+ id2lang=id2lang,
347
+ do_lowercase_and_remove_accent=do_lowercase_and_remove_accent,
348
+ tokenizer_file=None,
349
+ **kwargs,
350
+ )
351
+
352
+ try:
353
+ import sacremoses
354
+ except ImportError:
355
+ raise ImportError(
356
+ "You need to install sacremoses to use HerbertTokenizer. "
357
+ "See https://pypi.org/project/sacremoses/ for installation."
358
+ )
359
+
360
+ self.sm = sacremoses
361
+
362
+ # cache of sm.MosesPunctNormalizer instance
363
+ self.cache_moses_punct_normalizer = {}
364
+ # cache of sm.MosesTokenizer instance
365
+ self.cache_moses_tokenizer = {}
366
+ self.lang_with_custom_tokenizer = {"zh", "th", "ja"}
367
+ # True for current supported model (v1.2.0), False for XLM-17 & 100
368
+ self.do_lowercase_and_remove_accent = do_lowercase_and_remove_accent
369
+ self.lang2id = lang2id
370
+ self.id2lang = id2lang
371
+ if lang2id is not None and id2lang is not None:
372
+ assert len(lang2id) == len(id2lang)
373
+
374
+ self.ja_word_tokenizer = None
375
+ self.zh_word_tokenizer = None
376
+
377
+ with open(vocab_file, encoding="utf-8") as vocab_handle:
378
+ self.encoder = json.load(vocab_handle)
379
+ self.decoder = {v: k for k, v in self.encoder.items()}
380
+ with open(merges_file, encoding="utf-8") as merges_handle:
381
+ merges = merges_handle.read().split("\n")[:-1]
382
+ merges = [tuple(merge.split()[:2]) for merge in merges]
383
+ self.bpe_ranks = dict(zip(merges, range(len(merges))))
384
+ self.cache = {}
385
+
386
+ self.bert_pre_tokenizer = BasicTokenizer(
387
+ do_lower_case=False,
388
+ never_split=self.all_special_tokens,
389
+ tokenize_chinese_chars=False,
390
+ strip_accents=False,
391
+ )
392
+
393
+ @property
394
+ # Copied from transformers.models.xlm.tokenization_xlm.XLMTokenizer.do_lower_case
395
+ def do_lower_case(self):
396
+ return self.do_lowercase_and_remove_accent
397
+
398
+ # Copied from transformers.models.xlm.tokenization_xlm.XLMTokenizer.moses_punct_norm
399
+ def moses_punct_norm(self, text, lang):
400
+ if lang not in self.cache_moses_punct_normalizer:
401
+ punct_normalizer = self.sm.MosesPunctNormalizer(lang=lang)
402
+ self.cache_moses_punct_normalizer[lang] = punct_normalizer
403
+ else:
404
+ punct_normalizer = self.cache_moses_punct_normalizer[lang]
405
+ return punct_normalizer.normalize(text)
406
+
407
+ # Copied from transformers.models.xlm.tokenization_xlm.XLMTokenizer.moses_tokenize
408
+ def moses_tokenize(self, text, lang):
409
+ if lang not in self.cache_moses_tokenizer:
410
+ moses_tokenizer = self.sm.MosesTokenizer(lang=lang)
411
+ self.cache_moses_tokenizer[lang] = moses_tokenizer
412
+ else:
413
+ moses_tokenizer = self.cache_moses_tokenizer[lang]
414
+ return moses_tokenizer.tokenize(text, return_str=False, escape=False)
415
+
416
+ # Copied from transformers.models.xlm.tokenization_xlm.XLMTokenizer.moses_pipeline
417
+ def moses_pipeline(self, text, lang):
418
+ text = replace_unicode_punct(text)
419
+ text = self.moses_punct_norm(text, lang)
420
+ text = remove_non_printing_char(text)
421
+ return text
422
+
423
+ # Copied from transformers.models.xlm.tokenization_xlm.XLMTokenizer.ja_tokenize
424
+ def ja_tokenize(self, text):
425
+ if self.ja_word_tokenizer is None:
426
+ try:
427
+ import Mykytea
428
+
429
+ self.ja_word_tokenizer = Mykytea.Mykytea(
430
+ f"-model {os.path.expanduser('~')}/local/share/kytea/model.bin"
431
+ )
432
+ except (AttributeError, ImportError):
433
+ logger.error(
434
+ "Make sure you install KyTea (https://github.com/neubig/kytea) and it's python wrapper"
435
+ " (https://github.com/chezou/Mykytea-python) with the following steps"
436
+ )
437
+ logger.error("1. git clone git@github.com:neubig/kytea.git && cd kytea")
438
+ logger.error("2. autoreconf -i")
439
+ logger.error("3. ./configure --prefix=$HOME/local")
440
+ logger.error("4. make && make install")
441
+ logger.error("5. pip install kytea")
442
+ raise
443
+ return list(self.ja_word_tokenizer.getWS(text))
444
+
445
+ @property
446
+ # Copied from transformers.models.xlm.tokenization_xlm.XLMTokenizer.vocab_size
447
+ def vocab_size(self):
448
+ return len(self.encoder)
449
+
450
+ # Copied from transformers.models.xlm.tokenization_xlm.XLMTokenizer.get_vocab
451
+ def get_vocab(self):
452
+ return dict(self.encoder, **self.added_tokens_encoder)
453
+
454
+ # Copied from transformers.models.xlm.tokenization_xlm.XLMTokenizer.bpe
455
+ def bpe(self, token):
456
+ word = tuple(token[:-1]) + (token[-1] + "</w>",)
457
+ if token in self.cache:
458
+ return self.cache[token]
459
+ pairs = get_pairs(word)
460
+
461
+ if not pairs:
462
+ return token + "</w>"
463
+
464
+ while True:
465
+ bigram = min(pairs, key=lambda pair: self.bpe_ranks.get(pair, float("inf")))
466
+ if bigram not in self.bpe_ranks:
467
+ break
468
+ first, second = bigram
469
+ new_word = []
470
+ i = 0
471
+ while i < len(word):
472
+ try:
473
+ j = word.index(first, i)
474
+ except ValueError:
475
+ new_word.extend(word[i:])
476
+ break
477
+ else:
478
+ new_word.extend(word[i:j])
479
+ i = j
480
+
481
+ if word[i] == first and i < len(word) - 1 and word[i + 1] == second:
482
+ new_word.append(first + second)
483
+ i += 2
484
+ else:
485
+ new_word.append(word[i])
486
+ i += 1
487
+ new_word = tuple(new_word)
488
+ word = new_word
489
+ if len(word) == 1:
490
+ break
491
+ else:
492
+ pairs = get_pairs(word)
493
+ word = " ".join(word)
494
+ if word == "\n </w>":
495
+ word = "\n</w>"
496
+ self.cache[token] = word
497
+ return word
498
+
499
+ def _tokenize(self, text):
500
+ pre_tokens = self.bert_pre_tokenizer.tokenize(text)
501
+
502
+ split_tokens = []
503
+ for token in pre_tokens:
504
+ if token:
505
+ split_tokens.extend(list(self.bpe(token).split(" ")))
506
+
507
+ return split_tokens
508
+
509
+ # Copied from transformers.models.xlm.tokenization_xlm.XLMTokenizer._convert_token_to_id
510
+ def _convert_token_to_id(self, token):
511
+ """Converts a token (str) in an id using the vocab."""
512
+ return self.encoder.get(token, self.encoder.get(self.unk_token))
513
+
514
+ # Copied from transformers.models.xlm.tokenization_xlm.XLMTokenizer._convert_id_to_token
515
+ def _convert_id_to_token(self, index):
516
+ """Converts an index (integer) in a token (str) using the vocab."""
517
+ return self.decoder.get(index, self.unk_token)
518
+
519
+ # Copied from transformers.models.xlm.tokenization_xlm.XLMTokenizer.convert_tokens_to_string
520
+ def convert_tokens_to_string(self, tokens):
521
+ """Converts a sequence of tokens (string) in a single string."""
522
+ out_string = "".join(tokens).replace("</w>", " ").strip()
523
+ return out_string
524
+
525
+ # Copied from transformers.models.xlm.tokenization_xlm.XLMTokenizer.build_inputs_with_special_tokens
526
+ def build_inputs_with_special_tokens(
527
+ self, token_ids_0: List[int], token_ids_1: Optional[List[int]] = None
528
+ ) -> List[int]:
529
+ """
530
+ Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and
531
+ adding special tokens. An XLM sequence has the following format:
532
+
533
+ - single sequence: `<s> X </s>`
534
+ - pair of sequences: `<s> A </s> B </s>`
535
+
536
+ Args:
537
+ token_ids_0 (`List[int]`):
538
+ List of IDs to which the special tokens will be added.
539
+ token_ids_1 (`List[int]`, *optional*):
540
+ Optional second list of IDs for sequence pairs.
541
+
542
+ Returns:
543
+ `List[int]`: List of [input IDs](../glossary#input-ids) with the appropriate special tokens.
544
+
545
+ """
546
+ bos = [self.bos_token_id]
547
+ sep = [self.sep_token_id]
548
+
549
+ if token_ids_1 is None:
550
+ return bos + token_ids_0 + sep
551
+ return bos + token_ids_0 + sep + token_ids_1 + sep
552
+
553
+ # Copied from transformers.models.xlm.tokenization_xlm.XLMTokenizer.get_special_tokens_mask
554
+ def get_special_tokens_mask(
555
+ self, token_ids_0: List[int], token_ids_1: Optional[List[int]] = None, already_has_special_tokens: bool = False
556
+ ) -> List[int]:
557
+ """
558
+ Retrieve sequence ids from a token list that has no special tokens added. This method is called when adding
559
+ special tokens using the tokenizer `prepare_for_model` method.
560
+
561
+ Args:
562
+ token_ids_0 (`List[int]`):
563
+ List of IDs.
564
+ token_ids_1 (`List[int]`, *optional*):
565
+ Optional second list of IDs for sequence pairs.
566
+ already_has_special_tokens (`bool`, *optional*, defaults to `False`):
567
+ Whether or not the token list is already formatted with special tokens for the model.
568
+
569
+ Returns:
570
+ `List[int]`: A list of integers in the range [0, 1]: 1 for a special token, 0 for a sequence token.
571
+ """
572
+
573
+ if already_has_special_tokens:
574
+ return super().get_special_tokens_mask(
575
+ token_ids_0=token_ids_0, token_ids_1=token_ids_1, already_has_special_tokens=True
576
+ )
577
+
578
+ if token_ids_1 is not None:
579
+ return [1] + ([0] * len(token_ids_0)) + [1] + ([0] * len(token_ids_1)) + [1]
580
+ return [1] + ([0] * len(token_ids_0)) + [1]
581
+
582
+ # Copied from transformers.models.xlm.tokenization_xlm.XLMTokenizer.create_token_type_ids_from_sequences
583
+ def create_token_type_ids_from_sequences(
584
+ self, token_ids_0: List[int], token_ids_1: Optional[List[int]] = None
585
+ ) -> List[int]:
586
+ """
587
+ Create a mask from the two sequences passed to be used in a sequence-pair classification task. An XLM sequence
588
+ pair mask has the following format:
589
+
590
+ ```
591
+ 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1
592
+ | first sequence | second sequence |
593
+ ```
594
+
595
+ If `token_ids_1` is `None`, this method only returns the first portion of the mask (0s).
596
+
597
+ Args:
598
+ token_ids_0 (`List[int]`):
599
+ List of IDs.
600
+ token_ids_1 (`List[int]`, *optional*):
601
+ Optional second list of IDs for sequence pairs.
602
+
603
+ Returns:
604
+ `List[int]`: List of [token type IDs](../glossary#token-type-ids) according to the given sequence(s).
605
+ """
606
+ sep = [self.sep_token_id]
607
+ cls = [self.cls_token_id]
608
+ if token_ids_1 is None:
609
+ return len(cls + token_ids_0 + sep) * [0]
610
+ return len(cls + token_ids_0 + sep) * [0] + len(token_ids_1 + sep) * [1]
611
+
612
+ # Copied from transformers.models.xlm.tokenization_xlm.XLMTokenizer.save_vocabulary
613
+ def save_vocabulary(self, save_directory: str, filename_prefix: Optional[str] = None) -> Tuple[str]:
614
+ if not os.path.isdir(save_directory):
615
+ logger.error(f"Vocabulary path ({save_directory}) should be a directory")
616
+ return
617
+ vocab_file = os.path.join(
618
+ save_directory, (filename_prefix + "-" if filename_prefix else "") + VOCAB_FILES_NAMES["vocab_file"]
619
+ )
620
+ merge_file = os.path.join(
621
+ save_directory, (filename_prefix + "-" if filename_prefix else "") + VOCAB_FILES_NAMES["merges_file"]
622
+ )
623
+
624
+ with open(vocab_file, "w", encoding="utf-8") as f:
625
+ f.write(json.dumps(self.encoder, indent=2, sort_keys=True, ensure_ascii=False) + "\n")
626
+
627
+ index = 0
628
+ with open(merge_file, "w", encoding="utf-8") as writer:
629
+ for bpe_tokens, token_index in sorted(self.bpe_ranks.items(), key=lambda kv: kv[1]):
630
+ if index != token_index:
631
+ logger.warning(
632
+ f"Saving vocabulary to {merge_file}: BPE merge indices are not consecutive."
633
+ " Please check that the tokenizer is not corrupted!"
634
+ )
635
+ index = token_index
636
+ writer.write(" ".join(bpe_tokens) + "\n")
637
+ index += 1
638
+
639
+ return vocab_file, merge_file
640
+
641
+ # Copied from transformers.models.xlm.tokenization_xlm.XLMTokenizer.__getstate__
642
+ def __getstate__(self):
643
+ state = self.__dict__.copy()
644
+ state["sm"] = None
645
+ return state
646
+
647
+ # Copied from transformers.models.xlm.tokenization_xlm.XLMTokenizer.__setstate__
648
+ def __setstate__(self, d):
649
+ self.__dict__ = d
650
+
651
+ try:
652
+ import sacremoses
653
+ except ImportError:
654
+ raise ImportError(
655
+ "You need to install sacremoses to use XLMTokenizer. "
656
+ "See https://pypi.org/project/sacremoses/ for installation."
657
+ )
658
+
659
+ self.sm = sacremoses
openflamingo/lib/python3.10/site-packages/transformers/models/herbert/tokenization_herbert_fast.py ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding=utf-8
2
+ # Copyright 2020 The Google AI Language Team Authors, Allegro.pl, Facebook Inc. and the HuggingFace Inc. team.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ from typing import List, Optional, Tuple
17
+
18
+ from ...tokenization_utils_fast import PreTrainedTokenizerFast
19
+ from ...utils import logging
20
+ from .tokenization_herbert import HerbertTokenizer
21
+
22
+
23
+ logger = logging.get_logger(__name__)
24
+
25
+ VOCAB_FILES_NAMES = {"vocab_file": "vocab.json", "merges_file": "merges.txt", "tokenizer_file": "tokenizer.json"}
26
+
27
+ PRETRAINED_VOCAB_FILES_MAP = {
28
+ "vocab_file": {
29
+ "allegro/herbert-base-cased": "https://huggingface.co/allegro/herbert-base-cased/resolve/main/vocab.json"
30
+ },
31
+ "merges_file": {
32
+ "allegro/herbert-base-cased": "https://huggingface.co/allegro/herbert-base-cased/resolve/main/merges.txt"
33
+ },
34
+ }
35
+
36
+ PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES = {"allegro/herbert-base-cased": 514}
37
+ PRETRAINED_INIT_CONFIGURATION = {}
38
+
39
+
40
+ class HerbertTokenizerFast(PreTrainedTokenizerFast):
41
+ """
42
+ Construct a "Fast" BPE tokenizer for HerBERT (backed by HuggingFace's *tokenizers* library).
43
+
44
+ Peculiarities:
45
+
46
+ - uses BERT's pre-tokenizer: BertPreTokenizer splits tokens on spaces, and also on punctuation. Each occurrence of
47
+ a punctuation character will be treated separately.
48
+
49
+ This tokenizer inherits from [`PreTrainedTokenizer`] which contains most of the methods. Users should refer to the
50
+ superclass for more information regarding methods.
51
+
52
+ Args:
53
+ vocab_file (`str`):
54
+ Path to the vocabulary file.
55
+ merges_file (`str`):
56
+ Path to the merges file.
57
+ """
58
+
59
+ vocab_files_names = VOCAB_FILES_NAMES
60
+ pretrained_vocab_files_map = PRETRAINED_VOCAB_FILES_MAP
61
+ pretrained_init_configuration = PRETRAINED_INIT_CONFIGURATION
62
+ max_model_input_sizes = PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES
63
+ slow_tokenizer_class = HerbertTokenizer
64
+
65
+ def __init__(
66
+ self,
67
+ vocab_file=None,
68
+ merges_file=None,
69
+ tokenizer_file=None,
70
+ cls_token="<s>",
71
+ unk_token="<unk>",
72
+ pad_token="<pad>",
73
+ mask_token="<mask>",
74
+ sep_token="</s>",
75
+ **kwargs,
76
+ ):
77
+ super().__init__(
78
+ vocab_file,
79
+ merges_file,
80
+ tokenizer_file=tokenizer_file,
81
+ cls_token=cls_token,
82
+ unk_token=unk_token,
83
+ pad_token=pad_token,
84
+ mask_token=mask_token,
85
+ sep_token=sep_token,
86
+ **kwargs,
87
+ )
88
+
89
+ def build_inputs_with_special_tokens(
90
+ self, token_ids_0: List[int], token_ids_1: Optional[List[int]] = None
91
+ ) -> List[int]:
92
+ """
93
+ Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and
94
+ adding special tokens. An HerBERT, like BERT sequence has the following format:
95
+
96
+ - single sequence: `<s> X </s>`
97
+ - pair of sequences: `<s> A </s> B </s>`
98
+
99
+ Args:
100
+ token_ids_0 (`List[int]`):
101
+ List of IDs to which the special tokens will be added.
102
+ token_ids_1 (`List[int]`, *optional*):
103
+ Optional second list of IDs for sequence pairs.
104
+
105
+ Returns:
106
+ `List[int]`: List of [input IDs](../glossary#input-ids) with the appropriate special tokens.
107
+ """
108
+
109
+ cls = [self.cls_token_id]
110
+ sep = [self.sep_token_id]
111
+ if token_ids_1 is None:
112
+ return cls + token_ids_0 + sep
113
+
114
+ return cls + token_ids_0 + sep + token_ids_1 + sep
115
+
116
+ def get_special_tokens_mask(
117
+ self, token_ids_0: List[int], token_ids_1: Optional[List[int]] = None, already_has_special_tokens: bool = False
118
+ ) -> List[int]:
119
+ """
120
+ Retrieve sequence ids from a token list that has no special tokens added. This method is called when adding
121
+ special tokens using the tokenizer `prepare_for_model` method.
122
+
123
+ Args:
124
+ token_ids_0 (`List[int]`):
125
+ List of IDs.
126
+ token_ids_1 (`List[int]`, *optional*):
127
+ Optional second list of IDs for sequence pairs.
128
+ already_has_special_tokens (`bool`, *optional*, defaults to `False`):
129
+ Whether or not the token list is already formatted with special tokens for the model.
130
+
131
+ Returns:
132
+ `List[int]`: A list of integers in the range [0, 1]: 1 for a special token, 0 for a sequence token.
133
+ """
134
+ if already_has_special_tokens:
135
+ return super().get_special_tokens_mask(
136
+ token_ids_0=token_ids_0, token_ids_1=token_ids_1, already_has_special_tokens=True
137
+ )
138
+
139
+ if token_ids_1 is None:
140
+ return [1] + ([0] * len(token_ids_0)) + [1]
141
+ return [1] + ([0] * len(token_ids_0)) + [1] + ([0] * len(token_ids_1)) + [1]
142
+
143
+ def create_token_type_ids_from_sequences(
144
+ self, token_ids_0: List[int], token_ids_1: Optional[List[int]] = None
145
+ ) -> List[int]:
146
+ """
147
+ Create a mask from the two sequences passed to be used in a sequence-pair classification task. HerBERT, like
148
+ BERT sequence pair mask has the following format:
149
+
150
+ ```
151
+ 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1
152
+ | first sequence | second sequence |
153
+ ```
154
+
155
+ Args:
156
+ token_ids_0 (`List[int]`):
157
+ List of IDs.
158
+ token_ids_1 (`List[int]`, *optional*):
159
+ Optional second list of IDs for sequence pairs.
160
+
161
+ Returns:
162
+ `List[int]`: List of [token type IDs](../glossary#token-type-ids) according to the given sequence(s).
163
+ """
164
+ sep = [self.sep_token_id]
165
+ cls = [self.cls_token_id]
166
+
167
+ if token_ids_1 is None:
168
+ return len(cls + token_ids_0 + sep) * [0]
169
+ return len(cls + token_ids_0 + sep) * [0] + len(token_ids_1 + sep) * [1]
170
+
171
+ def save_vocabulary(self, save_directory: str, filename_prefix: Optional[str] = None) -> Tuple[str]:
172
+ files = self._tokenizer.model.save(save_directory, name=filename_prefix)
173
+ return tuple(files)
openflamingo/lib/python3.10/site-packages/transformers/models/instructblip/__pycache__/processing_instructblip.cpython-310.pyc ADDED
Binary file (5.57 kB). View file
 
openflamingo/lib/python3.10/site-packages/transformers/models/instructblip/processing_instructblip.py ADDED
@@ -0,0 +1,172 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding=utf-8
2
+ # Copyright 2023 The HuggingFace Inc. team.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ """
16
+ Processor class for InstructBLIP. Largely copy of Blip2Processor with addition of a tokenizer for the Q-Former.
17
+ """
18
+
19
+ import os
20
+ from typing import List, Optional, Union
21
+
22
+ from ...image_processing_utils import BatchFeature
23
+ from ...image_utils import ImageInput
24
+ from ...processing_utils import ProcessorMixin
25
+ from ...tokenization_utils_base import PaddingStrategy, PreTokenizedInput, TextInput, TruncationStrategy
26
+ from ...utils import TensorType
27
+ from ..auto import AutoTokenizer
28
+
29
+
30
+ class InstructBlipProcessor(ProcessorMixin):
31
+ r"""
32
+ Constructs an InstructBLIP processor which wraps a BLIP image processor and a LLaMa/T5 tokenizer into a single
33
+ processor.
34
+
35
+ [`InstructBlipProcessor`] offers all the functionalities of [`BlipImageProcessor`] and [`AutoTokenizer`]. See the
36
+ docstring of [`~BlipProcessor.__call__`] and [`~BlipProcessor.decode`] for more information.
37
+
38
+ Args:
39
+ image_processor (`BlipImageProcessor`):
40
+ An instance of [`BlipImageProcessor`]. The image processor is a required input.
41
+ tokenizer (`AutoTokenizer`):
42
+ An instance of ['PreTrainedTokenizer`]. The tokenizer is a required input.
43
+ qformer_tokenizer (`AutoTokenizer`):
44
+ An instance of ['PreTrainedTokenizer`]. The Q-Former tokenizer is a required input.
45
+ """
46
+ attributes = ["image_processor", "tokenizer"]
47
+ image_processor_class = "BlipImageProcessor"
48
+ tokenizer_class = "AutoTokenizer"
49
+
50
+ def __init__(self, image_processor, tokenizer, qformer_tokenizer):
51
+ super().__init__(image_processor, tokenizer)
52
+
53
+ # add QFormer tokenizer
54
+ self.qformer_tokenizer = qformer_tokenizer
55
+
56
+ def __call__(
57
+ self,
58
+ images: ImageInput = None,
59
+ text: Union[TextInput, PreTokenizedInput, List[TextInput], List[PreTokenizedInput]] = None,
60
+ add_special_tokens: bool = True,
61
+ padding: Union[bool, str, PaddingStrategy] = False,
62
+ truncation: Union[bool, str, TruncationStrategy] = None,
63
+ max_length: Optional[int] = None,
64
+ stride: int = 0,
65
+ pad_to_multiple_of: Optional[int] = None,
66
+ return_attention_mask: Optional[bool] = None,
67
+ return_overflowing_tokens: bool = False,
68
+ return_special_tokens_mask: bool = False,
69
+ return_offsets_mapping: bool = False,
70
+ return_token_type_ids: bool = False,
71
+ return_length: bool = False,
72
+ verbose: bool = True,
73
+ return_tensors: Optional[Union[str, TensorType]] = None,
74
+ **kwargs,
75
+ ) -> BatchFeature:
76
+ """
77
+ This method uses [`BlipImageProcessor.__call__`] method to prepare image(s) for the model, and
78
+ [`BertTokenizerFast.__call__`] to prepare text for the model.
79
+
80
+ Please refer to the docstring of the above two methods for more information.
81
+ """
82
+ if images is None and text is None:
83
+ raise ValueError("You have to specify at least images or text.")
84
+
85
+ encoding = BatchFeature()
86
+
87
+ if text is not None:
88
+ text_encoding = self.tokenizer(
89
+ text=text,
90
+ add_special_tokens=add_special_tokens,
91
+ padding=padding,
92
+ truncation=truncation,
93
+ max_length=max_length,
94
+ stride=stride,
95
+ pad_to_multiple_of=pad_to_multiple_of,
96
+ return_attention_mask=return_attention_mask,
97
+ return_overflowing_tokens=return_overflowing_tokens,
98
+ return_special_tokens_mask=return_special_tokens_mask,
99
+ return_offsets_mapping=return_offsets_mapping,
100
+ return_token_type_ids=return_token_type_ids,
101
+ return_length=return_length,
102
+ verbose=verbose,
103
+ return_tensors=return_tensors,
104
+ **kwargs,
105
+ )
106
+ encoding.update(text_encoding)
107
+ qformer_text_encoding = self.qformer_tokenizer(
108
+ text=text,
109
+ add_special_tokens=add_special_tokens,
110
+ padding=padding,
111
+ truncation=truncation,
112
+ max_length=max_length,
113
+ stride=stride,
114
+ pad_to_multiple_of=pad_to_multiple_of,
115
+ return_attention_mask=return_attention_mask,
116
+ return_overflowing_tokens=return_overflowing_tokens,
117
+ return_special_tokens_mask=return_special_tokens_mask,
118
+ return_offsets_mapping=return_offsets_mapping,
119
+ return_token_type_ids=return_token_type_ids,
120
+ return_length=return_length,
121
+ verbose=verbose,
122
+ return_tensors=return_tensors,
123
+ **kwargs,
124
+ )
125
+ encoding["qformer_input_ids"] = qformer_text_encoding.pop("input_ids")
126
+ encoding["qformer_attention_mask"] = qformer_text_encoding.pop("attention_mask")
127
+
128
+ if images is not None:
129
+ image_encoding = self.image_processor(images, return_tensors=return_tensors)
130
+ encoding.update(image_encoding)
131
+
132
+ return encoding
133
+
134
+ # Copied from transformers.models.blip.processing_blip.BlipProcessor.batch_decode with BertTokenizerFast->PreTrainedTokenizer
135
+ def batch_decode(self, *args, **kwargs):
136
+ """
137
+ This method forwards all its arguments to PreTrainedTokenizer's [`~PreTrainedTokenizer.batch_decode`]. Please
138
+ refer to the docstring of this method for more information.
139
+ """
140
+ return self.tokenizer.batch_decode(*args, **kwargs)
141
+
142
+ # Copied from transformers.models.blip.processing_blip.BlipProcessor.decode with BertTokenizerFast->PreTrainedTokenizer
143
+ def decode(self, *args, **kwargs):
144
+ """
145
+ This method forwards all its arguments to PreTrainedTokenizer's [`~PreTrainedTokenizer.decode`]. Please refer
146
+ to the docstring of this method for more information.
147
+ """
148
+ return self.tokenizer.decode(*args, **kwargs)
149
+
150
+ @property
151
+ # Copied from transformers.models.blip.processing_blip.BlipProcessor.model_input_names
152
+ def model_input_names(self):
153
+ tokenizer_input_names = self.tokenizer.model_input_names
154
+ image_processor_input_names = self.image_processor.model_input_names
155
+ return list(dict.fromkeys(tokenizer_input_names + image_processor_input_names))
156
+
157
+ # overwrite to save the Q-Former tokenizer in a separate folder
158
+ def save_pretrained(self, save_directory, **kwargs):
159
+ if os.path.isfile(save_directory):
160
+ raise ValueError(f"Provided path ({save_directory}) should be a directory, not a file")
161
+ os.makedirs(save_directory, exist_ok=True)
162
+ qformer_tokenizer_path = os.path.join(save_directory, "qformer_tokenizer")
163
+ self.qformer_tokenizer.save_pretrained(qformer_tokenizer_path)
164
+ return super().save_pretrained(save_directory, **kwargs)
165
+
166
+ # overwrite to load the Q-Former tokenizer from a separate folder
167
+ @classmethod
168
+ def from_pretrained(cls, pretrained_model_name_or_path, **kwargs):
169
+ qformer_tokenizer = AutoTokenizer.from_pretrained(pretrained_model_name_or_path, subfolder="qformer_tokenizer")
170
+ args = cls._get_arguments_from_pretrained(pretrained_model_name_or_path, **kwargs)
171
+ args.append(qformer_tokenizer)
172
+ return cls(*args)
openflamingo/lib/python3.10/site-packages/transformers/models/jukebox/__init__.py ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright 2022 The HuggingFace Team. All rights reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ from typing import TYPE_CHECKING
16
+
17
+ from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available
18
+
19
+
20
+ _import_structure = {
21
+ "configuration_jukebox": [
22
+ "JUKEBOX_PRETRAINED_CONFIG_ARCHIVE_MAP",
23
+ "JukeboxConfig",
24
+ "JukeboxPriorConfig",
25
+ "JukeboxVQVAEConfig",
26
+ ],
27
+ "tokenization_jukebox": ["JukeboxTokenizer"],
28
+ }
29
+
30
+ try:
31
+ if not is_torch_available():
32
+ raise OptionalDependencyNotAvailable()
33
+ except OptionalDependencyNotAvailable:
34
+ pass
35
+ else:
36
+ _import_structure["modeling_jukebox"] = [
37
+ "JUKEBOX_PRETRAINED_MODEL_ARCHIVE_LIST",
38
+ "JukeboxModel",
39
+ "JukeboxPreTrainedModel",
40
+ "JukeboxVQVAE",
41
+ "JukeboxPrior",
42
+ ]
43
+
44
+ if TYPE_CHECKING:
45
+ from .configuration_jukebox import (
46
+ JUKEBOX_PRETRAINED_CONFIG_ARCHIVE_MAP,
47
+ JukeboxConfig,
48
+ JukeboxPriorConfig,
49
+ JukeboxVQVAEConfig,
50
+ )
51
+ from .tokenization_jukebox import JukeboxTokenizer
52
+
53
+ try:
54
+ if not is_torch_available():
55
+ raise OptionalDependencyNotAvailable()
56
+ except OptionalDependencyNotAvailable:
57
+ pass
58
+ else:
59
+ from .modeling_jukebox import (
60
+ JUKEBOX_PRETRAINED_MODEL_ARCHIVE_LIST,
61
+ JukeboxModel,
62
+ JukeboxPreTrainedModel,
63
+ JukeboxPrior,
64
+ JukeboxVQVAE,
65
+ )
66
+
67
+ else:
68
+ import sys
69
+
70
+ sys.modules[__name__] = _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)
openflamingo/lib/python3.10/site-packages/transformers/models/jukebox/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (1.08 kB). View file
 
openflamingo/lib/python3.10/site-packages/transformers/models/jukebox/__pycache__/configuration_jukebox.cpython-310.pyc ADDED
Binary file (22 kB). View file
 
openflamingo/lib/python3.10/site-packages/transformers/models/jukebox/__pycache__/convert_jukebox.cpython-310.pyc ADDED
Binary file (6.91 kB). View file
 
openflamingo/lib/python3.10/site-packages/transformers/models/jukebox/__pycache__/modeling_jukebox.cpython-310.pyc ADDED
Binary file (81.2 kB). View file
 
openflamingo/lib/python3.10/site-packages/transformers/models/jukebox/__pycache__/tokenization_jukebox.cpython-310.pyc ADDED
Binary file (16.6 kB). View file
 
openflamingo/lib/python3.10/site-packages/transformers/models/jukebox/configuration_jukebox.py ADDED
@@ -0,0 +1,614 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding=utf-8
2
+ # Copyright 2022 The OpenAI Team Authors and HuggingFace Inc. team.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ """ Jukebox configuration"""
16
+
17
+ import os
18
+ from typing import List, Union
19
+
20
+ from ...configuration_utils import PretrainedConfig
21
+ from ...utils import logging
22
+
23
+
24
+ logger = logging.get_logger(__name__)
25
+
26
+ JUKEBOX_PRETRAINED_CONFIG_ARCHIVE_MAP = {
27
+ "openai/jukebox-5b-lyrics": "https://huggingface.co/openai/jukebox-5b-lyrics/blob/main/config.json",
28
+ "openai/jukebox-1b-lyrics": "https://huggingface.co/openai/jukebox-1b-lyrics/blob/main/config.json",
29
+ }
30
+
31
+ _LARGE_ATTENTION = [
32
+ "block_attn",
33
+ "transpose_block_attn",
34
+ "prev_block_attn",
35
+ "block_attn",
36
+ "transpose_block_attn",
37
+ "prev_block_attn",
38
+ "block_attn",
39
+ "transpose_block_attn",
40
+ "prev_block_attn",
41
+ "block_attn",
42
+ "transpose_block_attn",
43
+ "prev_block_attn",
44
+ "block_attn",
45
+ "transpose_block_attn",
46
+ "prev_block_attn",
47
+ "block_attn",
48
+ "transpose_block_attn",
49
+ "prev_block_attn",
50
+ "cross_attention",
51
+ "block_attn",
52
+ "transpose_block_attn",
53
+ "prev_block_attn",
54
+ "block_attn",
55
+ "transpose_block_attn",
56
+ "prev_block_attn",
57
+ "block_attn",
58
+ "transpose_block_attn",
59
+ "prev_block_attn",
60
+ "cross_attention",
61
+ "block_attn",
62
+ "transpose_block_attn",
63
+ "prev_block_attn",
64
+ "block_attn",
65
+ "transpose_block_attn",
66
+ "prev_block_attn",
67
+ "block_attn",
68
+ "transpose_block_attn",
69
+ "prev_block_attn",
70
+ "cross_attention",
71
+ "block_attn",
72
+ "transpose_block_attn",
73
+ "prev_block_attn",
74
+ "block_attn",
75
+ "transpose_block_attn",
76
+ "prev_block_attn",
77
+ "block_attn",
78
+ "transpose_block_attn",
79
+ "prev_block_attn",
80
+ "cross_attention",
81
+ "block_attn",
82
+ "transpose_block_attn",
83
+ "prev_block_attn",
84
+ "block_attn",
85
+ "transpose_block_attn",
86
+ "prev_block_attn",
87
+ "block_attn",
88
+ "transpose_block_attn",
89
+ "prev_block_attn",
90
+ "cross_attention",
91
+ "block_attn",
92
+ "transpose_block_attn",
93
+ "prev_block_attn",
94
+ "block_attn",
95
+ "transpose_block_attn",
96
+ "prev_block_attn",
97
+ "block_attn",
98
+ "transpose_block_attn",
99
+ "prev_block_attn",
100
+ "cross_attention",
101
+ "block_attn",
102
+ "transpose_block_attn",
103
+ "prev_block_attn",
104
+ "block_attn",
105
+ "transpose_block_attn",
106
+ "prev_block_attn",
107
+ "block_attn",
108
+ "transpose_block_attn",
109
+ "prev_block_attn",
110
+ "cross_attention",
111
+ ]
112
+ _RawColumnPreviousRowAttention = ["block_attn", "transpose_block_attn", "prev_block_attn"]
113
+ _FullDenseAttention = ["dense_attention"]
114
+ _PrimePrimeDenseAttention = ["prime_attn", "prime_attn", "dense_attn"]
115
+
116
+
117
+ def full_dense_attention(layer):
118
+ return _FullDenseAttention[0]
119
+
120
+
121
+ def raw_column_previous_row_attention(layer):
122
+ return _RawColumnPreviousRowAttention[layer % 3]
123
+
124
+
125
+ def large_separated_enc_dec_w_lyrics(layer):
126
+ return _LARGE_ATTENTION[layer % 79]
127
+
128
+
129
+ def enc_dec_with_lyrics(layer):
130
+ if layer % 16 == 15:
131
+ return _PrimePrimeDenseAttention[layer % 3]
132
+ return _RawColumnPreviousRowAttention[layer % 3]
133
+
134
+
135
+ ATTENTION_PATTERNS = {
136
+ "full_dense_attention": full_dense_attention,
137
+ "raw_column_previous_row_attention": raw_column_previous_row_attention, # Alternate row, column and previous row attn
138
+ "large_separated_enc_dec_w_lyrics": large_separated_enc_dec_w_lyrics, # Used by large separated_enc_dec model with lyrics
139
+ "enc_dec_with_lyrics": enc_dec_with_lyrics, # Used by encoder_decoder model with lyrics
140
+ }
141
+
142
+
143
+ class JukeboxPriorConfig(PretrainedConfig):
144
+ """
145
+ This is the configuration class to store the configuration of a [`JukeboxPrior`]. It is used to instantiate a
146
+ `JukeboxPrior` according to the specified arguments, defining the model architecture. Instantiating a
147
+ configuration with the defaults will yield a similar configuration to that of the top level prior from the
148
+ [openai/jukebox-1b-lyrics](https://huggingface.co/openai/jukebox
149
+ -1b-lyrics) architecture.
150
+
151
+ Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the
152
+ documentation from [`PretrainedConfig`] for more information.
153
+
154
+
155
+
156
+ Args:
157
+ act_fn (`str`, *optional*, defaults to `"quick_gelu"`):
158
+ Activation function.
159
+ alignment_head (`int`, *optional*, defaults to 2):
160
+ Head that is responsible of the alignment between lyrics and music. Only used to compute the lyric to audio
161
+ alignment
162
+ alignment_layer (`int`, *optional*, defaults to 68):
163
+ Index of the layer that is responsible of the alignment between lyrics and music. Only used to compute the
164
+ lyric to audio alignment
165
+ attention_multiplier (`float`, *optional*, defaults to 0.25):
166
+ Multiplier coefficient used to define the hidden dimension of the attention layers. 0.25 means that
167
+ 0.25*width of the model will be used.
168
+ attention_pattern (`str`, *optional*, defaults to `"enc_dec_with_lyrics"`):
169
+ Which attention pattern to use for the decoder/
170
+ attn_dropout (`int`, *optional*, defaults to 0):
171
+ Dropout probability for the post-attention layer dropout in the decoder.
172
+ attn_res_scale (`bool`, *optional*, defaults to `False`):
173
+ Whether or not to scale the residuals in the attention conditioner block.
174
+ blocks (`int`, *optional*, defaults to 64):
175
+ Number of blocks used in the `block_attn`. A sequence of length seq_len is factored as `[blocks, seq_len //
176
+ blocks]` in the `JukeboxAttention` layer.
177
+ conv_res_scale (`int`, *optional*):
178
+ Whether or not to scale the residuals in the conditioner block. Since the top level prior does not have a
179
+ conditioner, the default value is to None and should not be modified.
180
+ num_layers (`int`, *optional*, defaults to 72):
181
+ Number of layers of the transformer architecture.
182
+ emb_dropout (`int`, *optional*, defaults to 0):
183
+ Embedding dropout used in the lyric decoder.
184
+ encoder_config (`JukeboxPriorConfig`, *optional*) :
185
+ Configuration of the encoder which models the prior on the lyrics.
186
+ encoder_loss_fraction (`float`, *optional*, defaults to 0.4):
187
+ Multiplication factor used in front of the lyric encoder loss.
188
+ hidden_size (`int`, *optional*, defaults to 2048):
189
+ Hidden dimension of the attention layers.
190
+ init_scale (`float`, *optional*, defaults to 0.2):
191
+ Initialization scales for the prior modules.
192
+ is_encoder_decoder (`bool`, *optional*, defaults to `True`):
193
+ Whether or not the prior is an encoder-decoder model. In case it is not, and `nb_relevant_lyric_tokens` is
194
+ greater than 0, the `encoder` args should be specified for the lyric encoding.
195
+ mask (`bool`, *optional*, defaults to `False`):
196
+ Whether or not to mask the previous positions in the attention.
197
+ max_duration (`int`, *optional*, defaults to 600):
198
+ Maximum supported duration of the generated song in seconds.
199
+ max_nb_genres (`int`, *optional*, defaults to 1):
200
+ Maximum number of genres that can be used to condition the model.
201
+ merged_decoder (`bool`, *optional*, defaults to `True`):
202
+ Whether or not the decoder and the encoder inputs are merged. This is used for the separated
203
+ encoder-decoder architecture
204
+ metadata_conditioning (`bool`, *optional*, defaults to `True)`:
205
+ Whether or not to condition on the artist and genre metadata.
206
+ metadata_dims (`List[int]`, *optional*, defaults to `[604, 7898]`):
207
+ Number of genres and the number of artists that were used to train the embedding layers of the prior
208
+ models.
209
+ min_duration (`int`, *optional*, defaults to 0):
210
+ Minimum duration of the generated audio on which the model was trained.
211
+ mlp_multiplier (`float`, *optional*, defaults to 1.0):
212
+ Multiplier coefficient used to define the hidden dimension of the MLP layers. 0.25 means that 0.25*width of
213
+ the model will be used.
214
+ music_vocab_size (`int`, *optional*, defaults to 2048):
215
+ Number of different music tokens. Should be similar to the `JukeboxVQVAEConfig.nb_discrete_codes`.
216
+ n_ctx (`int`, *optional*, defaults to 6144):
217
+ Number of context tokens for each prior. The context tokens are the music tokens that are attended to when
218
+ generating music tokens.
219
+ n_heads (`int`, *optional*, defaults to 2):
220
+ Number of attention heads.
221
+ nb_relevant_lyric_tokens (`int`, *optional*, defaults to 384):
222
+ Number of lyric tokens that are used when sampling a single window of length `n_ctx`
223
+ res_conv_depth (`int`, *optional*, defaults to 3):
224
+ Depth of the `JukeboxDecoderConvBock` used to upsample the previously sampled audio in the
225
+ `JukeboxMusicTokenConditioner`.
226
+ res_conv_width (`int`, *optional*, defaults to 128):
227
+ Width of the `JukeboxDecoderConvBock` used to upsample the previously sampled audio in the
228
+ `JukeboxMusicTokenConditioner`.
229
+ res_convolution_multiplier (`int`, *optional*, defaults to 1):
230
+ Multiplier used to scale the `hidden_dim` of the `JukeboxResConv1DBlock`.
231
+ res_dilation_cycle (`int`, *optional*):
232
+ Dilation cycle used to define the `JukeboxMusicTokenConditioner`. Usually similar to the ones used in the
233
+ corresponding level of the VQVAE. The first prior does not use it as it is not conditioned on upper level
234
+ tokens.
235
+ res_dilation_growth_rate (`int`, *optional*, defaults to 1):
236
+ Dilation grow rate used between each convolutionnal block of the `JukeboxMusicTokenConditioner`
237
+ res_downs_t (`List[int]`, *optional*, defaults to `[3, 2, 2]`):
238
+ Downsampling rates used in the audio conditioning network
239
+ res_strides_t (`List[int]`, *optional*, defaults to `[2, 2, 2]`):
240
+ Striding used in the audio conditioning network
241
+ resid_dropout (`int`, *optional*, defaults to 0):
242
+ Residual dropout used in the attention pattern.
243
+ sampling_rate (`int`, *optional*, defaults to 44100):
244
+ Sampling rate used for training.
245
+ spread (`int`, *optional*):
246
+ Spread used in the `summary_spread_attention` pattern
247
+ timing_dims (`int`, *optional*, defaults to 64):
248
+ Dimension of the timing embedding.
249
+ zero_out (`bool`, *optional*, defaults to `False`):
250
+ Whether or not to zero out convolution weights when initializing.
251
+ """
252
+
253
+ model_type = "jukebox_prior"
254
+ attribute_map = {
255
+ "max_position_embeddings": "n_positions",
256
+ "num_attention_heads": "n_head",
257
+ }
258
+
259
+ def __init__(
260
+ self,
261
+ act_fn="quick_gelu",
262
+ level=0,
263
+ alignment_head=2,
264
+ alignment_layer=68,
265
+ attention_multiplier=0.25,
266
+ attention_pattern="enc_dec_with_lyrics",
267
+ attn_dropout=0,
268
+ attn_res_scale=False,
269
+ blocks=64,
270
+ conv_res_scale=None,
271
+ num_layers=72,
272
+ emb_dropout=0,
273
+ encoder_config=None,
274
+ encoder_loss_fraction=0.4,
275
+ hidden_size=2048,
276
+ init_scale=0.2,
277
+ is_encoder_decoder=True,
278
+ lyric_vocab_size=80,
279
+ mask=False,
280
+ max_duration=600,
281
+ max_nb_genres=1,
282
+ merged_decoder=True,
283
+ metadata_conditioning=True,
284
+ metadata_dims=[604, 7898],
285
+ min_duration=0,
286
+ mlp_multiplier=1.0,
287
+ music_vocab_size=2048,
288
+ n_ctx=6144,
289
+ n_heads=2,
290
+ nb_relevant_lyric_tokens=384,
291
+ res_conv_depth=3,
292
+ res_conv_width=128,
293
+ res_convolution_multiplier=1,
294
+ res_dilation_cycle=None,
295
+ res_dilation_growth_rate=1,
296
+ res_downs_t=[3, 2, 2],
297
+ res_strides_t=[2, 2, 2],
298
+ resid_dropout=0,
299
+ sampling_rate=44100,
300
+ spread=None,
301
+ timing_dims=64,
302
+ zero_out=False,
303
+ **kwargs,
304
+ ):
305
+ self.act_fn = act_fn
306
+ self.alignment_head = alignment_head
307
+ self.alignment_layer = alignment_layer
308
+ self.attention_multiplier = attention_multiplier
309
+ self.attention_pattern = attention_pattern
310
+ self.attn_dropout = attn_dropout
311
+ self.attn_res_scale = attn_res_scale
312
+ self.blocks = blocks
313
+ self.conv_res_scale = conv_res_scale
314
+ self.num_layers = num_layers
315
+ self.emb_dropout = emb_dropout
316
+ self.music_vocab_size = music_vocab_size
317
+ if encoder_config is not None:
318
+ self.encoder_config = JukeboxPriorConfig(**encoder_config)
319
+ else:
320
+ self.encoder_config = None
321
+ self.encoder_loss_fraction = encoder_loss_fraction
322
+ self.init_scale = init_scale
323
+ self.is_encoder_decoder = is_encoder_decoder
324
+ self.lyric_vocab_size = lyric_vocab_size
325
+ self.level = level
326
+ self.mask = mask
327
+ self.max_duration = max_duration
328
+ self.max_nb_genres = max_nb_genres
329
+ self.merged_decoder = merged_decoder
330
+ self.metadata_conditioning = metadata_conditioning
331
+ self.metadata_dims = metadata_dims
332
+ self.min_duration = min_duration
333
+ self.mlp_multiplier = mlp_multiplier
334
+ self.n_ctx = n_ctx
335
+ self.n_heads = n_heads
336
+ self.nb_relevant_lyric_tokens = nb_relevant_lyric_tokens
337
+ self.res_conv_depth = res_conv_depth
338
+ self.res_conv_width = res_conv_width
339
+ self.res_convolution_multiplier = res_convolution_multiplier
340
+ self.res_dilation_cycle = res_dilation_cycle
341
+ self.res_dilation_growth_rate = res_dilation_growth_rate
342
+ self.res_downs_t = res_downs_t
343
+ self.res_strides_t = res_strides_t
344
+ self.resid_dropout = resid_dropout
345
+ self.sampling_rate = sampling_rate
346
+ self.spread = spread
347
+ self.timing_dims = timing_dims
348
+ self.hidden_size = hidden_size
349
+ self.zero_out = zero_out
350
+
351
+ @classmethod
352
+ def from_pretrained(
353
+ cls, pretrained_model_name_or_path: Union[str, os.PathLike], level=0, **kwargs
354
+ ) -> "PretrainedConfig":
355
+ cls._set_token_in_kwargs(kwargs)
356
+
357
+ config_dict, kwargs = cls.get_config_dict(pretrained_model_name_or_path, **kwargs)
358
+
359
+ # get the prior config dict if we are loading from JukeboxConfig
360
+ if config_dict.get("model_type") == "jukebox":
361
+ config_dict = config_dict[f"prior_{level}"]
362
+
363
+ if "model_type" in config_dict and hasattr(cls, "model_type") and config_dict["model_type"] != cls.model_type:
364
+ logger.warning(
365
+ f"You are using a model of type {config_dict['model_type']} to instantiate a model of type "
366
+ f"{cls.model_type}. This is not supported for all configurations of models and can yield errors."
367
+ )
368
+
369
+ return cls.from_dict(config_dict, **kwargs)
370
+
371
+
372
+ class JukeboxVQVAEConfig(PretrainedConfig):
373
+ """
374
+ This is the configuration class to store the configuration of a [`JukeboxVQVAE`]. It is used to instantiate a
375
+ `JukeboxVQVAE` according to the specified arguments, defining the model architecture. Instantiating a configuration
376
+ with the defaults will yield a similar configuration to that of the VQVAE from
377
+ [openai/jukebox-1b-lyrics](https://huggingface.co/openai/jukebox-1b-lyrics) architecture.
378
+
379
+ Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the
380
+ documentation from [`PretrainedConfig`] for more information.
381
+
382
+ Args:
383
+ act_fn (`str`, *optional*, defaults to `"relu"`):
384
+ Activation function of the model.
385
+ nb_discrete_codes (`int`, *optional*, defaults to 2048):
386
+ Number of codes of the VQVAE.
387
+ commit (`float`, *optional*, defaults to 0.02):
388
+ Commit loss multiplier.
389
+ conv_input_shape (`int`, *optional*, defaults to 1):
390
+ Number of audio channels.
391
+ conv_res_scale (`bool`, *optional*, defaults to `False`):
392
+ Whether or not to scale the residuals of the `JukeboxResConv1DBlock`.
393
+ embed_dim (`int`, *optional*, defaults to 64):
394
+ Embedding dimension of the codebook vectors.
395
+ hop_fraction (`List[int]`, *optional*, defaults to `[0.125, 0.5, 0.5]`):
396
+ Fraction of non-intersecting window used when continuing the sampling process.
397
+ levels (`int`, *optional*, defaults to 3):
398
+ Number of hierarchical levels that used in the VQVAE.
399
+ lmu (`float`, *optional*, defaults to 0.99):
400
+ Used in the codebook update, exponential moving average coefficient. For more detail refer to Appendix A.1
401
+ of the original [VQVAE paper](https://arxiv.org/pdf/1711.00937v2.pdf)
402
+ multipliers (`List[int]`, *optional*, defaults to `[2, 1, 1]`):
403
+ Depth and width multipliers used for each level. Used on the `res_conv_width` and `res_conv_depth`
404
+ res_conv_depth (`int`, *optional*, defaults to 4):
405
+ Depth of the encoder and decoder block. If no `multipliers` are used, this is the same for each level.
406
+ res_conv_width (`int`, *optional*, defaults to 32):
407
+ Width of the encoder and decoder block. If no `multipliers` are used, this is the same for each level.
408
+ res_convolution_multiplier (`int`, *optional*, defaults to 1):
409
+ Scaling factor of the hidden dimension used in the `JukeboxResConv1DBlock`.
410
+ res_dilation_cycle (`int`, *optional*):
411
+ Dilation cycle value used in the `JukeboxResnet`. If an int is used, each new Conv1 block will have a depth
412
+ reduced by a power of `res_dilation_cycle`.
413
+ res_dilation_growth_rate (`int`, *optional*, defaults to 3):
414
+ Resnet dilation growth rate used in the VQVAE (dilation_growth_rate ** depth)
415
+ res_downs_t (`List[int]`, *optional*, defaults to `[3, 2, 2]`):
416
+ Downsampling rate for each level of the hierarchical VQ-VAE.
417
+ res_strides_t (`List[int]`, *optional*, defaults to `[2, 2, 2]`):
418
+ Stride used for each level of the hierarchical VQ-VAE.
419
+ sample_length (`int`, *optional*, defaults to 1058304):
420
+ Provides the max input shape of the VQVAE. Is used to compute the input shape of each level.
421
+ init_scale (`float`, *optional*, defaults to 0.2):
422
+ Initialization scale.
423
+ zero_out (`bool`, *optional*, defaults to `False`):
424
+ Whether or not to zero out convolution weights when initializing.
425
+ """
426
+
427
+ model_type = "jukebox_vqvae"
428
+
429
+ def __init__(
430
+ self,
431
+ act_fn="relu",
432
+ nb_discrete_codes=2048,
433
+ commit=0.02,
434
+ conv_input_shape=1,
435
+ conv_res_scale=False,
436
+ embed_dim=64,
437
+ hop_fraction=[0.125, 0.5, 0.5],
438
+ levels=3,
439
+ lmu=0.99,
440
+ multipliers=[2, 1, 1],
441
+ res_conv_depth=4,
442
+ res_conv_width=32,
443
+ res_convolution_multiplier=1,
444
+ res_dilation_cycle=None,
445
+ res_dilation_growth_rate=3,
446
+ res_downs_t=[3, 2, 2],
447
+ res_strides_t=[2, 2, 2],
448
+ sample_length=1058304,
449
+ init_scale=0.2,
450
+ zero_out=False,
451
+ **kwargs,
452
+ ):
453
+ self.hop_fraction = hop_fraction
454
+ self.conv_input_shape = conv_input_shape
455
+ self.sample_length = sample_length
456
+
457
+ # VQVAE parameters (all used)
458
+ self.levels = levels
459
+ self.embed_dim = embed_dim
460
+ self.nb_discrete_codes = nb_discrete_codes
461
+ self.res_conv_width = res_conv_width
462
+ self.res_conv_depth = res_conv_depth
463
+ self.res_convolution_multiplier = res_convolution_multiplier
464
+ self.res_dilation_growth_rate = res_dilation_growth_rate
465
+ self.res_dilation_cycle = res_dilation_cycle
466
+ self.multipliers = multipliers
467
+ self.res_downs_t = res_downs_t
468
+ self.res_strides_t = res_strides_t
469
+ self.lmu = lmu
470
+ self.commit = commit
471
+ self.conv_res_scale = conv_res_scale
472
+ self.act_fn = act_fn
473
+ self.init_scale = init_scale
474
+ self.zero_out = zero_out
475
+
476
+ @classmethod
477
+ def from_pretrained(cls, pretrained_model_name_or_path: Union[str, os.PathLike], **kwargs) -> "PretrainedConfig":
478
+ cls._set_token_in_kwargs(kwargs)
479
+
480
+ config_dict, kwargs = cls.get_config_dict(pretrained_model_name_or_path, **kwargs)
481
+
482
+ # get the text config dict if we are loading from CLIPConfig
483
+ if config_dict.get("model_type") == "jukebox":
484
+ config_dict = config_dict["vqvae_config"]
485
+
486
+ if "model_type" in config_dict and hasattr(cls, "model_type") and config_dict["model_type"] != cls.model_type:
487
+ logger.warning(
488
+ f"You are using a model of type {config_dict['model_type']} to instantiate a model of type "
489
+ f"{cls.model_type}. This is not supported for all configurations of models and can yield errors."
490
+ )
491
+
492
+ return cls.from_dict(config_dict, **kwargs)
493
+
494
+
495
+ class JukeboxConfig(PretrainedConfig):
496
+ """
497
+ This is the configuration class to store the configuration of a [`JukeboxModel`].
498
+
499
+ Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the
500
+ documentation from [`PretrainedConfig`] for more information. Instantiating a configuration with the defaults will
501
+ yield a similar configuration to that of
502
+ [openai/jukebox-1b-lyrics](https://huggingface.co/openai/jukebox-1b-lyrics) architecture.
503
+
504
+
505
+ The downsampling and stride are used to determine downsampling of the input sequence. For example, downsampling =
506
+ (5,3), and strides = (2, 2) will downsample the audio by 2^5 = 32 to get the first level of codes, and 2**8 = 256
507
+ to get the second level codes. This is mostly true for training the top level prior and the upsamplers.
508
+
509
+ Args:
510
+ vqvae_config (`JukeboxVQVAEConfig`, *optional*):
511
+ Configuration for the `JukeboxVQVAE` model.
512
+ prior_config_list (`List[JukeboxPriorConfig]`, *optional*):
513
+ List of the configs for each of the `JukeboxPrior` of the model. The original architecture uses 3 priors.
514
+ nb_priors (`int`, *optional*, defaults to 3):
515
+ Number of prior models that will sequentially sample tokens. Each prior is conditional auto regressive
516
+ (decoder) model, apart from the top prior, which can include a lyric encoder. The available models were
517
+ trained using a top prior and 2 upsampler priors.
518
+ sampling_rate (`int`, *optional*, defaults to 44100):
519
+ Sampling rate of the raw audio.
520
+ timing_dims (`int`, *optional*, defaults to 64):
521
+ Dimensions of the JukeboxRangeEmbedding layer which is equivalent to traditional positional embedding
522
+ layer. The timing embedding layer converts the absolute and relative position in the currently sampled
523
+ audio to a tensor of length `timing_dims` that will be added to the music tokens.
524
+ min_duration (`int`, *optional*, defaults to 0):
525
+ Minimum duration of the audios to generate
526
+ max_duration (`float`, *optional*, defaults to 600.0):
527
+ Maximum duration of the audios to generate
528
+ max_nb_genres (`int`, *optional*, defaults to 5):
529
+ Maximum number of genres that can be used to condition a single sample.
530
+ metadata_conditioning (`bool`, *optional*, defaults to `True`):
531
+ Whether or not to use metadata conditioning, corresponding to the artist, the genre and the min/maximum
532
+ duration.
533
+
534
+ Example:
535
+
536
+ ```python
537
+ >>> from transformers import JukeboxModel, JukeboxConfig
538
+
539
+ >>> # Initializing a Jukebox configuration
540
+ >>> configuration = JukeboxConfig()
541
+
542
+ >>> # Initializing a model from the configuration
543
+ >>> model = JukeboxModel(configuration)
544
+
545
+ >>> # Accessing the model configuration
546
+ >>> configuration = model.config
547
+ ```
548
+ """
549
+
550
+ model_type = "jukebox"
551
+
552
+ def __init__(
553
+ self,
554
+ vqvae_config=None,
555
+ prior_config_list=None,
556
+ nb_priors=3,
557
+ sampling_rate=44100,
558
+ timing_dims=64,
559
+ min_duration=0,
560
+ max_duration=600.0,
561
+ max_nb_genres=5,
562
+ metadata_conditioning=True,
563
+ **kwargs,
564
+ ):
565
+ if vqvae_config is None:
566
+ vqvae_config = {}
567
+ logger.info("vqvae_config is None. initializing the JukeboxVQVAE with default values.")
568
+
569
+ self.vqvae_config = JukeboxVQVAEConfig(**vqvae_config)
570
+ if prior_config_list is not None:
571
+ self.prior_configs = [JukeboxPriorConfig(**prior_config) for prior_config in prior_config_list]
572
+ else:
573
+ self.prior_configs = []
574
+ for prior_idx in range(nb_priors):
575
+ prior_config = kwargs.pop(f"prior_{prior_idx}", None)
576
+ if prior_config is None:
577
+ prior_config = {}
578
+ logger.info(
579
+ f"prior_{prior_idx}'s config is None. Initializing the JukeboxPriorConfig list with default"
580
+ " values."
581
+ )
582
+ self.prior_configs.append(JukeboxPriorConfig(**prior_config))
583
+
584
+ self.hop_fraction = self.vqvae_config.hop_fraction
585
+
586
+ self.nb_priors = nb_priors
587
+
588
+ # Metadata conditioning
589
+ self.max_nb_genres = max_nb_genres
590
+ self.sampling_rate = sampling_rate
591
+ self.timing_dims = timing_dims
592
+ self.min_duration = min_duration
593
+ self.max_duration = max_duration
594
+ self.metadata_conditioning = metadata_conditioning
595
+
596
+ super().__init__(**kwargs)
597
+
598
+ @classmethod
599
+ def from_configs(cls, prior_configs: List[JukeboxPriorConfig], vqvae_config: JukeboxVQVAEConfig, **kwargs):
600
+ r"""
601
+ Instantiate a [`JukeboxConfig`] (or a derived class) from clip text model configuration and clip vision model
602
+ configuration.
603
+
604
+ Returns:
605
+ [`JukeboxConfig`]: An instance of a configuration object
606
+ """
607
+ prior_config_list = [config.to_dict() for config in prior_configs]
608
+ return cls(prior_config_list=prior_config_list, vqvae_config_dict=vqvae_config.to_dict(), **kwargs)
609
+
610
+ def to_dict(self):
611
+ # Override the default to_dict to apply to_dict to the list of prior configs.
612
+ result = super().to_dict()
613
+ result["prior_config_list"] = [config.to_dict() for config in result.pop("prior_configs")]
614
+ return result
openflamingo/lib/python3.10/site-packages/transformers/models/jukebox/convert_jukebox.py ADDED
@@ -0,0 +1,279 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding=utf-8
2
+ # Copyright 2022 The HuggingFace Inc. team.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ """Convert Jukebox checkpoints"""
16
+
17
+ import argparse
18
+ import json
19
+ import os
20
+ from pathlib import Path
21
+
22
+ import requests
23
+ import torch
24
+
25
+ from transformers import JukeboxConfig, JukeboxModel
26
+ from transformers.utils import logging
27
+
28
+
29
+ logging.set_verbosity_info()
30
+ logger = logging.get_logger(__name__)
31
+
32
+
33
+ PREFIX = "https://openaipublic.azureedge.net/jukebox/models/"
34
+ MODEL_MAPPING = {
35
+ "jukebox-1b-lyrics": [
36
+ "5b/vqvae.pth.tar",
37
+ "5b/prior_level_0.pth.tar",
38
+ "5b/prior_level_1.pth.tar",
39
+ "1b_lyrics/prior_level_2.pth.tar",
40
+ ],
41
+ "jukebox-5b-lyrics": [
42
+ "5b/vqvae.pth.tar",
43
+ "5b/prior_level_0.pth.tar",
44
+ "5b/prior_level_1.pth.tar",
45
+ "5b_lyrics/prior_level_2.pth.tar",
46
+ ],
47
+ }
48
+
49
+
50
+ def replace_key(key):
51
+ if key.endswith(".model.1.bias") and len(key.split(".")) > 10:
52
+ key = key.replace(".model.1.bias", ".conv1d_1.bias")
53
+ elif key.endswith(".model.1.weight") and len(key.split(".")) > 10:
54
+ key = key.replace(".model.1.weight", ".conv1d_1.weight")
55
+ elif key.endswith(".model.3.bias") and len(key.split(".")) > 10:
56
+ key = key.replace(".model.3.bias", ".conv1d_2.bias")
57
+ elif key.endswith(".model.3.weight") and len(key.split(".")) > 10:
58
+ key = key.replace(".model.3.weight", ".conv1d_2.weight")
59
+
60
+ if "conditioner_blocks.0." in key:
61
+ key = key.replace("conditioner_blocks.0", "conditioner_blocks")
62
+
63
+ if "prime_prior" in key:
64
+ key = key.replace("prime_prior", "encoder")
65
+
66
+ if ".emb." in key and "total" not in key and "absolute" not in key and "relative" not in key:
67
+ key = key.replace(".emb.", ".")
68
+
69
+ if key.endswith("k"): # replace vqvae.X.k with vqvae.X.codebook
70
+ return key.replace(".k", ".codebook")
71
+ if "y_emb." in key:
72
+ return key.replace("y_emb.", "metadata_embedding.")
73
+
74
+ if "x_emb.emb." in key:
75
+ key = key.replace("0.x_emb.emb", "embed_tokens")
76
+
77
+ if "prime_state_ln" in key:
78
+ return key.replace("prime_state_ln", "encoder.final_layer_norm")
79
+ if ".ln" in key:
80
+ return key.replace(".ln", ".layer_norm")
81
+ if "_ln" in key:
82
+ return key.replace("_ln", "_layer_norm")
83
+
84
+ if "prime_state_proj" in key:
85
+ return key.replace("prime_state_proj", "encoder.proj_in")
86
+ if "prime_x_out" in key:
87
+ return key.replace("prime_x_out", "encoder.lm_head")
88
+ if "prior.x_out" in key:
89
+ return key.replace("x_out", "fc_proj_out")
90
+ if "x_emb" in key:
91
+ return key.replace("x_emb", "embed_tokens")
92
+
93
+ return key
94
+
95
+
96
+ def fix_jukebox_keys(state_dict, model_state_dict, key_prefix, mapping):
97
+ new_dict = {}
98
+ import re
99
+
100
+ re_encoder_block_conv_in = re.compile(r"encoders.(\d*).level_blocks.(\d*).model.(\d*).(\d).(bias|weight)")
101
+ re_encoder_block_resnet = re.compile(
102
+ r"encoders.(\d*).level_blocks.(\d*).model.(\d*).(\d).model.(\d*).model.(\d*).(bias|weight)"
103
+ )
104
+ re_encoder_block_proj_out = re.compile(r"encoders.(\d*).level_blocks.(\d*).model.(\d*).(bias|weight)")
105
+
106
+ re_decoder_block_conv_out = re.compile(r"decoders.(\d*).level_blocks.(\d*).model.(\d*).(\d).(bias|weight)")
107
+ re_decoder_block_resnet = re.compile(
108
+ r"decoders.(\d*).level_blocks.(\d*).model.(\d*).(\d).model.(\d*).model.(\d*).(bias|weight)"
109
+ )
110
+ re_decoder_block_proj_in = re.compile(r"decoders.(\d*).level_blocks.(\d*).model.(\d*).(bias|weight)")
111
+
112
+ re_prior_cond_conv_out = re.compile(r"conditioner_blocks.(\d*).cond.model.(\d*).(\d).(bias|weight)")
113
+ re_prior_cond_resnet = re.compile(
114
+ r"conditioner_blocks.(\d*).cond.model.(\d*).(\d).model.(\d*).model.(\d*).(bias|weight)"
115
+ )
116
+ re_prior_cond_proj_in = re.compile(r"conditioner_blocks.(\d*).cond.model.(\d*).(bias|weight)")
117
+
118
+ for original_key, value in state_dict.items():
119
+ # rename vqvae.encoder keys
120
+ if re_encoder_block_conv_in.fullmatch(original_key):
121
+ regex_match = re_encoder_block_conv_in.match(original_key)
122
+ groups = regex_match.groups()
123
+ block_index = int(groups[2]) * 2 + int(groups[3])
124
+ re_new_key = f"encoders.{groups[0]}.level_blocks.{groups[1]}.downsample_block.{block_index}.{groups[-1]}"
125
+ key = re_encoder_block_conv_in.sub(re_new_key, original_key)
126
+
127
+ elif re_encoder_block_resnet.fullmatch(original_key):
128
+ regex_match = re_encoder_block_resnet.match(original_key)
129
+ groups = regex_match.groups()
130
+ block_index = int(groups[2]) * 2 + int(groups[3])
131
+ conv_index = {"1": 1, "3": 2}[groups[-2]]
132
+ prefix = f"encoders.{groups[0]}.level_blocks.{groups[1]}.downsample_block.{block_index}."
133
+ resnet_block = f"resnet_block.{groups[-3]}.conv1d_{conv_index}.{groups[-1]}"
134
+ re_new_key = prefix + resnet_block
135
+ key = re_encoder_block_resnet.sub(re_new_key, original_key)
136
+
137
+ elif re_encoder_block_proj_out.fullmatch(original_key):
138
+ regex_match = re_encoder_block_proj_out.match(original_key)
139
+ groups = regex_match.groups()
140
+ re_new_key = f"encoders.{groups[0]}.level_blocks.{groups[1]}.proj_out.{groups[-1]}"
141
+ key = re_encoder_block_proj_out.sub(re_new_key, original_key)
142
+
143
+ # rename vqvae.decoder keys
144
+ elif re_decoder_block_conv_out.fullmatch(original_key):
145
+ regex_match = re_decoder_block_conv_out.match(original_key)
146
+ groups = regex_match.groups()
147
+ block_index = int(groups[2]) * 2 + int(groups[3]) - 2
148
+ re_new_key = f"decoders.{groups[0]}.level_blocks.{groups[1]}.upsample_block.{block_index}.{groups[-1]}"
149
+ key = re_decoder_block_conv_out.sub(re_new_key, original_key)
150
+
151
+ elif re_decoder_block_resnet.fullmatch(original_key):
152
+ regex_match = re_decoder_block_resnet.match(original_key)
153
+ groups = regex_match.groups()
154
+ block_index = int(groups[2]) * 2 + int(groups[3]) - 2
155
+ conv_index = {"1": 1, "3": 2}[groups[-2]]
156
+ prefix = f"decoders.{groups[0]}.level_blocks.{groups[1]}.upsample_block.{block_index}."
157
+ resnet_block = f"resnet_block.{groups[-3]}.conv1d_{conv_index}.{groups[-1]}"
158
+ re_new_key = prefix + resnet_block
159
+ key = re_decoder_block_resnet.sub(re_new_key, original_key)
160
+
161
+ elif re_decoder_block_proj_in.fullmatch(original_key):
162
+ regex_match = re_decoder_block_proj_in.match(original_key)
163
+ groups = regex_match.groups()
164
+ re_new_key = f"decoders.{groups[0]}.level_blocks.{groups[1]}.proj_in.{groups[-1]}"
165
+ key = re_decoder_block_proj_in.sub(re_new_key, original_key)
166
+
167
+ # rename prior cond.model to upsampler.upsample_block and resnet
168
+ elif re_prior_cond_conv_out.fullmatch(original_key):
169
+ regex_match = re_prior_cond_conv_out.match(original_key)
170
+ groups = regex_match.groups()
171
+ block_index = int(groups[1]) * 2 + int(groups[2]) - 2
172
+ re_new_key = f"conditioner_blocks.upsampler.upsample_block.{block_index}.{groups[-1]}"
173
+ key = re_prior_cond_conv_out.sub(re_new_key, original_key)
174
+
175
+ elif re_prior_cond_resnet.fullmatch(original_key):
176
+ regex_match = re_prior_cond_resnet.match(original_key)
177
+ groups = regex_match.groups()
178
+ block_index = int(groups[1]) * 2 + int(groups[2]) - 2
179
+ conv_index = {"1": 1, "3": 2}[groups[-2]]
180
+ prefix = f"conditioner_blocks.upsampler.upsample_block.{block_index}."
181
+ resnet_block = f"resnet_block.{groups[-3]}.conv1d_{conv_index}.{groups[-1]}"
182
+ re_new_key = prefix + resnet_block
183
+ key = re_prior_cond_resnet.sub(re_new_key, original_key)
184
+
185
+ elif re_prior_cond_proj_in.fullmatch(original_key):
186
+ regex_match = re_prior_cond_proj_in.match(original_key)
187
+ groups = regex_match.groups()
188
+ re_new_key = f"conditioner_blocks.upsampler.proj_in.{groups[-1]}"
189
+ key = re_prior_cond_proj_in.sub(re_new_key, original_key)
190
+
191
+ # keep original key
192
+ else:
193
+ key = original_key
194
+
195
+ key = replace_key(key)
196
+
197
+ if f"{key_prefix}.{key}" not in model_state_dict or key is None:
198
+ print(f"failed converting {original_key} to {key}, does not match")
199
+
200
+ # handle missmatched shape
201
+ elif value.shape != model_state_dict[f"{key_prefix}.{key}"].shape:
202
+ val = model_state_dict[f"{key_prefix}.{key}"]
203
+ print(f"{original_key}-> {key} : \nshape {val.shape} and { value.shape}, do not match")
204
+ key = original_key
205
+
206
+ mapping[key] = original_key
207
+ new_dict[key] = value
208
+
209
+ return new_dict
210
+
211
+
212
+ @torch.no_grad()
213
+ def convert_openai_checkpoint(model_name=None, pytorch_dump_folder_path=None):
214
+ """
215
+ Copy/paste/tweak model's weights to our Jukebox structure.
216
+ """
217
+ for file in MODEL_MAPPING[model_name]:
218
+ if not os.path.isfile(f"{pytorch_dump_folder_path}/{file.split('/')[-1]}"):
219
+ r = requests.get(f"{PREFIX}{file}", allow_redirects=True)
220
+ os.makedirs(f"{pytorch_dump_folder_path}/", exist_ok=True)
221
+ open(f"{pytorch_dump_folder_path}/{file.split('/')[-1]}", "wb").write(r.content)
222
+
223
+ model_to_convert = MODEL_MAPPING[model_name.split("/")[-1]]
224
+
225
+ config = JukeboxConfig.from_pretrained(model_name)
226
+ model = JukeboxModel(config)
227
+
228
+ weight_dict = []
229
+ mapping = {}
230
+ for i, dict_name in enumerate(model_to_convert):
231
+ old_dic = torch.load(f"{pytorch_dump_folder_path}/{dict_name.split('/')[-1]}")["model"]
232
+
233
+ new_dic = {}
234
+ for k in old_dic.keys():
235
+ if k.endswith(".b"):
236
+ new_dic[k.replace("b", "bias")] = old_dic[k]
237
+ elif k.endswith(".w"):
238
+ new_dic[k.replace("w", "weight")] = old_dic[k]
239
+ elif "level_2" not in dict_name and "cond.model." in k:
240
+ new_dic[k.replace(".blocks.", ".model.")] = old_dic[k]
241
+ else:
242
+ new_dic[k] = old_dic[k]
243
+
244
+ key_prefix = "vqvae" if i == 0 else f"priors.{3 - i}"
245
+ new_dic = fix_jukebox_keys(new_dic, model.state_dict(), key_prefix, mapping)
246
+ weight_dict.append(new_dic)
247
+
248
+ vqvae_state_dict = weight_dict.pop(0)
249
+ model.vqvae.load_state_dict(vqvae_state_dict)
250
+ for i in range(len(weight_dict)):
251
+ model.priors[i].load_state_dict(weight_dict[2 - i])
252
+
253
+ Path(pytorch_dump_folder_path).mkdir(exist_ok=True)
254
+ with open(f"{pytorch_dump_folder_path}/mapping.json", "w") as txtfile:
255
+ json.dump(mapping, txtfile)
256
+
257
+ print(f"Saving model {model_name} to {pytorch_dump_folder_path}")
258
+ model.save_pretrained(pytorch_dump_folder_path)
259
+
260
+ return weight_dict
261
+
262
+
263
+ if __name__ == "__main__":
264
+ parser = argparse.ArgumentParser()
265
+ # Required parameters
266
+ parser.add_argument(
267
+ "--model_name",
268
+ default="jukebox-5b-lyrics",
269
+ type=str,
270
+ help="Name of the model you'd like to convert.",
271
+ )
272
+ parser.add_argument(
273
+ "--pytorch_dump_folder_path",
274
+ default="jukebox-5b-lyrics-converted",
275
+ type=str,
276
+ help="Path to the output PyTorch model directory.",
277
+ )
278
+ args = parser.parse_args()
279
+ convert_openai_checkpoint(args.model_name, args.pytorch_dump_folder_path)
openflamingo/lib/python3.10/site-packages/transformers/models/jukebox/modeling_jukebox.py ADDED
The diff for this file is too large to render. See raw diff
 
openflamingo/lib/python3.10/site-packages/transformers/models/jukebox/tokenization_jukebox.py ADDED
@@ -0,0 +1,418 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding=utf-8
2
+ # Copyright 2022 The Open AI Team Authors and The HuggingFace Inc. team.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ """Tokenization classes for OpenAI Jukebox."""
16
+
17
+
18
+ import json
19
+ import os
20
+ import re
21
+ import unicodedata
22
+ from json.encoder import INFINITY
23
+ from typing import Any, Dict, List, Optional, Tuple, Union
24
+
25
+ import numpy as np
26
+ import regex
27
+
28
+ from ...tokenization_utils import AddedToken, PreTrainedTokenizer
29
+ from ...tokenization_utils_base import BatchEncoding
30
+ from ...utils import TensorType, is_flax_available, is_tf_available, is_torch_available, logging
31
+ from ...utils.generic import _is_jax, _is_numpy
32
+
33
+
34
+ logger = logging.get_logger(__name__)
35
+
36
+ VOCAB_FILES_NAMES = {
37
+ "artists_file": "artists.json",
38
+ "lyrics_file": "lyrics.json",
39
+ "genres_file": "genres.json",
40
+ }
41
+
42
+ PRETRAINED_VOCAB_FILES_MAP = {
43
+ "artists_file": {
44
+ "jukebox": "https://huggingface.co/ArthurZ/jukebox/blob/main/artists.json",
45
+ },
46
+ "genres_file": {
47
+ "jukebox": "https://huggingface.co/ArthurZ/jukebox/blob/main/genres.json",
48
+ },
49
+ "lyrics_file": {
50
+ "jukebox": "https://huggingface.co/ArthurZ/jukebox/blob/main/lyrics.json",
51
+ },
52
+ }
53
+
54
+ PRETRAINED_LYRIC_TOKENS_SIZES = {
55
+ "jukebox": 512,
56
+ }
57
+
58
+
59
+ class JukeboxTokenizer(PreTrainedTokenizer):
60
+ """
61
+ Constructs a Jukebox tokenizer. Jukebox can be conditioned on 3 different inputs :
62
+ - Artists, unique ids are associated to each artist from the provided dictionary.
63
+ - Genres, unique ids are associated to each genre from the provided dictionary.
64
+ - Lyrics, character based tokenization. Must be initialized with the list of characters that are inside the
65
+ vocabulary.
66
+
67
+ This tokenizer does not require training. It should be able to process a different number of inputs:
68
+ as the conditioning of the model can be done on the three different queries. If None is provided, defaults values will be used.:
69
+
70
+ Depending on the number of genres on which the model should be conditioned (`n_genres`).
71
+ ```python
72
+ >>> from transformers import JukeboxTokenizer
73
+
74
+ >>> tokenizer = JukeboxTokenizer.from_pretrained("openai/jukebox-1b-lyrics")
75
+ >>> tokenizer("Alan Jackson", "Country Rock", "old town road")["input_ids"]
76
+ [tensor([[ 0, 0, 0, 6785, 546, 41, 38, 30, 76, 46, 41, 49,
77
+ 40, 76, 44, 41, 27, 30]]), tensor([[ 0, 0, 0, 145, 0]]), tensor([[ 0, 0, 0, 145, 0]])]
78
+ ```
79
+
80
+ You can get around that behavior by passing `add_prefix_space=True` when instantiating this tokenizer or when you
81
+ call it on some text, but since the model was not pretrained this way, it might yield a decrease in performance.
82
+
83
+ <Tip>
84
+
85
+ If nothing is provided, the genres and the artist will either be selected randomly or set to None
86
+
87
+ </Tip>
88
+
89
+ This tokenizer inherits from [`PreTrainedTokenizer`] which contains most of the main methods. Users should refer to:
90
+ this superclass for more information regarding those methods.
91
+
92
+ However the code does not allow that and only supports composing from various genres.
93
+
94
+ Args:
95
+ artists_file (`str`):
96
+ Path to the vocabulary file which contains a mapping between artists and ids. The default file supports
97
+ both "v2" and "v3"
98
+ genres_file (`str`):
99
+ Path to the vocabulary file which contain a mapping between genres and ids.
100
+ lyrics_file (`str`):
101
+ Path to the vocabulary file which contains the accepted characters for the lyrics tokenization.
102
+ version (`List[str]`, `optional`, default to `["v3", "v2", "v2"]`) :
103
+ List of the tokenizer versions. The `5b-lyrics`'s top level prior model was trained using `v3` instead of
104
+ `v2`.
105
+ n_genres (`int`, `optional`, defaults to 1):
106
+ Maximum number of genres to use for composition.
107
+ max_n_lyric_tokens (`int`, `optional`, defaults to 512):
108
+ Maximum number of lyric tokens to keep.
109
+ unk_token (`str`, *optional*, defaults to `"<|endoftext|>"`):
110
+ The unknown token. A token that is not in the vocabulary cannot be converted to an ID and is set to be this
111
+ token instead.
112
+ """
113
+
114
+ vocab_files_names = VOCAB_FILES_NAMES
115
+ pretrained_vocab_files_map = PRETRAINED_VOCAB_FILES_MAP
116
+ max_lyric_input_size = PRETRAINED_LYRIC_TOKENS_SIZES
117
+ model_input_names = ["input_ids", "attention_mask"]
118
+
119
+ def __init__(
120
+ self,
121
+ artists_file,
122
+ genres_file,
123
+ lyrics_file,
124
+ version=["v3", "v2", "v2"],
125
+ max_n_lyric_tokens=512,
126
+ n_genres=5,
127
+ unk_token="<|endoftext|>",
128
+ **kwargs,
129
+ ):
130
+ unk_token = AddedToken(unk_token, lstrip=False, rstrip=False) if isinstance(unk_token, str) else unk_token
131
+ super().__init__(
132
+ unk_token=unk_token,
133
+ n_genres=n_genres,
134
+ version=version,
135
+ max_n_lyric_tokens=max_n_lyric_tokens,
136
+ **kwargs,
137
+ )
138
+ self.version = version
139
+ self.max_n_lyric_tokens = max_n_lyric_tokens
140
+ self.n_genres = n_genres
141
+
142
+ with open(artists_file, encoding="utf-8") as vocab_handle:
143
+ self.artists_encoder = json.load(vocab_handle)
144
+
145
+ with open(genres_file, encoding="utf-8") as vocab_handle:
146
+ self.genres_encoder = json.load(vocab_handle)
147
+
148
+ with open(lyrics_file, encoding="utf-8") as vocab_handle:
149
+ self.lyrics_encoder = json.load(vocab_handle)
150
+
151
+ oov = r"[^A-Za-z0-9.,:;!?\-'\"()\[\] \t\n]+"
152
+ # In v2, we had a n_vocab=80 and in v3 we missed + and so n_vocab=79 of characters.
153
+ if len(self.lyrics_encoder) == 79:
154
+ oov = oov.replace(r"\-'", r"\-+'")
155
+
156
+ self.out_of_vocab = regex.compile(oov)
157
+ self.artists_decoder = {v: k for k, v in self.artists_encoder.items()}
158
+ self.genres_decoder = {v: k for k, v in self.genres_encoder.items()}
159
+ self.lyrics_decoder = {v: k for k, v in self.lyrics_encoder.items()}
160
+
161
+ @property
162
+ def vocab_size(self):
163
+ return len(self.artists_encoder) + len(self.genres_encoder) + len(self.lyrics_encoder)
164
+
165
+ def get_vocab(self):
166
+ return dict(self.artists_encoder, self.genres_encoder, self.lyrics_encoder)
167
+
168
+ def _convert_token_to_id(self, list_artists, list_genres, list_lyrics):
169
+ """Converts the artist, genre and lyrics tokens to their index using the vocabulary.
170
+ The total_length, offset and duration have to be provided in order to select relevant lyrics and add padding to
171
+ the lyrics token sequence.
172
+ """
173
+ artists_id = [self.artists_encoder.get(artist, 0) for artist in list_artists]
174
+ for genres in range(len(list_genres)):
175
+ list_genres[genres] = [self.genres_encoder.get(genre, 0) for genre in list_genres[genres]]
176
+ list_genres[genres] = list_genres[genres] + [-1] * (self.n_genres - len(list_genres[genres]))
177
+
178
+ lyric_ids = [[self.lyrics_encoder.get(character, 0) for character in list_lyrics[0]], [], []]
179
+ return artists_id, list_genres, lyric_ids
180
+
181
+ def _tokenize(self, lyrics):
182
+ """
183
+ Converts a string in a sequence of tokens (string), using the tokenizer. Split in words for word-based
184
+ vocabulary or sub-words for sub-word-based vocabularies (BPE/SentencePieces/WordPieces).
185
+
186
+ Do NOT take care of added tokens. Only the lyrics are split into character for the character-based vocabulary.
187
+ """
188
+ # only lyrics are not tokenized, but character based is easily handled
189
+ return list(lyrics)
190
+
191
+ def tokenize(self, artist, genre, lyrics, **kwargs):
192
+ """
193
+ Converts three strings in a 3 sequence of tokens using the tokenizer
194
+ """
195
+ artist, genre, lyrics = self.prepare_for_tokenization(artist, genre, lyrics)
196
+ lyrics = self._tokenize(lyrics)
197
+ return artist, genre, lyrics
198
+
199
+ def prepare_for_tokenization(
200
+ self, artists: str, genres: str, lyrics: str, is_split_into_words: bool = False
201
+ ) -> Tuple[str, str, str, Dict[str, Any]]:
202
+ """
203
+ Performs any necessary transformations before tokenization.
204
+
205
+ Args:
206
+ artist (`str`):
207
+ The artist name to prepare. This will mostly lower the string
208
+ genres (`str`):
209
+ The genre name to prepare. This will mostly lower the string.
210
+ lyrics (`str`):
211
+ The lyrics to prepare.
212
+ is_split_into_words (`bool`, *optional*, defaults to `False`):
213
+ Whether or not the input is already pre-tokenized (e.g., split into words). If set to `True`, the
214
+ tokenizer assumes the input is already split into words (for instance, by splitting it on whitespace)
215
+ which it will tokenize. This is useful for NER or token classification.
216
+ """
217
+ for idx in range(len(self.version)):
218
+ if self.version[idx] == "v3":
219
+ artists[idx] = artists[idx].lower()
220
+ genres[idx] = [genres[idx].lower()]
221
+ else:
222
+ artists[idx] = self._normalize(artists[idx]) + ".v2"
223
+ genres[idx] = [
224
+ self._normalize(genre) + ".v2" for genre in genres[idx].split("_")
225
+ ] # split is for the full dictionary with combined genres
226
+
227
+ if self.version[0] == "v2":
228
+ self.out_of_vocab = regex.compile(r"[^A-Za-z0-9.,:;!?\-'\"()\[\] \t\n]+")
229
+ vocab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.,:;!?-+'\"()[] \t\n"
230
+ self.vocab = {vocab[index]: index + 1 for index in range(len(vocab))}
231
+ self.vocab["<unk>"] = 0
232
+ self.n_vocab = len(vocab) + 1
233
+ self.lyrics_encoder = self.vocab
234
+ self.lyrics_decoder = {v: k for k, v in self.vocab.items()}
235
+ self.lyrics_decoder[0] = ""
236
+ else:
237
+ self.out_of_vocab = regex.compile(r"[^A-Za-z0-9.,:;!?\-+'\"()\[\] \t\n]+")
238
+
239
+ lyrics = self._run_strip_accents(lyrics)
240
+ lyrics = lyrics.replace("\\", "\n")
241
+ lyrics = self.out_of_vocab.sub("", lyrics), [], []
242
+ return artists, genres, lyrics
243
+
244
+ def _run_strip_accents(self, text):
245
+ """Strips accents from a piece of text."""
246
+ text = unicodedata.normalize("NFD", text)
247
+ output = []
248
+ for char in text:
249
+ cat = unicodedata.category(char)
250
+ if cat == "Mn":
251
+ continue
252
+ output.append(char)
253
+ return "".join(output)
254
+
255
+ def _normalize(self, text: str) -> str:
256
+ """
257
+ Normalizes the input text. This process is for the genres and the artist
258
+
259
+ Args:
260
+ text (`str`):
261
+ Artist or Genre string to normalize
262
+ """
263
+
264
+ accepted = (
265
+ [chr(i) for i in range(ord("a"), ord("z") + 1)]
266
+ + [chr(i) for i in range(ord("A"), ord("Z") + 1)]
267
+ + [chr(i) for i in range(ord("0"), ord("9") + 1)]
268
+ + ["."]
269
+ )
270
+ accepted = frozenset(accepted)
271
+ pattern = re.compile(r"_+")
272
+ text = "".join([c if c in accepted else "_" for c in text.lower()])
273
+ text = pattern.sub("_", text).strip("_")
274
+ return text
275
+
276
+ def convert_lyric_tokens_to_string(self, lyrics: List[str]) -> str:
277
+ return " ".join(lyrics)
278
+
279
+ def convert_to_tensors(
280
+ self, inputs, tensor_type: Optional[Union[str, TensorType]] = None, prepend_batch_axis: bool = False
281
+ ):
282
+ """
283
+ Convert the inner content to tensors.
284
+
285
+ Args:
286
+ tensor_type (`str` or [`~utils.TensorType`], *optional*):
287
+ The type of tensors to use. If `str`, should be one of the values of the enum [`~utils.TensorType`]. If
288
+ unset, no modification is done.
289
+ prepend_batch_axis (`int`, *optional*, defaults to `False`):
290
+ Whether or not to add the batch dimension during the conversion.
291
+ """
292
+ # Convert to TensorType
293
+ if not isinstance(tensor_type, TensorType):
294
+ tensor_type = TensorType(tensor_type)
295
+
296
+ # Get a function reference for the correct framework
297
+ if tensor_type == TensorType.TENSORFLOW:
298
+ if not is_tf_available():
299
+ raise ImportError(
300
+ "Unable to convert output to TensorFlow tensors format, TensorFlow is not installed."
301
+ )
302
+ import tensorflow as tf
303
+
304
+ as_tensor = tf.constant
305
+ is_tensor = tf.is_tensor
306
+ elif tensor_type == TensorType.PYTORCH:
307
+ if not is_torch_available():
308
+ raise ImportError("Unable to convert output to PyTorch tensors format, PyTorch is not installed.")
309
+ import torch
310
+
311
+ as_tensor = torch.tensor
312
+ is_tensor = torch.is_tensor
313
+ elif tensor_type == TensorType.JAX:
314
+ if not is_flax_available():
315
+ raise ImportError("Unable to convert output to JAX tensors format, JAX is not installed.")
316
+ import jax.numpy as jnp # noqa: F811
317
+
318
+ as_tensor = jnp.array
319
+ is_tensor = _is_jax
320
+ else:
321
+ as_tensor = np.asarray
322
+ is_tensor = _is_numpy
323
+
324
+ # Do the tensor conversion in batch
325
+
326
+ try:
327
+ if prepend_batch_axis:
328
+ inputs = [inputs]
329
+
330
+ if not is_tensor(inputs):
331
+ inputs = as_tensor(inputs)
332
+ except: # noqa E722
333
+ raise ValueError(
334
+ "Unable to create tensor, you should probably activate truncation and/or padding "
335
+ "with 'padding=True' 'truncation=True' to have batched tensors with the same length."
336
+ )
337
+
338
+ return inputs
339
+
340
+ def __call__(self, artist, genres, lyrics="", return_tensors="pt") -> BatchEncoding:
341
+ """Convert the raw string to a list of token ids
342
+
343
+ Args:
344
+ artist (`str`):
345
+ Name of the artist.
346
+ genres (`str`):
347
+ List of genres that will be mixed to condition the audio
348
+ lyrics (`str`, *optional*, defaults to `""`):
349
+ Lyrics used to condition the generation
350
+ """
351
+ input_ids = [0, 0, 0]
352
+ artist = [artist] * len(self.version)
353
+ genres = [genres] * len(self.version)
354
+
355
+ artists_tokens, genres_tokens, lyrics_tokens = self.tokenize(artist, genres, lyrics)
356
+ artists_id, genres_ids, full_tokens = self._convert_token_to_id(artists_tokens, genres_tokens, lyrics_tokens)
357
+
358
+ attention_masks = [-INFINITY] * len(full_tokens[-1])
359
+ input_ids = [
360
+ self.convert_to_tensors(
361
+ [input_ids + [artists_id[i]] + genres_ids[i] + full_tokens[i]], tensor_type=return_tensors
362
+ )
363
+ for i in range(len(self.version))
364
+ ]
365
+ return BatchEncoding({"input_ids": input_ids, "attention_masks": attention_masks})
366
+
367
+ def save_vocabulary(self, save_directory: str, filename_prefix: Optional[str] = None) -> Tuple[str]:
368
+ """
369
+ Saves the tokenizer's vocabulary dictionary to the provided save_directory.
370
+
371
+ Args:
372
+ save_directory (`str`):
373
+ A path to the directory where to saved. It will be created if it doesn't exist.
374
+
375
+ filename_prefix (`Optional[str]`, *optional*):
376
+ A prefix to add to the names of the files saved by the tokenizer.
377
+
378
+ """
379
+ if not os.path.isdir(save_directory):
380
+ logger.error(f"Vocabulary path ({save_directory}) should be a directory")
381
+ return
382
+
383
+ artists_file = os.path.join(
384
+ save_directory, (filename_prefix + "-" if filename_prefix else "") + VOCAB_FILES_NAMES["artists_file"]
385
+ )
386
+ with open(artists_file, "w", encoding="utf-8") as f:
387
+ f.write(json.dumps(self.artists_encoder, ensure_ascii=False))
388
+
389
+ genres_file = os.path.join(
390
+ save_directory, (filename_prefix + "-" if filename_prefix else "") + VOCAB_FILES_NAMES["genres_file"]
391
+ )
392
+ with open(genres_file, "w", encoding="utf-8") as f:
393
+ f.write(json.dumps(self.genres_encoder, ensure_ascii=False))
394
+
395
+ lyrics_file = os.path.join(
396
+ save_directory, (filename_prefix + "-" if filename_prefix else "") + VOCAB_FILES_NAMES["lyrics_file"]
397
+ )
398
+ with open(lyrics_file, "w", encoding="utf-8") as f:
399
+ f.write(json.dumps(self.lyrics_encoder, ensure_ascii=False))
400
+
401
+ return (artists_file, genres_file, lyrics_file)
402
+
403
+ def _convert_id_to_token(self, artists_index, genres_index, lyric_index):
404
+ """
405
+ Converts an index (integer) in a token (str) using the vocab.
406
+
407
+ Args:
408
+ artists_index (`int`):
409
+ Index of the artist in its corresponding dictionary.
410
+ genres_index (`Union[List[int], int]`):
411
+ Index of the genre in its corresponding dictionary.
412
+ lyric_index (`List[int]`):
413
+ List of character indices, which each correspond to a character.
414
+ """
415
+ artist = self.artists_decoder.get(artists_index)
416
+ genres = [self.genres_decoder.get(genre) for genre in genres_index]
417
+ lyrics = [self.lyrics_decoder.get(character) for character in lyric_index]
418
+ return artist, genres, lyrics
openflamingo/lib/python3.10/site-packages/transformers/models/layoutxlm/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (1.06 kB). View file
 
openflamingo/lib/python3.10/site-packages/transformers/models/layoutxlm/__pycache__/processing_layoutxlm.cpython-310.pyc ADDED
Binary file (7.23 kB). View file
 
openflamingo/lib/python3.10/site-packages/transformers/models/layoutxlm/__pycache__/tokenization_layoutxlm.cpython-310.pyc ADDED
Binary file (39.3 kB). View file
 
openflamingo/lib/python3.10/site-packages/transformers/models/layoutxlm/__pycache__/tokenization_layoutxlm_fast.cpython-310.pyc ADDED
Binary file (27 kB). View file
 
openflamingo/lib/python3.10/site-packages/transformers/models/layoutxlm/tokenization_layoutxlm.py ADDED
@@ -0,0 +1,1176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding=utf-8
2
+ # Copyright 2021 The HuggingFace Inc. team.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License
15
+ """ Tokenization classes for LayoutXLM model."""
16
+
17
+
18
+ import os
19
+ from shutil import copyfile
20
+ from typing import Any, Dict, List, Optional, Tuple, Union
21
+
22
+ import sentencepiece as spm
23
+
24
+ from ...tokenization_utils import AddedToken, PreTrainedTokenizer
25
+ from ...tokenization_utils_base import (
26
+ BatchEncoding,
27
+ EncodedInput,
28
+ PreTokenizedInput,
29
+ TextInput,
30
+ TextInputPair,
31
+ TruncationStrategy,
32
+ )
33
+ from ...utils import PaddingStrategy, TensorType, add_end_docstrings, logging
34
+ from ..xlm_roberta.tokenization_xlm_roberta import (
35
+ PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES,
36
+ PRETRAINED_VOCAB_FILES_MAP,
37
+ SPIECE_UNDERLINE,
38
+ VOCAB_FILES_NAMES,
39
+ )
40
+
41
+
42
+ logger = logging.get_logger(__name__)
43
+
44
+
45
+ LAYOUTXLM_ENCODE_KWARGS_DOCSTRING = r"""
46
+ add_special_tokens (`bool`, *optional*, defaults to `True`):
47
+ Whether or not to encode the sequences with the special tokens relative to their model.
48
+ padding (`bool`, `str` or [`~file_utils.PaddingStrategy`], *optional*, defaults to `False`):
49
+ Activates and controls padding. Accepts the following values:
50
+
51
+ - `True` or `'longest'`: Pad to the longest sequence in the batch (or no padding if only a single
52
+ sequence if provided).
53
+ - `'max_length'`: Pad to a maximum length specified with the argument `max_length` or to the maximum
54
+ acceptable input length for the model if that argument is not provided.
55
+ - `False` or `'do_not_pad'` (default): No padding (i.e., can output a batch with sequences of different
56
+ lengths).
57
+ truncation (`bool`, `str` or [`~tokenization_utils_base.TruncationStrategy`], *optional*, defaults to `False`):
58
+ Activates and controls truncation. Accepts the following values:
59
+
60
+ - `True` or `'longest_first'`: Truncate to a maximum length specified with the argument `max_length` or
61
+ to the maximum acceptable input length for the model if that argument is not provided. This will
62
+ truncate token by token, removing a token from the longest sequence in the pair if a pair of
63
+ sequences (or a batch of pairs) is provided.
64
+ - `'only_first'`: Truncate to a maximum length specified with the argument `max_length` or to the
65
+ maximum acceptable input length for the model if that argument is not provided. This will only
66
+ truncate the first sequence of a pair if a pair of sequences (or a batch of pairs) is provided.
67
+ - `'only_second'`: Truncate to a maximum length specified with the argument `max_length` or to the
68
+ maximum acceptable input length for the model if that argument is not provided. This will only
69
+ truncate the second sequence of a pair if a pair of sequences (or a batch of pairs) is provided.
70
+ - `False` or `'do_not_truncate'` (default): No truncation (i.e., can output batch with sequence lengths
71
+ greater than the model maximum admissible input size).
72
+ max_length (`int`, *optional*):
73
+ Controls the maximum length to use by one of the truncation/padding parameters.
74
+
75
+ If left unset or set to `None`, this will use the predefined model maximum length if a maximum length
76
+ is required by one of the truncation/padding parameters. If the model has no specific maximum input
77
+ length (like XLNet) truncation/padding to a maximum length will be deactivated.
78
+ stride (`int`, *optional*, defaults to 0):
79
+ If set to a number along with `max_length`, the overflowing tokens returned when
80
+ `return_overflowing_tokens=True` will contain some tokens from the end of the truncated sequence
81
+ returned to provide some overlap between truncated and overflowing sequences. The value of this
82
+ argument defines the number of overlapping tokens.
83
+ pad_to_multiple_of (`int`, *optional*):
84
+ If set will pad the sequence to a multiple of the provided value. This is especially useful to enable
85
+ the use of Tensor Cores on NVIDIA hardware with compute capability `>= 7.5` (Volta).
86
+ return_tensors (`str` or [`~file_utils.TensorType`], *optional*):
87
+ If set, will return tensors instead of list of python integers. Acceptable values are:
88
+
89
+ - `'tf'`: Return TensorFlow `tf.constant` objects.
90
+ - `'pt'`: Return PyTorch `torch.Tensor` objects.
91
+ - `'np'`: Return Numpy `np.ndarray` objects.
92
+ return_token_type_ids (`bool`, *optional*):
93
+ Whether to return token type IDs. If left to the default, will return the token type IDs according to
94
+ the specific tokenizer's default, defined by the `return_outputs` attribute.
95
+
96
+ [What are token type IDs?](../glossary#token-type-ids)
97
+ return_attention_mask (`bool`, *optional*):
98
+ Whether to return the attention mask. If left to the default, will return the attention mask according
99
+ to the specific tokenizer's default, defined by the `return_outputs` attribute.
100
+
101
+ [What are attention masks?](../glossary#attention-mask)
102
+ return_overflowing_tokens (`bool`, *optional*, defaults to `False`):
103
+ Whether or not to return overflowing token sequences. If a pair of sequences of input ids (or a batch
104
+ of pairs) is provided with `truncation_strategy = longest_first` or `True`, an error is raised instead
105
+ of returning overflowing tokens.
106
+ return_special_tokens_mask (`bool`, *optional*, defaults to `False`):
107
+ Whether or not to return special tokens mask information.
108
+ return_offsets_mapping (`bool`, *optional*, defaults to `False`):
109
+ Whether or not to return `(char_start, char_end)` for each token.
110
+
111
+ This is only available on fast tokenizers inheriting from [`PreTrainedTokenizerFast`], if using
112
+ Python's tokenizer, this method will raise `NotImplementedError`.
113
+ return_length (`bool`, *optional*, defaults to `False`):
114
+ Whether or not to return the lengths of the encoded inputs.
115
+ verbose (`bool`, *optional*, defaults to `True`):
116
+ Whether or not to print more information and warnings.
117
+ **kwargs: passed to the `self.tokenize()` method
118
+
119
+ Return:
120
+ [`BatchEncoding`]: A [`BatchEncoding`] with the following fields:
121
+
122
+ - **input_ids** -- List of token ids to be fed to a model.
123
+
124
+ [What are input IDs?](../glossary#input-ids)
125
+
126
+ - **bbox** -- List of bounding boxes to be fed to a model.
127
+
128
+ - **token_type_ids** -- List of token type ids to be fed to a model (when `return_token_type_ids=True` or
129
+ if *"token_type_ids"* is in `self.model_input_names`).
130
+
131
+ [What are token type IDs?](../glossary#token-type-ids)
132
+
133
+ - **attention_mask** -- List of indices specifying which tokens should be attended to by the model (when
134
+ `return_attention_mask=True` or if *"attention_mask"* is in `self.model_input_names`).
135
+
136
+ [What are attention masks?](../glossary#attention-mask)
137
+
138
+ - **labels** -- List of labels to be fed to a model. (when `word_labels` is specified).
139
+ - **overflowing_tokens** -- List of overflowing tokens sequences (when a `max_length` is specified and
140
+ `return_overflowing_tokens=True`).
141
+ - **num_truncated_tokens** -- Number of tokens truncated (when a `max_length` is specified and
142
+ `return_overflowing_tokens=True`).
143
+ - **special_tokens_mask** -- List of 0s and 1s, with 1 specifying added special tokens and 0 specifying
144
+ regular sequence tokens (when `add_special_tokens=True` and `return_special_tokens_mask=True`).
145
+ - **length** -- The length of the inputs (when `return_length=True`).
146
+ """
147
+
148
+
149
+ class LayoutXLMTokenizer(PreTrainedTokenizer):
150
+ """
151
+ Adapted from [`RobertaTokenizer`] and [`XLNetTokenizer`]. Based on
152
+ [SentencePiece](https://github.com/google/sentencepiece).
153
+
154
+ This tokenizer inherits from [`PreTrainedTokenizer`] which contains most of the main methods. Users should refer to
155
+ this superclass for more information regarding those methods.
156
+
157
+ Args:
158
+ vocab_file (`str`):
159
+ Path to the vocabulary file.
160
+ bos_token (`str`, *optional*, defaults to `"<s>"`):
161
+ The beginning of sequence token that was used during pretraining. Can be used a sequence classifier token.
162
+
163
+ <Tip>
164
+
165
+ When building a sequence using special tokens, this is not the token that is used for the beginning of
166
+ sequence. The token used is the `cls_token`.
167
+
168
+ </Tip>
169
+
170
+ eos_token (`str`, *optional*, defaults to `"</s>"`):
171
+ The end of sequence token.
172
+
173
+ <Tip>
174
+
175
+ When building a sequence using special tokens, this is not the token that is used for the end of sequence.
176
+ The token used is the `sep_token`.
177
+
178
+ </Tip>
179
+
180
+ sep_token (`str`, *optional*, defaults to `"</s>"`):
181
+ The separator token, which is used when building a sequence from multiple sequences, e.g. two sequences for
182
+ sequence classification or for a text and a question for question answering. It is also used as the last
183
+ token of a sequence built with special tokens.
184
+ cls_token (`str`, *optional*, defaults to `"<s>"`):
185
+ The classifier token which is used when doing sequence classification (classification of the whole sequence
186
+ instead of per-token classification). It is the first token of the sequence when built with special tokens.
187
+ unk_token (`str`, *optional*, defaults to `"<unk>"`):
188
+ The unknown token. A token that is not in the vocabulary cannot be converted to an ID and is set to be this
189
+ token instead.
190
+ pad_token (`str`, *optional*, defaults to `"<pad>"`):
191
+ The token used for padding, for example when batching sequences of different lengths.
192
+ mask_token (`str`, *optional*, defaults to `"<mask>"`):
193
+ The token used for masking values. This is the token used when training this model with masked language
194
+ modeling. This is the token which the model will try to predict.
195
+ cls_token_box (`List[int]`, *optional*, defaults to `[0, 0, 0, 0]`):
196
+ The bounding box to use for the special [CLS] token.
197
+ sep_token_box (`List[int]`, *optional*, defaults to `[1000, 1000, 1000, 1000]`):
198
+ The bounding box to use for the special [SEP] token.
199
+ pad_token_box (`List[int]`, *optional*, defaults to `[0, 0, 0, 0]`):
200
+ The bounding box to use for the special [PAD] token.
201
+ pad_token_label (`int`, *optional*, defaults to -100):
202
+ The label to use for padding tokens. Defaults to -100, which is the `ignore_index` of PyTorch's
203
+ CrossEntropyLoss.
204
+ only_label_first_subword (`bool`, *optional*, defaults to `True`):
205
+ Whether or not to only label the first subword, in case word labels are provided.
206
+ additional_special_tokens (`List[str]`, *optional*, defaults to `["<s>NOTUSED", "</s>NOTUSED"]`):
207
+ Additional special tokens used by the tokenizer.
208
+ sp_model_kwargs (`dict`, *optional*):
209
+ Will be passed to the `SentencePieceProcessor.__init__()` method. The [Python wrapper for
210
+ SentencePiece](https://github.com/google/sentencepiece/tree/master/python) can be used, among other things,
211
+ to set:
212
+
213
+ - `enable_sampling`: Enable subword regularization.
214
+ - `nbest_size`: Sampling parameters for unigram. Invalid for BPE-Dropout.
215
+
216
+ - `nbest_size = {0,1}`: No sampling is performed.
217
+ - `nbest_size > 1`: samples from the nbest_size results.
218
+ - `nbest_size < 0`: assuming that nbest_size is infinite and samples from the all hypothesis (lattice)
219
+ using forward-filtering-and-backward-sampling algorithm.
220
+
221
+ - `alpha`: Smoothing parameter for unigram sampling, and dropout probability of merge operations for
222
+ BPE-dropout.
223
+
224
+ Attributes:
225
+ sp_model (`SentencePieceProcessor`):
226
+ The *SentencePiece* processor that is used for every conversion (string, tokens and IDs).
227
+ """
228
+
229
+ vocab_files_names = VOCAB_FILES_NAMES
230
+ pretrained_vocab_files_map = PRETRAINED_VOCAB_FILES_MAP
231
+ max_model_input_sizes = PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES
232
+ model_input_names = ["input_ids", "attention_mask"]
233
+
234
+ def __init__(
235
+ self,
236
+ vocab_file,
237
+ bos_token="<s>",
238
+ eos_token="</s>",
239
+ sep_token="</s>",
240
+ cls_token="<s>",
241
+ unk_token="<unk>",
242
+ pad_token="<pad>",
243
+ mask_token="<mask>",
244
+ cls_token_box=[0, 0, 0, 0],
245
+ sep_token_box=[1000, 1000, 1000, 1000],
246
+ pad_token_box=[0, 0, 0, 0],
247
+ pad_token_label=-100,
248
+ only_label_first_subword=True,
249
+ sp_model_kwargs: Optional[Dict[str, Any]] = None,
250
+ **kwargs,
251
+ ) -> None:
252
+ # Mask token behave like a normal word, i.e. include the space before it
253
+ mask_token = AddedToken(mask_token, lstrip=True, rstrip=False) if isinstance(mask_token, str) else mask_token
254
+
255
+ self.sp_model_kwargs = {} if sp_model_kwargs is None else sp_model_kwargs
256
+
257
+ super().__init__(
258
+ bos_token=bos_token,
259
+ eos_token=eos_token,
260
+ unk_token=unk_token,
261
+ sep_token=sep_token,
262
+ cls_token=cls_token,
263
+ pad_token=pad_token,
264
+ mask_token=mask_token,
265
+ cls_token_box=cls_token_box,
266
+ sep_token_box=sep_token_box,
267
+ pad_token_box=pad_token_box,
268
+ pad_token_label=pad_token_label,
269
+ only_label_first_subword=only_label_first_subword,
270
+ sp_model_kwargs=self.sp_model_kwargs,
271
+ **kwargs,
272
+ )
273
+
274
+ self.sp_model = spm.SentencePieceProcessor(**self.sp_model_kwargs)
275
+ self.sp_model.Load(str(vocab_file))
276
+ self.vocab_file = vocab_file
277
+
278
+ # Original fairseq vocab and spm vocab must be "aligned":
279
+ # Vocab | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
280
+ # -------- | ------- | ------- | ------ | ------- | --- | --- | --- | ----- | ----- | ----
281
+ # fairseq | '<s>' | '<pad>' | '</s>' | '<unk>' | ',' | '.' | '▁' | 's' | '▁de' | '-'
282
+ # spm | '<unk>' | '<s>' | '</s>' | ',' | '.' | '▁' | 's' | '▁de' | '-' | '▁a'
283
+
284
+ # Mimic fairseq token-to-id alignment for the first 4 token
285
+ self.fairseq_tokens_to_ids = {"<s>": 0, "<pad>": 1, "</s>": 2, "<unk>": 3}
286
+
287
+ # The first "real" token "," has position 4 in the original fairseq vocab and position 3 in the spm vocab
288
+ self.fairseq_offset = 1
289
+
290
+ self.fairseq_tokens_to_ids["<mask>"] = len(self.sp_model) + self.fairseq_offset
291
+ self.fairseq_ids_to_tokens = {v: k for k, v in self.fairseq_tokens_to_ids.items()}
292
+
293
+ # additional properties
294
+ self.cls_token_box = cls_token_box
295
+ self.sep_token_box = sep_token_box
296
+ self.pad_token_box = pad_token_box
297
+ self.pad_token_label = pad_token_label
298
+ self.only_label_first_subword = only_label_first_subword
299
+
300
+ def __getstate__(self):
301
+ state = self.__dict__.copy()
302
+ state["sp_model"] = None
303
+ state["sp_model_proto"] = self.sp_model.serialized_model_proto()
304
+ return state
305
+
306
+ def __setstate__(self, d):
307
+ self.__dict__ = d
308
+
309
+ # for backward compatibility
310
+ if not hasattr(self, "sp_model_kwargs"):
311
+ self.sp_model_kwargs = {}
312
+
313
+ self.sp_model = spm.SentencePieceProcessor(**self.sp_model_kwargs)
314
+ self.sp_model.LoadFromSerializedProto(self.sp_model_proto)
315
+
316
+ def build_inputs_with_special_tokens(
317
+ self, token_ids_0: List[int], token_ids_1: Optional[List[int]] = None
318
+ ) -> List[int]:
319
+ """
320
+ Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and
321
+ adding special tokens. An XLM-RoBERTa sequence has the following format:
322
+
323
+ - single sequence: `<s> X </s>`
324
+ - pair of sequences: `<s> A </s></s> B </s>`
325
+
326
+ Args:
327
+ token_ids_0 (`List[int]`):
328
+ List of IDs to which the special tokens will be added.
329
+ token_ids_1 (`List[int]`, *optional*):
330
+ Optional second list of IDs for sequence pairs.
331
+
332
+ Returns:
333
+ `List[int]`: List of [input IDs](../glossary#input-ids) with the appropriate special tokens.
334
+ """
335
+
336
+ if token_ids_1 is None:
337
+ return [self.cls_token_id] + token_ids_0 + [self.sep_token_id]
338
+ cls = [self.cls_token_id]
339
+ sep = [self.sep_token_id]
340
+ return cls + token_ids_0 + sep + sep + token_ids_1 + sep
341
+
342
+ def get_special_tokens_mask(
343
+ self, token_ids_0: List[int], token_ids_1: Optional[List[int]] = None, already_has_special_tokens: bool = False
344
+ ) -> List[int]:
345
+ """
346
+ Retrieve sequence ids from a token list that has no special tokens added. This method is called when adding
347
+ special tokens using the tokenizer `prepare_for_model` method.
348
+
349
+ Args:
350
+ token_ids_0 (`List[int]`):
351
+ List of IDs.
352
+ token_ids_1 (`List[int]`, *optional*):
353
+ Optional second list of IDs for sequence pairs.
354
+ already_has_special_tokens (`bool`, *optional*, defaults to `False`):
355
+ Whether or not the token list is already formatted with special tokens for the model.
356
+
357
+ Returns:
358
+ `List[int]`: A list of integers in the range [0, 1]: 1 for a special token, 0 for a sequence token.
359
+ """
360
+
361
+ if already_has_special_tokens:
362
+ return super().get_special_tokens_mask(
363
+ token_ids_0=token_ids_0, token_ids_1=token_ids_1, already_has_special_tokens=True
364
+ )
365
+
366
+ if token_ids_1 is None:
367
+ return [1] + ([0] * len(token_ids_0)) + [1]
368
+ return [1] + ([0] * len(token_ids_0)) + [1, 1] + ([0] * len(token_ids_1)) + [1]
369
+
370
+ def create_token_type_ids_from_sequences(
371
+ self, token_ids_0: List[int], token_ids_1: Optional[List[int]] = None
372
+ ) -> List[int]:
373
+ """
374
+ Create a mask from the two sequences passed to be used in a sequence-pair classification task. XLM-RoBERTa does
375
+ not make use of token type ids, therefore a list of zeros is returned.
376
+
377
+ Args:
378
+ token_ids_0 (`List[int]`):
379
+ List of IDs.
380
+ token_ids_1 (`List[int]`, *optional*):
381
+ Optional second list of IDs for sequence pairs.
382
+
383
+ Returns:
384
+ `List[int]`: List of zeros.
385
+
386
+ """
387
+
388
+ sep = [self.sep_token_id]
389
+ cls = [self.cls_token_id]
390
+
391
+ if token_ids_1 is None:
392
+ return len(cls + token_ids_0 + sep) * [0]
393
+ return len(cls + token_ids_0 + sep + sep + token_ids_1 + sep) * [0]
394
+
395
+ @property
396
+ def vocab_size(self):
397
+ return len(self.sp_model) + self.fairseq_offset + 1 # Add the <mask> token
398
+
399
+ def get_vocab(self):
400
+ vocab = {self.convert_ids_to_tokens(i): i for i in range(self.vocab_size)}
401
+ vocab.update(self.added_tokens_encoder)
402
+ return vocab
403
+
404
+ def _tokenize(self, text: str) -> List[str]:
405
+ return self.sp_model.encode(text, out_type=str)
406
+
407
+ def _convert_token_to_id(self, token):
408
+ """Converts a token (str) in an id using the vocab."""
409
+ if token in self.fairseq_tokens_to_ids:
410
+ return self.fairseq_tokens_to_ids[token]
411
+ spm_id = self.sp_model.PieceToId(token)
412
+
413
+ # Need to return unknown token if the SP model returned 0
414
+ return spm_id + self.fairseq_offset if spm_id else self.unk_token_id
415
+
416
+ def _convert_id_to_token(self, index):
417
+ """Converts an index (integer) in a token (str) using the vocab."""
418
+ if index in self.fairseq_ids_to_tokens:
419
+ return self.fairseq_ids_to_tokens[index]
420
+ return self.sp_model.IdToPiece(index - self.fairseq_offset)
421
+
422
+ def convert_tokens_to_string(self, tokens):
423
+ """Converts a sequence of tokens (strings for sub-words) in a single string."""
424
+ out_string = "".join(tokens).replace(SPIECE_UNDERLINE, " ").strip()
425
+ return out_string
426
+
427
+ def save_vocabulary(self, save_directory: str, filename_prefix: Optional[str] = None) -> Tuple[str]:
428
+ if not os.path.isdir(save_directory):
429
+ logger.error(f"Vocabulary path ({save_directory}) should be a directory")
430
+ return
431
+ out_vocab_file = os.path.join(
432
+ save_directory, (filename_prefix + "-" if filename_prefix else "") + VOCAB_FILES_NAMES["vocab_file"]
433
+ )
434
+
435
+ if os.path.abspath(self.vocab_file) != os.path.abspath(out_vocab_file) and os.path.isfile(self.vocab_file):
436
+ copyfile(self.vocab_file, out_vocab_file)
437
+ elif not os.path.isfile(self.vocab_file):
438
+ with open(out_vocab_file, "wb") as fi:
439
+ content_spiece_model = self.sp_model.serialized_model_proto()
440
+ fi.write(content_spiece_model)
441
+
442
+ return (out_vocab_file,)
443
+
444
+ @add_end_docstrings(LAYOUTXLM_ENCODE_KWARGS_DOCSTRING)
445
+ def __call__(
446
+ self,
447
+ text: Union[TextInput, PreTokenizedInput, List[TextInput], List[PreTokenizedInput]],
448
+ text_pair: Optional[Union[PreTokenizedInput, List[PreTokenizedInput]]] = None,
449
+ boxes: Union[List[List[int]], List[List[List[int]]]] = None,
450
+ word_labels: Optional[Union[List[int], List[List[int]]]] = None,
451
+ add_special_tokens: bool = True,
452
+ padding: Union[bool, str, PaddingStrategy] = False,
453
+ truncation: Union[bool, str, TruncationStrategy] = None,
454
+ max_length: Optional[int] = None,
455
+ stride: int = 0,
456
+ pad_to_multiple_of: Optional[int] = None,
457
+ return_tensors: Optional[Union[str, TensorType]] = None,
458
+ return_token_type_ids: Optional[bool] = None,
459
+ return_attention_mask: Optional[bool] = None,
460
+ return_overflowing_tokens: bool = False,
461
+ return_special_tokens_mask: bool = False,
462
+ return_offsets_mapping: bool = False,
463
+ return_length: bool = False,
464
+ verbose: bool = True,
465
+ **kwargs,
466
+ ) -> BatchEncoding:
467
+ """
468
+ Main method to tokenize and prepare for the model one or several sequence(s) or one or several pair(s) of
469
+ sequences with word-level normalized bounding boxes and optional labels.
470
+
471
+ Args:
472
+ text (`str`, `List[str]`, `List[List[str]]`):
473
+ The sequence or batch of sequences to be encoded. Each sequence can be a string, a list of strings
474
+ (words of a single example or questions of a batch of examples) or a list of list of strings (batch of
475
+ words).
476
+ text_pair (`List[str]`, `List[List[str]]`):
477
+ The sequence or batch of sequences to be encoded. Each sequence should be a list of strings
478
+ (pretokenized string).
479
+ boxes (`List[List[int]]`, `List[List[List[int]]]`):
480
+ Word-level bounding boxes. Each bounding box should be normalized to be on a 0-1000 scale.
481
+ word_labels (`List[int]`, `List[List[int]]`, *optional*):
482
+ Word-level integer labels (for token classification tasks such as FUNSD, CORD).
483
+ """
484
+
485
+ # Input type checking for clearer error
486
+ def _is_valid_text_input(t):
487
+ if isinstance(t, str):
488
+ # Strings are fine
489
+ return True
490
+ elif isinstance(t, (list, tuple)):
491
+ # List are fine as long as they are...
492
+ if len(t) == 0:
493
+ # ... empty
494
+ return True
495
+ elif isinstance(t[0], str):
496
+ # ... list of strings
497
+ return True
498
+ elif isinstance(t[0], (list, tuple)):
499
+ # ... list with an empty list or with a list of strings
500
+ return len(t[0]) == 0 or isinstance(t[0][0], str)
501
+ else:
502
+ return False
503
+ else:
504
+ return False
505
+
506
+ if text_pair is not None:
507
+ # in case text + text_pair are provided, text = questions, text_pair = words
508
+ if not _is_valid_text_input(text):
509
+ raise ValueError("text input must of type `str` (single example) or `List[str]` (batch of examples). ")
510
+ if not isinstance(text_pair, (list, tuple)):
511
+ raise ValueError(
512
+ "words must of type `List[str]` (single pretokenized example), "
513
+ "or `List[List[str]]` (batch of pretokenized examples)."
514
+ )
515
+ else:
516
+ # in case only text is provided => must be words
517
+ if not isinstance(text, (list, tuple)):
518
+ raise ValueError(
519
+ "Words must of type `List[str]` (single pretokenized example), "
520
+ "or `List[List[str]]` (batch of pretokenized examples)."
521
+ )
522
+
523
+ if text_pair is not None:
524
+ is_batched = isinstance(text, (list, tuple))
525
+ else:
526
+ is_batched = isinstance(text, (list, tuple)) and text and isinstance(text[0], (list, tuple))
527
+
528
+ words = text if text_pair is None else text_pair
529
+ if boxes is None:
530
+ raise ValueError("You must provide corresponding bounding boxes")
531
+ if is_batched:
532
+ if len(words) != len(boxes):
533
+ raise ValueError("You must provide words and boxes for an equal amount of examples")
534
+ for words_example, boxes_example in zip(words, boxes):
535
+ if len(words_example) != len(boxes_example):
536
+ raise ValueError("You must provide as many words as there are bounding boxes")
537
+ else:
538
+ if len(words) != len(boxes):
539
+ raise ValueError("You must provide as many words as there are bounding boxes")
540
+
541
+ if is_batched:
542
+ if text_pair is not None and len(text) != len(text_pair):
543
+ raise ValueError(
544
+ f"batch length of `text`: {len(text)} does not match batch length of `text_pair`:"
545
+ f" {len(text_pair)}."
546
+ )
547
+ batch_text_or_text_pairs = list(zip(text, text_pair)) if text_pair is not None else text
548
+ is_pair = bool(text_pair is not None)
549
+ return self.batch_encode_plus(
550
+ batch_text_or_text_pairs=batch_text_or_text_pairs,
551
+ is_pair=is_pair,
552
+ boxes=boxes,
553
+ word_labels=word_labels,
554
+ add_special_tokens=add_special_tokens,
555
+ padding=padding,
556
+ truncation=truncation,
557
+ max_length=max_length,
558
+ stride=stride,
559
+ pad_to_multiple_of=pad_to_multiple_of,
560
+ return_tensors=return_tensors,
561
+ return_token_type_ids=return_token_type_ids,
562
+ return_attention_mask=return_attention_mask,
563
+ return_overflowing_tokens=return_overflowing_tokens,
564
+ return_special_tokens_mask=return_special_tokens_mask,
565
+ return_offsets_mapping=return_offsets_mapping,
566
+ return_length=return_length,
567
+ verbose=verbose,
568
+ **kwargs,
569
+ )
570
+ else:
571
+ return self.encode_plus(
572
+ text=text,
573
+ text_pair=text_pair,
574
+ boxes=boxes,
575
+ word_labels=word_labels,
576
+ add_special_tokens=add_special_tokens,
577
+ padding=padding,
578
+ truncation=truncation,
579
+ max_length=max_length,
580
+ stride=stride,
581
+ pad_to_multiple_of=pad_to_multiple_of,
582
+ return_tensors=return_tensors,
583
+ return_token_type_ids=return_token_type_ids,
584
+ return_attention_mask=return_attention_mask,
585
+ return_overflowing_tokens=return_overflowing_tokens,
586
+ return_special_tokens_mask=return_special_tokens_mask,
587
+ return_offsets_mapping=return_offsets_mapping,
588
+ return_length=return_length,
589
+ verbose=verbose,
590
+ **kwargs,
591
+ )
592
+
593
+ def _batch_encode_plus(
594
+ self,
595
+ batch_text_or_text_pairs: Union[
596
+ List[TextInput],
597
+ List[TextInputPair],
598
+ List[PreTokenizedInput],
599
+ ],
600
+ is_pair: bool = None,
601
+ boxes: Optional[List[List[List[int]]]] = None,
602
+ word_labels: Optional[List[List[int]]] = None,
603
+ add_special_tokens: bool = True,
604
+ padding_strategy: PaddingStrategy = PaddingStrategy.DO_NOT_PAD,
605
+ truncation_strategy: TruncationStrategy = TruncationStrategy.DO_NOT_TRUNCATE,
606
+ max_length: Optional[int] = None,
607
+ stride: int = 0,
608
+ pad_to_multiple_of: Optional[int] = None,
609
+ return_tensors: Optional[Union[str, TensorType]] = None,
610
+ return_token_type_ids: Optional[bool] = None,
611
+ return_attention_mask: Optional[bool] = None,
612
+ return_overflowing_tokens: bool = False,
613
+ return_special_tokens_mask: bool = False,
614
+ return_offsets_mapping: bool = False,
615
+ return_length: bool = False,
616
+ verbose: bool = True,
617
+ **kwargs,
618
+ ) -> BatchEncoding:
619
+ if return_offsets_mapping:
620
+ raise NotImplementedError(
621
+ "return_offset_mapping is not available when using Python tokenizers. "
622
+ "To use this feature, change your tokenizer to one deriving from "
623
+ "transformers.PreTrainedTokenizerFast."
624
+ )
625
+
626
+ batch_outputs = self._batch_prepare_for_model(
627
+ batch_text_or_text_pairs=batch_text_or_text_pairs,
628
+ is_pair=is_pair,
629
+ boxes=boxes,
630
+ word_labels=word_labels,
631
+ add_special_tokens=add_special_tokens,
632
+ padding_strategy=padding_strategy,
633
+ truncation_strategy=truncation_strategy,
634
+ max_length=max_length,
635
+ stride=stride,
636
+ pad_to_multiple_of=pad_to_multiple_of,
637
+ return_attention_mask=return_attention_mask,
638
+ return_token_type_ids=return_token_type_ids,
639
+ return_overflowing_tokens=return_overflowing_tokens,
640
+ return_special_tokens_mask=return_special_tokens_mask,
641
+ return_length=return_length,
642
+ return_tensors=return_tensors,
643
+ verbose=verbose,
644
+ )
645
+
646
+ return BatchEncoding(batch_outputs)
647
+
648
+ @add_end_docstrings(LAYOUTXLM_ENCODE_KWARGS_DOCSTRING)
649
+ def _batch_prepare_for_model(
650
+ self,
651
+ batch_text_or_text_pairs,
652
+ is_pair: bool = None,
653
+ boxes: Optional[List[List[int]]] = None,
654
+ word_labels: Optional[List[List[int]]] = None,
655
+ add_special_tokens: bool = True,
656
+ padding_strategy: PaddingStrategy = PaddingStrategy.DO_NOT_PAD,
657
+ truncation_strategy: TruncationStrategy = TruncationStrategy.DO_NOT_TRUNCATE,
658
+ max_length: Optional[int] = None,
659
+ stride: int = 0,
660
+ pad_to_multiple_of: Optional[int] = None,
661
+ return_tensors: Optional[str] = None,
662
+ return_token_type_ids: Optional[bool] = None,
663
+ return_attention_mask: Optional[bool] = None,
664
+ return_overflowing_tokens: bool = False,
665
+ return_special_tokens_mask: bool = False,
666
+ return_length: bool = False,
667
+ verbose: bool = True,
668
+ ) -> BatchEncoding:
669
+ """
670
+ Prepares a sequence of input id, or a pair of sequences of inputs ids so that it can be used by the model. It
671
+ adds special tokens, truncates sequences if overflowing while taking into account the special tokens and
672
+ manages a moving window (with user defined stride) for overflowing tokens
673
+
674
+ Args:
675
+ batch_ids_pairs: list of tokenized input ids or input ids pairs
676
+ """
677
+
678
+ batch_outputs = {}
679
+ for idx, example in enumerate(zip(batch_text_or_text_pairs, boxes)):
680
+ batch_text_or_text_pair, boxes_example = example
681
+ outputs = self.prepare_for_model(
682
+ batch_text_or_text_pair[0] if is_pair else batch_text_or_text_pair,
683
+ batch_text_or_text_pair[1] if is_pair else None,
684
+ boxes_example,
685
+ word_labels=word_labels[idx] if word_labels is not None else None,
686
+ add_special_tokens=add_special_tokens,
687
+ padding=PaddingStrategy.DO_NOT_PAD.value, # we pad in batch afterward
688
+ truncation=truncation_strategy.value,
689
+ max_length=max_length,
690
+ stride=stride,
691
+ pad_to_multiple_of=None, # we pad in batch afterward
692
+ return_attention_mask=False, # we pad in batch afterward
693
+ return_token_type_ids=return_token_type_ids,
694
+ return_overflowing_tokens=return_overflowing_tokens,
695
+ return_special_tokens_mask=return_special_tokens_mask,
696
+ return_length=return_length,
697
+ return_tensors=None, # We convert the whole batch to tensors at the end
698
+ prepend_batch_axis=False,
699
+ verbose=verbose,
700
+ )
701
+
702
+ for key, value in outputs.items():
703
+ if key not in batch_outputs:
704
+ batch_outputs[key] = []
705
+ batch_outputs[key].append(value)
706
+
707
+ batch_outputs = self.pad(
708
+ batch_outputs,
709
+ padding=padding_strategy.value,
710
+ max_length=max_length,
711
+ pad_to_multiple_of=pad_to_multiple_of,
712
+ return_attention_mask=return_attention_mask,
713
+ )
714
+
715
+ batch_outputs = BatchEncoding(batch_outputs, tensor_type=return_tensors)
716
+
717
+ return batch_outputs
718
+
719
+ def _encode_plus(
720
+ self,
721
+ text: Union[TextInput, PreTokenizedInput],
722
+ text_pair: Optional[PreTokenizedInput] = None,
723
+ boxes: Optional[List[List[int]]] = None,
724
+ word_labels: Optional[List[int]] = None,
725
+ add_special_tokens: bool = True,
726
+ padding_strategy: PaddingStrategy = PaddingStrategy.DO_NOT_PAD,
727
+ truncation_strategy: TruncationStrategy = TruncationStrategy.DO_NOT_TRUNCATE,
728
+ max_length: Optional[int] = None,
729
+ stride: int = 0,
730
+ pad_to_multiple_of: Optional[int] = None,
731
+ return_tensors: Optional[Union[str, TensorType]] = None,
732
+ return_token_type_ids: Optional[bool] = None,
733
+ return_attention_mask: Optional[bool] = None,
734
+ return_overflowing_tokens: bool = False,
735
+ return_special_tokens_mask: bool = False,
736
+ return_offsets_mapping: bool = False,
737
+ return_length: bool = False,
738
+ verbose: bool = True,
739
+ **kwargs,
740
+ ) -> BatchEncoding:
741
+ if return_offsets_mapping:
742
+ raise NotImplementedError(
743
+ "return_offset_mapping is not available when using Python tokenizers. "
744
+ "To use this feature, change your tokenizer to one deriving from "
745
+ "transformers.PreTrainedTokenizerFast. "
746
+ "More information on available tokenizers at "
747
+ "https://github.com/huggingface/transformers/pull/2674"
748
+ )
749
+
750
+ return self.prepare_for_model(
751
+ text=text,
752
+ text_pair=text_pair,
753
+ boxes=boxes,
754
+ word_labels=word_labels,
755
+ add_special_tokens=add_special_tokens,
756
+ padding=padding_strategy.value,
757
+ truncation=truncation_strategy.value,
758
+ max_length=max_length,
759
+ stride=stride,
760
+ pad_to_multiple_of=pad_to_multiple_of,
761
+ return_tensors=return_tensors,
762
+ prepend_batch_axis=True,
763
+ return_attention_mask=return_attention_mask,
764
+ return_token_type_ids=return_token_type_ids,
765
+ return_overflowing_tokens=return_overflowing_tokens,
766
+ return_special_tokens_mask=return_special_tokens_mask,
767
+ return_length=return_length,
768
+ verbose=verbose,
769
+ )
770
+
771
+ @add_end_docstrings(LAYOUTXLM_ENCODE_KWARGS_DOCSTRING)
772
+ def prepare_for_model(
773
+ self,
774
+ text: Union[TextInput, PreTokenizedInput],
775
+ text_pair: Optional[PreTokenizedInput] = None,
776
+ boxes: Optional[List[List[int]]] = None,
777
+ word_labels: Optional[List[int]] = None,
778
+ add_special_tokens: bool = True,
779
+ padding: Union[bool, str, PaddingStrategy] = False,
780
+ truncation: Union[bool, str, TruncationStrategy] = None,
781
+ max_length: Optional[int] = None,
782
+ stride: int = 0,
783
+ pad_to_multiple_of: Optional[int] = None,
784
+ return_tensors: Optional[Union[str, TensorType]] = None,
785
+ return_token_type_ids: Optional[bool] = None,
786
+ return_attention_mask: Optional[bool] = None,
787
+ return_overflowing_tokens: bool = False,
788
+ return_special_tokens_mask: bool = False,
789
+ return_offsets_mapping: bool = False,
790
+ return_length: bool = False,
791
+ verbose: bool = True,
792
+ prepend_batch_axis: bool = False,
793
+ **kwargs,
794
+ ) -> BatchEncoding:
795
+ """
796
+ Prepares a sequence or a pair of sequences so that it can be used by the model. It adds special tokens,
797
+ truncates sequences if overflowing while taking into account the special tokens and manages a moving window
798
+ (with user defined stride) for overflowing tokens.
799
+
800
+ Word-level `boxes` are turned into token-level `bbox`. If provided, word-level `word_labels` are turned into
801
+ token-level `labels`. The word label is used for the first token of the word, while remaining tokens are
802
+ labeled with -100, such that they will be ignored by the loss function.
803
+
804
+ Args:
805
+ text (`str`, `List[str]`, `List[List[str]]`):
806
+ The first sequence to be encoded. This can be a string, a list of strings or a list of list of strings.
807
+ text_pair (`List[str]` or `List[int]`, *optional*):
808
+ Optional second sequence to be encoded. This can be a list of strings (words of a single example) or a
809
+ list of list of strings (words of a batch of examples).
810
+ """
811
+
812
+ # Backward compatibility for 'truncation_strategy', 'pad_to_max_length'
813
+ padding_strategy, truncation_strategy, max_length, kwargs = self._get_padding_truncation_strategies(
814
+ padding=padding,
815
+ truncation=truncation,
816
+ max_length=max_length,
817
+ pad_to_multiple_of=pad_to_multiple_of,
818
+ verbose=verbose,
819
+ **kwargs,
820
+ )
821
+
822
+ tokens = []
823
+ pair_tokens = []
824
+ token_boxes = []
825
+ pair_token_boxes = []
826
+ labels = []
827
+
828
+ if text_pair is None:
829
+ if word_labels is None:
830
+ # CASE 1: document image classification (training + inference) + CASE 2: token classification (inference)
831
+ for word, box in zip(text, boxes):
832
+ if len(word) < 1: # skip empty words
833
+ continue
834
+ word_tokens = self.tokenize(word)
835
+ tokens.extend(word_tokens)
836
+ token_boxes.extend([box] * len(word_tokens))
837
+ else:
838
+ # CASE 2: token classification (training)
839
+ for word, box, label in zip(text, boxes, word_labels):
840
+ if len(word) < 1: # skip empty words
841
+ continue
842
+ word_tokens = self.tokenize(word)
843
+ tokens.extend(word_tokens)
844
+ token_boxes.extend([box] * len(word_tokens))
845
+ if self.only_label_first_subword:
846
+ # Use the real label id for the first token of the word, and padding ids for the remaining tokens
847
+ labels.extend([label] + [self.pad_token_label] * (len(word_tokens) - 1))
848
+ else:
849
+ labels.extend([label] * len(word_tokens))
850
+ else:
851
+ # CASE 3: document visual question answering (inference)
852
+ # text = question
853
+ # text_pair = words
854
+ tokens = self.tokenize(text)
855
+ token_boxes = [self.pad_token_box for _ in range(len(tokens))] + [self.sep_token_box]
856
+
857
+ for word, box in zip(text_pair, boxes):
858
+ if len(word) < 1: # skip empty words
859
+ continue
860
+ word_tokens = self.tokenize(word)
861
+ pair_tokens.extend(word_tokens)
862
+ pair_token_boxes.extend([box] * len(word_tokens))
863
+
864
+ # Create ids + pair_ids
865
+ ids = self.convert_tokens_to_ids(tokens)
866
+ pair_ids = self.convert_tokens_to_ids(pair_tokens) if pair_tokens else None
867
+
868
+ # Compute the total size of the returned encodings
869
+ pair = bool(pair_ids is not None)
870
+ len_ids = len(ids)
871
+ len_pair_ids = len(pair_ids) if pair else 0
872
+ total_len = len_ids + len_pair_ids + (self.num_special_tokens_to_add(pair=pair) if add_special_tokens else 0)
873
+
874
+ # Truncation: Handle max sequence length
875
+ overflowing_tokens = []
876
+ overflowing_token_boxes = []
877
+ overflowing_labels = []
878
+ if truncation_strategy != TruncationStrategy.DO_NOT_TRUNCATE and max_length and total_len > max_length:
879
+ (
880
+ ids,
881
+ token_boxes,
882
+ pair_ids,
883
+ pair_token_boxes,
884
+ labels,
885
+ overflowing_tokens,
886
+ overflowing_token_boxes,
887
+ overflowing_labels,
888
+ ) = self.truncate_sequences(
889
+ ids,
890
+ token_boxes,
891
+ pair_ids=pair_ids,
892
+ pair_token_boxes=pair_token_boxes,
893
+ labels=labels,
894
+ num_tokens_to_remove=total_len - max_length,
895
+ truncation_strategy=truncation_strategy,
896
+ stride=stride,
897
+ )
898
+
899
+ if return_token_type_ids and not add_special_tokens:
900
+ raise ValueError(
901
+ "Asking to return token_type_ids while setting add_special_tokens to False "
902
+ "results in an undefined behavior. Please set add_special_tokens to True or "
903
+ "set return_token_type_ids to None."
904
+ )
905
+
906
+ # Load from model defaults
907
+ if return_token_type_ids is None:
908
+ return_token_type_ids = "token_type_ids" in self.model_input_names
909
+ if return_attention_mask is None:
910
+ return_attention_mask = "attention_mask" in self.model_input_names
911
+
912
+ encoded_inputs = {}
913
+
914
+ if return_overflowing_tokens:
915
+ encoded_inputs["overflowing_tokens"] = overflowing_tokens
916
+ encoded_inputs["overflowing_token_boxes"] = overflowing_token_boxes
917
+ encoded_inputs["overflowing_labels"] = overflowing_labels
918
+ encoded_inputs["num_truncated_tokens"] = total_len - max_length
919
+
920
+ # Add special tokens
921
+ if add_special_tokens:
922
+ sequence = self.build_inputs_with_special_tokens(ids, pair_ids)
923
+ token_type_ids = self.create_token_type_ids_from_sequences(ids, pair_ids)
924
+ token_boxes = [self.cls_token_box] + token_boxes + [self.sep_token_box]
925
+ if pair_token_boxes:
926
+ pair_token_boxes = pair_token_boxes + [self.sep_token_box]
927
+ if labels:
928
+ labels = [self.pad_token_label] + labels + [self.pad_token_label]
929
+ else:
930
+ sequence = ids + pair_ids if pair else ids
931
+ token_type_ids = [0] * len(ids) + ([0] * len(pair_ids) if pair else [])
932
+
933
+ # Build output dictionary
934
+ encoded_inputs["input_ids"] = sequence
935
+ encoded_inputs["bbox"] = token_boxes + pair_token_boxes
936
+ if return_token_type_ids:
937
+ encoded_inputs["token_type_ids"] = token_type_ids
938
+ if return_special_tokens_mask:
939
+ if add_special_tokens:
940
+ encoded_inputs["special_tokens_mask"] = self.get_special_tokens_mask(ids, pair_ids)
941
+ else:
942
+ encoded_inputs["special_tokens_mask"] = [0] * len(sequence)
943
+
944
+ if labels:
945
+ encoded_inputs["labels"] = labels
946
+
947
+ # Check lengths
948
+ self._eventual_warn_about_too_long_sequence(encoded_inputs["input_ids"], max_length, verbose)
949
+
950
+ # Padding
951
+ if padding_strategy != PaddingStrategy.DO_NOT_PAD or return_attention_mask:
952
+ encoded_inputs = self.pad(
953
+ encoded_inputs,
954
+ max_length=max_length,
955
+ padding=padding_strategy.value,
956
+ pad_to_multiple_of=pad_to_multiple_of,
957
+ return_attention_mask=return_attention_mask,
958
+ )
959
+
960
+ if return_length:
961
+ encoded_inputs["length"] = len(encoded_inputs["input_ids"])
962
+
963
+ batch_outputs = BatchEncoding(
964
+ encoded_inputs, tensor_type=return_tensors, prepend_batch_axis=prepend_batch_axis
965
+ )
966
+
967
+ return batch_outputs
968
+
969
+ def truncate_sequences(
970
+ self,
971
+ ids: List[int],
972
+ token_boxes: List[List[int]],
973
+ pair_ids: Optional[List[int]] = None,
974
+ pair_token_boxes: Optional[List[List[int]]] = None,
975
+ labels: Optional[List[int]] = None,
976
+ num_tokens_to_remove: int = 0,
977
+ truncation_strategy: Union[str, TruncationStrategy] = "longest_first",
978
+ stride: int = 0,
979
+ ) -> Tuple[List[int], List[int], List[int]]:
980
+ """
981
+ Truncates a sequence pair in-place following the strategy.
982
+
983
+ Args:
984
+ ids (`List[int]`):
985
+ Tokenized input ids of the first sequence. Can be obtained from a string by chaining the `tokenize` and
986
+ `convert_tokens_to_ids` methods.
987
+ token_boxes (`List[List[int]]`):
988
+ Bounding boxes of the first sequence.
989
+ pair_ids (`List[int]`, *optional*):
990
+ Tokenized input ids of the second sequence. Can be obtained from a string by chaining the `tokenize`
991
+ and `convert_tokens_to_ids` methods.
992
+ pair_token_boxes (`List[List[int]]`, *optional*):
993
+ Bounding boxes of the second sequence.
994
+ labels (`List[int]`, *optional*):
995
+ Labels of the first sequence (for token classification tasks).
996
+ num_tokens_to_remove (`int`, *optional*, defaults to 0):
997
+ Number of tokens to remove using the truncation strategy.
998
+ truncation_strategy (`str` or [`~tokenization_utils_base.TruncationStrategy`], *optional*, defaults to `False`):
999
+ The strategy to follow for truncation. Can be:
1000
+
1001
+ - `'longest_first'`: Truncate to a maximum length specified with the argument `max_length` or to the
1002
+ maximum acceptable input length for the model if that argument is not provided. This will truncate
1003
+ token by token, removing a token from the longest sequence in the pair if a pair of sequences (or a
1004
+ batch of pairs) is provided.
1005
+ - `'only_first'`: Truncate to a maximum length specified with the argument `max_length` or to the
1006
+ maximum acceptable input length for the model if that argument is not provided. This will only
1007
+ truncate the first sequence of a pair if a pair of sequences (or a batch of pairs) is provided.
1008
+ - `'only_second'`: Truncate to a maximum length specified with the argument `max_length` or to the
1009
+ maximum acceptable input length for the model if that argument is not provided. This will only
1010
+ truncate the second sequence of a pair if a pair of sequences (or a batch of pairs) is provided.
1011
+ - `'do_not_truncate'` (default): No truncation (i.e., can output batch with sequence lengths greater
1012
+ than the model maximum admissible input size).
1013
+ stride (`int`, *optional*, defaults to 0):
1014
+ If set to a positive number, the overflowing tokens returned will contain some tokens from the main
1015
+ sequence returned. The value of this argument defines the number of additional tokens.
1016
+
1017
+ Returns:
1018
+ `Tuple[List[int], List[int], List[int]]`: The truncated `ids`, the truncated `pair_ids` and the list of
1019
+ overflowing tokens.
1020
+ """
1021
+ if num_tokens_to_remove <= 0:
1022
+ return ids, token_boxes, pair_ids, pair_token_boxes, labels, [], [], []
1023
+
1024
+ if not isinstance(truncation_strategy, TruncationStrategy):
1025
+ truncation_strategy = TruncationStrategy(truncation_strategy)
1026
+
1027
+ overflowing_tokens = []
1028
+ overflowing_token_boxes = []
1029
+ overflowing_labels = []
1030
+ if truncation_strategy == TruncationStrategy.LONGEST_FIRST:
1031
+ for _ in range(num_tokens_to_remove):
1032
+ if pair_ids is None or len(ids) > len(pair_ids):
1033
+ if not overflowing_tokens:
1034
+ window_len = min(len(ids), stride + 1)
1035
+ else:
1036
+ window_len = 1
1037
+ overflowing_tokens.extend(ids[-window_len:])
1038
+ overflowing_token_boxes.extend(token_boxes[-window_len:])
1039
+ overflowing_labels.extend(labels[-window_len:])
1040
+ ids = ids[:-1]
1041
+ token_boxes = token_boxes[:-1]
1042
+ labels = labels[:-1]
1043
+ else:
1044
+ if not overflowing_tokens:
1045
+ window_len = min(len(pair_ids), stride + 1)
1046
+ else:
1047
+ window_len = 1
1048
+ overflowing_tokens.extend(pair_ids[-window_len:])
1049
+ overflowing_token_boxes.extend(pair_token_boxes[-window_len:])
1050
+ pair_ids = pair_ids[:-1]
1051
+ pair_token_boxes = pair_token_boxes[:-1]
1052
+ elif truncation_strategy == TruncationStrategy.ONLY_FIRST:
1053
+ if len(ids) > num_tokens_to_remove:
1054
+ window_len = min(len(ids), stride + num_tokens_to_remove)
1055
+ overflowing_tokens = ids[-window_len:]
1056
+ overflowing_token_boxes = token_boxes[-window_len:]
1057
+ overflowing_labels = labels[-window_len:]
1058
+ ids = ids[:-num_tokens_to_remove]
1059
+ token_boxes = token_boxes[:-num_tokens_to_remove]
1060
+ labels = labels[:-num_tokens_to_remove]
1061
+ else:
1062
+ logger.error(
1063
+ f"We need to remove {num_tokens_to_remove} to truncate the input "
1064
+ f"but the first sequence has a length {len(ids)}. "
1065
+ f"Please select another truncation strategy than {truncation_strategy}, "
1066
+ "for instance 'longest_first' or 'only_second'."
1067
+ )
1068
+ elif truncation_strategy == TruncationStrategy.ONLY_SECOND and pair_ids is not None:
1069
+ if len(pair_ids) > num_tokens_to_remove:
1070
+ window_len = min(len(pair_ids), stride + num_tokens_to_remove)
1071
+ overflowing_tokens = pair_ids[-window_len:]
1072
+ overflowing_token_boxes = pair_token_boxes[-window_len:]
1073
+ pair_ids = pair_ids[:-num_tokens_to_remove]
1074
+ pair_token_boxes = pair_token_boxes[:-num_tokens_to_remove]
1075
+ else:
1076
+ logger.error(
1077
+ f"We need to remove {num_tokens_to_remove} to truncate the input "
1078
+ f"but the second sequence has a length {len(pair_ids)}. "
1079
+ f"Please select another truncation strategy than {truncation_strategy}, "
1080
+ "for instance 'longest_first' or 'only_first'."
1081
+ )
1082
+
1083
+ return (
1084
+ ids,
1085
+ token_boxes,
1086
+ pair_ids,
1087
+ pair_token_boxes,
1088
+ labels,
1089
+ overflowing_tokens,
1090
+ overflowing_token_boxes,
1091
+ overflowing_labels,
1092
+ )
1093
+
1094
+ def _pad(
1095
+ self,
1096
+ encoded_inputs: Union[Dict[str, EncodedInput], BatchEncoding],
1097
+ max_length: Optional[int] = None,
1098
+ padding_strategy: PaddingStrategy = PaddingStrategy.DO_NOT_PAD,
1099
+ pad_to_multiple_of: Optional[int] = None,
1100
+ return_attention_mask: Optional[bool] = None,
1101
+ ) -> dict:
1102
+ """
1103
+ Pad encoded inputs (on left/right and up to predefined length or max length in the batch)
1104
+
1105
+ Args:
1106
+ encoded_inputs:
1107
+ Dictionary of tokenized inputs (`List[int]`) or batch of tokenized inputs (`List[List[int]]`).
1108
+ max_length: maximum length of the returned list and optionally padding length (see below).
1109
+ Will truncate by taking into account the special tokens.
1110
+ padding_strategy: PaddingStrategy to use for padding.
1111
+
1112
+ - PaddingStrategy.LONGEST Pad to the longest sequence in the batch
1113
+ - PaddingStrategy.MAX_LENGTH: Pad to the max length (default)
1114
+ - PaddingStrategy.DO_NOT_PAD: Do not pad
1115
+ The tokenizer padding sides are defined in self.padding_side:
1116
+
1117
+ - 'left': pads on the left of the sequences
1118
+ - 'right': pads on the right of the sequences
1119
+ pad_to_multiple_of: (optional) Integer if set will pad the sequence to a multiple of the provided value.
1120
+ This is especially useful to enable the use of Tensor Core on NVIDIA hardware with compute capability
1121
+ `>= 7.5` (Volta).
1122
+ return_attention_mask:
1123
+ (optional) Set to False to avoid returning attention mask (default: set to model specifics)
1124
+ """
1125
+ # Load from model defaults
1126
+ if return_attention_mask is None:
1127
+ return_attention_mask = "attention_mask" in self.model_input_names
1128
+
1129
+ required_input = encoded_inputs[self.model_input_names[0]]
1130
+
1131
+ if padding_strategy == PaddingStrategy.LONGEST:
1132
+ max_length = len(required_input)
1133
+
1134
+ if max_length is not None and pad_to_multiple_of is not None and (max_length % pad_to_multiple_of != 0):
1135
+ max_length = ((max_length // pad_to_multiple_of) + 1) * pad_to_multiple_of
1136
+
1137
+ needs_to_be_padded = padding_strategy != PaddingStrategy.DO_NOT_PAD and len(required_input) != max_length
1138
+
1139
+ # Initialize attention mask if not present.
1140
+ if return_attention_mask and "attention_mask" not in encoded_inputs:
1141
+ encoded_inputs["attention_mask"] = [1] * len(required_input)
1142
+
1143
+ if needs_to_be_padded:
1144
+ difference = max_length - len(required_input)
1145
+ if self.padding_side == "right":
1146
+ if return_attention_mask:
1147
+ encoded_inputs["attention_mask"] = encoded_inputs["attention_mask"] + [0] * difference
1148
+ if "token_type_ids" in encoded_inputs:
1149
+ encoded_inputs["token_type_ids"] = (
1150
+ encoded_inputs["token_type_ids"] + [self.pad_token_type_id] * difference
1151
+ )
1152
+ if "bbox" in encoded_inputs:
1153
+ encoded_inputs["bbox"] = encoded_inputs["bbox"] + [self.pad_token_box] * difference
1154
+ if "labels" in encoded_inputs:
1155
+ encoded_inputs["labels"] = encoded_inputs["labels"] + [self.pad_token_label] * difference
1156
+ if "special_tokens_mask" in encoded_inputs:
1157
+ encoded_inputs["special_tokens_mask"] = encoded_inputs["special_tokens_mask"] + [1] * difference
1158
+ encoded_inputs[self.model_input_names[0]] = required_input + [self.pad_token_id] * difference
1159
+ elif self.padding_side == "left":
1160
+ if return_attention_mask:
1161
+ encoded_inputs["attention_mask"] = [0] * difference + encoded_inputs["attention_mask"]
1162
+ if "token_type_ids" in encoded_inputs:
1163
+ encoded_inputs["token_type_ids"] = [self.pad_token_type_id] * difference + encoded_inputs[
1164
+ "token_type_ids"
1165
+ ]
1166
+ if "bbox" in encoded_inputs:
1167
+ encoded_inputs["bbox"] = [self.pad_token_box] * difference + encoded_inputs["bbox"]
1168
+ if "labels" in encoded_inputs:
1169
+ encoded_inputs["labels"] = [self.pad_token_label] * difference + encoded_inputs["labels"]
1170
+ if "special_tokens_mask" in encoded_inputs:
1171
+ encoded_inputs["special_tokens_mask"] = [1] * difference + encoded_inputs["special_tokens_mask"]
1172
+ encoded_inputs[self.model_input_names[0]] = [self.pad_token_id] * difference + required_input
1173
+ else:
1174
+ raise ValueError("Invalid padding strategy:" + str(self.padding_side))
1175
+
1176
+ return encoded_inputs