mail 2.6.6 → 2.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (180) hide show
  1. checksums.yaml +5 -5
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +134 -119
  4. data/lib/mail/attachments_list.rb +10 -9
  5. data/lib/mail/body.rb +73 -84
  6. data/lib/mail/check_delivery_params.rb +28 -21
  7. data/lib/mail/configuration.rb +2 -0
  8. data/lib/mail/constants.rb +27 -5
  9. data/lib/mail/elements/address.rb +53 -47
  10. data/lib/mail/elements/address_list.rb +11 -19
  11. data/lib/mail/elements/content_disposition_element.rb +9 -16
  12. data/lib/mail/elements/content_location_element.rb +6 -11
  13. data/lib/mail/elements/content_transfer_encoding_element.rb +6 -11
  14. data/lib/mail/elements/content_type_element.rb +16 -23
  15. data/lib/mail/elements/date_time_element.rb +7 -15
  16. data/lib/mail/elements/envelope_from_element.rb +22 -23
  17. data/lib/mail/elements/message_ids_element.rb +18 -13
  18. data/lib/mail/elements/mime_version_element.rb +7 -15
  19. data/lib/mail/elements/phrase_list.rb +12 -10
  20. data/lib/mail/elements/received_element.rb +27 -19
  21. data/lib/mail/encodings/7bit.rb +9 -14
  22. data/lib/mail/encodings/8bit.rb +2 -21
  23. data/lib/mail/encodings/base64.rb +11 -12
  24. data/lib/mail/encodings/binary.rb +3 -22
  25. data/lib/mail/encodings/identity.rb +24 -0
  26. data/lib/mail/encodings/quoted_printable.rb +6 -6
  27. data/lib/mail/encodings/transfer_encoding.rb +38 -29
  28. data/lib/mail/encodings/unix_to_unix.rb +3 -1
  29. data/lib/mail/encodings.rb +81 -54
  30. data/lib/mail/envelope.rb +11 -14
  31. data/lib/mail/field.rb +119 -98
  32. data/lib/mail/field_list.rb +60 -7
  33. data/lib/mail/fields/bcc_field.rb +34 -52
  34. data/lib/mail/fields/cc_field.rb +28 -49
  35. data/lib/mail/fields/comments_field.rb +27 -37
  36. data/lib/mail/fields/common_address_field.rb +170 -0
  37. data/lib/mail/fields/common_date_field.rb +58 -0
  38. data/lib/mail/fields/common_field.rb +77 -0
  39. data/lib/mail/fields/common_message_id_field.rb +42 -0
  40. data/lib/mail/fields/content_description_field.rb +7 -14
  41. data/lib/mail/fields/content_disposition_field.rb +13 -38
  42. data/lib/mail/fields/content_id_field.rb +24 -51
  43. data/lib/mail/fields/content_location_field.rb +11 -25
  44. data/lib/mail/fields/content_transfer_encoding_field.rb +31 -31
  45. data/lib/mail/fields/content_type_field.rb +50 -80
  46. data/lib/mail/fields/date_field.rb +23 -52
  47. data/lib/mail/fields/from_field.rb +28 -49
  48. data/lib/mail/fields/in_reply_to_field.rb +38 -49
  49. data/lib/mail/fields/keywords_field.rb +18 -31
  50. data/lib/mail/fields/message_id_field.rb +25 -71
  51. data/lib/mail/fields/mime_version_field.rb +19 -30
  52. data/lib/mail/fields/named_structured_field.rb +11 -0
  53. data/lib/mail/fields/named_unstructured_field.rb +11 -0
  54. data/lib/mail/fields/optional_field.rb +9 -7
  55. data/lib/mail/fields/{common/parameter_hash.rb → parameter_hash.rb} +13 -11
  56. data/lib/mail/fields/received_field.rb +43 -57
  57. data/lib/mail/fields/references_field.rb +35 -49
  58. data/lib/mail/fields/reply_to_field.rb +28 -49
  59. data/lib/mail/fields/resent_bcc_field.rb +28 -49
  60. data/lib/mail/fields/resent_cc_field.rb +28 -49
  61. data/lib/mail/fields/resent_date_field.rb +5 -30
  62. data/lib/mail/fields/resent_from_field.rb +28 -49
  63. data/lib/mail/fields/resent_message_id_field.rb +5 -29
  64. data/lib/mail/fields/resent_sender_field.rb +27 -56
  65. data/lib/mail/fields/resent_to_field.rb +28 -49
  66. data/lib/mail/fields/return_path_field.rb +50 -54
  67. data/lib/mail/fields/sender_field.rb +34 -55
  68. data/lib/mail/fields/structured_field.rb +3 -30
  69. data/lib/mail/fields/subject_field.rb +9 -11
  70. data/lib/mail/fields/to_field.rb +28 -49
  71. data/lib/mail/fields/unstructured_field.rb +32 -47
  72. data/lib/mail/header.rb +71 -110
  73. data/lib/mail/mail.rb +2 -10
  74. data/lib/mail/matchers/attachment_matchers.rb +15 -0
  75. data/lib/mail/matchers/has_sent_mail.rb +21 -1
  76. data/lib/mail/message.rb +113 -117
  77. data/lib/mail/multibyte/chars.rb +21 -178
  78. data/lib/mail/multibyte/unicode.rb +10 -10
  79. data/lib/mail/multibyte/utils.rb +26 -43
  80. data/lib/mail/multibyte.rb +55 -16
  81. data/lib/mail/network/delivery_methods/exim.rb +5 -4
  82. data/lib/mail/network/delivery_methods/file_delivery.rb +11 -10
  83. data/lib/mail/network/delivery_methods/logger_delivery.rb +34 -0
  84. data/lib/mail/network/delivery_methods/sendmail.rb +62 -21
  85. data/lib/mail/network/delivery_methods/smtp.rb +75 -50
  86. data/lib/mail/network/delivery_methods/smtp_connection.rb +3 -4
  87. data/lib/mail/network/delivery_methods/test_mailer.rb +4 -2
  88. data/lib/mail/network/retriever_methods/base.rb +8 -8
  89. data/lib/mail/network/retriever_methods/imap.rb +20 -7
  90. data/lib/mail/network/retriever_methods/pop3.rb +5 -3
  91. data/lib/mail/network/retriever_methods/test_retriever.rb +2 -1
  92. data/lib/mail/network.rb +1 -0
  93. data/lib/mail/parser_tools.rb +15 -0
  94. data/lib/mail/parsers/address_lists_parser.rb +33225 -116
  95. data/lib/mail/parsers/address_lists_parser.rl +179 -0
  96. data/lib/mail/parsers/content_disposition_parser.rb +882 -49
  97. data/lib/mail/parsers/content_disposition_parser.rl +89 -0
  98. data/lib/mail/parsers/content_location_parser.rb +809 -23
  99. data/lib/mail/parsers/content_location_parser.rl +78 -0
  100. data/lib/mail/parsers/content_transfer_encoding_parser.rb +509 -21
  101. data/lib/mail/parsers/content_transfer_encoding_parser.rl +71 -0
  102. data/lib/mail/parsers/content_type_parser.rb +1037 -56
  103. data/lib/mail/parsers/content_type_parser.rl +90 -0
  104. data/lib/mail/parsers/date_time_parser.rb +877 -25
  105. data/lib/mail/parsers/date_time_parser.rl +69 -0
  106. data/lib/mail/parsers/envelope_from_parser.rb +3669 -40
  107. data/lib/mail/parsers/envelope_from_parser.rl +89 -0
  108. data/lib/mail/parsers/message_ids_parser.rb +5146 -25
  109. data/lib/mail/parsers/message_ids_parser.rl +93 -0
  110. data/lib/mail/parsers/mime_version_parser.rb +497 -26
  111. data/lib/mail/parsers/mime_version_parser.rl +68 -0
  112. data/lib/mail/parsers/phrase_lists_parser.rb +870 -22
  113. data/lib/mail/parsers/phrase_lists_parser.rl +90 -0
  114. data/lib/mail/parsers/received_parser.rb +8776 -43
  115. data/lib/mail/parsers/received_parser.rl +91 -0
  116. data/lib/mail/parsers/rfc2045_content_transfer_encoding.rl +13 -0
  117. data/lib/mail/parsers/rfc2045_content_type.rl +25 -0
  118. data/lib/mail/parsers/rfc2045_mime.rl +16 -0
  119. data/lib/mail/parsers/rfc2183_content_disposition.rl +15 -0
  120. data/lib/mail/parsers/rfc3629_utf8.rl +19 -0
  121. data/lib/mail/parsers/rfc5234_abnf_core_rules.rl +22 -0
  122. data/lib/mail/parsers/rfc5322.rl +74 -0
  123. data/lib/mail/parsers/rfc5322_address.rl +72 -0
  124. data/lib/mail/parsers/{ragel/date_time.rl → rfc5322_date_time.rl} +8 -1
  125. data/lib/mail/parsers/rfc5322_lexical_tokens.rl +60 -0
  126. data/lib/mail/parsers.rb +11 -25
  127. data/lib/mail/part.rb +6 -10
  128. data/lib/mail/parts_list.rb +62 -6
  129. data/lib/mail/smtp_envelope.rb +57 -0
  130. data/lib/mail/utilities.rb +343 -74
  131. data/lib/mail/version.rb +2 -2
  132. data/lib/mail/yaml.rb +30 -0
  133. data/lib/mail.rb +5 -35
  134. metadata +111 -66
  135. data/CHANGELOG.rdoc +0 -803
  136. data/CONTRIBUTING.md +0 -60
  137. data/Dependencies.txt +0 -2
  138. data/Gemfile +0 -14
  139. data/Rakefile +0 -29
  140. data/TODO.rdoc +0 -9
  141. data/lib/mail/core_extensions/smtp.rb +0 -25
  142. data/lib/mail/core_extensions/string/access.rb +0 -146
  143. data/lib/mail/core_extensions/string/multibyte.rb +0 -79
  144. data/lib/mail/core_extensions/string.rb +0 -21
  145. data/lib/mail/fields/common/address_container.rb +0 -17
  146. data/lib/mail/fields/common/common_address.rb +0 -136
  147. data/lib/mail/fields/common/common_date.rb +0 -36
  148. data/lib/mail/fields/common/common_field.rb +0 -61
  149. data/lib/mail/fields/common/common_message_id.rb +0 -49
  150. data/lib/mail/multibyte/exceptions.rb +0 -9
  151. data/lib/mail/parsers/ragel/common.rl +0 -185
  152. data/lib/mail/parsers/ragel/parser_info.rb +0 -61
  153. data/lib/mail/parsers/ragel/ruby/machines/address_lists_machine.rb +0 -14864
  154. data/lib/mail/parsers/ragel/ruby/machines/address_lists_machine.rb.rl +0 -37
  155. data/lib/mail/parsers/ragel/ruby/machines/content_disposition_machine.rb +0 -751
  156. data/lib/mail/parsers/ragel/ruby/machines/content_disposition_machine.rb.rl +0 -37
  157. data/lib/mail/parsers/ragel/ruby/machines/content_location_machine.rb +0 -614
  158. data/lib/mail/parsers/ragel/ruby/machines/content_location_machine.rb.rl +0 -37
  159. data/lib/mail/parsers/ragel/ruby/machines/content_transfer_encoding_machine.rb +0 -447
  160. data/lib/mail/parsers/ragel/ruby/machines/content_transfer_encoding_machine.rb.rl +0 -37
  161. data/lib/mail/parsers/ragel/ruby/machines/content_type_machine.rb +0 -825
  162. data/lib/mail/parsers/ragel/ruby/machines/content_type_machine.rb.rl +0 -37
  163. data/lib/mail/parsers/ragel/ruby/machines/date_time_machine.rb +0 -817
  164. data/lib/mail/parsers/ragel/ruby/machines/date_time_machine.rb.rl +0 -37
  165. data/lib/mail/parsers/ragel/ruby/machines/envelope_from_machine.rb +0 -2149
  166. data/lib/mail/parsers/ragel/ruby/machines/envelope_from_machine.rb.rl +0 -37
  167. data/lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb +0 -1570
  168. data/lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb.rl +0 -37
  169. data/lib/mail/parsers/ragel/ruby/machines/mime_version_machine.rb +0 -440
  170. data/lib/mail/parsers/ragel/ruby/machines/mime_version_machine.rb.rl +0 -37
  171. data/lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb +0 -564
  172. data/lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb.rl +0 -37
  173. data/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl +0 -51
  174. data/lib/mail/parsers/ragel/ruby/machines/received_machine.rb +0 -5144
  175. data/lib/mail/parsers/ragel/ruby/machines/received_machine.rb.rl +0 -37
  176. data/lib/mail/parsers/ragel/ruby/parser.rb.rl.erb +0 -37
  177. data/lib/mail/parsers/ragel/ruby.rb +0 -40
  178. data/lib/mail/parsers/ragel.rb +0 -18
  179. data/lib/mail/version_specific/ruby_1_8.rb +0 -126
  180. data/lib/mail/version_specific/ruby_1_9.rb +0 -226
@@ -1,36 +1,884 @@
1
+
1
2
  # frozen_string_literal: true
2
- module Mail::Parsers
3
- class PhraseListsParser
3
+ require "mail/utilities"
4
+ require "mail/parser_tools"
5
+
6
+ begin
7
+ original_verbose, $VERBOSE = $VERBOSE, nil
8
+
9
+ module Mail::Parsers
10
+ class PhraseListsParser
11
+ extend Mail::ParserTools
12
+
13
+ PhraseListsStruct = Struct.new(:phrases, :error)
4
14
 
5
- def parse(s)
6
- raise Mail::Field::ParseError.new(Mail::PhraseList, s, 'nil is invalid') if s.nil?
15
+ class << self
16
+ attr_accessor :_trans_keys
17
+ private :_trans_keys, :_trans_keys=
18
+ end
19
+ self._trans_keys = [
20
+ 0, 0, 9, 244, 9, 244,
21
+ 10, 10, 9, 32, 10,
22
+ 10, 9, 32, 1, 244,
23
+ 1, 244, 10, 10, 9, 32,
24
+ 0, 244, 128, 191, 160,
25
+ 191, 128, 191, 128, 159,
26
+ 144, 191, 128, 191, 128, 143,
27
+ 9, 244, 10, 10, 9,
28
+ 32, 9, 244, 128, 191,
29
+ 160, 191, 128, 191, 128, 159,
30
+ 144, 191, 128, 191, 128,
31
+ 143, 1, 244, 1, 244,
32
+ 10, 10, 9, 32, 0, 244,
33
+ 128, 191, 160, 191, 128,
34
+ 191, 128, 159, 144, 191,
35
+ 128, 191, 128, 143, 9, 244,
36
+ 9, 244, 9, 244, 0,
37
+ 0, 0,
38
+ ]
39
+
40
+ class << self
41
+ attr_accessor :_key_spans
42
+ private :_key_spans, :_key_spans=
43
+ end
44
+ self._key_spans = [
45
+ 0, 236, 236, 1, 24, 1, 24, 244,
46
+ 244, 1, 24, 245, 64, 32, 64, 32,
47
+ 48, 64, 16, 236, 1, 24, 236, 64,
48
+ 32, 64, 32, 48, 64, 16, 244, 244,
49
+ 1, 24, 245, 64, 32, 64, 32, 48,
50
+ 64, 16, 236, 236, 236, 0,
51
+ ]
7
52
 
8
- actions, error = Ragel.parse(:phrase_lists, s)
9
- if error
10
- raise Mail::Field::ParseError.new(Mail::PhraseList, s, error)
53
+ class << self
54
+ attr_accessor :_index_offsets
55
+ private :_index_offsets, :_index_offsets=
11
56
  end
57
+ self._index_offsets = [
58
+ 0, 0, 237, 474, 476, 501, 503, 528,
59
+ 773, 1018, 1020, 1045, 1291, 1356, 1389, 1454,
60
+ 1487, 1536, 1601, 1618, 1855, 1857, 1882, 2119,
61
+ 2184, 2217, 2282, 2315, 2364, 2429, 2446, 2691,
62
+ 2936, 2938, 2963, 3209, 3274, 3307, 3372, 3405,
63
+ 3454, 3519, 3536, 3773, 4010, 4247,
64
+ ]
12
65
 
13
- phrase_lists = PhraseListsStruct.new([])
66
+ class << self
67
+ attr_accessor :_indicies
68
+ private :_indicies, :_indicies=
69
+ end
70
+ self._indicies = [
71
+ 0, 1, 1, 1, 2, 1, 1, 1,
72
+ 1, 1, 1, 1, 1, 1, 1, 1,
73
+ 1, 1, 1, 1, 1, 1, 1, 0,
74
+ 3, 4, 3, 3, 3, 3, 3, 5,
75
+ 1, 3, 3, 1, 3, 6, 3, 3,
76
+ 3, 3, 3, 3, 3, 3, 3, 3,
77
+ 3, 1, 1, 1, 3, 1, 3, 6,
78
+ 3, 3, 3, 3, 3, 3, 3, 3,
79
+ 3, 3, 3, 3, 3, 3, 3, 3,
80
+ 3, 3, 3, 3, 3, 3, 3, 3,
81
+ 3, 3, 1, 1, 1, 3, 3, 3,
82
+ 3, 3, 3, 3, 3, 3, 3, 3,
83
+ 3, 3, 3, 3, 3, 3, 3, 3,
84
+ 3, 3, 3, 3, 3, 3, 3, 3,
85
+ 3, 3, 3, 3, 3, 3, 1, 1,
86
+ 1, 1, 1, 1, 1, 1, 1, 1,
87
+ 1, 1, 1, 1, 1, 1, 1, 1,
88
+ 1, 1, 1, 1, 1, 1, 1, 1,
89
+ 1, 1, 1, 1, 1, 1, 1, 1,
90
+ 1, 1, 1, 1, 1, 1, 1, 1,
91
+ 1, 1, 1, 1, 1, 1, 1, 1,
92
+ 1, 1, 1, 1, 1, 1, 1, 1,
93
+ 1, 1, 1, 1, 1, 1, 1, 1,
94
+ 1, 7, 7, 7, 7, 7, 7, 7,
95
+ 7, 7, 7, 7, 7, 7, 7, 7,
96
+ 7, 7, 7, 7, 7, 7, 7, 7,
97
+ 7, 7, 7, 7, 7, 7, 7, 8,
98
+ 9, 9, 9, 9, 9, 9, 9, 9,
99
+ 9, 9, 9, 9, 10, 9, 9, 11,
100
+ 12, 12, 12, 13, 1, 14, 1, 1,
101
+ 1, 15, 1, 1, 1, 1, 1, 1,
102
+ 1, 1, 1, 1, 1, 1, 1, 1,
103
+ 1, 1, 1, 1, 14, 16, 17, 16,
104
+ 16, 16, 16, 16, 18, 1, 16, 16,
105
+ 1, 16, 1, 16, 16, 16, 16, 16,
106
+ 16, 16, 16, 16, 16, 16, 1, 1,
107
+ 1, 16, 1, 16, 1, 16, 16, 16,
108
+ 16, 16, 16, 16, 16, 16, 16, 16,
109
+ 16, 16, 16, 16, 16, 16, 16, 16,
110
+ 16, 16, 16, 16, 16, 16, 16, 1,
111
+ 1, 1, 16, 16, 16, 16, 16, 16,
112
+ 16, 16, 16, 16, 16, 16, 16, 16,
113
+ 16, 16, 16, 16, 16, 16, 16, 16,
114
+ 16, 16, 16, 16, 16, 16, 16, 16,
115
+ 16, 16, 16, 1, 1, 1, 1, 1,
116
+ 1, 1, 1, 1, 1, 1, 1, 1,
117
+ 1, 1, 1, 1, 1, 1, 1, 1,
118
+ 1, 1, 1, 1, 1, 1, 1, 1,
119
+ 1, 1, 1, 1, 1, 1, 1, 1,
120
+ 1, 1, 1, 1, 1, 1, 1, 1,
121
+ 1, 1, 1, 1, 1, 1, 1, 1,
122
+ 1, 1, 1, 1, 1, 1, 1, 1,
123
+ 1, 1, 1, 1, 1, 1, 19, 19,
124
+ 19, 19, 19, 19, 19, 19, 19, 19,
125
+ 19, 19, 19, 19, 19, 19, 19, 19,
126
+ 19, 19, 19, 19, 19, 19, 19, 19,
127
+ 19, 19, 19, 19, 20, 21, 21, 21,
128
+ 21, 21, 21, 21, 21, 21, 21, 21,
129
+ 21, 22, 21, 21, 23, 24, 24, 24,
130
+ 25, 1, 26, 1, 14, 1, 1, 1,
131
+ 1, 1, 1, 1, 1, 1, 1, 1,
132
+ 1, 1, 1, 1, 1, 1, 1, 1,
133
+ 1, 1, 1, 14, 1, 27, 1, 16,
134
+ 1, 1, 1, 1, 1, 1, 1, 1,
135
+ 1, 1, 1, 1, 1, 1, 1, 1,
136
+ 1, 1, 1, 1, 1, 1, 16, 1,
137
+ 28, 28, 28, 28, 28, 28, 28, 28,
138
+ 28, 1, 28, 28, 29, 28, 28, 28,
139
+ 28, 28, 28, 28, 28, 28, 28, 28,
140
+ 28, 28, 28, 28, 28, 28, 28, 28,
141
+ 28, 30, 28, 28, 28, 28, 28, 28,
142
+ 28, 28, 28, 28, 28, 28, 28, 28,
143
+ 28, 28, 28, 28, 28, 28, 28, 28,
144
+ 28, 28, 28, 28, 28, 28, 28, 28,
145
+ 28, 28, 28, 28, 28, 28, 28, 28,
146
+ 28, 28, 28, 28, 28, 28, 28, 28,
147
+ 28, 28, 28, 28, 28, 28, 28, 28,
148
+ 28, 28, 28, 31, 28, 28, 28, 28,
149
+ 28, 28, 28, 28, 28, 28, 28, 28,
150
+ 28, 28, 28, 28, 28, 28, 28, 28,
151
+ 28, 28, 28, 28, 28, 28, 28, 28,
152
+ 28, 28, 28, 28, 28, 28, 28, 1,
153
+ 1, 1, 1, 1, 1, 1, 1, 1,
154
+ 1, 1, 1, 1, 1, 1, 1, 1,
155
+ 1, 1, 1, 1, 1, 1, 1, 1,
156
+ 1, 1, 1, 1, 1, 1, 1, 1,
157
+ 1, 1, 1, 1, 1, 1, 1, 1,
158
+ 1, 1, 1, 1, 1, 1, 1, 1,
159
+ 1, 1, 1, 1, 1, 1, 1, 1,
160
+ 1, 1, 1, 1, 1, 1, 1, 1,
161
+ 1, 32, 32, 32, 32, 32, 32, 32,
162
+ 32, 32, 32, 32, 32, 32, 32, 32,
163
+ 32, 32, 32, 32, 32, 32, 32, 32,
164
+ 32, 32, 32, 32, 32, 32, 32, 33,
165
+ 34, 34, 34, 34, 34, 34, 34, 34,
166
+ 34, 34, 34, 34, 35, 34, 34, 36,
167
+ 37, 37, 37, 38, 1, 39, 39, 39,
168
+ 39, 39, 39, 39, 39, 39, 1, 39,
169
+ 39, 40, 39, 39, 39, 39, 39, 39,
170
+ 39, 39, 39, 39, 39, 39, 39, 39,
171
+ 39, 39, 39, 39, 39, 39, 41, 39,
172
+ 39, 39, 39, 39, 39, 39, 39, 39,
173
+ 39, 39, 39, 39, 39, 39, 39, 39,
174
+ 39, 39, 39, 39, 39, 39, 39, 39,
175
+ 39, 39, 39, 39, 39, 39, 39, 39,
176
+ 39, 39, 39, 39, 39, 39, 39, 39,
177
+ 39, 39, 39, 39, 39, 39, 39, 39,
178
+ 39, 39, 39, 39, 39, 39, 39, 39,
179
+ 42, 39, 39, 39, 39, 39, 39, 39,
180
+ 39, 39, 39, 39, 39, 39, 39, 39,
181
+ 39, 39, 39, 39, 39, 39, 39, 39,
182
+ 39, 39, 39, 39, 39, 39, 39, 39,
183
+ 39, 39, 39, 39, 1, 1, 1, 1,
184
+ 1, 1, 1, 1, 1, 1, 1, 1,
185
+ 1, 1, 1, 1, 1, 1, 1, 1,
186
+ 1, 1, 1, 1, 1, 1, 1, 1,
187
+ 1, 1, 1, 1, 1, 1, 1, 1,
188
+ 1, 1, 1, 1, 1, 1, 1, 1,
189
+ 1, 1, 1, 1, 1, 1, 1, 1,
190
+ 1, 1, 1, 1, 1, 1, 1, 1,
191
+ 1, 1, 1, 1, 1, 1, 43, 43,
192
+ 43, 43, 43, 43, 43, 43, 43, 43,
193
+ 43, 43, 43, 43, 43, 43, 43, 43,
194
+ 43, 43, 43, 43, 43, 43, 43, 43,
195
+ 43, 43, 43, 43, 44, 45, 45, 45,
196
+ 45, 45, 45, 45, 45, 45, 45, 45,
197
+ 45, 46, 45, 45, 47, 48, 48, 48,
198
+ 49, 1, 50, 1, 39, 1, 1, 1,
199
+ 1, 1, 1, 1, 1, 1, 1, 1,
200
+ 1, 1, 1, 1, 1, 1, 1, 1,
201
+ 1, 1, 1, 39, 1, 39, 39, 39,
202
+ 39, 39, 39, 39, 39, 39, 39, 39,
203
+ 39, 39, 39, 39, 39, 39, 39, 39,
204
+ 39, 39, 39, 39, 39, 39, 39, 39,
205
+ 39, 39, 39, 39, 39, 39, 39, 39,
206
+ 39, 39, 39, 39, 39, 39, 39, 39,
207
+ 39, 39, 39, 39, 39, 39, 39, 39,
208
+ 39, 39, 39, 39, 39, 39, 39, 39,
209
+ 39, 39, 39, 39, 39, 39, 39, 39,
210
+ 39, 39, 39, 39, 39, 39, 39, 39,
211
+ 39, 39, 39, 39, 39, 39, 39, 39,
212
+ 39, 39, 39, 39, 39, 39, 39, 39,
213
+ 39, 39, 39, 39, 39, 39, 39, 39,
214
+ 39, 39, 39, 39, 39, 39, 39, 39,
215
+ 39, 39, 39, 39, 39, 39, 39, 39,
216
+ 39, 39, 39, 39, 39, 39, 39, 39,
217
+ 39, 39, 39, 39, 39, 1, 1, 1,
218
+ 1, 1, 1, 1, 1, 1, 1, 1,
219
+ 1, 1, 1, 1, 1, 1, 1, 1,
220
+ 1, 1, 1, 1, 1, 1, 1, 1,
221
+ 1, 1, 1, 1, 1, 1, 1, 1,
222
+ 1, 1, 1, 1, 1, 1, 1, 1,
223
+ 1, 1, 1, 1, 1, 1, 1, 1,
224
+ 1, 1, 1, 1, 1, 1, 1, 1,
225
+ 1, 1, 1, 1, 1, 1, 1, 43,
226
+ 43, 43, 43, 43, 43, 43, 43, 43,
227
+ 43, 43, 43, 43, 43, 43, 43, 43,
228
+ 43, 43, 43, 43, 43, 43, 43, 43,
229
+ 43, 43, 43, 43, 43, 44, 45, 45,
230
+ 45, 45, 45, 45, 45, 45, 45, 45,
231
+ 45, 45, 46, 45, 45, 47, 48, 48,
232
+ 48, 49, 1, 39, 39, 39, 39, 39,
233
+ 39, 39, 39, 39, 39, 39, 39, 39,
234
+ 39, 39, 39, 39, 39, 39, 39, 39,
235
+ 39, 39, 39, 39, 39, 39, 39, 39,
236
+ 39, 39, 39, 39, 39, 39, 39, 39,
237
+ 39, 39, 39, 39, 39, 39, 39, 39,
238
+ 39, 39, 39, 39, 39, 39, 39, 39,
239
+ 39, 39, 39, 39, 39, 39, 39, 39,
240
+ 39, 39, 39, 1, 43, 43, 43, 43,
241
+ 43, 43, 43, 43, 43, 43, 43, 43,
242
+ 43, 43, 43, 43, 43, 43, 43, 43,
243
+ 43, 43, 43, 43, 43, 43, 43, 43,
244
+ 43, 43, 43, 43, 1, 43, 43, 43,
245
+ 43, 43, 43, 43, 43, 43, 43, 43,
246
+ 43, 43, 43, 43, 43, 43, 43, 43,
247
+ 43, 43, 43, 43, 43, 43, 43, 43,
248
+ 43, 43, 43, 43, 43, 43, 43, 43,
249
+ 43, 43, 43, 43, 43, 43, 43, 43,
250
+ 43, 43, 43, 43, 43, 43, 43, 43,
251
+ 43, 43, 43, 43, 43, 43, 43, 43,
252
+ 43, 43, 43, 43, 43, 1, 43, 43,
253
+ 43, 43, 43, 43, 43, 43, 43, 43,
254
+ 43, 43, 43, 43, 43, 43, 43, 43,
255
+ 43, 43, 43, 43, 43, 43, 43, 43,
256
+ 43, 43, 43, 43, 43, 43, 1, 45,
257
+ 45, 45, 45, 45, 45, 45, 45, 45,
258
+ 45, 45, 45, 45, 45, 45, 45, 45,
259
+ 45, 45, 45, 45, 45, 45, 45, 45,
260
+ 45, 45, 45, 45, 45, 45, 45, 45,
261
+ 45, 45, 45, 45, 45, 45, 45, 45,
262
+ 45, 45, 45, 45, 45, 45, 45, 1,
263
+ 45, 45, 45, 45, 45, 45, 45, 45,
264
+ 45, 45, 45, 45, 45, 45, 45, 45,
265
+ 45, 45, 45, 45, 45, 45, 45, 45,
266
+ 45, 45, 45, 45, 45, 45, 45, 45,
267
+ 45, 45, 45, 45, 45, 45, 45, 45,
268
+ 45, 45, 45, 45, 45, 45, 45, 45,
269
+ 45, 45, 45, 45, 45, 45, 45, 45,
270
+ 45, 45, 45, 45, 45, 45, 45, 45,
271
+ 1, 45, 45, 45, 45, 45, 45, 45,
272
+ 45, 45, 45, 45, 45, 45, 45, 45,
273
+ 45, 1, 51, 1, 1, 1, 52, 1,
274
+ 1, 1, 1, 1, 1, 1, 1, 1,
275
+ 1, 1, 1, 1, 1, 1, 1, 1,
276
+ 1, 51, 3, 4, 3, 3, 3, 3,
277
+ 3, 5, 1, 3, 3, 1, 3, 6,
278
+ 3, 3, 3, 3, 3, 3, 3, 3,
279
+ 3, 3, 3, 1, 1, 1, 3, 1,
280
+ 3, 6, 3, 3, 3, 3, 3, 3,
281
+ 3, 3, 3, 3, 3, 3, 3, 3,
282
+ 3, 3, 3, 3, 3, 3, 3, 3,
283
+ 3, 3, 3, 3, 1, 1, 1, 3,
284
+ 3, 3, 3, 3, 3, 3, 3, 3,
285
+ 3, 3, 3, 3, 3, 3, 3, 3,
286
+ 3, 3, 3, 3, 3, 3, 3, 3,
287
+ 3, 3, 3, 3, 3, 3, 3, 3,
288
+ 1, 1, 1, 1, 1, 1, 1, 1,
289
+ 1, 1, 1, 1, 1, 1, 1, 1,
290
+ 1, 1, 1, 1, 1, 1, 1, 1,
291
+ 1, 1, 1, 1, 1, 1, 1, 1,
292
+ 1, 1, 1, 1, 1, 1, 1, 1,
293
+ 1, 1, 1, 1, 1, 1, 1, 1,
294
+ 1, 1, 1, 1, 1, 1, 1, 1,
295
+ 1, 1, 1, 1, 1, 1, 1, 1,
296
+ 1, 1, 1, 7, 7, 7, 7, 7,
297
+ 7, 7, 7, 7, 7, 7, 7, 7,
298
+ 7, 7, 7, 7, 7, 7, 7, 7,
299
+ 7, 7, 7, 7, 7, 7, 7, 7,
300
+ 7, 8, 9, 9, 9, 9, 9, 9,
301
+ 9, 9, 9, 9, 9, 9, 10, 9,
302
+ 9, 11, 12, 12, 12, 13, 1, 53,
303
+ 1, 54, 1, 1, 1, 1, 1, 1,
304
+ 1, 1, 1, 1, 1, 1, 1, 1,
305
+ 1, 1, 1, 1, 1, 1, 1, 1,
306
+ 54, 1, 55, 1, 1, 1, 56, 1,
307
+ 1, 1, 1, 1, 1, 1, 1, 1,
308
+ 1, 1, 1, 1, 1, 1, 1, 1,
309
+ 1, 55, 57, 58, 57, 57, 57, 57,
310
+ 57, 59, 1, 57, 57, 1, 57, 1,
311
+ 57, 57, 57, 57, 57, 57, 57, 57,
312
+ 57, 57, 57, 1, 1, 1, 57, 1,
313
+ 57, 1, 57, 57, 57, 57, 57, 57,
314
+ 57, 57, 57, 57, 57, 57, 57, 57,
315
+ 57, 57, 57, 57, 57, 57, 57, 57,
316
+ 57, 57, 57, 57, 1, 1, 1, 57,
317
+ 57, 57, 57, 57, 57, 57, 57, 57,
318
+ 57, 57, 57, 57, 57, 57, 57, 57,
319
+ 57, 57, 57, 57, 57, 57, 57, 57,
320
+ 57, 57, 57, 57, 57, 57, 57, 57,
321
+ 1, 1, 1, 1, 1, 1, 1, 1,
322
+ 1, 1, 1, 1, 1, 1, 1, 1,
323
+ 1, 1, 1, 1, 1, 1, 1, 1,
324
+ 1, 1, 1, 1, 1, 1, 1, 1,
325
+ 1, 1, 1, 1, 1, 1, 1, 1,
326
+ 1, 1, 1, 1, 1, 1, 1, 1,
327
+ 1, 1, 1, 1, 1, 1, 1, 1,
328
+ 1, 1, 1, 1, 1, 1, 1, 1,
329
+ 1, 1, 1, 60, 60, 60, 60, 60,
330
+ 60, 60, 60, 60, 60, 60, 60, 60,
331
+ 60, 60, 60, 60, 60, 60, 60, 60,
332
+ 60, 60, 60, 60, 60, 60, 60, 60,
333
+ 60, 61, 62, 62, 62, 62, 62, 62,
334
+ 62, 62, 62, 62, 62, 62, 63, 62,
335
+ 62, 64, 65, 65, 65, 66, 1, 16,
336
+ 16, 16, 16, 16, 16, 16, 16, 16,
337
+ 16, 16, 16, 16, 16, 16, 16, 16,
338
+ 16, 16, 16, 16, 16, 16, 16, 16,
339
+ 16, 16, 16, 16, 16, 16, 16, 16,
340
+ 16, 16, 16, 16, 16, 16, 16, 16,
341
+ 16, 16, 16, 16, 16, 16, 16, 16,
342
+ 16, 16, 16, 16, 16, 16, 16, 16,
343
+ 16, 16, 16, 16, 16, 16, 16, 1,
344
+ 19, 19, 19, 19, 19, 19, 19, 19,
345
+ 19, 19, 19, 19, 19, 19, 19, 19,
346
+ 19, 19, 19, 19, 19, 19, 19, 19,
347
+ 19, 19, 19, 19, 19, 19, 19, 19,
348
+ 1, 19, 19, 19, 19, 19, 19, 19,
349
+ 19, 19, 19, 19, 19, 19, 19, 19,
350
+ 19, 19, 19, 19, 19, 19, 19, 19,
351
+ 19, 19, 19, 19, 19, 19, 19, 19,
352
+ 19, 19, 19, 19, 19, 19, 19, 19,
353
+ 19, 19, 19, 19, 19, 19, 19, 19,
354
+ 19, 19, 19, 19, 19, 19, 19, 19,
355
+ 19, 19, 19, 19, 19, 19, 19, 19,
356
+ 19, 1, 19, 19, 19, 19, 19, 19,
357
+ 19, 19, 19, 19, 19, 19, 19, 19,
358
+ 19, 19, 19, 19, 19, 19, 19, 19,
359
+ 19, 19, 19, 19, 19, 19, 19, 19,
360
+ 19, 19, 1, 21, 21, 21, 21, 21,
361
+ 21, 21, 21, 21, 21, 21, 21, 21,
362
+ 21, 21, 21, 21, 21, 21, 21, 21,
363
+ 21, 21, 21, 21, 21, 21, 21, 21,
364
+ 21, 21, 21, 21, 21, 21, 21, 21,
365
+ 21, 21, 21, 21, 21, 21, 21, 21,
366
+ 21, 21, 21, 1, 21, 21, 21, 21,
367
+ 21, 21, 21, 21, 21, 21, 21, 21,
368
+ 21, 21, 21, 21, 21, 21, 21, 21,
369
+ 21, 21, 21, 21, 21, 21, 21, 21,
370
+ 21, 21, 21, 21, 21, 21, 21, 21,
371
+ 21, 21, 21, 21, 21, 21, 21, 21,
372
+ 21, 21, 21, 21, 21, 21, 21, 21,
373
+ 21, 21, 21, 21, 21, 21, 21, 21,
374
+ 21, 21, 21, 21, 1, 21, 21, 21,
375
+ 21, 21, 21, 21, 21, 21, 21, 21,
376
+ 21, 21, 21, 21, 21, 1, 67, 67,
377
+ 67, 67, 67, 67, 67, 67, 67, 1,
378
+ 67, 67, 68, 67, 67, 67, 67, 67,
379
+ 67, 67, 67, 67, 67, 67, 67, 67,
380
+ 67, 67, 67, 67, 67, 67, 67, 67,
381
+ 67, 67, 67, 67, 67, 69, 70, 67,
382
+ 67, 67, 67, 67, 67, 67, 67, 67,
383
+ 67, 67, 67, 67, 67, 67, 67, 67,
384
+ 67, 67, 67, 67, 67, 67, 67, 67,
385
+ 67, 67, 67, 67, 67, 67, 67, 67,
386
+ 67, 67, 67, 67, 67, 67, 67, 67,
387
+ 67, 67, 67, 67, 67, 67, 67, 67,
388
+ 67, 71, 67, 67, 67, 67, 67, 67,
389
+ 67, 67, 67, 67, 67, 67, 67, 67,
390
+ 67, 67, 67, 67, 67, 67, 67, 67,
391
+ 67, 67, 67, 67, 67, 67, 67, 67,
392
+ 67, 67, 67, 67, 67, 1, 1, 1,
393
+ 1, 1, 1, 1, 1, 1, 1, 1,
394
+ 1, 1, 1, 1, 1, 1, 1, 1,
395
+ 1, 1, 1, 1, 1, 1, 1, 1,
396
+ 1, 1, 1, 1, 1, 1, 1, 1,
397
+ 1, 1, 1, 1, 1, 1, 1, 1,
398
+ 1, 1, 1, 1, 1, 1, 1, 1,
399
+ 1, 1, 1, 1, 1, 1, 1, 1,
400
+ 1, 1, 1, 1, 1, 1, 1, 72,
401
+ 72, 72, 72, 72, 72, 72, 72, 72,
402
+ 72, 72, 72, 72, 72, 72, 72, 72,
403
+ 72, 72, 72, 72, 72, 72, 72, 72,
404
+ 72, 72, 72, 72, 72, 73, 74, 74,
405
+ 74, 74, 74, 74, 74, 74, 74, 74,
406
+ 74, 74, 75, 74, 74, 76, 77, 77,
407
+ 77, 78, 1, 79, 79, 79, 79, 79,
408
+ 79, 79, 79, 79, 1, 79, 79, 80,
409
+ 79, 79, 79, 79, 79, 79, 79, 79,
410
+ 79, 79, 79, 79, 79, 79, 79, 79,
411
+ 79, 79, 79, 79, 79, 79, 79, 79,
412
+ 79, 79, 81, 82, 79, 79, 79, 79,
413
+ 79, 79, 79, 79, 79, 79, 79, 79,
414
+ 79, 79, 79, 79, 79, 79, 79, 79,
415
+ 79, 79, 79, 79, 79, 79, 79, 79,
416
+ 79, 79, 79, 79, 79, 79, 79, 79,
417
+ 79, 79, 79, 79, 79, 79, 79, 79,
418
+ 79, 79, 79, 79, 79, 79, 83, 79,
419
+ 79, 79, 79, 79, 79, 79, 79, 79,
420
+ 79, 79, 79, 79, 79, 79, 79, 79,
421
+ 79, 79, 79, 79, 79, 79, 79, 79,
422
+ 79, 79, 79, 79, 79, 79, 79, 79,
423
+ 79, 79, 1, 1, 1, 1, 1, 1,
424
+ 1, 1, 1, 1, 1, 1, 1, 1,
425
+ 1, 1, 1, 1, 1, 1, 1, 1,
426
+ 1, 1, 1, 1, 1, 1, 1, 1,
427
+ 1, 1, 1, 1, 1, 1, 1, 1,
428
+ 1, 1, 1, 1, 1, 1, 1, 1,
429
+ 1, 1, 1, 1, 1, 1, 1, 1,
430
+ 1, 1, 1, 1, 1, 1, 1, 1,
431
+ 1, 1, 1, 1, 84, 84, 84, 84,
432
+ 84, 84, 84, 84, 84, 84, 84, 84,
433
+ 84, 84, 84, 84, 84, 84, 84, 84,
434
+ 84, 84, 84, 84, 84, 84, 84, 84,
435
+ 84, 84, 85, 86, 86, 86, 86, 86,
436
+ 86, 86, 86, 86, 86, 86, 86, 87,
437
+ 86, 86, 88, 89, 89, 89, 90, 1,
438
+ 91, 1, 79, 1, 1, 1, 1, 1,
439
+ 1, 1, 1, 1, 1, 1, 1, 1,
440
+ 1, 1, 1, 1, 1, 1, 1, 1,
441
+ 1, 79, 1, 79, 79, 79, 79, 79,
442
+ 79, 79, 79, 79, 79, 79, 79, 79,
443
+ 79, 79, 79, 79, 79, 79, 79, 79,
444
+ 79, 79, 79, 79, 79, 79, 79, 79,
445
+ 79, 79, 79, 79, 79, 79, 79, 79,
446
+ 79, 79, 79, 79, 79, 79, 79, 79,
447
+ 79, 79, 79, 79, 79, 79, 79, 79,
448
+ 79, 79, 79, 79, 79, 79, 79, 79,
449
+ 79, 79, 79, 79, 79, 79, 79, 79,
450
+ 79, 79, 79, 79, 79, 79, 79, 79,
451
+ 79, 79, 79, 79, 79, 79, 79, 79,
452
+ 79, 79, 79, 79, 79, 79, 79, 79,
453
+ 79, 79, 79, 79, 79, 79, 79, 79,
454
+ 79, 79, 79, 79, 79, 79, 79, 79,
455
+ 79, 79, 79, 79, 79, 79, 79, 79,
456
+ 79, 79, 79, 79, 79, 79, 79, 79,
457
+ 79, 79, 79, 1, 1, 1, 1, 1,
458
+ 1, 1, 1, 1, 1, 1, 1, 1,
459
+ 1, 1, 1, 1, 1, 1, 1, 1,
460
+ 1, 1, 1, 1, 1, 1, 1, 1,
461
+ 1, 1, 1, 1, 1, 1, 1, 1,
462
+ 1, 1, 1, 1, 1, 1, 1, 1,
463
+ 1, 1, 1, 1, 1, 1, 1, 1,
464
+ 1, 1, 1, 1, 1, 1, 1, 1,
465
+ 1, 1, 1, 1, 1, 84, 84, 84,
466
+ 84, 84, 84, 84, 84, 84, 84, 84,
467
+ 84, 84, 84, 84, 84, 84, 84, 84,
468
+ 84, 84, 84, 84, 84, 84, 84, 84,
469
+ 84, 84, 84, 85, 86, 86, 86, 86,
470
+ 86, 86, 86, 86, 86, 86, 86, 86,
471
+ 87, 86, 86, 88, 89, 89, 89, 90,
472
+ 1, 79, 79, 79, 79, 79, 79, 79,
473
+ 79, 79, 79, 79, 79, 79, 79, 79,
474
+ 79, 79, 79, 79, 79, 79, 79, 79,
475
+ 79, 79, 79, 79, 79, 79, 79, 79,
476
+ 79, 79, 79, 79, 79, 79, 79, 79,
477
+ 79, 79, 79, 79, 79, 79, 79, 79,
478
+ 79, 79, 79, 79, 79, 79, 79, 79,
479
+ 79, 79, 79, 79, 79, 79, 79, 79,
480
+ 79, 1, 84, 84, 84, 84, 84, 84,
481
+ 84, 84, 84, 84, 84, 84, 84, 84,
482
+ 84, 84, 84, 84, 84, 84, 84, 84,
483
+ 84, 84, 84, 84, 84, 84, 84, 84,
484
+ 84, 84, 1, 84, 84, 84, 84, 84,
485
+ 84, 84, 84, 84, 84, 84, 84, 84,
486
+ 84, 84, 84, 84, 84, 84, 84, 84,
487
+ 84, 84, 84, 84, 84, 84, 84, 84,
488
+ 84, 84, 84, 84, 84, 84, 84, 84,
489
+ 84, 84, 84, 84, 84, 84, 84, 84,
490
+ 84, 84, 84, 84, 84, 84, 84, 84,
491
+ 84, 84, 84, 84, 84, 84, 84, 84,
492
+ 84, 84, 84, 1, 84, 84, 84, 84,
493
+ 84, 84, 84, 84, 84, 84, 84, 84,
494
+ 84, 84, 84, 84, 84, 84, 84, 84,
495
+ 84, 84, 84, 84, 84, 84, 84, 84,
496
+ 84, 84, 84, 84, 1, 86, 86, 86,
497
+ 86, 86, 86, 86, 86, 86, 86, 86,
498
+ 86, 86, 86, 86, 86, 86, 86, 86,
499
+ 86, 86, 86, 86, 86, 86, 86, 86,
500
+ 86, 86, 86, 86, 86, 86, 86, 86,
501
+ 86, 86, 86, 86, 86, 86, 86, 86,
502
+ 86, 86, 86, 86, 86, 1, 86, 86,
503
+ 86, 86, 86, 86, 86, 86, 86, 86,
504
+ 86, 86, 86, 86, 86, 86, 86, 86,
505
+ 86, 86, 86, 86, 86, 86, 86, 86,
506
+ 86, 86, 86, 86, 86, 86, 86, 86,
507
+ 86, 86, 86, 86, 86, 86, 86, 86,
508
+ 86, 86, 86, 86, 86, 86, 86, 86,
509
+ 86, 86, 86, 86, 86, 86, 86, 86,
510
+ 86, 86, 86, 86, 86, 86, 1, 86,
511
+ 86, 86, 86, 86, 86, 86, 86, 86,
512
+ 86, 86, 86, 86, 86, 86, 86, 1,
513
+ 16, 1, 1, 1, 92, 1, 1, 1,
514
+ 1, 1, 1, 1, 1, 1, 1, 1,
515
+ 1, 1, 1, 1, 1, 1, 1, 16,
516
+ 16, 17, 16, 16, 16, 16, 16, 93,
517
+ 1, 16, 16, 94, 16, 95, 16, 16,
518
+ 16, 16, 16, 16, 16, 16, 16, 16,
519
+ 16, 1, 1, 1, 16, 1, 16, 95,
520
+ 16, 16, 16, 16, 16, 16, 16, 16,
521
+ 16, 16, 16, 16, 16, 16, 16, 16,
522
+ 16, 16, 16, 16, 16, 16, 16, 16,
523
+ 16, 16, 1, 1, 1, 16, 16, 16,
524
+ 16, 16, 16, 16, 16, 16, 16, 16,
525
+ 16, 16, 16, 16, 16, 16, 16, 16,
526
+ 16, 16, 16, 16, 16, 16, 16, 16,
527
+ 16, 16, 16, 16, 16, 16, 1, 1,
528
+ 1, 1, 1, 1, 1, 1, 1, 1,
529
+ 1, 1, 1, 1, 1, 1, 1, 1,
530
+ 1, 1, 1, 1, 1, 1, 1, 1,
531
+ 1, 1, 1, 1, 1, 1, 1, 1,
532
+ 1, 1, 1, 1, 1, 1, 1, 1,
533
+ 1, 1, 1, 1, 1, 1, 1, 1,
534
+ 1, 1, 1, 1, 1, 1, 1, 1,
535
+ 1, 1, 1, 1, 1, 1, 1, 1,
536
+ 1, 19, 19, 19, 19, 19, 19, 19,
537
+ 19, 19, 19, 19, 19, 19, 19, 19,
538
+ 19, 19, 19, 19, 19, 19, 19, 19,
539
+ 19, 19, 19, 19, 19, 19, 19, 20,
540
+ 21, 21, 21, 21, 21, 21, 21, 21,
541
+ 21, 21, 21, 21, 22, 21, 21, 23,
542
+ 24, 24, 24, 25, 1, 57, 1, 1,
543
+ 1, 96, 1, 1, 1, 1, 1, 1,
544
+ 1, 1, 1, 1, 1, 1, 1, 1,
545
+ 1, 1, 1, 1, 57, 57, 58, 57,
546
+ 57, 57, 57, 57, 97, 1, 57, 57,
547
+ 98, 57, 99, 57, 57, 57, 57, 57,
548
+ 57, 57, 57, 57, 57, 57, 1, 1,
549
+ 1, 57, 1, 57, 99, 57, 57, 57,
550
+ 57, 57, 57, 57, 57, 57, 57, 57,
551
+ 57, 57, 57, 57, 57, 57, 57, 57,
552
+ 57, 57, 57, 57, 57, 57, 57, 1,
553
+ 1, 1, 57, 57, 57, 57, 57, 57,
554
+ 57, 57, 57, 57, 57, 57, 57, 57,
555
+ 57, 57, 57, 57, 57, 57, 57, 57,
556
+ 57, 57, 57, 57, 57, 57, 57, 57,
557
+ 57, 57, 57, 1, 1, 1, 1, 1,
558
+ 1, 1, 1, 1, 1, 1, 1, 1,
559
+ 1, 1, 1, 1, 1, 1, 1, 1,
560
+ 1, 1, 1, 1, 1, 1, 1, 1,
561
+ 1, 1, 1, 1, 1, 1, 1, 1,
562
+ 1, 1, 1, 1, 1, 1, 1, 1,
563
+ 1, 1, 1, 1, 1, 1, 1, 1,
564
+ 1, 1, 1, 1, 1, 1, 1, 1,
565
+ 1, 1, 1, 1, 1, 1, 60, 60,
566
+ 60, 60, 60, 60, 60, 60, 60, 60,
567
+ 60, 60, 60, 60, 60, 60, 60, 60,
568
+ 60, 60, 60, 60, 60, 60, 60, 60,
569
+ 60, 60, 60, 60, 61, 62, 62, 62,
570
+ 62, 62, 62, 62, 62, 62, 62, 62,
571
+ 62, 63, 62, 62, 64, 65, 65, 65,
572
+ 66, 1, 14, 1, 1, 1, 15, 1,
573
+ 1, 1, 1, 1, 1, 1, 1, 1,
574
+ 1, 1, 1, 1, 1, 1, 1, 1,
575
+ 1, 14, 16, 17, 16, 16, 16, 16,
576
+ 16, 18, 1, 16, 16, 94, 16, 95,
577
+ 16, 16, 16, 16, 16, 16, 16, 16,
578
+ 16, 16, 16, 1, 1, 1, 16, 1,
579
+ 16, 95, 16, 16, 16, 16, 16, 16,
580
+ 16, 16, 16, 16, 16, 16, 16, 16,
581
+ 16, 16, 16, 16, 16, 16, 16, 16,
582
+ 16, 16, 16, 16, 1, 1, 1, 16,
583
+ 16, 16, 16, 16, 16, 16, 16, 16,
584
+ 16, 16, 16, 16, 16, 16, 16, 16,
585
+ 16, 16, 16, 16, 16, 16, 16, 16,
586
+ 16, 16, 16, 16, 16, 16, 16, 16,
587
+ 1, 1, 1, 1, 1, 1, 1, 1,
588
+ 1, 1, 1, 1, 1, 1, 1, 1,
589
+ 1, 1, 1, 1, 1, 1, 1, 1,
590
+ 1, 1, 1, 1, 1, 1, 1, 1,
591
+ 1, 1, 1, 1, 1, 1, 1, 1,
592
+ 1, 1, 1, 1, 1, 1, 1, 1,
593
+ 1, 1, 1, 1, 1, 1, 1, 1,
594
+ 1, 1, 1, 1, 1, 1, 1, 1,
595
+ 1, 1, 1, 19, 19, 19, 19, 19,
596
+ 19, 19, 19, 19, 19, 19, 19, 19,
597
+ 19, 19, 19, 19, 19, 19, 19, 19,
598
+ 19, 19, 19, 19, 19, 19, 19, 19,
599
+ 19, 20, 21, 21, 21, 21, 21, 21,
600
+ 21, 21, 21, 21, 21, 21, 22, 21,
601
+ 21, 23, 24, 24, 24, 25, 1, 1,
602
+ 0,
603
+ ]
14
604
 
15
- phrase_s = nil
16
- actions.each_slice(2) do |action_id, p|
17
- action = Mail::Parsers::Ragel::ACTIONS[action_id]
18
- case action
605
+ class << self
606
+ attr_accessor :_trans_targs
607
+ private :_trans_targs, :_trans_targs=
608
+ end
609
+ self._trans_targs = [
610
+ 2, 0, 3, 42, 7, 22, 44, 23,
611
+ 24, 25, 26, 27, 28, 29, 2, 3,
612
+ 42, 7, 22, 23, 24, 25, 26, 27,
613
+ 28, 29, 4, 6, 8, 9, 42, 11,
614
+ 12, 13, 14, 15, 16, 17, 18, 8,
615
+ 9, 42, 11, 12, 13, 14, 15, 16,
616
+ 17, 18, 10, 19, 20, 21, 19, 2,
617
+ 3, 42, 7, 22, 23, 24, 25, 26,
618
+ 27, 28, 29, 31, 32, 31, 45, 34,
619
+ 35, 36, 37, 38, 39, 40, 41, 31,
620
+ 32, 31, 45, 34, 35, 36, 37, 38,
621
+ 39, 40, 41, 33, 5, 43, 19, 44,
622
+ 5, 43, 19, 44,
623
+ ]
19
624
 
20
- # Phrase
21
- when :phrase_s then phrase_s = p
22
- when :phrase_e
23
- phrase_lists.phrases << s[phrase_s..(p-1)] if phrase_s
24
- phrase_s = nil
625
+ class << self
626
+ attr_accessor :_trans_actions
627
+ private :_trans_actions, :_trans_actions=
628
+ end
629
+ self._trans_actions = [
630
+ 1, 0, 1, 1, 1, 2, 1, 1,
631
+ 1, 1, 1, 1, 1, 1, 0, 0,
632
+ 0, 0, 3, 0, 0, 0, 0, 0,
633
+ 0, 0, 0, 0, 4, 4, 5, 4,
634
+ 4, 4, 4, 4, 4, 4, 4, 0,
635
+ 0, 6, 0, 0, 0, 0, 0, 0,
636
+ 0, 0, 0, 1, 1, 0, 0, 7,
637
+ 7, 7, 7, 8, 7, 7, 7, 7,
638
+ 7, 7, 7, 9, 9, 10, 11, 9,
639
+ 9, 9, 9, 9, 9, 9, 9, 0,
640
+ 0, 3, 12, 0, 0, 0, 0, 0,
641
+ 0, 0, 0, 0, 0, 3, 13, 0,
642
+ 7, 8, 14, 7,
643
+ ]
25
644
 
26
- when :comment_e, :comment_s, :qstr_s, :qstr_e then nil
645
+ class << self
646
+ attr_accessor :_eof_actions
647
+ private :_eof_actions, :_eof_actions=
648
+ end
649
+ self._eof_actions = [
650
+ 0, 0, 0, 0, 0, 0, 0, 0,
651
+ 0, 0, 0, 0, 0, 0, 0, 0,
652
+ 0, 0, 0, 0, 0, 0, 0, 0,
653
+ 0, 0, 0, 0, 0, 0, 0, 0,
654
+ 0, 0, 0, 0, 0, 0, 0, 0,
655
+ 0, 0, 13, 14, 13, 0,
656
+ ]
27
657
 
28
- else
29
- raise Mail::Field::ParseError.new(Mail::PhraseList, s, "Failed to process unknown action: #{action}")
30
- end
658
+ class << self
659
+ attr_accessor :start
660
+ end
661
+ self.start = 1
662
+ class << self
663
+ attr_accessor :first_final
664
+ end
665
+ self.first_final = 42
666
+ class << self
667
+ attr_accessor :error
31
668
  end
669
+ self.error = 0
32
670
 
33
- phrase_lists
671
+ class << self
672
+ attr_accessor :en_comment_tail
673
+ end
674
+ self.en_comment_tail = 30
675
+ class << self
676
+ attr_accessor :en_main
677
+ end
678
+ self.en_main = 1
679
+
680
+ def self.parse(data)
681
+ data = data.dup.force_encoding(Encoding::ASCII_8BIT) if data.respond_to?(:force_encoding)
682
+
683
+ raise Mail::Field::NilParseError.new(Mail::PhraseList) if data.nil?
684
+
685
+ # Parser state
686
+ phrase_lists = PhraseListsStruct.new([])
687
+ phrase_s = nil
688
+
689
+ # 5.1 Variables Used by Ragel
690
+ p = 0
691
+ eof = pe = data.length
692
+ stack = []
693
+
694
+ begin
695
+ p ||= 0
696
+ pe ||= data.length
697
+ cs = start
698
+ top = 0
699
+ end
700
+
701
+ begin
702
+ testEof = false
703
+ _slen, _trans, _keys, _inds, _acts, _nacts = nil
704
+ _goto_level = 0
705
+ _resume = 10
706
+ _eof_trans = 15
707
+ _again = 20
708
+ _test_eof = 30
709
+ _out = 40
710
+ while true
711
+ if _goto_level <= 0
712
+ if p == pe
713
+ _goto_level = _test_eof
714
+ next
715
+ end
716
+ if cs == 0
717
+ _goto_level = _out
718
+ next
719
+ end
720
+ end
721
+ if _goto_level <= _resume
722
+ _keys = cs << 1
723
+ _inds = _index_offsets[cs]
724
+ _slen = _key_spans[cs]
725
+ _wide = data[p].ord
726
+ _trans = if (_slen > 0 &&
727
+ _trans_keys[_keys] <= _wide &&
728
+ _wide <= _trans_keys[_keys + 1])
729
+ _indicies[_inds + _wide - _trans_keys[_keys]]
730
+ else
731
+ _indicies[_inds + _slen]
732
+ end
733
+ cs = _trans_targs[_trans]
734
+ if _trans_actions[_trans] != 0
735
+ case _trans_actions[_trans]
736
+ when 1
737
+ begin
738
+ phrase_s = p
739
+ end
740
+ when 13
741
+ begin
742
+ phrase_lists.phrases << chars(data, phrase_s, p - 1) if phrase_s
743
+ phrase_s = nil
744
+ end
745
+ when 7
746
+ begin
747
+ end
748
+ when 9
749
+ begin
750
+ end
751
+ when 6
752
+ begin
753
+ end
754
+ when 4
755
+ begin
756
+ end
757
+ when 3
758
+ begin
759
+ begin
760
+ stack[top] = cs
761
+ top += 1
762
+ cs = 30
763
+ _goto_level = _again
764
+ next
765
+ end
766
+ end
767
+ when 12
768
+ begin
769
+ begin
770
+ top -= 1
771
+ cs = stack[top]
772
+ _goto_level = _again
773
+ next
774
+ end
775
+ end
776
+ when 2
777
+ begin
778
+ phrase_s = p
779
+ end
780
+ begin
781
+ begin
782
+ stack[top] = cs
783
+ top += 1
784
+ cs = 30
785
+ _goto_level = _again
786
+ next
787
+ end
788
+ end
789
+ when 14
790
+ begin
791
+ end
792
+ begin
793
+ phrase_lists.phrases << chars(data, phrase_s, p - 1) if phrase_s
794
+ phrase_s = nil
795
+ end
796
+ when 8
797
+ begin
798
+ end
799
+ begin
800
+ begin
801
+ stack[top] = cs
802
+ top += 1
803
+ cs = 30
804
+ _goto_level = _again
805
+ next
806
+ end
807
+ end
808
+ when 10
809
+ begin
810
+ end
811
+ begin
812
+ begin
813
+ stack[top] = cs
814
+ top += 1
815
+ cs = 30
816
+ _goto_level = _again
817
+ next
818
+ end
819
+ end
820
+ when 11
821
+ begin
822
+ end
823
+ begin
824
+ begin
825
+ top -= 1
826
+ cs = stack[top]
827
+ _goto_level = _again
828
+ next
829
+ end
830
+ end
831
+ when 5
832
+ begin
833
+ end
834
+ begin
835
+ end
836
+ end
837
+ end
838
+ end
839
+ if _goto_level <= _again
840
+ if cs == 0
841
+ _goto_level = _out
842
+ next
843
+ end
844
+ p += 1
845
+ if p != pe
846
+ _goto_level = _resume
847
+ next
848
+ end
849
+ end
850
+ if _goto_level <= _test_eof
851
+ if p == eof
852
+ case _eof_actions[cs]
853
+ when 13
854
+ begin
855
+ phrase_lists.phrases << chars(data, phrase_s, p - 1) if phrase_s
856
+ phrase_s = nil
857
+ end
858
+ when 14
859
+ begin
860
+ end
861
+ begin
862
+ phrase_lists.phrases << chars(data, phrase_s, p - 1) if phrase_s
863
+ phrase_s = nil
864
+ end
865
+ end
866
+ end
867
+ end
868
+ if _goto_level <= _out
869
+ break
870
+ end
871
+ end
872
+ end
873
+
874
+ if p != eof || cs < 42
875
+ raise Mail::Field::IncompleteParseError.new(Mail::PhraseList, data, p)
876
+ end
877
+
878
+ phrase_lists
879
+ end
34
880
  end
35
881
  end
882
+ ensure
883
+ $VERBOSE = original_verbose
36
884
  end